/* =========================================================================
   HOME PAGE STYLESHEET (Kalpavrikshalaya - Little Sprouts / Childit Theme)
   ========================================================================= */

/* =========================================================================
   HEADER OVERLAP & SEAMLESS BLEND ON HERO SECTION
   The floating header card overlaps downward onto the hero slider,
   completely concealing the top corner edge of the hero section.
   ========================================================================= */
.home-floating-header-container {
    position: relative;
    z-index: 100;
    background-color: #0c3670;
    padding: 0 24px 0 24px;
}

.home-floating-header-card {
    position: relative;
    z-index: 100;
    max-width: 1360px;
    margin: 0 auto -52px auto;
    /* Overlaps 52px directly onto the hero section */
    box-shadow: 0 20px 48px rgba(10, 29, 55, 0.22);
}

/* In sticky full-width mode when scrolled, reset bottom overlap margin */
.home-floating-header-container.is-sticky-fullwidth .home-floating-header-card {
    margin-bottom: 0 !important;
}

/* Hero Canvas Backdrop (Increased Height for Elevated Blue Framing) */
.home-hero-backdrop {
    background-color: #0c3670;
    padding: 0 24px 55px 24px;
    position: relative;
    overflow: hidden;
}

/* Bottom Curvy Wave Divider (Matching other subpage designs) */
.home-wave-divider {
    background: transparent;
    line-height: 0;
    overflow: hidden;
    width: 100%;
    margin-top: -1px;
    margin-bottom: 0;
}

.home-wave-divider svg {
    height: 48px;
    display: block;
    width: 100%;
}

/* Framed Hero Section - Centered & Aligned with 1360px Header Card */
.home-exact-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    border-radius: 24px 24px 28px 28px;
    min-height: 520px;
    max-height: 560px;
    padding-top: 60px;
    /* Ample breathing room under the overlapping header */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Background Slides Track with Matching Rounded Corners */
.hero-slides-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px 24px 28px 28px;
}

@media (max-width: 991px) {
    .home-floating-header-card {
        margin: 0 auto -38px auto;
    }

    .home-hero-backdrop {
        padding: 0 16px 40px 16px;
    }

    .home-exact-hero {
        min-height: 540px;
        padding-top: 48px;
        border-radius: 20px 20px 24px 24px;
    }

    .hero-slides-track {
        border-radius: 20px 20px 24px 24px;
    }
}

@media (max-width: 640px) {
    .home-floating-header-card {
        margin: 0 auto -28px auto;
    }

    .home-hero-backdrop {
        padding: 0 10px 30px 10px;
    }

    .home-exact-hero {
        min-height: 560px;
        padding-top: 36px;
        border-radius: 16px 16px 20px 20px;
    }

    .hero-slides-track {
        border-radius: 16px 16px 20px 20px;
    }
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
    z-index: 1;
}

.hero-bg-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.0);
    transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    filter: brightness(1.16) contrast(1.08) saturate(1.12);
}

.hero-bg-slide.active .hero-slide-img {
    transform: scale(1.06);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 29, 55, 0.05) 0%,
            transparent 30%,
            transparent 65%,
            rgba(10, 29, 55, 0.20) 100%);
    pointer-events: none;
}

/* Foreground content relative */
.hero-content-relative {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Card slide content animation */
.hero-card-slide {
    display: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-card-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Card Badge */
.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);

}

/* Bottom Controls Container */
.hero-bottom-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    margin-right: 6px;
    z-index: 6;
}

/* Slide Counter */
.hero-slide-counter {
    background: rgba(10, 29, 55, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-current-slide {
    color: var(--childit-yellow);
}

.hero-counter-sep {
    opacity: 0.5;
}

.hero-total-slides {
    opacity: 0.85;
}

/* Interactive Slide Dots */
.hero-slide-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 29, 55, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
    width: 26px;
    background: var(--childit-yellow);
    box-shadow: 0 0 10px rgba(255, 210, 0, 0.4);
}

/* Arrow buttons */
.hero-bottom-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Mobile Responsiveness for Hero Slider */
@media (max-width: 900px) {
    .hero-content-relative {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 20px;
        min-height: auto;
    }

    .hero-bottom-controls {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
        margin: 0;
    }
}

@media (max-width: 575px) {
    .hero-slide-dots {
        display: none;
    }
}

/* Welcome Section Styles */
.home-welcome-h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--childit-navy);
}

.home-welcome-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.home-welcome-p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Philosophy 4 Fanned Cards Section */
.home-philosophy-h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--childit-navy);
}

.home-philosophy-sub {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Orange Special Programs Section */
.home-programs-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.white-card-content-grow {
    flex: 1;
}

.white-card-age-tag {
    color: var(--childit-orange);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.white-card-btn-align {
    display: flex;
    justify-content: flex-end;
}

/* Our Classes Section */
.home-classes-h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--childit-navy);
}

.home-classes-sub {
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.05rem;
}


.orange-programs-section {
    background-color: #fd33b0;
}

/* Stats & Milestones Section */
.home-stats-h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--childit-navy);
}

.home-stats-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Safety & Wholesome Care Navy Section */
.navy-safety-section {
    background-color: #ff009de1;
}

.home-safety-photo-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 29, 55, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.home-safety-img {
    width: 100%;
    height: auto;
    display: block;
}

.home-safety-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #f9f9f9;
}

.home-safety-h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.home-safety-lead {
    font-size: 1.05rem;
    color: #CBD5E1;
    margin-bottom: 24px;
    line-height: 1.7;
}

.home-safety-btn-wrap {
    margin-top: 30px;
}

/* Testimonials / Parent Feedback Section */
.feedback-horizontal-section {
    padding: 95px 0 110px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
}

.feedback-horizontal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.feedback-horizontal-section .container {
    position: relative;
    z-index: 1;
}

.home-testimonial-h2 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: var(--childit-navy, #0c3670);
}

.home-testimonial-subhead {
    font-size: 1.12rem;
    color: #64748B;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Outer Carousel Wrapper with Arrow Nav */
.feedback-carousel-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Horizontal Track Viewport: Single Feedback Visible at a Time */
.feedback-track-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
    position: relative;
    padding: 10px 4px;
}

/* Horizontal Track: items aligned side-by-side */
.feedback-horizontal-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Single Slide: exactly 100% width of the viewport */
.feedback-slide-item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    opacity: 0.35;
    transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-slide-item.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Feedback Bubble Card */
.feedback-bubble-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 24px;
    padding: 38px 44px 34px;
    box-shadow: 0 12px 40px -10px rgba(12, 54, 112, 0.08), 0 4px 16px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.feedback-bubble-card:hover {
    box-shadow: 0 20px 48px -10px rgba(12, 54, 112, 0.12), 0 8px 24px -2px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

/* Card Header */
.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.feedback-quote-mark {
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 0.8;
    height: 38px;
    font-weight: 900;
    opacity: 0.9;
    user-select: none;
}

.feedback-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 5px 14px;
    border-radius: 9999px;
}

.feedback-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.15rem;
}

.feedback-stars .star-icon.filled {
    color: #F59E0B;
}

.feedback-stars .star-icon.empty {
    color: #D1D5DB;
}

.feedback-stars-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #B45309;
}

.feedback-category-tag {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* Feedback Body Text */
.feedback-body-text {
    font-family: var(--font-heading, 'Nunito', sans-serif);
    font-size: 1.4rem;
    line-height: 1.6;
    color: #1E293B;
    margin: 0 0 28px;
    font-weight: 600;
    position: relative;
    quotes: none;
}

/* Author Row */
.feedback-author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.feedback-author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.feedback-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feedback-author-name {
    font-size: 1.22rem;
    font-weight: 800;
    color: #0c3670;
    margin: 0;
    letter-spacing: -0.3px;
}

.feedback-author-role {
    font-size: 0.92rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 600;
}

.feedback-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #059669;
    background: #ECFDF5;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #A7F3D0;
}

/* Nav Arrows */
.feedback-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
    color: #0c3670;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.feedback-nav-arrow:hover {
    background: #0c3670;
    color: #FFFFFF;
    border-color: #0c3670;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 54, 112, 0.25);
}

/* Controls Row: Timer Bar & Dots & Counter */
.feedback-controls-row {
    max-width: 720px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* 3-Second Timer Bar */
.feedback-timer-bar-wrap {
    flex: 1;
    min-width: 160px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.feedback-timer-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F59E0B, #0c3670);
    border-radius: 9999px;
    transform-origin: left;
    transition: width 0.1s linear;
}

/* Navigation Dots */
.feedback-dots-track {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-dot-pill {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: none;
    background: #CBD5E1;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-dot-pill:hover {
    background: #94A3B8;
}

.feedback-dot-pill.active {
    width: 34px;
    background: #0c3670;
}

/* Counter */
.feedback-counter-pill {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0c3670;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 4px 14px;
    border-radius: 9999px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Bottom Feedback Action CTA */
.feedback-bottom-action {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feedback-action-prompt {
    font-size: 0.98rem;
    color: #64748B;
    margin: 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .feedback-horizontal-section {
        padding: 60px 0 80px;
    }
    .home-testimonial-h2 {
        font-size: 2.1rem;
    }
    .feedback-bubble-card {
        padding: 26px 20px;
        border-radius: 18px;
    }
    .feedback-body-text {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .feedback-nav-arrow {
        display: none;
    }
    .feedback-controls-row {
        flex-direction: column;
        gap: 14px;
    }
    .feedback-timer-bar-wrap {
        width: 100%;
    }
}

/* Events & Notice Board */

.home-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.home-events-title {
    font-size: 2.8rem;
    color: var(--childit-navy);
    margin: 0;
}

.home-event-orange-thumb {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-event-orange-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-event-pill {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home-event-orange-h4 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.home-event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.home-event-orange-p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.home-event-white-thumb {
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.home-event-white-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-event-tag-orange {
    color: var(--childit-orange);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.home-event-white-h4 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--childit-navy);
}

.home-event-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-event-white-p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.fan-card-4 {
    background: #8400ff;
}


/* Admission Inquiry Form */
.home-inquiry-badge {
    background: var(--childit-pink);
    color: var(--childit-navy);
}

.navy-form-section {
    background-color: #6f13b6;
}

.home-inquiry-h2 {
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.home-inquiry-lead {
    font-size: 1.05rem;
    color: #CBD5E1;
    line-height: 1.7;
}

.home-inquiry-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.home-inquiry-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.home-inquiry-submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 28px;
}

/* Recent News */
.home-news-h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--childit-navy);
}

.home-news-sub {
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.home-news-read-link {
    color: var(--childit-pink);
    font-weight: 700;
    font-size: 0.95rem;
}

/* --- HOME GALLERY SHOWCASE SECTION --- */
.home-gallery-showcase {
    padding: 85px 0 90px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.home-gallery-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.home-gallery-title {
    font-size: 2.8rem;
    color: var(--childit-navy);
    margin-top: 10px;
    margin-bottom: 14px;
}

.home-gallery-lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.home-gallery-card {
    border-radius: 18px;
    overflow: hidden;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    box-shadow: 0 4px 14px rgba(10, 29, 55, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-gallery-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    border-color: #CBD5E1;
    box-shadow: 0 12px 28px rgba(10, 29, 55, 0.09);
}

.home-gallery-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F1F5F9;
}

.home-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-gallery-card:hover .home-gallery-thumb img {
    transform: scale(1.07);
}

.home-gallery-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-gallery-card-body {
    padding: 16px 18px;
    flex: 1;
}

.home-gallery-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--childit-navy);
    line-height: 1.35;
    margin-bottom: 6px;
}

.home-gallery-card-desc {
    font-size: 0.84rem;
    color: #64748B;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-gallery-cta {
    text-align: center;
}

/* Funny floating decorative doodles */
.floating-sticker-sun {
    position: absolute;
    top: 40px;
    right: 4%;
    font-size: 2.4rem;
    animation: playfulBounce 3s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.floating-sticker-plant {
    position: absolute;
    bottom: 30px;
    left: 3%;
    font-size: 2.2rem;
    animation: floatSway 4s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

/* =========================================================================
   MOBILE APP RESPONSIVE BREAKPOINTS (Home Page)
   ========================================================================= */
@media (max-width: 768px) {
    .home-exact-hero {
        min-height: 480px;
        max-height: none;
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .exact-hero-title {
        font-size: 2rem !important;
        line-height: 1.25;
    }

    .exact-hero-lead {
        font-size: 0.98rem !important;
    }

    .exact-orange-card {
        padding: 24px 18px !important;
    }

    /* Fan cards: neutral transforms on mobile to avoid overflow and awkward cuts */
    .cards-fan-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .fan-card,
    .fan-card-1,
    .fan-card-2,
    .fan-card-3,
    .fan-card-4 {
        transform: none !important;
    }

    .fan-card:hover {
        transform: translateY(-4px) !important;
    }

    .home-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
        gap: 18px;
    }

    .home-inquiry-grid-row {
        grid-template-columns: 1fr;
    }

    .home-inquiry-h2,
    .home-news-h2,
    .home-gallery-title {
        font-size: 2rem !important;
    }

    .floating-sticker-sun,
    .floating-sticker-plant {
        display: none !important;
    }
}

/* =========================================================================
   HOME ANNOUNCEMENT MARQUEE BAR (Below Hero Section)
   ========================================================================= */
.home-announcement-marquee-wrapper {
    background: #FFFDF0;
    border-top: 2px solid var(--childit-yellow, #F9E892);
    border-bottom: 2px solid var(--childit-yellow, #F9E892);
    padding: 10px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(249, 232, 146, 0.25);
}

.marquee-container-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.marquee-live-badge {
    background: var(--childit-yellow, #F9E892);
    color: var(--childit-navy, #0c3670);
    font-weight: 800;
    font-size: 0.84rem;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 9px;
    height: 9px;
    background: #EF4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.marquee-scroller-area {
    flex-grow: 1;
    overflow: hidden;
}

.marquee-scroller-area marquee {
    display: block;
    font-size: 0.96rem;
    color: var(--childit-navy, #0c3670);
    font-weight: 600;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 32px;
}

.marquee-pill {
    background: var(--childit-pink, #ff85a2);
    color: #0c3670;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.marquee-title {
    color: var(--childit-navy, #0c3670);
    font-weight: 700;
}

.marquee-text {
    color: #334155;
}

.marquee-link {
    color: #2563EB;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.marquee-link:hover {
    color: #1D4ED8;
}

.marquee-separator {
    color: #F59E0B;
    margin-left: 18px;
    font-size: 1.1rem;
}

/* =========================================================================
   HOME ANNOUNCEMENTS CARD SECTION
   ========================================================================= */
.home-announcements-section {
    padding: 75px 0 85px;
    background: #FCFBF9;
    position: relative;
    overflow: hidden;
}

.announcements-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.announcement-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg, 24px);
    border: 2.5px solid #F1F5F9;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(12, 54, 112, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(12, 54, 112, 0.12);
}

/* Color themed borders matching pastels */
.announcement-card.card-border-yellow {
    border-color: var(--childit-yellow, #F9E892);
}

.announcement-card.card-border-pink {
    border-color: var(--childit-pink, #ff85a2);
}

.announcement-card.card-border-green {
    border-color: var(--childit-green, #CDE5D9);
}

.announcement-card.card-border-purple {
    border-color: var(--childit-purple, #DDC3E3);
}

.announcement-card.card-border-orange {
    border-color: var(--childit-orange, #FFC697);
}

.announcement-card.card-border-blue {
    border-color: var(--childit-blue, #B6D8F7);
}

.announcement-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-card-badge {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.announcement-card-date {
    font-size: 0.85rem;
    color: var(--text-muted, #64748B);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.announcement-card-title {
    font-size: 1.32rem;
    color: var(--childit-navy, #0c3670);
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.announcement-card-desc {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.announcement-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px dashed #E2E8F0;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .marquee-container-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .announcements-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   HOME CAMPUS LIFE BENTO GRID (Authentic Photos)
   ========================================================================= */
.home-moments-section {
    padding: 85px 0 95px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.home-moments-title {
    font-family: var(--font-heading, 'Fredoka', cursive);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--childit-navy, #0c3670);
    margin-top: 10px;
    margin-bottom: 14px;
}

.home-moments-sub {
    color: var(--text-muted, #64748B);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.moments-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 290px;
    gap: 24px;
    margin-top: 36px;
}

.moment-card {
    position: relative;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(12, 54, 112, 0.1);
    background: #0c3670;
    border: 3px solid #FFFFFF;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.moment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 22px 48px rgba(12, 54, 112, 0.2);
    z-index: 2;
}

.moment-card-wide {
    grid-column: span 2;
}

.moment-card-tall {
    grid-column: span 1;
}

.moment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.moment-card:hover .moment-img {
    transform: scale(1.08);
}

.moment-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 54, 112, 0.05) 20%, rgba(12, 54, 112, 0.88) 90%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #FFFFFF;
    transition: background 0.3s ease;
}

.moment-pill {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pill-yellow {
    background: var(--childit-yellow, #f3d22e);
    color: #0c3670;
}

.pill-pink {
    background: var(--childit-pink, #ff85a2);
    color: #0c3670;
}

.pill-green {
    background: var(--childit-green, #CDE5D9);
    color: #064E3B;
}

.pill-blue {
    background: var(--childit-blue, #298eec);
    color: #FFFFFF;
}

.pill-orange {
    background: var(--childit-orange, #ea9c5c);
    color: #0c3670;
}

.moment-title {
    font-family: var(--font-heading, 'Fredoka', cursive);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
    line-height: 1.3;
}

.moment-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    margin: 0;
    max-width: 480px;
}

.moments-bottom-cta {
    text-align: center;
    margin-top: 45px;
}

@media (max-width: 992px) {
    .moments-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }

    .moment-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .moments-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 18px;
    }

    .moment-card-wide,
    .moment-card-tall {
        grid-column: span 1;
    }

    .home-moments-title {
        font-size: 1.8rem;
    }

    .moment-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}