* {
    box-sizing: border-box;
}


/* =========================================================
   PAGE
========================================================= */

.grade-one-body {
    margin: 0;
    min-height: 100vh;

    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(102, 187, 106, 0.22),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(129, 199, 132, 0.20),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 72%,
            rgba(165, 214, 167, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 12% 82%,
            rgba(76, 175, 80, 0.12),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #f4fbf4 0%,
            #fbfefb 45%,
            #eff8f0 100%
        );

    color: #314033;
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.grade-one-body::before {
    content: "";

    position: fixed;

    width: 460px;
    height: 460px;

    left: -180px;
    top: 180px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(102, 187, 106, 0.18),
            rgba(200, 230, 201, 0.08)
        );

    filter: blur(2px);

    pointer-events: none;
    z-index: 0;
}


.grade-one-body::after {
    content: "";

    position: fixed;

    width: 520px;
    height: 520px;

    right: -230px;
    bottom: 40px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(76, 175, 80, 0.15),
            rgba(165, 214, 167, 0.07)
        );

    pointer-events: none;
    z-index: 0;
}


.grade-one-header,
.grade-one-main {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HEADER
   SAME SPACING AS GRADE 2 / GRADE 3
========================================================= */

.grade-one-header {
    padding: 22px 24px 0;
}


.grade-one-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(76, 150, 80, 0.16);

    border-radius: 24px;

    box-shadow:
        0 12px 32px
        rgba(46, 100, 50, 0.09);
}


.grade-one-body .logo {
    padding: 12px 20px;

    background:
        linear-gradient(
            135deg,
            #4fa65c,
            #75c47e
        );

    border-radius: 16px;

    color: white;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;

    text-decoration: none;

    box-shadow:
        0 8px 20px
        rgba(61, 139, 70, 0.18);
}


/* =========================================================
   NAVIGATION
========================================================= */

.grade-one-body .nav-links {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 8px;

    list-style: none;
}


.grade-one-body .nav-links a {
    display: block;

    padding: 11px 18px;

    border-radius: 14px;

    color: #4b5d4d;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.grade-one-body .nav-links a:hover {
    background: #e5f5e7;
    color: #347c40;

    transform: translateY(-2px);
}


.grade-one-body .nav-links a.active {
    background:
        linear-gradient(
            135deg,
            #4fa65c,
            #75c47e
        );

    color: white;
}


/* =========================================================
   MAIN
   EXACT SAME DISTANCE LOGIC AS GRADE 2 / 3
========================================================= */

.grade-one-main {
    width: min(1120px, 90%);

    margin: 0 auto;

    padding: 65px 0 100px;
}


/* =========================================================
   HERO
========================================================= */

.grade-one-hero {
    max-width: 760px;

    margin: 55px auto 65px;

    position: relative;

    text-align: center;
}


.grade-one-hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 170px;

    left: 50%;
    top: 10px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(102, 187, 106, 0.15),
            transparent 70%
        );

    filter: blur(8px);

    pointer-events: none;
    z-index: -1;
}


/* =========================================================
   BACK TO GRADES
   NO MORE -110PX SHIFT
========================================================= */

.grade-one-body .back-link {
    position: static;

    display: inline-block;

    margin-bottom: 28px;

    color: #347c40;

    font-weight: 700;
    text-decoration: none;

    transform: none;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.grade-one-body .back-link:hover {
    color: #255f30;

    transform: translateX(-4px);
}


/* =========================================================
   HERO ICON
========================================================= */

.hero-icon {
    width: 92px;
    height: 92px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #e2f4e4,
            #c6e8ca
        );

    border:
        1px solid
        rgba(76, 150, 80, 0.12);

    border-radius: 28px;

    font-size: 48px;

    box-shadow:
        0 12px 30px
        rgba(61, 139, 70, 0.14);
}


/* =========================================================
   HERO TEXT
========================================================= */

.grade-label,
.section-label {
    margin: 0 0 10px;

    color: #4d9b58;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}


.grade-one-hero h1 {
    margin: 0 0 18px;

    color: #285f31;

    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.08;
}


.hero-description {
    max-width: 620px;

    margin: 0 auto;

    color: #657567;

    font-size: 18px;
    line-height: 1.7;
}


/* IMPORTANT:
   NOTHING INSIDE HERO IS SHIFTED UP ANYMORE */

.grade-one-hero .hero-icon,
.grade-one-hero .grade-label,
.grade-one-hero h1,
.grade-one-hero .hero-description {
    transform: none;
}


/* =========================================================
   PROGRESS
========================================================= */

.grade-progress {
    max-width: 550px;

    margin: 35px auto 0;
    padding: 18px 22px;

    background:
        rgba(255, 255, 255, 0.90);

    border:
        1px solid
        rgba(76, 150, 80, 0.10);

    border-radius: 20px;

    box-shadow:
        0 10px 28px
        rgba(46, 100, 50, 0.09);
}


.progress-info {
    margin-bottom: 10px;

    display: flex;
    justify-content: space-between;

    color: #466d4b;

    font-size: 14px;
    font-weight: 700;
}


.progress-track {
    height: 11px;

    overflow: hidden;

    background: #e1f0e3;

    border-radius: 999px;
}


.progress-fill {
    width: 0%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #4fa65c,
            #78c982
        );

    border-radius: inherit;

    transition:
        width 0.8s ease;
}


/* =========================================================
   LESSONS SECTION
   NO MORE -100PX SHIFT
========================================================= */

.grade-one-body .units-section {
    padding: 36px;

    position: relative;
    overflow: hidden;

    transform: none;

    background:
        rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border:
        1px solid
        rgba(76, 150, 80, 0.14);

    border-radius: 34px;

    box-shadow:
        0 18px 45px
        rgba(46, 100, 50, 0.09);
}


/* =========================================================
   LARGE DECORATIVE GRADE 1
========================================================= */

.grade-one-body .units-section::before {
    content: "GRADE 1";

    position: absolute;

    right: -20px;
    top: 50px;

    color:
        rgba(63, 139, 73, 0.05);

    font-size: 120px;
    font-weight: 900;
    letter-spacing: 7px;

    transform: rotate(-7deg);

    pointer-events: none;
}


/* =========================================================
   DECORATIVE CIRCLE
========================================================= */

.grade-one-body .units-section::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -110px;
    bottom: -110px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(102, 187, 106, 0.17),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.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: #285f31;

    font-size: 32px;
}


.unit-count {
    padding: 10px 15px;

    background: #dff1e1;

    border:
        1px solid
        rgba(76, 150, 80, 0.10);

    border-radius: 999px;

    color: #347c40;

    font-size: 14px;
    font-weight: 800;
}


/* =========================================================
   LESSON GRID
========================================================= */

.units-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   ALL LESSON CARDS
   EXACTLY THE SAME GREEN
========================================================= */

.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: #dcefdc !important;

    border:
        1px solid
        rgba(76, 150, 80, 0.20) !important;

    border-radius: 28px;

    color: #314033;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(46, 100, 50, 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(76, 150, 80, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.10);

    pointer-events: none;
}


/* =========================================================
   CARD HOVER
========================================================= */

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: #dcefdc !important;

    transform: translateY(-7px);

    border-color:
        rgba(76, 150, 80, 0.30) !important;

    box-shadow:
        0 20px 42px
        rgba(46, 100, 50, 0.15) !important;
}


/* =========================================================
   CARD TOP
========================================================= */

.unit-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


.unit-number {
    color: #4a9555;

    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(76, 150, 80, 0.08);

    border-radius: 999px;

    color: #748576;

    font-size: 12px;
    font-weight: 800;
}


.unit-status.available {
    background:
        linear-gradient(
            135deg,
            #4fa65c,
            #70bf7a
        );

    color: white;

    box-shadow:
        0 6px 14px
        rgba(61, 139, 70, 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(76, 150, 80, 0.12) !important;

    border-radius: 22px;

    color: #4a9555 !important;

    font-size: 36px;

    box-shadow:
        0 9px 20px
        rgba(46, 100, 50, 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(46, 100, 50, 0.13);
}


/* =========================================================
   CARD TITLES
========================================================= */

.unit-card h3 {
    margin: 0 0 11px;

    position: relative;
    z-index: 2;

    color: #285f31;

    font-size: 24px;
}


.unit-card p {
    margin: 0 0 24px;

    position: relative;
    z-index: 2;

    color: #657567;

    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: #347c40;

    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(76, 150, 80, 0.10);

    color: #347c40;

    border-radius: 999px;

    font-weight: 700;

    box-shadow:
        0 6px 15px
        rgba(46, 100, 50, 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(46, 100, 50, 0.10);
}


/* =========================================================
   EXTRA BACKGROUND DETAILS
========================================================= */

.grade-one-main::before {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    left: -25px;
    top: 420px;

    border-radius: 50%;

    background:
        rgba(76, 175, 80, 0.20);

    box-shadow:
        55px -90px 0 7px rgba(102, 187, 106, 0.08),
        1060px 160px 0 11px rgba(76, 175, 80, 0.07),
        1010px 620px 0 5px rgba(129, 199, 132, 0.12),
        20px 950px 0 9px rgba(76, 175, 80, 0.07);

    pointer-events: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .grade-one-header {
        padding: 12px;
    }


    .grade-one-nav {
        width: 100%;
        max-width: none;

        padding: 16px;

        flex-direction: column;
        gap: 14px;

        border-radius: 20px;
    }


    .grade-one-body .logo {
        padding: 10px 18px;

        font-size: 22px;
        letter-spacing: normal;
    }


    .grade-one-body .nav-links {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;
    }


    .grade-one-body .nav-links a {
        padding: 8px 14px;

        font-size: 14px;
    }


    .grade-one-main {
        width: calc(100% - 24px);

        padding: 48px 0 70px;
    }


    .grade-one-hero {
        margin-top: 100px;
    }


    .grade-one-body .units-section {
        padding: 24px 17px;

        transform: none;

        border-radius: 26px;
    }


    .grade-one-body .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-one-main::before {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .grade-one-main {
        width: calc(100% - 18px);
    }


    .grade-one-hero h1 {
        font-size: 42px;
    }


    .hero-description {
        font-size: 16px;
    }


    .grade-one-body .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;
    }


    .grade-one-body .units-section::before {
        font-size: 52px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .unit-card,
    .unit-icon,
    .start-btn,
    .grade-one-body .back-link,
    .grade-one-body .nav-links a {
        transition: none;
    }


    a.unit-card:hover {
        transform: none;
    }


    .unit-card:hover .unit-icon {
        transform: none;
    }
}