/* --- Global Reset for this section --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   1. CUSTOM FONT DEFINITION
   ========================================= */
@font-face {
    font-family: 'Bestoom';
    /* Correct Path to your file */
    src: url('../fonts/BestoomBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #4c3c83;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. UNIQUE HERO SECTION STYLES
   ========================================= */

.uni-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh; 
    background-image: url('/assets/images/hero_banner/hero-bg-4-1.png'); 
    background-size: 100% 100%; 
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; 
    padding: 140px 10px 100px;
    overflow: hidden; 
}

.uni-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.uni-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; 
}

/* --- TYPOGRAPHY & ANIMATION --- */

.uni-hero-content h1 {
    font-family: 'Bestoom', sans-serif !important; 
    font-weight: normal; 
    
    font-size: 3.8rem; 
    line-height: 1.2;
    color: #4c3c83; /* Brand Purple */
    
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    
    /* Text Fade In */
    opacity: 0;
    transform: translateY(30px);
    animation: uni-fade-up 1.2s ease-out forwards;
}

@keyframes uni-fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.uni-hero-content p {
    font-size: 1.125rem;
    color: #4A4A4A;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* --- LOTUS BACKGROUND ANIMATION --- */
.uni-text-bg-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; 
    width: 300px; 
    opacity: 0.1; 
    pointer-events: none;
    animation: uni-pulse-lotus 5s ease-in-out infinite; 
}

@keyframes uni-pulse-lotus {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.18; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
}

/* --- MARKER STROKE ANIMATION (The Yellow Line) --- */
.uni-smile-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.uni-svg-underline {
    position: absolute;
    width: 110%; 
    left: -5%; 
    height: 0.6em; /* Thicker for marker look */
    bottom: -8px; 
    z-index: -1; 
    
    /* NEW ANIMATION: Wipes the marker on, then fades, then repeats */
    /* Order: Name Duration Timing Delay Iteration */
    animation: uni-marker-wipe 4s ease-in-out infinite 1s;
    
    /* Start Invisible */
    clip-path: inset(0 100% 0 0);
}

@keyframes uni-marker-wipe {
    0% {
        clip-path: inset(0 100% 0 0); /* Hidden */
        opacity: 1;
    }
    40% {
        clip-path: inset(0 0 0 0);    /* Fully Drawn */
        opacity: 1;
    }
    75% {
        clip-path: inset(0 0 0 0);    /* Hold */
        opacity: 1;
    }
    90% {
        opacity: 0;                   /* Fade Out */
    }
    100% {
        clip-path: inset(0 100% 0 0); /* Reset */
        opacity: 0;
    }
}

.uni-svg-underline svg {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensures the marker look is preserved */
    overflow: visible; 
}

/* --- DECORATIVE ELEMENTS --- */

.uni-absolute-img {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

/* Filter to create Purple Color #4c3c83 */
.uni-pos-star-left-top {
    top: 60px;
    left: 40px;
    width: 60px;
    animation: uni-float-y 4s ease-in-out infinite;
    filter: brightness(0) saturate(100%) invert(23%) sepia(35%) saturate(2259%) hue-rotate(225deg) brightness(95%) contrast(89%);
}

.uni-pos-rainbow-down-left {
    bottom: 10%;
    left: 28%;
    width: 100px;
    animation: uni-float-y 5s ease-in-out infinite;
    filter: brightness(0) saturate(100%) invert(23%) sepia(35%) saturate(2259%) hue-rotate(225deg) brightness(95%) contrast(89%);
}

.uni-pos-scroll-down-right {
    bottom: 10%;
    right: 28%;
    width: 100px;
    animation: uni-float-y 5s ease-in-out infinite 1.5s;
    filter: brightness(0) saturate(100%) invert(23%) sepia(35%) saturate(2259%) hue-rotate(225deg) brightness(95%) contrast(89%);
}

.uni-dots-icon {
    position: absolute;
    bottom: -90px;
    left: 0px;
    width: 55px;
    z-index: 2; 
}

/* --- KID GROUPS --- */

.uni-kid-wrapper {
    position: absolute;
    width: 300px;
    height: 400px;
    z-index: 5;
}

.uni-pos-left-center {
    top: 50%;
    transform: translateY(-50%);
    left: 2%;
}

.uni-pos-right-top {
    top: 15%; 
    right: 3%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Shapes (Purple #4c3c83) */
.uni-shape-blob {
    position: absolute;
    width: 260px;
    height: 250px;
    background-color: #4c3c83;
    z-index: 1;
    transition: all 3s cubic-bezier(0.4, 0.2, 0.2, 1);
    animation: uni-sway 3s infinite alternate ease-in-out;
}

.uni-blob-1 {
    bottom: -90px; 
    left: 0;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 250px;
    transform-origin: center 80%;
}

.uni-blob-2 {
    bottom: 0;
    right: 0;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 250px;
    transform-origin: center 120%;
}

.uni-kid-img {
    position: absolute;
    width: 241px;
    z-index: 2;
    animation: uni-sway 3s infinite alternate ease-in-out;
}

.uni-girl-img {
    bottom: -87px;
    left: 9px;
    border-bottom-right-radius: 1px;
    border-bottom-left-radius: 230px;
}

.uni-boy-img {
    bottom: 0;
    right: 9px;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 230px;
}

.uni-bee-icon {
    position: absolute;
    width: 75px;
    z-index: 3;
    animation: uni-flap 0.3s infinite alternate ease-in-out;
    transform-origin: center center;
}

.uni-bee-beside-girl {
    top: 30%; 
    right: -10px; 
}

.uni-bee-beside-boy {
    top: 0%; 
    left: 0; 
}

/* --- ANIMATIONS (RENAMED) --- */

@keyframes uni-float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes uni-flap {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes uni-sway {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

/* =========================================
   3. RESPONSIVE STYLES
   ========================================= */

@media (min-width: 1400px) {
    .uni-hero-content h1 { font-size: 3.6rem; } 
    .uni-container { max-width: 1300px; }
    .uni-text-bg-anim { width: 400px; }
}

@media (max-width: 1399px) {
    .uni-pos-left-center { left: 1%; width: 280px; }
    .uni-pos-right-top { right: 1%; width: 280px; }
    .uni-shape-blob { width: 240px; height: 230px; }
    .uni-kid-img { width: 220px; }
    .uni-pos-rainbow-down-left { left: 25%; }
    .uni-pos-scroll-down-right { right: 25%; }
    .uni-text-bg-anim { width: 400px; }
}

@media (max-width: 1199px) {
    .uni-hero-content h1 { font-size: 3.5rem; }
    .uni-kid-wrapper { width: 240px; height: 360px; }
    .uni-shape-blob { width: 220px; height: 210px; }
    .uni-kid-img { width: 200px; }
    .uni-bee-icon { width: 60px; }
    .uni-pos-star-left-top { width: 50px; top: 80px; left: 30px; }
    .uni-dots-icon { width: 50px; bottom: -100px; }
    .uni-pos-rainbow-down-left, .uni-pos-scroll-down-right { width: 80px; bottom: 12%; }
    .uni-pos-rainbow-down-left { left: 22%; }
    .uni-pos-scroll-down-right { right: 22%; }
    .uni-text-bg-anim { width: 400px; }
}

@media (max-width: 991px) {
    .uni-hero-section { background-size: 100% 100%; padding: 100px 10px 100px; flex-direction: column; justify-content: center; min-height: auto; }
    .uni-container { padding: 0 30px; margin-top: 0; order: 2; z-index: 10; }
    .uni-hero-content h1 { font-size: 2.8rem; }
    .uni-hero-content p { font-size: 1rem; margin-bottom: 45px; }
    .uni-text-bg-anim { width: 300px; }
    
    .uni-pos-left-center { position: relative; top: auto; left: auto; transform: none; width: 200px; height: 210px; margin: 0 auto 75px; order: 1; }
    .uni-blob-1 { width: 200px; height: 190px; bottom: -70px; }
    .uni-girl-img { width: 185px; bottom: -68px; left: 8px; }
    .uni-bee-beside-girl { width: 70px; top: 0%; right: -45px; }
    .uni-dots-icon { width: 40px; bottom: -75px; left: 0; }
    
    .uni-pos-right-top { position: relative; top: auto; right: auto; width: 200px; height: 210px; margin: 75px auto 0; order: 3; }
    .uni-blob-2 { width: 200px; height: 190px; bottom: 0; }
    .uni-boy-img { width: 185px; right: 8px; bottom: 0; }
    .uni-bee-beside-boy { width: 70px; top: -50%; left: -35px; }
    
    .uni-pos-star-left-top { width: 85px; top: 50px; left: 50px; }
    .uni-pos-rainbow-down-left { width: 90px; bottom: 10%; left: 6%; }
    .uni-pos-scroll-down-right { width: 85px; bottom: 35%; right: 5%; }
}

@media (max-width: 767px) {
    .uni-hero-section { padding: 80px 10px 80px; }
    .uni-container { padding: 0 25px; }
    .uni-hero-content h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 18px; }
    .uni-hero-content p { font-size: 0.95rem; margin-bottom: 25px; }
    .uni-text-bg-anim { width: 250px; }
    .uni-svg-underline { bottom: 3px; }
    
    .uni-pos-left-center { width: 170px; height: 185px; margin: 0 auto 70px; }
    .uni-blob-1 { width: 170px; height: 165px; bottom: -60px; }
    .uni-girl-img { width: 158px; bottom: -58px; left: 6px; }
    .uni-bee-beside-girl { width: 60px; top: -5%; right: -30px; }
    .uni-dots-icon { width: 35px; bottom: -65px; left: 0; }
    
    .uni-pos-right-top { width: 170px; height: 185px; margin: 70px auto 0; }
    .uni-blob-2 { width: 170px; height: 165px; }
    .uni-boy-img { width: 158px; right: 6px; }
    .uni-bee-beside-boy { width: 60px; top: -40%; left: -20px; }
    
    .uni-pos-star-left-top { display: block; width: 60px; top: 60px; left: 40px; }
    .uni-pos-rainbow-down-left { display: block; width: 80px; bottom: 5%; left: 10%; }
    .uni-pos-scroll-down-right { display: block; width: 80px; bottom: 30%; right: 10%; }
}

@media (max-width: 599px) {
    .uni-hero-section { padding: 60px 10px 60px; }
    .uni-container { padding: 0 20px; }
    .uni-hero-content h1 { font-size: 1.8rem; }
    .uni-hero-content p { font-size: 0.9rem; margin-bottom: 20px; }
    .uni-text-bg-anim { width: 250px; }
    .uni-svg-underline { bottom: 2px; }
    
    .uni-pos-left-center { width: 150px; height: 165px; margin: 0 auto 60px; }
    .uni-blob-1 { width: 150px; height: 145px; bottom: -52px; }
    .uni-girl-img { width: 140px; bottom: -50px; left: 5px; }
    .uni-bee-beside-girl { width: 60px; top: -20%; right: -40px; }
    .uni-dots-icon { width: 30px; bottom: -55px; left: 0; }
    
    .uni-pos-right-top { width: 150px; height: 165px; margin: 60px auto 0; }
    .uni-blob-2 { width: 150px; height: 145px; }
    .uni-boy-img { width: 140px; right: 5px; }
    .uni-bee-beside-boy { width: 60px; top: -45%; left: -20px; }
}

@media (max-width: 479px) {
    .uni-hero-section { padding: 50px 10px 50px; }
    .uni-container { padding: 0 15px; }
    .uni-hero-content h1 { font-size: 1.6rem; line-height: 1.4; }
    .uni-hero-content p { font-size: 0.85rem; margin-bottom: 18px; }
    .uni-text-bg-anim { width: 150px; }
    .uni-svg-underline { bottom: 1px; }
    
    .uni-pos-left-center { width: 130px; height: 145px; margin: 0 auto 60px; }
    .uni-blob-1 { width: 130px; height: 125px; bottom: -45px; }
    .uni-girl-img { width: 122px; bottom: -43px; left: 4px; }
    .uni-bee-beside-girl { width: 30px; top: 14%; right: -4px; }
    .uni-dots-icon { width: 26px; bottom: -48px; left: 0; }
    
    .uni-pos-right-top { width: 130px; height: 145px; margin: 60px auto 0; }
    .uni-blob-2 { width: 130px; height: 125px; }
    .uni-boy-img { width: 108px; right: 3px; }
    .uni-bee-beside-boy { width: 30px; top: 0%; left: -3px; }
    
    .uni-pos-star-left-top { width: 60px; top: 30px; left: 20px; }
    .uni-pos-rainbow-down-left { width: 60px; bottom: 5%; left: 5%; }
    .uni-pos-scroll-down-right { width: 60px; bottom: 33%; right: 5%; }
}

@media (max-width: 374px) {
    .uni-hero-section { padding: 40px 8px 40px; }
    .uni-container { padding: 0 12px; }
    .uni-hero-content h1 { font-size: 1.45rem; }
    .uni-hero-content p { font-size: 0.78rem; margin-bottom: 15px; }
    .uni-text-bg-anim { width: 150px; }
    
    .uni-pos-left-center { width: 115px; height: 130px; margin: 0 auto 50px; }
    .uni-blob-1 { width: 115px; height: 110px; bottom: -40px; }
    .uni-girl-img { width: 108px; bottom: -38px; left: 3px; }
    .uni-bee-beside-girl { width: 50px; top: -15%; right: -20px; }
    .uni-dots-icon { width: 22px; bottom: -42px; left: 0; }
    
    .uni-pos-right-top { width: 115px; height: 130px; margin: 50px auto 0; }
    .uni-blob-2 { width: 115px; height: 110px; }
    .uni-boy-img { width: 108px; right: 3px; }
    .uni-bee-beside-boy { width: 50px; top: -45%; left: -20px; }
    
    .uni-pos-star-left-top { width: 45px; top: 40px; left: 15px; }
}