/* ============================================================
   PROFENAA TECHNOLOGIES
   COURSES PAGE
   Clean White Professional Design
   Desktop → Laptop → Tablet → Mobile
============================================================ */


/* ============================================================
   PAGE BACKGROUND
============================================================ */

html,
body {
    background: #ffffff;
    color: #172033;
}

body {
    overflow-x: hidden;
}


/* ============================================================
   COMMON CONTAINER
============================================================ */

.container {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}


/* ============================================================
   PAGE HERO
============================================================ */

.page-hero {
    position: relative;

    padding-top: calc(var(--nav-h, 80px) + 70px);
    padding-bottom: 85px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(59, 141, 218, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(27, 27, 107, 0.06),
            transparent 30%
        ),
        #ffffff;

    border-bottom: 1px solid #edf0f5;
    overflow: hidden;
}


/* Decorative background */

.page-hero::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -120px;
    top: 70px;

    border-radius: 50%;

    border: 1px solid rgba(59, 141, 218, 0.12);

    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    left: -100px;
    bottom: -90px;

    border-radius: 50%;

    background: rgba(59, 141, 218, 0.05);

    pointer-events: none;
}


/* Hero content */

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .eyebrow {
    color: #2878c8;
    margin-bottom: 12px;
}


/* Hero heading */

.page-hero h1 {
    max-width: 850px;

    margin: 0 0 24px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        2.3rem,
        5vw,
        4rem
    );

    line-height: 1.08;

    font-weight: 700;

    color: #172033;
}


/* Gradient text */

.text-grad {
    background:
        linear-gradient(
            100deg,
            #1b1b6b 0%,
            #2878c8 55%,
            #3b8dda 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* Hero paragraph */

.page-hero-sub {
    max-width: 760px;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 1.05rem;

    line-height: 1.8;

    color: #626b7d;
}


/* ============================================================
   CATALOG SECTION
============================================================ */

.catalog {
    position: relative;

    padding-top: 65px;
    padding-bottom: 80px;

    background: #ffffff;
}


/* ============================================================
   FILTER BAR
============================================================ */

.filter-bar {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;

    padding-bottom: 5px;
}


/* Filter buttons */

.filter-chip {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 18px;

    border-radius: 999px;

    border: 1px solid #dfe5ee;

    background: #ffffff;

    color: #4d5870;

    font-family: "Inter", sans-serif;

    font-size: 0.86rem;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* Hover */

.filter-chip:hover {
    color: #1b1b6b;

    border-color: #7bb5e8;

    background: #f7fbff;

    transform: translateY(-2px);
}


/* Active */

.filter-chip.is-active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1b1b6b,
            #2878c8
        );

    border-color: transparent;

    box-shadow:
        0 8px 22px rgba(40, 120, 200, 0.22);
}


/* ============================================================
   COURSE GRID
============================================================ */

.course-catalog-grid {
    display: grid;

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

    gap: 24px;
}


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

.cat-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 28px 26px;

    background: #ffffff;

    border: 1px solid #e6eaf0;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(20, 35, 60, 0.06);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Top accent */

.cat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #1b1b6b,
            #2878c8,
            #3b8dda
        );

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 0.35s ease;
}


/* Decorative circle */

.cat-card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -40px;
    bottom: -45px;

    border-radius: 50%;

    background: rgba(59, 141, 218, 0.05);

    pointer-events: none;
}


/* Hover */

.cat-card:hover {
    transform: translateY(-7px);

    border-color: #cbdff1;

    box-shadow:
        0 18px 45px rgba(20, 35, 60, 0.11);
}

.cat-card:hover::before {
    transform: scaleX(1);
}


/* Hidden */

.cat-card.is-hidden {
    display: none;
}


/* ============================================================
   COURSE TAG
============================================================ */

.course-tag {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    padding: 6px 11px;

    border-radius: 999px;

    background: #eef7ff;

    border: 1px solid #d8ebfa;

    color: #2477bb;

    font-family: "Inter", sans-serif;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


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

.cat-card h3 {
    margin: 0 0 10px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 1.25rem;

    line-height: 1.3;

    font-weight: 700;

    color: #1b1b6b;
}


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

.cat-card p {
    margin: 0 0 22px;

    font-family: "Inter", sans-serif;

    font-size: 0.88rem;

    line-height: 1.7;

    color: #697386;
}


/* ============================================================
   COURSE META
============================================================ */

.cat-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: auto;

    padding-top: 17px;

    border-top: 1px solid #edf0f4;

    list-style: none;
}


/* Meta item */

.cat-meta li {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    background: #f5f8fb;

    color: #526074;

    font-family: "Inter", sans-serif;

    font-size: 0.72rem;

    font-weight: 600;

    border: 1px solid #e7edf3;
}


/* ============================================================
   FINAL CTA SECTION
============================================================ */

.final-cta {
    padding-top: 10px;
    padding-bottom: 90px;

    background: #ffffff;
}


/* ============================================================
   CTA BAND
============================================================ */

.cta-band {
    position: relative;

    text-align: center;

    padding:
        clamp(45px, 7vw, 75px)
        clamp(25px, 6vw, 70px);

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #eef6ff 50%,
            #f8fbff 100%
        );

    border: 1px solid #dcebf7;

    box-shadow:
        0 18px 55px rgba(35, 90, 140, 0.08);

    overflow: hidden;
}


/* CTA decorative circle */

.cta-band::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    top: -130px;
    right: -70px;

    border-radius: 50%;

    border: 1px solid rgba(40, 120, 200, 0.13);
}


/* CTA second decorative circle */

.cta-band::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -90px;
    bottom: -100px;

    border-radius: 50%;

    background: rgba(40, 120, 200, 0.05);
}


/* CTA heading */

.cta-band h2 {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin-inline: auto;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        1.8rem,
        4vw,
        2.7rem
    );

    line-height: 1.2;

    color: #1b1b6b;
}


/* CTA paragraph */

.cta-band p {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin:
        18px auto 30px;

    font-family: "Inter", sans-serif;

    font-size: 0.96rem;

    line-height: 1.75;

    color: #667085;
}


/* ============================================================
   CTA ACTIONS
============================================================ */

.cta-actions {
    position: relative;
    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* ============================================================
   GHOST BUTTON
============================================================ */

.btn-ghost {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 999px;

    background: #ffffff;

    color: #1b1b6b;

    border: 1px solid #cfddea;

    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-ghost:hover {
    transform: translateY(-2px);

    background: #1b1b6b;

    color: #ffffff;

    border-color: #1b1b6b;

    box-shadow:
        0 10px 25px rgba(27, 27, 107, 0.18);
}


/* ============================================================
   AMBER / PRIMARY BUTTON
============================================================ */

.btn-amber {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 12px 25px;

    border-radius: 999px;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-amber:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(40, 120, 200, 0.25);
}


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

@media (max-width: 1100px) {

    .container {
        width: min(100% - 36px, 1050px);
    }

    .course-catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/* ============================================================
   TABLET / SMALL LAPTOP
============================================================ */

@media (max-width: 920px) {

    .page-hero {
        padding-top:
            calc(var(--nav-h, 75px) + 55px);

        padding-bottom: 65px;
    }

    .page-hero h1 {
        font-size: clamp(
            2.1rem,
            6vw,
            3.2rem
        );
    }

    .catalog {
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .filter-bar {
        margin-bottom: 35px;
    }

}


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

@media (max-width: 640px) {

    .container {
        width: calc(100% - 30px);
    }


    /* Hero */

    .page-hero {
        padding-top:
            calc(var(--nav-h, 70px) + 42px);

        padding-bottom: 50px;
    }

    .page-hero h1 {
        font-size:
            clamp(2rem, 9vw, 2.7rem);

        line-height: 1.12;
    }

    .page-hero-sub {
        font-size: 0.93rem;

        line-height: 1.7;
    }


    /* Filter */

    .filter-bar {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 12px;

        margin-bottom: 30px;

        scrollbar-width: thin;

        -webkit-overflow-scrolling: touch;
    }

    .filter-bar::-webkit-scrollbar {
        height: 4px;
    }

    .filter-chip {
        flex: 0 0 auto;

        min-height: 40px;

        padding:
            8px 14px;

        font-size: 0.78rem;
    }


    /* Cards */

    .course-catalog-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .cat-card {
        min-height: auto;

        padding: 24px 21px;

        border-radius: 16px;
    }

    .cat-card h3 {
        font-size: 1.15rem;
    }

    .cat-card p {
        font-size: 0.84rem;
    }


    /* CTA */

    .final-cta {
        padding-bottom: 60px;
    }

    .cta-band {
        padding:
            42px 20px;

        border-radius: 20px;
    }

    .cta-band h2 {
        font-size: 1.75rem;
    }

    .cta-band p {
        font-size: 0.88rem;
    }

    .cta-actions {
        flex-direction: column;

        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

}


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

@media (max-width: 420px) {

    .container {
        width: calc(100% - 24px);
    }

    .page-hero {
        padding-top:
            calc(var(--nav-h, 68px) + 35px);

        padding-bottom: 42px;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }

    .page-hero-sub {
        font-size: 0.88rem;
    }

    .catalog {
        padding-top: 40px;
    }

    .cat-card {
        padding: 21px 18px;
    }

    .course-tag {
        font-size: 0.63rem;
    }

    .cat-card h3 {
        font-size: 1.08rem;
    }

    .cat-meta li {
        font-size: 0.68rem;
    }

    .cta-band {
        padding:
            35px 17px;
    }

    .cta-band h2 {
        font-size: 1.55rem;
    }

}


/* ============================================================
   VERY SMALL DEVICES
============================================================ */

@media (max-width: 350px) {

    .page-hero h1 {
        font-size: 1.7rem;
    }

    .filter-chip {
        padding-inline: 12px;

        font-size: 0.72rem;
    }

    .cat-card {
        padding: 19px 16px;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .cat-card,
    .filter-chip,
    .btn-ghost,
    .btn-amber {
        transition: none;
    }

    .cat-card:hover,
    .filter-chip:hover,
    .btn-ghost:hover,
    .btn-amber:hover {
        transform: none;
    }

}