* {
    box-sizing: border-box;
}


/* =========================================================
   PAGE
========================================================= */

.grade-two-body {
    margin: 0;
    min-height: 100vh;

    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(239, 173, 82, 0.22),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(244, 190, 107, 0.20),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 72%,
            rgba(247, 204, 137, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 12% 82%,
            rgba(222, 143, 45, 0.12),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #fff9ef 0%,
            #fffdf9 45%,
            #fff5e6 100%
        );

    color: #3f382f;
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.grade-two-body::before {
    content: "";

    position: fixed;

    width: 460px;
    height: 460px;

    left: -180px;
    top: 180px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(239, 173, 82, 0.18),
            rgba(255, 224, 175, 0.08)
        );

    filter: blur(2px);

    pointer-events: none;
    z-index: 0;
}


.grade-two-body::after {
    content: "";

    position: fixed;

    width: 520px;
    height: 520px;

    right: -230px;
    bottom: 40px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(225, 143, 42, 0.15),
            rgba(255, 209, 139, 0.07)
        );

    pointer-events: none;
    z-index: 0;
}


.grade-two-header,
.grade-two-main {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HEADER
========================================================= */

.grade-two-header {
    padding: 22px 24px 0;
}


.grade-two-nav {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 14px 18px 14px 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border:
        1px solid
        rgba(214, 145, 55, 0.16);

    border-radius: 24px;

    box-shadow:
        0 12px 32px
        rgba(121, 88, 34, 0.09);
}


.grade-two-body .logo {
    padding: 12px 20px;

    background:
        linear-gradient(
            135deg,
            #dd9233,
            #efb55d
        );

    border-radius: 16px;

    color: white;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;

    text-decoration: none;

    box-shadow:
        0 8px 20px
        rgba(190, 118, 30, 0.18);
}


.grade-two-body .nav-links {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 8px;

    list-style: none;
}


.grade-two-body .nav-links a {
    display: block;

    padding: 11px 18px;

    border-radius: 14px;

    color: #5d5144;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.grade-two-body .nav-links a:hover {
    background: #fff0d6;
    color: #a76418;

    transform: translateY(-2px);
}


.grade-two-body .nav-links a.active {
    background:
        linear-gradient(
            135deg,
            #dd9233,
            #efb55d
        );

    color: white;
}


/* =========================================================
   MAIN
========================================================= */

.grade-two-main {
    width: min(1120px, 90%);

    margin: 0 auto;
    padding: 65px 0 100px;
}


/* =========================================================
   HERO
========================================================= */

.grade-two-hero {
    max-width: 760px;

    margin: 55px auto 65px;

    position: relative;

    text-align: center;
}


.grade-two-hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 170px;

    left: 50%;
    top: 10px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(239, 173, 82, 0.16),
            transparent 70%
        );

    filter: blur(8px);

    pointer-events: none;
    z-index: -1;
}


.back-link {
    display: inline-block;

    margin-bottom: 28px;

    color: #a76418;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.back-link:hover {
    color: #7f4b12;

    transform: translateX(-4px);
}


.hero-icon {
    width: 92px;
    height: 92px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffedca,
            #ffd99c
        );

    border:
        1px solid
        rgba(214, 145, 55, 0.12);

    border-radius: 28px;

    font-size: 48px;

    box-shadow:
        0 12px 30px
        rgba(177, 126, 35, 0.14);
}


.grade-label,
.section-label {
    margin: 0 0 10px;

    color: #c27b25;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}


.grade-two-hero h1 {
    margin: 0 0 18px;

    color: #6f451b;

    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.08;
}


.hero-description {
    max-width: 620px;

    margin: 0 auto;

    color: #75695d;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   LESSONS SECTION
========================================================= */

.units-section {
    padding: 36px;

    position: relative;
    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border:
        1px solid
        rgba(214, 145, 55, 0.14);

    border-radius: 34px;

    box-shadow:
        0 18px 45px
        rgba(121, 88, 34, 0.09);
}


/* BIG BACKGROUND TEXT */

.units-section::before {
    content: "GRADE 2";

    position: absolute;

    right: -20px;
    top: 50px;

    color:
        rgba(194, 123, 37, 0.05);

    font-size: 120px;
    font-weight: 900;
    letter-spacing: 7px;

    transform: rotate(-7deg);

    pointer-events: none;
}


/* DECORATIVE ORANGE CIRCLE */

.units-section::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -110px;
    bottom: -110px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(239, 173, 82, 0.17),
            transparent 70%
        );

    pointer-events: none;
}


.section-heading {
    margin-bottom: 30px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}


.section-heading h2 {
    margin: 0;

    color: #6f451b;

    font-size: 32px;
}


.unit-count {
    padding: 10px 15px;

    background: #ffe8c2;

    border:
        1px solid
        rgba(214, 145, 55, 0.10);

    border-radius: 999px;

    color: #9b601c;

    font-size: 14px;
    font-weight: 800;
}


.units-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   ALL LESSON CARDS
   EXACT SAME ORANGE COLOR
========================================================= */

.unit-card,
.unit-one,
.unit-two,
.unit-three,
.unit-four,
.unit-five,
.unit-six,
.unit-seven,
.unit-eight,
.unit-nine,
.unit-ten,
.unit-eleven,
.unit-twelve,
.unit-thirteen,
.unit-fourteen,
.unit-fifteen,
.unit-sixteen,
.unit-seventeen,
.unit-eighteen,
.unit-nineteen,
.unit-twenty,
.unit-twenty-one {
    min-height: 300px;
    padding: 26px;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;

    background: #ffe7c2 !important;

    border:
        1px solid
        rgba(205, 132, 40, 0.20) !important;

    border-radius: 28px;

    color: #3f382f;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(121, 88, 34, 0.08) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   SAME DECORATION ON EVERY CARD
========================================================= */

.unit-card::before,
.unit-one::before,
.unit-two::before,
.unit-three::before,
.unit-four::before,
.unit-five::before,
.unit-six::before,
.unit-seven::before,
.unit-eight::before,
.unit-nine::before,
.unit-ten::before,
.unit-eleven::before,
.unit-twelve::before,
.unit-thirteen::before,
.unit-fourteen::before,
.unit-fifteen::before,
.unit-sixteen::before,
.unit-seventeen::before,
.unit-eighteen::before,
.unit-nineteen::before,
.unit-twenty::before,
.unit-twenty-one::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -110px;
    top: -115px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.18) !important;

    pointer-events: none;
}


.unit-card::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: 28px;
    bottom: 55px;

    border:
        1px solid
        rgba(205, 132, 40, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.10);

    pointer-events: none;
}


/* =========================================================
   HOVER
   COLOR STAYS EXACTLY THE SAME
========================================================= */

a.unit-card:hover,
a.unit-one:hover,
a.unit-two:hover,
a.unit-three:hover,
a.unit-four:hover,
a.unit-five:hover,
a.unit-six:hover,
a.unit-seven:hover,
a.unit-eight:hover,
a.unit-nine:hover,
a.unit-ten:hover,
a.unit-eleven:hover,
a.unit-twelve:hover,
a.unit-thirteen:hover,
a.unit-fourteen:hover,
a.unit-fifteen:hover,
a.unit-sixteen:hover,
a.unit-seventeen:hover,
a.unit-eighteen:hover,
a.unit-nineteen:hover,
a.unit-twenty:hover,
a.unit-twenty-one:hover {
    background: #ffe7c2 !important;

    transform: translateY(-7px);

    border-color:
        rgba(205, 132, 40, 0.30) !important;

    box-shadow:
        0 20px 42px
        rgba(121, 88, 34, 0.15) !important;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.unit-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


.unit-number {
    color: #bd7420;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.unit-status {
    padding: 7px 11px;

    background:
        rgba(255, 255, 255, 0.70);

    border:
        1px solid
        rgba(205, 132, 40, 0.08);

    border-radius: 999px;

    color: #887765;

    font-size: 12px;
    font-weight: 800;
}


.unit-status.available {
    background:
        linear-gradient(
            135deg,
            #dc8f31,
            #edae54
        );

    color: white;

    box-shadow:
        0 6px 14px
        rgba(190, 118, 30, 0.15);
}


/* =========================================================
   ICONS
   SAME STYLE FOR EVERY LESSON
========================================================= */

.unit-icon,
.unit-one .unit-icon,
.unit-two .unit-icon,
.unit-three .unit-icon,
.unit-four .unit-icon,
.unit-five .unit-icon,
.unit-six .unit-icon,
.unit-seven .unit-icon,
.unit-eight .unit-icon,
.unit-nine .unit-icon,
.unit-ten .unit-icon,
.unit-eleven .unit-icon,
.unit-twelve .unit-icon,
.unit-thirteen .unit-icon,
.unit-fourteen .unit-icon,
.unit-fifteen .unit-icon,
.unit-sixteen .unit-icon,
.unit-seventeen .unit-icon,
.unit-eighteen .unit-icon,
.unit-nineteen .unit-icon,
.unit-twenty .unit-icon,
.unit-twenty-one .unit-icon {
    width: 68px;
    height: 68px;

    margin: 30px 0 20px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, 0.72) !important;

    border:
        1px solid
        rgba(205, 132, 40, 0.12) !important;

    border-radius: 22px;

    color: #bd7420 !important;

    font-size: 36px;

    box-shadow:
        0 9px 20px
        rgba(121, 88, 34, 0.09);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.unit-card:hover .unit-icon {
    transform:
        translateY(-3px)
        rotate(-3deg)
        scale(1.04);

    box-shadow:
        0 13px 25px
        rgba(121, 88, 34, 0.13);
}


/* =========================================================
   TITLES
========================================================= */

.unit-card h3 {
    margin: 0 0 11px;

    position: relative;
    z-index: 2;

    color: #70471d;

    font-size: 24px;
}


.unit-card p {
    margin: 0 0 24px;

    position: relative;
    z-index: 2;

    color: #75695d;

    line-height: 1.6;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.unit-footer {
    margin-top: auto;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #a76418;

    font-size: 14px;
    font-weight: 800;
}


.unit-arrow {
    font-size: 24px;
}


.lock-icon {
    font-size: 17px;
}


.locked {
    opacity: 0.72;
}


/* =========================================================
   START BUTTON
========================================================= */

.start-btn {
    padding: 12px 20px;

    background:
        rgba(255, 255, 255, 0.90);

    border:
        1px solid
        rgba(205, 132, 40, 0.10);

    color: #a76418;

    border-radius: 999px;

    font-weight: 700;

    box-shadow:
        0 6px 15px
        rgba(121, 88, 34, 0.06);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.unit-card:hover .start-btn {
    transform: translateX(6px);

    background: white;

    box-shadow:
        0 8px 18px
        rgba(121, 88, 34, 0.10);
}


/* =========================================================
   EXTRA BACKGROUND DETAILS
========================================================= */

.grade-two-main::before {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    left: -25px;
    top: 420px;

    border-radius: 50%;

    background:
        rgba(222, 143, 45, 0.20);

    box-shadow:
        55px -90px 0 7px rgba(239, 173, 82, 0.08),
        1060px 160px 0 11px rgba(222, 143, 45, 0.07),
        1010px 620px 0 5px rgba(239, 173, 82, 0.12),
        20px 950px 0 9px rgba(222, 143, 45, 0.07);

    pointer-events: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .grade-two-header {
        padding: 12px;
    }


    .grade-two-nav {
        width: 100%;
        max-width: none;

        padding: 16px;

        flex-direction: column;
        gap: 14px;

        border-radius: 20px;
    }


    .grade-two-body .logo {
        padding: 10px 18px;

        font-size: 22px;
        letter-spacing: normal;
    }


    .grade-two-body .nav-links {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;
    }


    .grade-two-body .nav-links a {
        padding: 8px 14px;

        font-size: 14px;
    }


    .grade-two-main {
        width: calc(100% - 24px);

        padding: 48px 0 70px;
    }


    .grade-two-hero {
        margin-top: 100px;
    }


    .units-section {
        padding: 24px 17px;

        border-radius: 26px;
    }


    .units-section::before {
        right: -35px;
        top: 80px;

        font-size: 70px;
    }


    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    .units-grid {
        grid-template-columns: 1fr;
    }


    .unit-card {
        min-height: 280px;
        padding: 23px;
    }


    .unit-one {
        grid-column: span 1;
    }


    .grade-two-main::before {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .grade-two-main {
        width: calc(100% - 18px);
    }


    .grade-two-hero h1 {
        font-size: 42px;
    }


    .hero-description {
        font-size: 16px;
    }


    .units-section {
        padding: 20px 14px;
    }


    .unit-card {
        min-height: 265px;
        padding: 21px;

        border-radius: 24px;
    }


    .unit-icon {
        width: 62px;
        height: 62px;

        margin-top: 25px;

        font-size: 32px;

        border-radius: 20px;
    }


    .unit-card h3 {
        font-size: 22px;
    }


    .units-section::before {
        font-size: 52px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .unit-card,
    .unit-icon,
    .start-btn,
    .back-link,
    .grade-two-body .nav-links a {
        transition: none;
    }


    a.unit-card:hover {
        transform: none;
    }


    .unit-card:hover .unit-icon {
        transform: none;
    }
}