/* CSS Document */
/* Course list stylesheet */


.feature-listing,
.course-listing{
    padding: 4em 4em 4em;
}
.feature-listing__sub-title,
.course-listing__sub-title{
    font-size: 2.5rem;
}


.feature-listing__sub-title {
    padding-left: 1em;
    position: relative;
    z-index: 2;
}
.feature-listing__sub-title::before{
    content: '';
    position: absolute;
    height: 120%;
    width: 110px;
    bottom: 0;
    left: 0;
    background-color: var(--main-color-1);
    opacity: .5;
    z-index: -1;
}

.course-listing__sub-title {

    padding-left: 1em;
    position: relative;
    z-index: 2;
}
.course-listing__sub-title::before{
    content: '';
    position: absolute;
    height: 120%;
    width: 110px;
    bottom: 0;
    left: 0;
    background-color: var(--main-color-2);
    opacity: .5;
    z-index: -1;
}


.wrapper{
    width: 80%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: auto;
    grid-gap: 2em;
    margin: 4em auto;
}

/* .card--1 .card__img, .card--1 .card__img--hover {
}

.card--2 .card__img, .card--2 .card__img--hover {
} */

.card__feature {
    font-size: .75rem;
    font-weight: 700;
    color: #191919;
    background-color: #95E8D5; /*#2BEDC0  #95E8D5*/
    padding: .5em;
    border-radius: .3em;
    transition: 800ms ease;
    max-width: 80%;
    display: flex;
    align-items: center;

}

.card__feature span{
    text-transform: capitalize;
}

.card__icon{
    font-size: 1.12rem;
    margin: 0 1em;
}
.card__img {
    visibility: hidden;
    object-fit: cover;
    width: 100%;
    height: 235px;
    border-top-left-radius: .75em;
    border-top-right-radius: .75em;
    background: linear-gradient(rgba(29, 38, 113, 0.8), rgba(195, 55, 100, 0.8));
}

.card__info-hover {
    position: absolute;
    padding: 1em;
    width: 80%;
    opacity: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.card__img--hover {
    transition: 0.35s all ease-out;
    width: 100%;
    position: absolute;
    height: 235px;
    border-top-left-radius: .75em;
    border-top-right-radius: .75em;
    top: 0;
}

.card {
  transition: transform .3s cubic-bezier(.45,.05,.55,.95);
  background-color: #fff;
  max-width: 400px;
  position: relative;
  border-radius: .75em;
  overflow: hidden;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0,0.1);
}
.card:hover {
    box-shadow: 0px 30px 18px -8px rgba(0, 0, 0,0.1);
    transform: scale(1.10, 1.10);
}

.card__info {
    z-index: 2;
    background-color: #fff;
    border-bottom-left-radius: .75em;
    border-bottom-right-radius: .75em;
    padding: 16px 24px 24px 24px;
    display: flex;
    flex-direction: column;
}

.card__category {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: #626262;
    background-color: rgba(255, 79, 79, .4);
    padding: .6em 1.6em;
    border-radius: .6em;
    align-self: start;
}

.card__title {
    margin-top: .625em;
    margin-bottom: .625em;
}

.card__by {
    font-size: .75rem;
    font-weight: 500;
}

.card__author {
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    opacity: .6;
}

.card:hover .card__img--hover {
    height: 100%;
    opacity: 0.22;
    object-fit: cover;
}

.card:hover .card__info {
    background-color: transparent;
    position: relative;
}

.card:hover .card__info-hover {
    opacity: 1;
}

.card__info-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-btn{
    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: .3em;
    padding: .4em 1.2em;
    cursor: pointer;
    font-size: .8rem;
    transition: 350ms ease-in;
}

.card-btn:hover,
.card-btn:focus{
    background-color: var(--main-color-7);
    border-color: var(--main-color-7);
    color: rgba(255, 255, 255, 1);
}


/*
=================================
Card Model
=================================
/*

/* Add animation (Chrome, Safari, Opera) */
/*
@-webkit-keyframes example {
  from {top:-200px;opacity: 0;}
  to {top:200px;opacity:1;} /*updated from 0*/
}
*/
/*
Add animation (Standard syntax)
@keyframes example {
  from {top:-200px;opacity: 0;}
  to {top:200px;opacity:1;} /*updated from 0*/
}
*/
.container{

}
.btn-wrapper{
    height: 100vh;
    /* This part is important for centering the content */
    display: flex;
    align-items: center;
    justify-content: center;
    /* End center */
    background: -webkit-linear-gradient(to right, #834d9b, #d04ed6);
    background: linear-gradient(to right, #834d9b, #d04ed6);
}
.modal-btn{
    display: inline-block;
    text-decoration: none;
    padding: 15px;
    background-color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    color: #585858;
    cursor: pointer;
}


/* The modal box */

dialog{
    border: none;
    background-color: #707070;
}

dialog::backdrop{
    background-color: #707070;

}
.modal-dialog {
  display: block;
  vertical-align: middle;
}

.modal-dialog .modal-content{
    max-width: 730px;
    background-color: #F2F2F2;
    border-radius: .3em;
    margin: auto;
    padding: 2em;
    box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.15);
    position: relative;
    /* Add animation */
    -webkit-animation-name: example; /* Chrome, Safari, Opera */
    -webkit-animation-duration: 1.5s; /* Chrome, Safari, Opera */
    animation-name: example;
    animation-duration: 1.5s;
    /* top:200px; */
    /* z-index: 10; */

}

.modal-header{
    display: flex;
    flex-direction: column;
}
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--main-color-7);
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.modal__close:hover{
    color: #2BEDC0;
    opacity: .8;
}

.modal-title{
    font-size: 1.7rem;
    font-weight: 600;
    color: #2E2E2E;
    margin-top: 0;
    margin-bottom: 1.5em;
}

.modal-sub-title{
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--main-color-7);
    order: -1;
    margin: 0;
}

.content{
    margin-bottom: 2.5em;
    display: flex;
    gap: 1em;
}

.feature{
    display: flex;
    align-items: center;
    padding: .25em .5em;
    border-radius: .3em;
}


.category-desc{
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: .5em;
}

.category-one span,
.category-three span{
    color: rgba(43, 237, 192, .5);
}
.category-two span,
.category-four span{
    color: rgba(255, 79, 79, .5);
}
.category-one,
.category-three{
    background-color: rgba(43, 237, 192, .09);
}

.category-two,
.category-four{
    background-color: rgba(255, 79, 79, .09);
}

.modal-desc p{
    font-size: .875rem;
}

.modal-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location,
.date {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

.footer-detail{
    font-size: .8rem;
    color: var(--main-color-7);
    /* color: rgba(0,0,0,1); */
    opacity: .7;
}

.btn-link{
    text-decoration: none;
}
