/* =========================================================
   COLOUR & WRITE FOR KIDS
   HERO SECTION — V2 REFINED
   ========================================================= */


/* =========================================================
   HERO MAIN CONTAINER
   ========================================================= */

.hero {

    position: relative;

    width: calc(100% - 48px);

    min-height: 500px;

    margin: 20px auto 0;

    padding: 60px 80px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    overflow: hidden;

    border-radius: 28px;

    border: 1px solid #304a68;

    background:
        radial-gradient(
            circle at 75% 48%,
            rgba(62, 143, 229, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #101c2d 0%,
            #142842 52%,
            #0d192b 100%
        );

    color: #f5f8fc;

}


/* =========================================================
   SUBTLE SPACE ATMOSPHERE
   ========================================================= */

.hero::before {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(71, 154, 235, 0.08),
            transparent 68%
        );

    pointer-events: none;

}


/* =========================================================
   BACKGROUND STARS
   ========================================================= */

.hero::after {

    content: "";

    position: absolute;

    width: 2px;
    height: 2px;

    top: 28%;
    left: 48%;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    box-shadow:
        120px 40px rgba(255,255,255,0.35),
        230px -30px rgba(255,255,255,0.45),
        330px 90px rgba(255,255,255,0.30),
        430px 30px rgba(255,255,255,0.40),
        170px 250px rgba(255,255,255,0.28),
        360px 220px rgba(255,255,255,0.35);

    pointer-events: none;

}


/* =========================================================
   SMALL DECORATIVE STARS
   ========================================================= */

.space-star {

    position: absolute;

    z-index: 1;

    color: rgba(255, 255, 255, 0.70);

    font-size: 17px;

    line-height: 1;

    pointer-events: none;

    animation:
        starTwinkle 4s ease-in-out infinite;

}


.star-1 {
    top: 15%;
    left: 7%;
}

.star-2 {
    top: 25%;
    left: 43%;
    animation-delay: 1s;
}

.star-3 {
    top: 17%;
    right: 27%;
    animation-delay: 1.7s;
}

.star-4 {
    top: 64%;
    left: 5%;
    font-size: 23px;
    animation-delay: 0.5s;
}

.star-5 {
    bottom: 17%;
    right: 8%;
    animation-delay: 2s;
}

.star-6 {
    bottom: 12%;
    left: 17%;
    animation-delay: 1.2s;
}

.star-7 {
    top: 76%;
    right: 32%;
    font-size: 23px;
    animation-delay: 2.5s;
}

.star-8 {
    top: 45%;
    right: 47%;
    animation-delay: 0.8s;
}


/* =========================================================
   STAR ANIMATION
   ========================================================= */

@keyframes starTwinkle {

    0%,
    100% {

        opacity: 0.25;

        transform: scale(0.8);

    }

    50% {

        opacity: 0.95;

        transform: scale(1.2);

    }

}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.hero-left {

    position: relative;

    z-index: 20;

    width: 54%;

    max-width: 670px;

}


/* =========================================================
   WELCOME / FREE WORKSHEET BADGE
   ========================================================= */

.free-tag {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    margin-bottom: 24px;

    border-radius: 999px;

    border: 1px solid #347fbd;

    background: rgba(36, 91, 140, 0.20);

    color: #a9d8ff;

    font-size: 15px;

    font-weight: 800;

    letter-spacing: 0.1px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

}


/* =========================================================
   HERO HEADING
   ========================================================= */

.hero h1 {

    margin: 0 0 20px;

    color: #f7f9fc;

    font-size: clamp(48px, 5vw, 72px);

    line-height: 1.05;

    letter-spacing: -1.5px;

    font-weight: 800;

}


.hero h1 span {

    color: #4da8ff;

}


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

.hero p {

    max-width: 650px;

    margin: 0 0 28px;

    color: #bdd1e5;

    font-size: 19px;

    line-height: 1.65;

}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 16px;

    margin-bottom: 27px;

}


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

.hero .primary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 54px;

    padding: 14px 25px;

    box-sizing: border-box;

    border-radius: 12px;

    border: 2px solid #6cb8ff;

    background: #4da8ff;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 5px 0 #287ac5;

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

}


.hero .primary-btn:hover {

    background: #64b4ff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 0 #287ac5;

}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.hero .secondary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 14px 25px;

    box-sizing: border-box;

    border-radius: 12px;

    border: 2px solid #5d7895;

    background: #1a3048;

    color: #e5f1ff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 5px 0 #0b1625;

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

}


.hero .secondary-btn:hover {

    background: #29445f;

    transform: translateY(-3px);

    box-shadow:
        0 8px 0 #0b1625;

}


/* =========================================================
   FEATURES
   ========================================================= */

.hero-features {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 18px;

    color: #d9e8f7;

    font-size: 15px;

    font-weight: 700;

}


.hero-features span {

    position: relative;

    display: inline-flex;

    align-items: center;

    padding-left: 18px;

    white-space: nowrap;

}


.hero-features span::before {

    content: "";

    position: absolute;

    left: 0;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #4da8ff;

    box-shadow:
        0 0 8px rgba(77, 168, 255, 0.55);

}


.hero-features span:nth-child(2)::before {

    background: #8bcf52;

    box-shadow:
        0 0 8px rgba(139, 207, 82, 0.45);

}


.hero-features span:nth-child(3)::before {

    background: #ffd45c;

    box-shadow:
        0 0 8px rgba(255, 212, 92, 0.45);

}


/* =========================================================
   RIGHT VISUAL AREA
   ========================================================= */

.hero-right {

    position: relative;

    z-index: 5;

    width: 46%;

    max-width: 620px;

    height: 440px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.hero-space {

    position: relative;

    width: 100%;

    height: 100%;

}


/* =========================================================
   ALL HERO PNG ELEMENTS
   ========================================================= */

.hero-png {

    position: absolute;

    display: block;

    object-fit: contain;

    pointer-events: none;

    user-select: none;

    filter:
        drop-shadow(
            0 8px 10px rgba(0, 0, 0, 0.22)
        );

    will-change: transform;

}


/* =========================================================
   PLANET
   ========================================================= */

.planet-png {

    width: 370px;

    height: 370px;

    right: 115px;

    top: 42px;

    z-index: 2;

    opacity: 0.98;

    filter:
        drop-shadow(
            0 18px 22px rgba(0, 0, 0, 0.25)
        );

    animation:
        planetDrift 8s ease-in-out infinite;

}


@keyframes planetDrift {

    0%,
    100% {

        transform:
            translate3d(0, 0, 0)
            rotate(0deg);

    }

    50% {

        transform:
            translate3d(0, -8px, 0)
            rotate(2deg);

    }

}


/* =========================================================
   MOON
   ========================================================= */

.moon-png {

    width: 65px;

    height: 65px;

    right: 25px;

    top: 15px;

    z-index: 8;

    animation:
        moonFloat 6.5s ease-in-out infinite;

}


@keyframes moonFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(0deg);

    }

    50% {

        transform:
            translate(-8px, -12px)
            rotate(5deg);

    }

}


/* =========================================================
   RABBIT
   ========================================================= */

.rabbit-png {

    display: block !important;

    width: 82px;

    left: 38px;

    top: 55px;

    z-index: 8;

    animation:
        rabbitFloat 5.5s ease-in-out infinite;

}


@keyframes rabbitFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-4deg);

    }

    50% {

        transform:
            translate(10px, -15px)
            rotate(4deg);

    }

}


/* =========================================================
   AIRPLANE
   ========================================================= */

.airplane-png {

    display: block !important;

    width: 90px;

    left: 5px;

    top: 225px;

    z-index: 8;

    animation:
        planeFloat 6.2s ease-in-out infinite;

}


@keyframes planeFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-4deg);

    }

    50% {

        transform:
            translate(22px, -12px)
            rotate(4deg);

    }

}


/* =========================================================
   BOOKS
   ========================================================= */

.books-png {

    display: block !important;

    width: 78px;

    left: 75px;

    bottom: 35px;

    z-index: 8;

    animation:
        booksFloat 5.8s ease-in-out infinite;

}


@keyframes booksFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-3deg);

    }

    50% {

        transform:
            translate(10px, -15px)
            rotate(4deg);

    }

}


/* =========================================================
   WORKSHEET
   ========================================================= */

.worksheet-png {

    display: block !important;

    width: 135px;

    right: 5px;

    bottom: 5px;

    z-index: 10;

    animation:
        worksheetFloat 6s ease-in-out infinite;

}


@keyframes worksheetFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(6deg);

    }

    50% {

        transform:
            translate(-8px, -15px)
            rotate(10deg);

    }

}


/* =========================================================
   LETTER A
   ========================================================= */

.letter-a-png {

    display: block !important;

    width: 62px;

    left: 205px;

    top: 5px;

    z-index: 9;

    animation:
        letterAFloat 5s ease-in-out infinite;

}


@keyframes letterAFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-5deg);

    }

    50% {

        transform:
            translate(9px, -14px)
            rotate(5deg);

    }

}


/* =========================================================
   LETTER B
   ========================================================= */

.letter-b-png {

    display: block !important;

    width: 62px;

    left: 255px;

    bottom: 15px;

    z-index: 9;

    animation:
        letterBFloat 5.7s ease-in-out infinite;

}


@keyframes letterBFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(4deg);

    }

    50% {

        transform:
            translate(-10px, -13px)
            rotate(-5deg);

    }

}


/* =========================================================
   LETTER C
   ========================================================= */

.letter-c-png {

    display: block !important;

    width: 58px;

    right: 5px;

    top: 125px;

    z-index: 9;

    animation:
        letterCFloat 5.4s ease-in-out infinite;

}


@keyframes letterCFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(5deg);

    }

    50% {

        transform:
            translate(-8px, -14px)
            rotate(-5deg);

    }

}


/* =========================================================
   NUMBER 1
   ========================================================= */

.number-1-png {

    display: block !important;

    width: 52px;

    left: 300px;

    top: 82px;

    z-index: 8;

    animation:
        numberOneFloat 4.8s ease-in-out infinite;

}


@keyframes numberOneFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-4deg);

    }

    50% {

        transform:
            translate(7px, -12px)
            rotate(4deg);

    }

}


/* =========================================================
   NUMBER 2
   ========================================================= */

.number-2-png {

    display: block !important;

    width: 52px;

    right: 45px;

    top: 255px;

    z-index: 9;

    animation:
        numberTwoFloat 5.6s ease-in-out infinite;

}


@keyframes numberTwoFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(3deg);

    }

    50% {

        transform:
            translate(-9px, -13px)
            rotate(-4deg);

    }

}


/* =========================================================
   NUMBER 3
   ========================================================= */

.number-3-png {

    display: block !important;

    width: 50px;

    left: 155px;

    top: 300px;

    z-index: 8;

    animation:
        numberThreeFloat 5.2s ease-in-out infinite;

}


@keyframes numberThreeFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(-3deg);

    }

    50% {

        transform:
            translate(8px, -12px)
            rotate(4deg);

    }

}


/* =========================================================
   PALETTE
   ========================================================= */

.palette-png {

    display: block !important;

    width: 70px;

    right: -5px;

    bottom: 135px;

    z-index: 9;

    animation:
        paletteFloat 5.5s ease-in-out infinite;

}


@keyframes paletteFloat {

    0%,
    100% {

        transform:
            translate(0, 0)
            rotate(0deg);

    }

    50% {

        transform:
            translate(-10px, -16px)
            rotate(-7deg);

    }

}


/* =========================================================
   TABLET — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .hero {

        padding: 55px 45px;

        gap: 20px;

    }


    .hero-left {

        width: 56%;

    }


    .hero-right {

        width: 44%;

        height: 400px;

    }


    .hero h1 {

        font-size: 52px;

    }


    .hero p {

        font-size: 17px;

    }


    .planet-png {

        width: 310px;

        height: 310px;

        right: 70px;

        top: 55px;

    }


    .rabbit-png {

        width: 76px;

        left: 55px;

    }


    .airplane-png {

        width: 82px;

        left: 20px;

    }


    .books-png {

        width: 70px;

        left: 65px;

    }


    .letter-a-png {

        width: 55px;

        left: 190px;

    }


    .letter-b-png {

        width: 55px;

        left: 210px;

    }


    .worksheet-png {

        width: 125px;

        right: 38px;

    }


    .palette-png {

        width: 65px;

    }


    .moon-png {

        width: 58px;

        height: 58px;

        right: 18px;

    }

}


/* =========================================================
   SMALL LAPTOP / TABLET — 900px
   ========================================================= */

@media (max-width: 900px) {

    .hero {

        padding: 50px 35px;

    }


    .hero-left {

        width: 55%;

    }


    .hero-right {

        width: 45%;

        height: 370px;

    }


    .hero h1 {

        font-size: 46px;

    }


    .planet-png {

        width: 280px;

        height: 280px;

        right: 55px;

        top: 55px;

    }


    .rabbit-png {

        width: 68px;

        left: 35px;

        top: 55px;

    }


    .airplane-png {

        width: 72px;

        left: 10px;

        top: 190px;

    }


    .books-png {

        width: 62px;

        left: 45px;

        bottom: 30px;

    }


    .letter-a-png {

        width: 48px;

        left: 155px;

    }


    .letter-b-png {

        width: 48px;

        left: 170px;

    }


    .worksheet-png {

        width: 110px;

        right: 25px;

    }


    .palette-png {

        width: 58px;

        right: 0;

    }


    .moon-png {

        width: 50px;

        height: 50px;

    }

}


/* =========================================================
   MOBILE — 768px
   IMPORTANT:
   Compact hero.
   ========================================================= */

@media (max-width: 768px) {

    .hero {

        width: calc(100% - 20px);

        min-height: 0;

        height: auto;

        margin: 10px auto 0;

        padding: 30px 18px 18px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        gap: 10px;

        text-align: center;

        border-radius: 20px;

    }


    /* -----------------------------------------
       Background glow
       ----------------------------------------- */

    .hero::before {

        width: 320px;

        height: 320px;

        right: 50%;

        top: 78%;

        transform:
            translate(50%, -50%);

    }


    /* -----------------------------------------
       Hide excessive desktop stars
       ----------------------------------------- */

    .hero::after {

        opacity: 0.35;

    }


    .space-star {

        font-size: 12px;

        opacity: 0.4;

    }


    .star-1,
    .star-4,
    .star-6 {

        display: none;

    }


    /* -----------------------------------------
       LEFT CONTENT
       ----------------------------------------- */

    .hero-left {

        width: 100%;

        max-width: 500px;

        text-align: center;

    }


    /* -----------------------------------------
       WELCOME BADGE
       ----------------------------------------- */

    .free-tag {

        display: inline-flex;

        max-width: 100%;

        margin: 0 auto 15px;

        padding: 8px 13px;

        font-size: 11px;

        line-height: 1.3;

        text-align: center;

    }


    /* -----------------------------------------
       HEADING
       ----------------------------------------- */

    .hero h1 {

        margin: 0 auto 13px;

        max-width: 340px;

        font-size: 38px;

        line-height: 1.04;

        letter-spacing: -0.8px;

        text-align: center;

    }


    /* -----------------------------------------
       DESCRIPTION
       ----------------------------------------- */

    .hero p {

        max-width: 330px;

        margin: 0 auto 18px;

        font-size: 14px;

        line-height: 1.5;

        text-align: center;

    }


    /* -----------------------------------------
       BUTTONS
       ----------------------------------------- */

    .hero-buttons {

        width: 100%;

        max-width: 300px;

        margin: 0 auto 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 9px;

    }


    .hero .primary-btn,
    .hero .secondary-btn {

        width: 100%;

        min-height: 46px;

        padding: 11px 16px;

        font-size: 14px;

        border-radius: 11px;

    }


    /* -----------------------------------------
       FEATURES
       ----------------------------------------- */

    .hero-features {

        width: 100%;

        max-width: 320px;

        justify-content: center;

        gap: 7px 12px;

        font-size: 10px;

        line-height: 1.3;

    }


    .hero-features span {

        padding-left: 10px;

    }


    .hero-features span::before {

        width: 5px;

        height: 5px;

    }


    /* =========================================================
   MOBILE HERO ARTWORK
   Slightly lower + naturally scattered
   ========================================================= */

.hero-right {

    width: 100%;

    max-width: 420px;

    height: 265px;

    margin: 4px auto 0;

    flex-shrink: 0;

}


.hero-space {

    position: relative;

    width: 100%;

    height: 265px;

}


/* =========================================================
   PLANET
   Main centre object
   ========================================================= */

.planet-png {

    width: 225px;

    height: 225px;

    right: 50%;

    top: 30px;

    margin-right: -112.5px;

}


/* =========================================================
   RABBIT
   Upper-left, slightly away from planet
   ========================================================= */

.rabbit-png {

    width: 58px;

    left: 7%;

    top: 48px;

}


/* =========================================================
   AIRPLANE
   Lower-left
   ========================================================= */

.airplane-png {

    width: 58px;

    left: 3%;

    top: 155px;

}


/* =========================================================
   BOOKS
   Bottom-left
   ========================================================= */

.books-png {

    width: 52px;

    left: 16%;

    bottom: 13px;

}


/* =========================================================
   LETTER A
   Upper area
   ========================================================= */

.letter-a-png {

    width: 43px;

    left: 27%;

    top: 12px;

}


/* =========================================================
   LETTER B
   Bottom-left / middle
   ========================================================= */

.letter-b-png {

    width: 43px;

    left: 31%;

    bottom: 7px;

}


/* =========================================================
   LETTER C
   Upper-right
   ========================================================= */

.letter-c-png {

    width: 40px;

    right: 5%;

    top: 82px;

}


/* =========================================================
   NUMBER 1
   Upper-right of planet
   ========================================================= */

.number-1-png {

    width: 36px;

    left: 67%;

    top: 28px;

}


/* =========================================================
   NUMBER 2
   Lower-right
   ========================================================= */

.number-2-png {

    width: 35px;

    right: 7%;

    top: 164px;

}


/* =========================================================
   NUMBER 3
   Bottom-middle
   ========================================================= */

.number-3-png {

    width: 34px;

    left: 44%;

    bottom: 5px;

    top: auto;

}


/* =========================================================
   PALETTE
   Right side, slightly lower
   ========================================================= */

.palette-png {

    width: 47px;

    right: 1%;

    bottom: 88px;

}


/* =========================================================
   MOON
   Top-right
   ========================================================= */

.moon-png {

    width: 39px;

    height: 39px;

    right: 12%;

    top: 15px;

}


/* =========================================================
   SMALL MOBILE — 480px
   ========================================================= */

@media (max-width: 480px) {

    .hero {

        width: calc(100% - 12px);

        margin: 8px auto 0;

        padding: 25px 14px 14px;

        border-radius: 18px;

    }


    /* -----------------------------------------
       Badge
       ----------------------------------------- */

    .free-tag {

        margin-bottom: 12px;

        padding: 7px 11px;

        font-size: 10px;

    }


    /* -----------------------------------------
       Heading
       ----------------------------------------- */

    .hero h1 {

        max-width: 300px;

        margin-bottom: 11px;

        font-size: 34px;

        line-height: 1.03;

    }


    /* -----------------------------------------
       Description
       ----------------------------------------- */

    .hero p {

        max-width: 290px;

        margin-bottom: 15px;

        font-size: 13px;

        line-height: 1.48;

    }


    /* -----------------------------------------
       Buttons
       ----------------------------------------- */

    .hero-buttons {

        max-width: 265px;

        gap: 8px;

        margin-bottom: 12px;

    }


    .hero .primary-btn,
    .hero .secondary-btn {

        min-height: 43px;

        padding: 9px 13px;

        font-size: 13px;

        border-radius: 10px;

    }


    /* -----------------------------------------
       Features
       ----------------------------------------- */

    .hero-features {

        max-width: 290px;

        gap: 6px 9px;

        font-size: 9px;

    }


    .hero-features span {

        padding-left: 8px;

    }


    .hero-features span::before {

        width: 4px;

        height: 4px;

    }


    @media (max-width: 480px) {

    .hero-right {

        max-width: 350px;

        height: 220px;

        margin-top: 4px;

    }


    .hero-space {

        height: 220px;

    }


    /* Planet */

    .planet-png {

        width: 190px;

        height: 190px;

        top: 24px;

        margin-right: -95px;

    }


    /* Rabbit */

    .rabbit-png {

        width: 49px;

        left: 6%;

        top: 38px;

    }


    /* Airplane */

    .airplane-png {

        width: 48px;

        left: 2%;

        top: 128px;

    }


    /* Books */

    .books-png {

        width: 43px;

        left: 12%;

        bottom: 5px;

    }


    /* A */

    .letter-a-png {

        width: 36px;

        left: 26%;

        top: 7px;

    }


    /* B */

    .letter-b-png {

        width: 36px;

        left: 31%;

        bottom: 2px;

    }


    /* C */

    .letter-c-png {

        width: 34px;

        right: 2%;

        top: 68px;

    }


    /* Number 1 */

    .number-1-png {

        width: 30px;

        left: 66%;

        top: 23px;

    }


    /* Number 2 */

    .number-2-png {

        width: 29px;

        right: 8%;

        top: 137px;

    }


    /* Number 3 */

    .number-3-png {

        width: 28px;

        left: 43%;

        bottom: 1px;

    }


    /* Palette */

    .palette-png {

        width: 40px;

        right: 1%;

        bottom: 72px;

    }


    /* Moon */

    .moon-png {

        width: 32px;

        height: 32px;

        right: 10%;

        top: 9px;

    }

}


/* =========================================================
   VERY SMALL PHONES — 360px
   ========================================================= */

@media (max-width: 360px) {

    .hero {

        width: calc(100% - 8px);

        padding: 22px 11px 12px;

        border-radius: 16px;

    }


    .hero h1 {

        max-width: 275px;

        font-size: 31px;

    }


    .hero p {

        max-width: 270px;

        font-size: 12px;

    }


    .hero-buttons {

        max-width: 245px;

    }


    .hero-features {

        max-width: 270px;

        font-size: 8px;

    }


    .hero-right {

        height: 185px;

    }


    .hero-space {

        height: 185px;

    }


    .planet-png {

        width: 172px;

        height: 172px;

        margin-right: -86px;

        top: 9px;

    }


    .rabbit-png {

        width: 43px;

        left: 5%;

        top: 18px;

    }


    .airplane-png {

        width: 43px;

        left: 1%;

        top: 98px;

    }


    .books-png {

        width: 39px;

        left: 9%;

    }


    .worksheet-png {

        width: 68px;

        right: 4%;

    }


    .palette-png {

        width: 36px;

        bottom: 55px;

    }


    .letter-a-png {

        width: 32px;

        left: 24%;

    }


    .letter-b-png {

        width: 32px;

        left: 30%;

    }


    .letter-c-png {

        width: 30px;

        top: 48px;

    }


    .number-1-png {

        width: 27px;

        top: 22px;

    }


    .number-2-png {

        width: 26px;

        top: 112px;

    }


    .number-3-png {

        width: 25px;

    }


    .moon-png {

        width: 29px;

        height: 29px;

    }

}


}
}

/* =========================================================
   LIGHT MODE
   ========================================================= */

html[data-theme="light"] .hero {

    border-color: #d7e4ef;

    background:
        radial-gradient(
            circle at 75% 48%,
            rgba(77, 168, 255, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f4f9ff 0%,
            #eef8f8 52%,
            #fff9ec 100%
        );

    color: #243b5a;

}


html[data-theme="light"] .hero::before {

    background:
        radial-gradient(
            circle,
            rgba(77, 168, 255, 0.08),
            transparent 68%
        );

}


html[data-theme="light"] .hero::after {

    background: rgba(70, 100, 130, 0.35);

    box-shadow:
        120px 40px rgba(70,100,130,0.18),
        230px -30px rgba(70,100,130,0.20),
        330px 90px rgba(70,100,130,0.16),
        430px 30px rgba(70,100,130,0.18),
        170px 250px rgba(70,100,130,0.14),
        360px 220px rgba(70,100,130,0.16);

}


html[data-theme="light"] .hero h1 {

    color: #24385d;

}


html[data-theme="light"] .hero p {

    color: #536b84;

}


html[data-theme="light"] .free-tag {

    background: #eef7ff;

    border-color: #a9cde9;

    color: #2874ad;

}


html[data-theme="light"] .hero .secondary-btn {

    background: #edf5fc;

    border-color: #a7c1d8;

    color: #294667;

    box-shadow:
        0 5px 0 #c6d7e6;

}


html[data-theme="light"] .hero .secondary-btn:hover {

    background: #e2f0fc;

    box-shadow:
        0 8px 0 #c0d4e5;

}


html[data-theme="light"] .hero-features {

    color: #425b76;

}


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

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

    .hero-png,
    .space-star {

        animation: none !important;

    }

}


/* =========================================================
   FINAL SPACING CONTROL
   ========================================================= */

/*
   Desktop:
   Small gap between navbar and hero.

   Mobile:
   Even smaller gap.

   Hero itself has NO large bottom margin.
   This prevents the huge blank area before
   Popular Worksheets.
*/

.hero {

    margin-top: 20px;

    margin-bottom: 0;

}


@media (max-width: 768px) {

    .hero {

        margin-top: 8px;

        margin-bottom: 0;

    }

}


/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
   ========================================================= */

html,
body {

    overflow-x: hidden;

}

/* =========================================================
   FINAL DARK THEME OVERRIDE
   ========================================================= */

html[data-theme="dark"] .hero {
    border-color: #304a68;
    background:
        radial-gradient(
            circle at 75% 48%,
            rgba(62, 143, 229, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #101c2d 0%,
            #142842 52%,
            #0d192b 100%
        );
    color: #f5f8fc;
}

html[data-theme="dark"] .hero h1 {
    color: #f7f9fc;
}

html[data-theme="dark"] .hero p {
    color: #bdd1e5;
}

html[data-theme="dark"] .free-tag {
    background: rgba(36, 91, 140, 0.20);
    border-color: #347fbd;
    color: #a9d8ff;
}

html[data-theme="dark"] .hero .secondary-btn {
    background: #1a3048;
    border-color: #5d7895;
    color: #e5f1ff;
    box-shadow: 0 5px 0 #0b1625;
}

html[data-theme="dark"] .hero-features {
    color: #d9e8f7;
}

/* =========================================================
   FINAL THEME SAFETY OVERRIDE
   This block is intentionally LAST so no earlier hero rule
   can override the selected theme.
   ========================================================= */

html[data-theme="light"] .hero {
    background:
        radial-gradient(circle at 75% 48%, rgba(77, 168, 255, 0.08), transparent 32%),
        linear-gradient(135deg, #f4f9ff 0%, #eef8f8 52%, #fff9ec 100%) !important;
    border-color: #d7e4ef !important;
    color: #243b5a !important;
}

html[data-theme="light"] .hero h1 {
    color: #24385d !important;
}

html[data-theme="light"] .hero h1 .highlight,
html[data-theme="light"] .hero h1 .colour {
    color: #4da8ff !important;
}

html[data-theme="light"] .hero p {
    color: #536b84 !important;
}

html[data-theme="light"] .hero-features {
    color: #425b76 !important;
}

html[data-theme="light"] .free-tag {
    background: #eef7ff !important;
    border-color: #a9cde9 !important;
    color: #2874ad !important;
}

html[data-theme="light"] .hero .primary-btn {
    background: #4da8ff !important;
    color: #ffffff !important;
    border-color: #4da8ff !important;
}

html[data-theme="light"] .hero .secondary-btn {
    background: #edf5fc !important;
    border-color: #a7c1d8 !important;
    color: #294667 !important;
}

html[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 75% 48%, rgba(62, 143, 229, 0.10), transparent 32%),
        linear-gradient(135deg, #101c2d 0%, #142842 52%, #0d192b 100%) !important;
    border-color: #304a68 !important;
    color: #f5f8fc !important;
}

html[data-theme="dark"] .hero h1 {
    color: #f7f9fc !important;
}

html[data-theme="dark"] .hero h1 .highlight,
html[data-theme="dark"] .hero h1 .colour {
    color: #4da8ff !important;
}

html[data-theme="dark"] .hero p {
    color: #bdd1e5 !important;
}

html[data-theme="dark"] .hero-features {
    color: #d9e8f7 !important;
}

html[data-theme="dark"] .free-tag {
    background: rgba(36, 91, 140, 0.20) !important;
    border-color: #347fbd !important;
    color: #a9d8ff !important;
}

html[data-theme="dark"] .hero .primary-btn {
    background: #4da8ff !important;
    color: #ffffff !important;
    border-color: #4da8ff !important;
}

html[data-theme="dark"] .hero .secondary-btn {
    background: #1a3048 !important;
    border-color: #5d7895 !important;
    color: #e5f1ff !important;
}