/*==================================================
            GOOGLE FONT
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root{

    --primary:#ff7a1a;
    --primary-dark:#f06700;
    --secondary:#18c29c;

    --title:#111827;
    --text:#6b7280;

    --border:#e9edf3;

    --white:#ffffff;

    --shadow:0 10px 30px rgba(15,23,42,.08);

    --transition:.35s ease;

}



img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

    padding:0;

    margin:0;

}

/*==================================================
            COURSE SECTION
==================================================*/

.course-section{

    position:relative;

    background:#fff;

    padding:100px 0;

}

.section-heading{

    max-width:820px;

    margin:auto;

    margin-bottom:60px;

}

.section-heading h2{

    color:var(--title);

    font-size:52px;

    font-weight:800;

    line-height:1.2;

    margin-bottom:18px;

}

.section-heading h2 span{

    color:var(--primary);

}

.section-heading p{

    font-size:18px;

    line-height:32px;

    color:#64748b;

}

/*==================================================
            FILTER BUTTONS
==================================================*/

.course-filter{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:65px;

}

.filter-btn{

    border:none;

    background:#fff;

    border:1px solid var(--border);

    border-radius:50px;

    padding:14px 28px;

    color:#334155;

    font-size:15px;

    font-weight:600;

    transition:var(--transition);

    cursor:pointer;

    box-shadow:0 4px 12px rgba(0,0,0,.04);

}

.filter-btn:hover{

    transform:translateY(-3px);

    border-color:var(--primary);

    color:var(--primary);

}

.filter-btn.active{

    background:var(--primary);

    color:#fff;

    border-color:var(--primary);

    /*box-shadow:0 12px 30px rgba(255,122,26,.30);*/

}

.course-wrapper{

    position:relative;

}

/*==================================================
                COURSE CARD
==================================================*/

.course-card{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all .4s ease;
    position: relative;
}

.course-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(15,23,42,.12);
    border-color: rgba(255,122,26,.35);
}

/*==============================
        COURSE IMAGE
==============================*/

.course-image{
    position: relative;
    overflow: hidden;
}

.course-image img{
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .6s ease;
}

.course-card:hover .course-image img{
    transform: scale(1.08);
}

/*==============================
        DURATION BADGE
==============================*/

.course-duration{
    position: absolute;
    top: 18px;
    right: 18px;
    background: #16c79a;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(22,199,154,.30);
}

/*==============================
        CONTENT
==============================*/

.course-content{
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-content h3{
    font-size: 28px;
    font-weight: 700;
    color: var(--title);
    margin-bottom: 14px;
    line-height: 1.3;
}

.course-content p{
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
    flex: 1;
}

/*==============================
        VIEW COURSE BUTTON
==============================*/

.course-content a{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    transition: all .3s ease;
}

.course-content a i{
    transition: transform .3s ease;
}

.course-content a:hover{
    color: var(--primary-dark);
}

.course-content a:hover i{
    transform: translateX(6px);
}

/*==============================
        IMAGE OVERLAY
==============================*/

.course-image::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.18),
        transparent
    );
    opacity: 0;
    transition: .4s;
}

.course-card:hover .course-image::after{
    opacity: 1;
}


/*==================================================
            ANIMATIONS
==================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.course-item{

    animation:fadeUp .7s ease both;

}

.course-item:nth-child(2){

    animation-delay:.1s;

}

.course-item:nth-child(3){

    animation-delay:.2s;

}

.course-item:nth-child(4){

    animation-delay:.3s;

}

.course-item:nth-child(5){

    animation-delay:.4s;

}

.course-item:nth-child(6){

    animation-delay:.5s;

}


/*==================================================
            CARD HOVER
==================================================*/

.course-card:hover .course-content h3{

    color:var(--primary);

}

.course-card:hover .course-duration{

    transform:scale(1.05);

}


/*==================================================
            BUTTON EFFECT
==================================================*/

.filter-btn{

    position:relative;

    overflow:hidden;

}

.filter-btn::before{

    content:"";

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:100%;

    background:rgba(255,255,255,.15);

    transition:.45s;

}

.filter-btn:hover::before{

    left:100%;

}


/*==================================================
            COURSE CONTENT
==================================================*/

.course-content{

    display:flex;

    flex-direction:column;

}

.course-content a{

    margin-top:auto;

}


/*==================================================
            CARD BORDER
==================================================*/

.course-card{

    border:1px solid transparent;

}

.course-card:hover{

    border-color:#ffe1cb;

}


/*==================================================
            IMAGE RADIUS
==================================================*/

.course-image img{

    border-radius:20px 20px 0 0;

}


/*==================================================
            SECTION SPACING
==================================================*/

.course-section{

    overflow:hidden;

}

.section-heading{

    padding-bottom:10px;

}

.course-wrapper{

    row-gap:35px;

}


/*==================================================
            TABLET
==================================================*/

@media(max-width:1199px){

.section-heading h2{

    font-size:44px;

}

.course-content h3{

    font-size:24px;

}

.course-image img{

    height:220px;

}

}

@media(max-width:991px){

.course-section{

    padding:80px 0;

}

.section-heading{

    margin-bottom:45px;

}

.section-heading h2{

    font-size:38px;

}

.section-heading p{

    font-size:16px;

    line-height:30px;

}

.course-filter{

    gap:14px;

    margin-bottom:45px;

}

.filter-btn{

    padding:12px 24px;

}

.course-content{

    padding:22px;

}

.course-content h3{

    font-size:22px;

}

}


/*==================================================
            MOBILE
==================================================*/

@media(max-width:767px){

.course-section{

    padding:70px 0;

}

.section-heading{

    margin-bottom:35px;

}

.section-heading h2{

    font-size:32px;

    line-height:1.3;

}

.section-heading p{

    font-size:15px;

    line-height:28px;

}

.course-filter{

    overflow-x:auto;

    padding-bottom:8px;

    gap:12px;

    scrollbar-width:none;

}

.course-filter::-webkit-scrollbar{

    display:none;

}

.filter-btn{

    white-space:nowrap;

    font-size:14px;

    padding:11px 20px;

}

.course-image img{

    height:220px;

}

.course-content{

    padding:20px;

}

.course-content h3{

    font-size:21px;

}

.course-content p{

    font-size:15px;

}

}


/*==================================================
            SMALL MOBILE
==================================================*/

@media(max-width:575px){

.section-heading h2{

    font-size:28px;

}

.course-image img{

    height:210px;

}

.course-content{

    padding:18px;

}

.course-content h3{

    font-size:20px;

}

.course-content p{

    font-size:14px;

    line-height:1.8;

}

.course-duration{

    font-size:12px;

    padding:7px 15px;

}

.filter-btn{

    padding:10px 18px;

    font-size:13px;

}

}


/*==================================================
            LARGE DESKTOP
==================================================*/

@media(min-width:1400px){

.course-section .container{

    max-width:1320px;

}

.course-image img{

    height:250px;

}

}


/*==================================================
            SMOOTH TRANSITIONS
==================================================*/

.course-card,
.course-image img,
.course-duration,
.course-content h3,
.course-content a,
.filter-btn{

    transition:all .35s ease;

}