/* ==========================================
   COURSE CATEGORIES
========================================== */

.courses-section {

    position: relative;

    width: 100%;

    background: var(--primary);

    padding: 90px 0;

    overflow: hidden;
}


/* ==========================================
   MAIN LAYOUT
========================================== */

.courses-layout {

    width: min(1500px, 90%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        360px
        minmax(0, 1fr);

    gap: 60px;

    align-items: center;
}


/* ==========================================
   LEFT INTRO
========================================== */

.courses-intro {

    position: relative;

    z-index: 5;
}


.courses-intro .section-badge {

    display: inline-flex;

    align-items: center;

    padding: 9px 25px;

    border-radius: 50px;

    background:
        var(white);

    color: var(--primary-dark);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;

    margin-bottom: 28px;
}


.courses-intro h2 {

    margin: 0;

    color: var(--section-blue-soft);

    font-size: clamp(42px, 4vw, 62px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;
}


.courses-intro h2 span {

    display: block;

    color: var(--section-blue);
}


.courses-intro p {

    margin: 35px 0 42px;

    max-width: 350px;

    color: var(--light);

    font-size: 17px;

    line-height: 1.9;
}


/* ==========================================
   VIEW ALL BUTTON
========================================== */

.courses-view-all {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 16px 26px;

    border: 1px solid white;

    border-radius: 12px;

    color: var(--light);

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    transition: .3s ease;
}


.courses-view-all .material-symbols-outlined {

    font-size: 22px;

    transition: transform .3s ease;
}


.courses-view-all:hover {

    /* background: #19c978;

    border-color: #19c978; */

    color: #ffffff;

    transform: translateY(-2px);
}


.courses-view-all:hover
.material-symbols-outlined {

    transform: translateX(5px);
}


/* ==========================================
   SLIDER AREA
========================================== */

.courses-slider-area {

    position: relative;

    min-width: 0;

    padding-bottom: 65px;
}


/* ==========================================
   SLIDER VIEWPORT

   IMPORTANT:
   This is where overflow is hidden.
   NOT the complete section.
========================================== */

.courses-slider {

    width: 100%;

    overflow: hidden;

    position: relative;
}


/* ==========================================
   TRACK
========================================== */

.courses-track {

    display: flex;

    gap: 28px;

    width: max-content;

    transition:
        transform .6s cubic-bezier(.22,.61,.36,1);

    will-change: transform;
}


/* ==========================================
   COURSE CARD
========================================== */

.course-card {

    position: relative;

    flex: 0 0 330px;

    width: 330px;

    overflow: hidden;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 15px 45px rgba(0,0,0,.18);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


.course-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(0,0,0,.28);
}


/* ==========================================
   CARD IMAGE
========================================== */

.course-card-image {

    position: relative;

    width: 100%;

    height: 210px;

    overflow: hidden;
}


.course-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}


.course-card:hover
.course-card-image img {

    transform: scale(1.04);
}


/* ==========================================
   CARD TAG
========================================== */

.course-tag {

    position: absolute;

    top: 14px;

    left: 14px;

    z-index: 2;

    padding: 8px 15px;

    border-radius: 30px;

    background: #168c57;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;
}


/* ==========================================
   CARD CONTENT
========================================== */

.course-card-content {

    position: relative;

    padding: 65px 26px 27px;

    min-height: 245px;

    background: #ffffff;
}


/* ==========================================
   CARD ICON
========================================== */

.course-card-icon {

    position: absolute;

    top: -34px;

    left: 26px;

    width: 68px;

    height: 68px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #168cda;

    color: #ffffff;

    box-shadow:
        0 10px 25px rgba(0,0,0,.15);

    border: 5px solid var(--primary);
}


.course-card-icon
.material-symbols-outlined {

    font-size: 30px;
}


/* ==========================================
   CARD TITLE
========================================== */

.course-card h3 {

    margin: 0 0 12px;

    color: #10245b;

    font-size: 21px;

    line-height: 1.25;

    font-weight: 800;
}


/* ==========================================
   CARD DESCRIPTION
========================================== */

.course-card p {

    margin: 0 0 20px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.65;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================
   EXPLORE
========================================== */

.course-explore {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #10245b;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    transition: .3s ease;
}


.course-explore
.material-symbols-outlined {

    font-size: 20px;

    transition: transform .3s ease;
}


.course-explore:hover {

    color: #168cda;
}


.course-explore:hover
.material-symbols-outlined {

    transform: translateX(5px);
}


/* ==========================================
   RIGHT ARROW
========================================== */

.course-slider-arrow {

    position: absolute;

    z-index: 20;

    top: 50%;

    right: -25px;

    transform: translateY(-50%);

    width: 58px;

    height: 58px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    background:
        rgba(255,255,255,.18);

    color: var(--primary-dark, #10245b);

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);

    transition:
        background .3s ease,
        transform .3s ease,
        opacity .3s ease;
}


.course-slider-arrow
.material-symbols-outlined {

    font-size: 27px;
}


.course-slider-arrow:hover {

    background: var(--primary);
    color: white;

    transform:
        translateY(-50%)
        scale(1.08);
}


.course-slider-arrow:disabled {

    opacity: .25;

    cursor: default;

    pointer-events: none;
}


/* ==========================================
   SLIDER DOTS
========================================== */

.course-slider-dots {

    position: absolute;

    bottom: 5px;

    left: 0;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 9px;

    z-index: 20;
}


.course-dot {

    width: 11px;

    height: 11px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,.25);

    cursor: pointer;

    transition:
        width .3s ease,
        background .3s ease,
        transform .3s ease;
}


.course-dot:hover {

    background:
        rgba(255,255,255,.55);
}


.course-dot.active {

    width: 12px;

    height: 12px;

    background: white;

    transform: scale(1.1);
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1200px) {

    .courses-layout {

        grid-template-columns:
            300px
            minmax(0, 1fr);

        gap: 40px;
    }


    .course-card {

        flex-basis: 310px;

        width: 310px;
    }


    .course-slider-arrow {

        right: -10px;
    }

}


@media (max-width: 900px) {

    .courses-section {

        padding: 70px 0;
    }


    .courses-layout {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .courses-intro {

        max-width: 600px;

        margin: 0 auto;

        text-align: center;
    }


    .courses-intro p {

        margin-left: auto;

        margin-right: auto;
    }


    .courses-slider-area {

        width: 100%;
    }


    .course-slider-arrow {

        right: 5px;
    }

}


@media (max-width: 600px) {

    .courses-section {

        padding: 60px 0;
    }


    .courses-layout {

        width: 92%;
    }


    .courses-intro h2 {

        font-size: 42px;
    }


    .courses-intro p {

        font-size: 15px;

        line-height: 1.7;
    }


    .course-card {

        flex-basis: 290px;

        width: 290px;
    }


    .course-card-image {

        height: 190px;
    }


    .course-slider-arrow {

        width: 48px;

        height: 48px;

        right: 5px;
    }


    .course-slider-arrow
    .material-symbols-outlined {

        font-size: 22px;
    }

}


/* ======================================================
   MODERN COURSE CARDS
   Reference-style overlapping cards
====================================================== */

.courses-grid {
    display: flex;
    /* grid-template-columns: repeat(6, 1fr); */
    gap: 24px;
    width: max-content;
}


/* ======================================================
   MAIN CARD
====================================================== */

.course-modern-card {
    position: relative;
    display: block;

    /* min-width: 0; */
    flex: 0 0 300px;
    width: 300px;

    overflow: hidden;

    background: #ffffff;

    border-radius: 20px;

    text-decoration: none;

    box-shadow:
        0 8px 28px rgba(20, 45, 90, 0.10);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


/* Hover */

.course-modern-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(20, 45, 90, 0.16);

}


/* ======================================================
   IMAGE
====================================================== */

.course-card-image {

    position: relative;

    width: 100%;

    height: 205px;

    overflow: hidden;

    background: #eef2f5;

}


/* Image */

.course-card-image img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform .6s ease;

}


/* Image zoom */

.course-modern-card:hover
.course-card-image img {

    transform: scale(1.05);

}


/* Very subtle image overlay */

.course-card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, .12) 100%
        );

    pointer-events: none;

}


/* ======================================================
   REMOVE OLD NUMBER
====================================================== */

/* .course-number {

    display: none;

} */


/* ======================================================
   CURVED WHITE CONTENT PANEL
====================================================== */

.course-card-content {

    position: relative;

    z-index: 5;

    margin-top: -48px;

    min-height: 150px;

    padding: 45px 22px 20px;

    background: #ffffff;

    /*
       Large curved top creates the same
       overlapping effect as the reference
    */
    border-radius:
        55px 55px 18px 18px;

}


/*
   Extra smooth curve.

   This makes the white body look like
   it is rising into the image instead
   of simply having rounded corners.
*/

.course-card-content::before {

    content: "";

    position: absolute;

    top: -1px;

    left: 0;

    right: 0;

    height: 55px;

    background: #ffffff;

    border-radius:
        50% 50% 0 0 / 100% 100% 0 0;

    z-index: -1;

}


/* ======================================================
   COURSE ICON
====================================================== */

/* .course-card-content::after {

    content: "";

    position: absolute;

    top: -29px;

    left: 22px;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #0b9f9a,
            #087f86
        );

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .14);

} */


/* ======================================================
   TITLE
====================================================== */

.course-card-heading {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}


.course-card-heading h3 {

    margin: 0;

    color: #15213b;

    font-size: 17px;

    line-height: 1.25;

    font-weight: 800;

}


/* ======================================================
   ARROW
====================================================== */

.course-card-heading
> .material-symbols-outlined {

    display: none;

}


/* ======================================================
   DESCRIPTION
====================================================== */

.course-card-content p {

    position: relative;

    z-index: 2;

    margin:
        9px 0 16px;

    color: #6d7480;

    font-size: 12px;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


/* ======================================================
   FOOTER
====================================================== */

.course-card-footer {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 0;

    border-top: none;

}


/* ======================================================
   DURATION
====================================================== */

.course-duration {

    display: none;

}


/* ======================================================
   EXPLORE
====================================================== */

.course-learn {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    /* color: #008b91; */

     color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    transition: .3s ease;

}


.course-learn
.material-symbols-outlined {

    font-size: 16px;

    transition:
        transform .3s ease;

}


.course-modern-card:hover
.course-learn
.material-symbols-outlined {

    transform:
        translateX(5px);

}


/* ======================================================
   ICON SYMBOL
====================================================== */

/*
   We use the number element as a visual icon
   container through CSS. Since the reference
   needs an actual icon, hide its text and
   create the icon using ::after.
*/

.course-number {
    position: absolute;

    top: -29px;
    left: 22px;

    z-index: 20;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #0b9f9a,
            #087f86
        );

    color: white;

    font-size: 0;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .14);
}


/* icon */

.course-number::after {

    content: "school";

    font-family:
        "Material Symbols Outlined";

    font-size: 26px;

    font-weight: normal;

    color: #ffffff;

}


/* ======================================================
   ALTERNATING ICON COLORS
====================================================== */

.course-modern-card:nth-child(2)
.course-number {

    background:
        linear-gradient(
            145deg,
            #d5c96a,
            #c2b548
        );

}


.course-modern-card:nth-child(3)
.course-number {

    background:
        linear-gradient(
            145deg,
            #4b9bea,
            #2876d4
        );

}


.course-modern-card:nth-child(4)
.course-number {

    background:
        linear-gradient(
            145deg,
            #e88b62,
            #d9673d
        );

}


.course-modern-card:nth-child(5)
.course-number {

    background:
        linear-gradient(
            145deg,
            #8c78df,
            #6754c8
        );

}


.course-modern-card:nth-child(6)
.course-number {

    background:
        linear-gradient(
            145deg,
            #53ae8b,
            #338b6b
        );

}


/* ======================================================
   CARD HOVER
====================================================== */

.course-modern-card:hover
.course-number {

    transform:
        translateY(-2px);

}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1100px) {

    .courses-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 20px;

    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {

    .courses-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 16px;

    }


    .course-card-image {

        height: 175px;

    }


    .course-card-content {

        margin-top: -42px;

        padding:
            40px 18px 18px;

        border-radius:
            45px 45px 16px 16px;

    }


    .course-card-content::before {

        height: 48px;

    }


    .course-number {
    left: 18px;
    top: -27px;
    bottom: auto;

    width: 54px;
    height: 54px;
}


    .course-card-heading h3 {

        font-size: 15px;

    }


    .course-card-content p {

        font-size: 11px;

        line-height: 1.5;

        margin:
            8px 0 14px;

    }


    .course-learn {

        font-size: 11px;

    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 576px) {

    .courses-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .course-modern-card {

        border-radius: 20px;

    }


    .course-card-image {

        height: 205px;

    }


    .course-card-content {

        margin-top: -48px;

        padding:
            45px 22px 20px;

        border-radius:
            55px 55px 18px 18px;

    }


    .course-card-content::before {

        height: 55px;

    }


    .course-number {
    left: 22px;
    top: -29px;
    bottom: auto;

    width: 58px;
    height: 58px;
}


    .course-card-heading h3 {

        font-size: 17px;

    }


    .course-card-content p {

        font-size: 12px;

        line-height: 1.55;

    }


    .course-learn {

        font-size: 12px;

    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media(max-width:576px){

    .course-grid{

        grid-template-columns:
            1fr;

        gap:18px;

    }


    .course-modern-card{

        border-radius:22px;

    }


    .course-card-image{

        height:200px;

    }


    .course-card-content{

        padding:20px;

    }


    .course-card-heading h3{

        font-size:19px;

    }


    .course-card-content p{

        font-size:14px;

        -webkit-line-clamp:3;

    }

}


/* ==========================================
   VIEW ALL
========================================== */

.courses-bottom{

    display:flex;

    justify-content:center;

    margin-top:40px;

}


.courses-view-all{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:13px 22px;

    border:1px solid
        rgba(37,99,235,.25);

    border-radius:12px;

    /* color:var(--primary); */

    font-size:14px;

    font-weight:700;

    transition:.3s;

}


/* .courses-view-all:hover{

    background:var(--primary);

    color:#fff;

} */


.courses-view-all
.material-symbols-outlined{

    font-size:18px;

    transition:.3s;

}


.courses-view-all:hover
.material-symbols-outlined{

    transform:translateX(4px);

}


/* .courses-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

} */

/* ==========================================
   COURSE RESPONSIVE
========================================== */

@media(max-width:1100px){

    .courses-grid{

        grid-template-columns:
            repeat(3,1fr);

    }

    .featured-course{

        grid-template-columns:
            1fr .8fr;

    }

    .featured-content{

        padding:45px 40px;

    }

    .featured-content h3{

        font-size:36px;

    }

}


@media(max-width:768px){

    .courses-section{

        padding:80px 0;

    }


    .courses-heading{

        margin-bottom:35px;

    }


    .courses-heading h2{

        font-size:32px;

    }


    /* Featured */

    .featured-course{

        grid-template-columns:1fr;

        min-height:auto;

        border-radius:25px;

    }


    .featured-content{

        padding:35px 25px;

    }


    .featured-content h3{

        font-size:30px;

    }


    .featured-content > p{

        font-size:14px;

    }


    .featured-stats{

        gap:18px;

    }


    .featured-stat{

        min-width:120px;

    }


    .featured-visual{

        min-height:250px;

        padding-bottom:30px;

    }


    .featured-circle{

        width:155px;

        height:155px;

    }


    .featured-circle
    .material-symbols-outlined{

        font-size:65px;

    }


    .featured-glow{

        width:220px;

        height:220px;

    }


    .floating-tech{

        width:45px;

        height:45px;

        border-radius:13px;

    }


    .tech-one{

        top:35px;

        right:65px;

    }


    .tech-two{

        right:30px;

        bottom:30px;

    }


    .tech-three{

        left:35px;

        bottom:30px;

    }


    /* Cards */

    .courses-grid{

        grid-template-columns:
            repeat(2,1fr);

        gap:15px;

    }


    /* .course-modern-card{

        min-height:260px;

        padding:20px;

    } */

}


@media(max-width:520px){

    .courses-section{

        padding:70px 0;

    }


    .courses-heading h2{

        font-size:28px;

    }


    .courses-heading p{

        font-size:14px;

    }


    /* Featured */

    .featured-content{

        padding:28px 20px;

    }


    .featured-content h3{

        font-size:27px;

    }


    .featured-stats{

        display:grid;

        grid-template-columns:
            repeat(2,1fr);

        gap:15px;

    }


    .featured-stat{

        min-width:0;

    }


    .featured-stat > .material-symbols-outlined{

        width:36px;

        height:36px;

        font-size:18px;

    }


    .featured-stat strong{

        font-size:13px;

    }


    .featured-stat small{

        font-size:10px;

    }


    .featured-btn{

        width:100%;

        justify-content:center;

    }


    .featured-visual{

        min-height:220px;

    }


    /* Cards */

    .courses-grid{

        grid-template-columns:1fr;

    }


    .course-modern-card{

        min-height:190px;

    }


    .course-card-content h3{

        max-width:none;

        font-size:18px;

    }


    .course-card-content p{

        max-width:100%;

    }

}