/*==================================================
COURSES SECTION
==================================================*/

.coursesSection{

    padding:100px 0;

    background:
    linear-gradient(180deg,#fcfaf6 0%,#ffffff 100%);

    position:relative;

    overflow:hidden;

}

.coursesSection::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    border-radius:50%;

    background:rgba(139,26,26,.05);

    top:-180px;

    right:-180px;

}

.coursesSection::after{

    content:"";

    position:absolute;

    width:320px;

    height:320px;

    border-radius:50%;

    background:rgba(214,179,108,.08);

    left:-120px;

    bottom:-120px;

}


/*====================================
SECTION HEADING
====================================*/

.courseHeading .subTitle{

    display:inline-block;

    color:#8b1a1a;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:15px;

}

.courseHeading h2{

    font-size:52px;

    font-weight:700;

    color:#222;

    line-height:1.2;

    font-family:"Playfair Display",serif;

}

.courseHeading h2 span{

    color:#8b1a1a;

}

.courseIntro{

    font-size:17px;

    color:#666;

    line-height:1.9;

    margin:0;

}


/*====================================
DIVIDER
====================================*/

.goldDivider{

    display:flex;

    align-items:center;

    gap:15px;

    margin-top:25px;

}

.goldDivider span{

    flex:1;

    height:2px;

    background:#d7b16a;

}

.goldDivider i{

    color:#d7b16a;

    font-size:16px;

}


/*====================================
CARD
====================================*/

.courseCard{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    transition:.4s;

    box-shadow:

    0 15px 45px rgba(0,0,0,.08);

    height:100%;

    position:relative;

}

.courseCard:hover{

    transform:translateY(-10px);

    box-shadow:

    0 25px 60px rgba(0,0,0,.15);

}


/*====================================
IMAGE
====================================*/

.courseImage{

    height:220px;

    overflow:hidden;

    position:relative;

}

.courseImage img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}

.courseCard:hover .courseImage img{

    transform:scale(1.08);

}


/*====================================
CONTENT
====================================*/

.courseContent{

    padding:30px;

}

.courseContent h3{

    font-size:25px;

    font-weight:700;

    margin-bottom:15px;

    color:#222;

    font-family:"Playfair Display",serif;

    min-height:65px;

}

.courseContent p{

    color:#666;

    line-height:1.8;

    margin-bottom:20px;

}


/*====================================
BADGE
====================================*/

.badgeRow{

    margin-bottom:25px;

}

.badgeRow span{

    display:inline-block;

    background:#fff5df;

    color:#8b1a1a;

    border:1px solid #e2c37d;

    padding:8px 18px;

    border-radius:40px;

    font-size:13px;

    font-weight:700;

    letter-spacing:1px;

}


/*====================================
FOOTER
====================================*/

.courseFooter{

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-top:1px solid #eee;

    padding-top:20px;

}

.courseFooter small{

    color:#888;

    font-weight:600;

}

.courseFooter a{

    text-decoration:none;

    color:#8b1a1a;

    font-weight:700;

    transition:.3s;

}

.courseFooter a i{

    margin-left:8px;

    transition:.3s;

}

.courseFooter a:hover{

    color:#c4952e;

}

.courseFooter a:hover i{

    transform:translateX(5px);

}


/*==================================================
CARD BORDER EFFECT
==================================================*/

.courseCard::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    padding:2px;

    background:linear-gradient(
        135deg,
        rgba(214,179,108,.9),
        transparent 40%,
        transparent 60%,
        rgba(139,26,26,.4)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;
            mask-composite:exclude;

    opacity:0;

    transition:.4s;

    pointer-events:none;

}

.courseCard:hover::before{

    opacity:1;

}



/*==================================================
IMAGE OVERLAY
==================================================*/

.courseImage::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:45%;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.25)
    );

}



/*==================================================
HEADING EFFECT
==================================================*/

.courseContent h3{

    transition:.35s;

}

.courseCard:hover h3{

    color:#8b1a1a;

}



/*==================================================
BADGE EFFECT
==================================================*/

.badgeRow span{

    transition:.35s;

}

.courseCard:hover .badgeRow span{

    background:#8b1a1a;

    color:#fff;

    border-color:#8b1a1a;

}



/*==================================================
BUTTON EFFECT
==================================================*/

.courseFooter a{

    display:inline-flex;

    align-items:center;

    gap:8px;

}

.courseFooter a i{

    margin-left:0;

}

.courseCard:hover .courseFooter a{

    color:#8b1a1a;

}



/*==================================================
SECTION ANIMATION
==================================================*/

.courseCard{

    animation:fadeUp .7s ease;

}

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(40px);

}

to{

opacity:1;

transform:translateY(0);

}

}



/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:1199px){

.courseHeading h2{

font-size:44px;

}

.courseImage{

height:210px;

}

}



@media(max-width:991px){

.coursesSection{

padding:80px 0;

}

.courseHeading{

text-align:center;

margin-bottom:20px;

}

.courseIntro{

text-align:center;

}

.goldDivider{

justify-content:center;

}

.courseContent{

padding:25px;

}

.courseContent h3{

font-size:22px;

min-height:auto;

}

}



@media(max-width:767px){

.coursesSection{

padding:70px 0;

}

.courseHeading h2{

font-size:36px;

}

.courseImage{

height:200px;

}

.courseFooter{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

}



@media(max-width:575px){

.courseHeading h2{

font-size:30px;

}

.courseContent{

padding:22px;

}

.courseContent h3{

font-size:21px;

}

.courseContent p{

font-size:15px;

}

.courseImage{

height:190px;

}

.badgeRow span{

font-size:12px;

padding:7px 14px;

}

.courseFooter{

gap:12px;

}

.courseFooter a{

width:100%;

justify-content:center;

padding:12px 0;

background:#8b1a1a;

color:#fff;

border-radius:10px;

}

.courseFooter a:hover{

color:#fff;

background:#6d1414;

}

}