/* =================================================
   DESIRE INSTITUTE - COURSES PAGE
   ================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fc;
    color: #17233c;
}


/* =================================================
   HERO
   ================================================= */

.courses-hero {

    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #032e70,
            #075dd1
        );
}


.courses-hero::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(255,255,255,.06);

    top: -250px;
    left: -120px;
}


.courses-hero::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: rgba(255,213,79,.08);

    right: -150px;
    bottom: -250px;
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    padding: 70px 20px;
}


.hero-label {

    color: #ffd54f;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;
}


.hero-content h1 {

    color: #fff;

    font-size: clamp(38px, 6vw, 62px);

    margin: 15px 0;

    line-height: 1.1;
}


.hero-content p {

    color: rgba(255,255,255,.9);

    font-size: 17px;

    line-height: 1.6;

    margin-bottom: 28px;
}


.hero-btn {

    display: inline-block;

    padding: 13px 28px;

    border-radius: 30px;

    background: #fff;

    color: #075dd1;

    text-decoration: none;

    font-weight: 700;

    transition: .25s;
}


.hero-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.2);
}


/* =================================================
   INTRO
   ================================================= */

.course-intro {

    text-align: center;

    max-width: 800px;

    margin: auto;

    padding: 65px 20px 35px;
}


.course-intro > span {

    color: #075dd1;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.course-intro h2 {

    color: #153b72;

    font-size: 36px;

    margin: 12px 0;
}


.course-intro p {

    color: #697587;

    line-height: 1.7;

    font-size: 15px;
}


/* =================================================
   FILTER
   ================================================= */

.course-filter-section {

    padding: 10px 20px 35px;
}


.course-filter-container {

    max-width: 1200px;

    margin: auto;
}


.course-search {

    position: relative;

    max-width: 600px;

    margin: 0 auto 22px;
}


.course-search input {

    width: 100%;

    height: 48px;

    border-radius: 25px;

    border: 1px solid #dce3ee;

    outline: none;

    padding: 0 48px 0 18px;

    font-size: 14px;

    background: #fff;
}


.course-search input:focus {

    border-color: #075dd1;

    box-shadow:
        0 0 0 3px rgba(7,93,209,.08);
}


.course-search span {

    position: absolute;

    right: 18px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;
}


/* Category Buttons */

.category-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;
}


.category-btn {

    border: 1px solid #d7e0ee;

    background: #fff;

    color: #24446f;

    padding: 9px 14px;

    border-radius: 25px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;

    transition: .2s;
}


.category-btn:hover {

    border-color: #075dd1;

    color: #075dd1;
}


.category-btn.active {

    background: #075dd1;

    color: #fff;

    border-color: #075dd1;
}


/* =================================================
   COURSES GRID
   ================================================= */

.courses-section {

    padding: 10px 20px 80px;
}


.courses-container {

    max-width: 1200px;

    margin: auto;
}


.courses-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* =================================================
   CARD
   ================================================= */

.course-card {

    background: #fff;

    border: 1px solid #e4eaf3;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 7px 25px rgba(18,52,93,.07);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    position: relative;
}


.course-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #075dd1,
            #ffd54f
        );
}


.course-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 18px 40px rgba(18,52,93,.13);
}


.course-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 22px 10px;
}


.course-icon {

    width: 55px;
    height: 55px;

    border-radius: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf4ff;

    font-size: 27px;
}


.course-code {

    padding: 6px 10px;

    border-radius: 20px;

    background: #f0f5ff;

    color: #075dd1;

    font-size: 10px;

    font-weight: 800;
}


.course-body {

    padding: 8px 22px 22px;
}


.course-category {

    color: #075dd1;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.course-body h3 {

    color: #153b72;

    font-size: 18px;

    line-height: 1.35;

    margin: 7px 0 8px;

    min-height: 48px;
}


.course-body p {

    color: #6b7585;

    font-size: 13px;

    line-height: 1.6;

    min-height: 63px;

    margin-bottom: 18px;
}


/* =================================================
   META
   ================================================= */

.course-meta {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 18px;
}


.course-meta div {

    background: #f7f9fc;

    border-radius: 9px;

    padding: 9px 10px;
}


.course-meta small {

    display: block;

    color: #8b94a3;

    font-size: 9px;

    margin-bottom: 3px;
}


.course-meta strong {

    display: block;

    color: #294a76;

    font-size: 12px;
}


/* =================================================
   BUTTONS
   ================================================= */

.course-buttons {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}


.course-buttons a {

    text-align: center;

    padding: 10px 5px;

    border-radius: 9px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    transition: .2s;
}


.details-btn {

    color: #075dd1;

    background: #fff;

    border: 1px solid #075dd1;
}


.apply-btn {

    color: #fff;

    background: #075dd1;

    border: 1px solid #075dd1;
}


.details-btn:hover {

    background: #075dd1;

    color: #fff;
}


.apply-btn:hover {

    background: #003b95;
}


/* =================================================
   NO COURSES
   ================================================= */

.no-courses {

    display: none;

    text-align: center;

    padding: 70px 20px;

    color: #687386;
}


.no-courses div {

    font-size: 40px;

    margin-bottom: 10px;
}


.no-courses h3 {

    color: #173b70;

    margin-bottom: 5px;
}


/* =================================================
   CAREER
   ================================================= */

.career-section {

    background: #fff;

    padding: 75px 20px;
}


.career-container {

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 50px;

    align-items: center;
}


.career-text > span {

    color: #075dd1;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.career-text h2 {

    color: #153b72;

    font-size: 36px;

    line-height: 1.2;

    margin: 10px 0 15px;
}


.career-text p {

    color: #687386;

    line-height: 1.7;

    margin-bottom: 25px;
}


.career-text a {

    display: inline-block;

    padding: 12px 22px;

    background: #075dd1;

    color: #fff;

    text-decoration: none;

    border-radius: 25px;

    font-weight: 700;

    font-size: 13px;
}


/* Stats */

.career-stats {

    display: grid;

    grid-template-columns: 1fr;

    gap: 12px;
}


.career-stats div {

    padding: 18px;

    border-radius: 14px;

    background: #f5f8fc;

    border: 1px solid #e6ebf3;
}


.career-stats strong {

    display: block;

    color: #075dd1;

    font-size: 28px;
}


.career-stats span {

    color: #687386;

    font-size: 12px;
}


/* =================================================
   CTA
   ================================================= */

.course-cta {

    text-align: center;

    padding: 70px 20px;

    background:
        linear-gradient(
            135deg,
            #003b95,
            #075dd1
        );
}


.course-cta span {

    color: #ffd54f;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.course-cta h2 {

    color: #fff;

    font-size: 38px;

    margin: 12px 0;
}


.course-cta p {

    color: rgba(255,255,255,.85);

    margin-bottom: 25px;
}


.course-cta a {

    display: inline-block;

    padding: 13px 27px;

    border-radius: 25px;

    background: #fff;

    color: #075dd1;

    text-decoration: none;

    font-weight: 700;
}


/* =================================================
   TABLET
   ================================================= */

@media (max-width: 1000px) {

    .courses-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .career-container {

        grid-template-columns: 1fr;
    }

}


/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 600px) {

    .courses-hero {

        min-height: 380px;
    }


    .hero-content {

        padding: 55px 18px;
    }


    .hero-content h1 {

        font-size: 36px;
    }


    .hero-content p {

        font-size: 14px;
    }


    .course-intro {

        padding-top: 50px;
    }


    .course-intro h2 {

        font-size: 29px;
    }


    .courses-section {

        padding-left: 14px;
        padding-right: 14px;
    }


    .courses-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .course-body h3 {

        min-height: auto;
    }


    .course-body p {

        min-height: auto;
    }


    .category-buttons {

        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;
    }


    .category-btn {

        flex-shrink: 0;
    }


    .career-section {

        padding: 55px 18px;
    }


    .career-text h2 {

        font-size: 29px;
    }


    .course-cta h2 {

        font-size: 30px;
    }

}