@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

/* Kidzee Style Custom Variables */
:root {
    /* Kidzee vibrant primary colors */
    --brand-orange: #FF7A00;
    --brand-yellow: #FFC800;
    --brand-cyan: #00D2FF;
    --brand-green: #4CAF50;
    --brand-pink: #FF4081;
    --brand-purple: #7C4DFF;

    --brand-orange-light: #FFF0E0;
    --brand-yellow-light: #FFFBE6;
    --brand-cyan-light: #E0F8FF;
    --brand-green-light: #EBF7EC;
    --brand-pink-light: #FFEBF0;
    --brand-purple-light: #F3EFFF;

    --text-dark: #2C3E50;
    --text-muted: #7A8B9E;
    --text-light: #FFFFFF;
    --bg-light: #FAF8F5;
    --bg-white: #FFFFFF;

    --font-header: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --br-sm: 12px;
    --br-md: 20px;
    --br-lg: 30px;
    --br-xl: 45px;

    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 75px 0;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* SVG Background Ornaments */
.bubble-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

/* Dynamic Animations */
@keyframes floatCloud {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-8px) translateX(6px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

@keyframes pulseStar {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(8deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes spinSun {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Visibility Utilities */
.hide-on-desktop {
    display: none !important;
}
.hide-on-mobile {
    /* default visible */
}

/* Buttons in Kidzee Pill Shape */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--br-xl);
    /* Capsule/Pill shape */
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--brand-orange);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #e66e00;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
    background-color: var(--brand-cyan);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #00bce6;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-yellow {
    background-color: var(--brand-yellow);
    color: var(--text-dark);
}

.btn-yellow:hover {
    background-color: #e6b400;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 200, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-orange);
    border: 3px solid var(--brand-orange);
}

.btn-outline:hover {
    background-color: var(--brand-orange-light);
    transform: translateY(-4px);
}

/* Scroll marquee banner */
.announcement-bar {
    background-color: var(--brand-pink);
    color: var(--text-light);
    font-family: var(--font-header);
    font-size: 1.05rem;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 50%;
}

.marquee-content span {
    display: inline-block;
    padding-right: 4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Floating Capsule Header & Navigation */
header {
    background-color: var(--bg-white);
    margin: 15px auto;
    width: 94%;
    max-width: 1200px;
    border-radius: var(--br-xl);
    /* Capsule header */
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 15px;
    z-index: 1000;
    border: 3px solid var(--brand-orange-light);
    transition: var(--transition-smooth);
}

.top-bar {
    display: none;
    /* Hide top bar to match clean Kidzee header style */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-container img {
    height: 60px;
    width: auto;
    border-radius: var(--br-sm);
}

.logo-text h1, .logo-title {
    font-size: 1.6rem;
    color: var(--brand-orange);
    font-weight: 800;
}

.logo-text p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-cyan);
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: var(--br-xl);
}

.nav-menu a:hover {
    color: var(--brand-orange);
    background-color: var(--brand-orange-light);
}

/* Styling dynamic nav item button */
.nav-menu li:last-child a {
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    border: 2px solid var(--brand-orange);
}

.nav-menu li:last-child a:hover {
    background-color: var(--brand-orange);
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--brand-orange);
}

/* Kidzee Style Hero Section */
.hero {
    padding: 90px 0 70px 0;
    background: radial-gradient(circle at 10% 20%, #FFFDF8 0%, var(--brand-yellow-light) 90%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero-tagline {
    font-family: var(--font-header);
    color: var(--brand-pink);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    background-color: var(--brand-pink-light);
    padding: 4px 16px;
    border-radius: var(--br-md);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-title span:nth-child(1) {
    color: var(--brand-orange);
}

.hero-title span:nth-child(2) {
    color: var(--brand-cyan);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-container {
    background-color: var(--bg-white);
    padding: 12px;
    border-radius: var(--br-xl);
    box-shadow: var(--shadow-lg);
    transform: rotate(2.5deg);
    border: 5px solid var(--brand-cyan);
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.hero-img-container img {
    border-radius: var(--br-md);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--brand-yellow);
    pointer-events: none;
    border-radius: calc(var(--br-xl) - 15px);
    z-index: 10;
}

/* Floating ornaments */
.sun-shape {
    position: absolute;
    top: -50px;
    right: -30px;
    width: 100px;
    height: 100px;
    z-index: 2;
    animation: spinSun 40s linear infinite;
}

.cloud-shape-1 {
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 140px;
    z-index: 6;
    animation: floatCloud 7s ease-in-out infinite;
}

.cloud-shape-2 {
    position: absolute;
    top: 30px;
    left: -70px;
    width: 110px;
    z-index: 1;
    animation: floatCloud 9s ease-in-out infinite 1.5s;
}

/* About Us Section */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: var(--br-xl);
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--brand-yellow);
    transform: rotate(-3deg);
    position: relative;
    overflow: hidden;
}

.about-img img {
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px dashed var(--brand-orange);
    border-radius: calc(var(--br-xl) - 10px);
    pointer-events: none;
}

.section-subtitle {
    font-family: var(--font-header);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--brand-pink);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 700;
}

.about-mobile-header {
    display: none;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.vm-card {
    padding: 30px 24px;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.vm-card:hover {
    transform: translateY(-8px);
}

.vm-card.vision {
    background-color: var(--brand-cyan-light);
    border-color: rgba(0, 210, 255, 0.2);
}

.vm-card.vision:hover {
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.15);
}

.vm-card.mission {
    background-color: var(--brand-green-light);
    border-color: rgba(76, 175, 80, 0.2);
}

.vm-card.mission:hover {
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.15);
}

.vm-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.vm-card.vision h3 {
    color: var(--brand-purple);
}

.vm-card.mission h3 {
    color: var(--brand-green);
}

.vm-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Programmes Section with colored card borders */
.programs {
    background-color: var(--brand-purple-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    margin-top: 60px;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: var(--br-lg);
    padding: 45px 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-width: 4px;
    border-style: solid;
    position: relative;
}

.program-card:hover {
    transform: translateY(-12px);
}

.program-card.nursery {
    border-color: var(--brand-cyan);
}

.program-card.nursery:hover {
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
}

.program-card.lkg {
    border-color: var(--brand-orange);
}

.program-card.lkg:hover {
    box-shadow: 0 20px 40px rgba(255, 122, 0, 0.2);
}

.program-card.ukg {
    border-color: var(--brand-green);
}

.program-card.ukg:hover {
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.program-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 28px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.program-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.nursery .program-icon {
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan);
}

.lkg .program-icon {
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
}

.ukg .program-icon {
    background-color: var(--brand-green-light);
    color: var(--brand-green);
}

.program-card h3 {
    font-size: 1.7rem;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 800;
}

.program-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 24px;
    flex-grow: 1;
}

.program-age {
    background-color: var(--bg-light);
    padding: 8px 20px;
    border-radius: var(--br-xl);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.program-highlights {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-highlights li {
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.program-highlights li span {
    font-weight: 800;
    font-size: 1.1rem;
}

.nursery .program-highlights li span {
    color: var(--brand-cyan);
}

.lkg .program-highlights li span {
    color: var(--brand-orange);
}

.ukg .program-highlights li span {
    color: var(--brand-green);
}

/* Services / Activities Section */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 35px;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    background-color: var(--bg-white);
}

.service-card:nth-child(1):hover {
    border-color: var(--brand-pink);
    box-shadow: 0 12px 25px rgba(255, 64, 129, 0.15);
}

.service-card:nth-child(2):hover {
    border-color: var(--brand-cyan);
    box-shadow: 0 12px 25px rgba(0, 210, 255, 0.15);
}

.service-card:nth-child(3):hover {
    border-color: var(--brand-green);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.15);
}

.service-card:nth-child(4):hover {
    border-color: var(--brand-purple);
    box-shadow: 0 12px 25px rgba(124, 77, 255, 0.15);
}

.service-card:nth-child(5):hover {
    border-color: var(--brand-orange);
    box-shadow: 0 12px 25px rgba(255, 122, 0, 0.15);
}

.service-card:nth-child(6):hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 12px 25px rgba(255, 200, 0, 0.15);
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--br-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.service-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.service-card:nth-child(1) .service-icon {
    background-color: var(--brand-pink-light);
    color: var(--brand-pink);
}

.service-card:nth-child(2) .service-icon {
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan);
}

.service-card:nth-child(3) .service-icon {
    background-color: var(--brand-green-light);
    color: var(--brand-green);
}

.service-card:nth-child(4) .service-icon {
    background-color: var(--brand-purple-light);
    color: var(--brand-purple);
}

.service-card:nth-child(5) .service-icon {
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
}

.service-card:nth-child(6) .service-icon {
    background-color: var(--brand-yellow-light);
    color: var(--brand-yellow);
}

.service-details h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.service-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Dynamic Gallery (Moments Slideshow) */
.gallery-section {
    background-color: var(--brand-cyan-light);
}

.moments-slider-container {
    max-width: 950px;
    margin: 50px auto 0 auto;
    position: relative;
    padding: 0 10px;
}

.moments-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--brand-yellow);
    background-color: var(--bg-white);
}

.moments-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px dashed var(--brand-orange);
    border-radius: calc(var(--br-lg) - 10px);
    pointer-events: none;
    z-index: 15;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
    background-color: var(--bg-light);
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slider-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.8s ease-in-out;
}

.slider-slide.active img {
    animation: kenBurnsEffect 8s ease-out forwards;
}

@keyframes kenBurnsEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }
}

.slide-svg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slide-svg-placeholder .placeholder-emoji {
    font-size: 5rem;
    animation: pulseStar 3s ease-in-out infinite;
}

.slide-svg-placeholder h3 {
    font-size: 2rem;
    font-family: var(--font-header);
    color: var(--text-dark);
}

.slider-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 82%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 3px solid #E0F8FF;
    padding: 12px 24px;
    border-radius: var(--br-md);
    box-shadow: 0 12px 35px rgba(2, 136, 209, 0.15);
    z-index: 20;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        visibility 0.6s;
}

.slider-slide.active .slider-caption {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.2s;
}

.slider-caption h3 {
    color: #0288D1;
    font-size: 1.25rem;
    font-family: var(--font-header);
    text-shadow: none;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-bounce);
    z-index: 30;
    border: 3px solid var(--bg-white);
    color: var(--text-light);
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-yellow));
}

.next-btn {
    right: 20px;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple));
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--brand-cyan);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    opacity: 1;
    background-color: var(--brand-pink);
    transform: scale(1.25);
}

/* Activity Blog */
.blog-section {
    background-color: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
    margin-top: 60px;
}

.blog-card {
    background-color: var(--bg-light);
    border-radius: var(--br-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-white);
    border-color: var(--brand-purple-light);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-pink);
    margin-bottom: 12px;
    font-family: var(--font-header);
}

.blog-card h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-read-more {
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.blog-read-more:hover {
    color: var(--brand-cyan);
}

/* Contact & Info */
.contact-section {
    background-color: var(--brand-yellow-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    background-color: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--br-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255, 200, 0, 0.15);
}

.cii-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--br-sm);
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.contact-info-item.compact {
    align-items: center;
    gap: 15px;
    padding: 10px 18px;
    border-radius: 30px;
}

.contact-info-item.compact .cii-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 50%;
}

.contact-info-item.compact .cii-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.contact-info-item.compact .cii-text a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-info-item.compact .cii-text a:hover {
    color: var(--brand-cyan);
}

.contact-info-item:nth-child(2) .cii-icon {
    background-color: var(--brand-cyan-light);
    color: var(--brand-cyan);
}

.contact-info-item:nth-child(3) .cii-icon {
    background-color: var(--brand-pink-light);
    color: var(--brand-pink);
}

.contact-info-item:nth-child(4) .cii-icon {
    background-color: var(--brand-green-light);
    color: var(--brand-green);
}

.cii-details h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.cii-details p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Inquiry Form */
.inquiry-form-container {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--br-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--brand-orange-light);
}

.inquiry-form-container h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--brand-orange);
    font-weight: 800;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: var(--font-header);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--br-md);
    border: 3px solid var(--brand-cyan-light);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--brand-orange-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-message {
    padding: 14px;
    border-radius: var(--br-md);
    margin-top: 20px;
    display: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-message.success {
    background-color: var(--brand-green-light);
    color: #27ae60;
    border: 2px solid rgba(76, 175, 80, 0.2);
    display: block;
}

.form-message.error {
    background-color: var(--brand-pink-light);
    color: #c0392b;
    border: 2px solid rgba(255, 64, 129, 0.2);
    display: block;
}

/* Map embed frame */
.map-container {
    border-radius: var(--br-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 6px solid var(--bg-white);
    margin-top: 25px;
    height: 260px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Kidzee Style Footer */
footer {
    background-color: var(--brand-purple);
    color: #E0D4FF;
    padding: 80px 0 40px 0;
    font-size: 1.05rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.footer-links h3 {
    color: var(--text-light);
    font-size: 1.35rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 4px;
    background-color: var(--brand-yellow);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.95rem;
}

/* Floating WhatsApp button */
.whatsapp-floater {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--text-light);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition-bounce);
}

.whatsapp-floater:hover {
    transform: scale(1.12) rotate(8deg);
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--br-md);
    font-size: 0.9rem;
    font-family: var(--font-header);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--brand-orange-light);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--text-dark);
    border-right: 2px solid var(--brand-orange-light);
    border-top: 2px solid var(--brand-orange-light);
}

.whatsapp-floater:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--br-lg);
    max-width: 720px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
    border: 6px solid var(--brand-orange-light);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--brand-orange);
    transform: scale(1.1);
}

.modal-img {
    border-radius: var(--br-md);
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 24px;
    border: 3px solid var(--brand-cyan-light);
}

.modal-title {
    font-size: 1.7rem;
    margin-bottom: 14px;
    color: var(--brand-orange);
    font-weight: 800;
}

.modal-body {
    color: var(--text-dark);
    font-size: 1.05rem;
    overflow-y: auto;
    max-height: 200px;
}

/* Responsive Details */
@media (max-width: 992px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .about-img {
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        border-bottom: 3px solid var(--brand-orange-light);
        position: sticky;
        top: 0;
    }

    .navbar {
        padding: 10px 16px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        display: none;
        border-top: 3px solid var(--brand-orange-light);
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }

    .nav-menu li:last-child a {
        border: none;
        background-color: var(--brand-yellow-light);
    }

    .moments-slider {
        height: 360px;
    }
    
    .slider-track {
        height: 100%;
    }
    
    .slider-slide {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .slider-slide img {
        height: 290px !important;
        width: 100% !important;
        object-fit: cover;
    }
    
    .slider-caption {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #FFFFFF !important;
        border: none !important;
        border-top: 1px solid #EBF3FC !important;
        padding: 8px 12px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        margin-top: 0 !important;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
    }
    
    .slider-slide.active .slider-caption {
        opacity: 1;
        visibility: visible;
    }
    
    .slider-caption h3 {
        font-size: 0.85rem !important;
        color: #0288D1 !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        margin: 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .about-mobile-header {
        display: block;
    }
    
    .about-text .section-subtitle,
    .about-text .section-title {
        display: none;
    }
    
    .vision-mission {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .hide-on-desktop {
        display: block !important;
    }
    
    .hide-on-mobile {
        display: none !important;
    }

    .contact-info-item.compact .cii-text {
        font-size: 0.82rem !important;
    }
}

/* Floating Thematic Emojis around moments slider */
.floating-emoji {
    position: absolute;
    font-size: 2.2rem;
    pointer-events: none;
    z-index: 35;
    /* On top of slides and borders! */
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* Animations */
@keyframes floatGentle {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatSway {
    0% {
        transform: translateY(0px) translateX(0px) rotate(-8deg);
    }

    50% {
        transform: translateY(-8px) translateX(8px) rotate(8deg);
    }

    100% {
        transform: translateY(0px) translateX(0px) rotate(-8deg);
    }
}

/* Butterflies on all 4 corners */
.butterfly-tl {
    top: -15px;
    left: -15px;
    animation: floatGentle 4.5s ease-in-out infinite;
}

.butterfly-tr {
    top: -15px;
    right: -15px;
    animation: floatSway 4.8s ease-in-out infinite 0.5s;
}

.butterfly-bl {
    bottom: -15px;
    left: -15px;
    animation: floatSway 5.2s ease-in-out infinite 1s;
}

.butterfly-br {
    bottom: -15px;
    right: -15px;
    animation: floatGentle 5s ease-in-out infinite 1.5s;
}

/* Emojis in many best places */
.balloon-left {
    top: 20%;
    left: -70px;
    animation: floatGentle 6.5s ease-in-out infinite;
    font-size: 2.6rem;
}

.balloon-right {
    top: 30%;
    right: -70px;
    animation: floatGentle 7s ease-in-out infinite 1s;
    font-size: 2.6rem;
}

.teddy-bear {
    bottom: -35px;
    left: -20px;
    animation: floatSway 5.8s ease-in-out infinite;
    font-size: 2.4rem;
}

.rainbow-top {
    top: -45px;
    left: 48%;
    transform: translateX(-50%);
    animation: floatGentle 8s ease-in-out infinite;
    font-size: 2.5rem;
}

.star-right {
    top: -25px;
    right: 40px;
    animation: pulseStar 3s ease-in-out infinite;
    font-size: 2rem;
}

.smile-bottom {
    bottom: -35px;
    right: 80px;
    animation: floatGentle 6s ease-in-out infinite 0.5s;
    font-size: 2.2rem;
}

/* Adapt positioning on smaller screens so they don't overflow the page body */
@media (max-width: 1100px) {

    /* Hide wide side icons to prevent layout overflow on smaller tablets/mobiles */
    .balloon-left,
    .balloon-right,
    .teddy-bear,
    .smile-bottom,
    .rainbow-top,
    .star-right {
        display: none;
    }

    /* Keep corner butterflies since they sit directly on the borders! */
    .butterfly-tl,
    .butterfly-tr,
    .butterfly-bl,
    .butterfly-br {
        font-size: 1.8rem;
    }
}

/* Code & Asset Protection CSS */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}