/* ==========================================
   Southgate Daycare - Stylesheet
   Premium, editorial-inspired design
   ========================================== */

/* CSS Variables */
:root {
    --hero-bg-url: url('../images/hero-bckground.jpg');

    /* Primary — deep terracotta, sophisticated warmth */
    --primary: #C85A3E;
    --primary-dark: #A84830;
    --primary-light: #E8A090;
    --primary-subtle: rgba(200, 90, 62, 0.08);

    /* Secondary — deep sage, natural trust */
    --secondary: #3D7A6F;
    --secondary-dark: #2D5E55;
    --secondary-light: #7AB5AA;
    --secondary-subtle: rgba(61, 122, 111, 0.08);

    /* Accent — warm gold, premium */
    --accent: #D4A843;
    --accent-dark: #B8922E;
    --accent-subtle: rgba(212, 168, 67, 0.08);

    /* Neutrals — clean, not creamy */
    --bg-white: #FFFFFF;
    --bg-subtle: #FAFAF8;
    --bg-muted: #F5F5F3;
    --bg-warm: #F0EFED;

    /* Text */
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --text-muted: #9A9A9A;

    /* Borders */
    --border: #E5E5E5;
    --border-light: #F0F0F0;

    /* Shadows — refined, subtle */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.10);

    /* Radius — restrained */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Fonts — editorial elegance */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--text-dark);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(200, 90, 62, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 90, 62, 0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(61, 122, 111, 0.25);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-subtle);
    transform: translateY(-1px);
}

.btn-danger {
    background: #C0392B;
    color: white;
}

.btn-danger:hover {
    background: #A93226;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--text-medium);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .nav-link:hover {
    color: var(--text-dark);
    background: var(--bg-subtle);
}

.nav-link.active {
    color: var(--accent);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    margin-left: 4px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .hamburger {
    background: var(--text-dark);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--text-dark);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--text-dark);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--text-dark);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-bg-url) center/cover no-repeat;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.4) 0%,
        rgba(26, 26, 46, 0.2) 50%,
        rgba(26, 26, 46, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: white;
    margin-bottom: 24px;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-wrap: pretty;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-scroll a:hover {
    color: var(--accent);
    border-color: rgba(212, 168, 67, 0.4);
    background: rgba(212, 168, 67, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    text-wrap: pretty;
}

.section-subtitle a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-subtitle a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: 120px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--primary);
    color: white;
    padding: 24px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.exp-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
}

.exp-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 4px;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-subtle);
}

.feature-text h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Stats Bar — refined, no card containers */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--bg-subtle);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 0 40px;
    position: relative;
    flex: 1;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--border);
}

.stat-item i {
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 400;
}

/* ==========================================
   Programs Section
   ========================================== */
.programs {
    padding: 120px 0;
    background: var(--bg-subtle);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.program-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover .program-image img {
    transform: scale(1.04);
}

.program-content {
    padding: 28px;
}

.program-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--secondary);
    background: var(--secondary-subtle);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.program-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.program-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.program-features {
    list-style: none;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-medium);
    padding: 5px 0;
}

.program-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary-light);
    flex-shrink: 0;
}

.program-features i {
    display: none;
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials {
    padding: 120px 0;
    background: var(--bg-white);
}

.testimonials-slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-subtle);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 32px;
    font-style: italic;
    text-wrap: pretty;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    font-size: 2.2rem;
    color: var(--border);
}

.author-info h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: var(--primary-light);
}

/* ==========================================
   Trust Banner Section
   ========================================== */
.trust-banner {
    padding: 64px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-medium);
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.trust-item span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ==========================================
   CTA Banner Section
   ========================================== */
.cta-banner {
    padding: 80px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: white;
    margin-bottom: 12px;
    text-wrap: balance;
}

.cta-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
    transition: var(--transition);
}

.cta-phone:hover {
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .btn {
    padding: 14px 36px;
    font-size: 1rem;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-banner .btn-primary:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
}

.cta-banner .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: white;
}

.cta-banner .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery {
    padding: 120px 0;
    background: var(--bg-subtle);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Placeholder for missing images */
.gallery-item img.broken {
    display: none;
}

.gallery-item .img-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--bg-muted);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.gallery-item .img-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--border);
}

.gallery-item .img-placeholder span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-item img.broken + .img-placeholder {
    display: flex;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   Contact / Footer Section
   ========================================== */
.contact {
    padding: 120px 0 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    text-wrap: balance;
}

.contact-info > p {
    color: var(--text-medium);
    margin-bottom: 48px;
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary-subtle);
}

.contact-text h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-text a:hover {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 480px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    border-radius: var(--radius-lg);
}

/* Footer */
.footer {
    background: #111111;
    color: white;
    padding: 64px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--accent);
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 2px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.footer-note {
    font-size: 0.8rem !important;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    image-rendering: -webkit-optimize-contrast;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   Scroll to Top
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image img {
        height: 400px;
    }

    .about-experience {
        bottom: 16px;
        right: 16px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-item {
        flex: 1 1 40%;
        padding: 16px 0;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-map iframe {
        min-height: 350px;
    }

    .contact-map {
        min-height: 350px;
    }

    .trust-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-dark) !important;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        width: 100%;
        font-size: 1rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background: none;
        color: var(--primary) !important;
    }

    .nav-cta {
        display: none;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .signinout-grid {
        grid-template-columns: 1fr;
    }

    .signinout-form-wrapper,
    .signinout-log {
        padding: 24px;
    }

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

    .log-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-experience {
        padding: 16px 24px;
    }

    .exp-number {
        font-size: 1.8rem;
    }

    .stats-bar {
        padding: 32px 24px;
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .trust-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .stats-bar {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
    }

    .stat-item {
        flex: 1 1 100%;
        padding: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }

    .program-content {
        padding: 20px;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    .lightbox img {
        max-width: 95vw;
    }

    .about-grid {
        gap: 32px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .cta-phone {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Navigation Auth
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dark);
    background: var(--bg-subtle);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

.user-badge i {
    font-size: 1.1rem;
    color: var(--primary);
}

.role-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.role-tag.role-admin {
    background: #C0392B;
}

.role-tag.role-staff {
    background: var(--secondary);
}

/* ==========================================
   Login Modal
   ========================================== */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.login-content {
    position: relative;
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.login-close:hover {
    background: var(--bg-subtle);
    color: var(--text-dark);
}

.login-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.login-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.login-content > p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.login-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-help p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.demo-accounts .role-tag {
    font-size: 0.6rem;
    margin-left: 4px;
}

/* ==========================================
   Login Prompt (for non-authenticated)
   ========================================== */
.login-prompt {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.login-prompt-icon {
    width: 72px;
    height: 72px;
    background: rgba(200, 90, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-prompt-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.login-prompt h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.login-prompt p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ==========================================
   QR Code Section
   ========================================== */
.qr-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.qr-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--border);
}

.qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.qr-code img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    background: white;
    border: 1px solid var(--border);
}

.qr-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-card h3 i {
    color: var(--primary);
}

.qr-card > p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.qr-url-note {
    display: none;
    background: #FFF8DC;
    border: 1px solid #DEB887;
    color: #8B4513;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    text-align: left;
}

.qr-url-note i {
    margin-right: 6px;
}

.qr-url-note.visible {
    display: block;
}

.qr-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.qr-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

.step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.qr-step span:last-child {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.qr-info {
    text-align: left;
}

.qr-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(61, 122, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.qr-info-icon i {
    font-size: 1.6rem;
    color: var(--secondary);
}

.qr-features {
    list-style: none;
    text-align: left;
}

.qr-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border);
}

.qr-features li:last-child {
    border-bottom: none;
}

.qr-features li i {
    color: var(--secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        padding: 24px;
    }
}

/* ==========================================
   Reports Section
   ========================================== */
.reports {
    padding: 100px 0;
    background: var(--bg-white);
}

.reports-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.reports-filters {
    display: flex;
    gap: 16px;
    padding: 28px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.filter-group input,
.filter-group select {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-actions {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 10px;
    min-width: auto;
}

.filter-actions .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
}

.report-preview {
    padding: 40px;
    min-height: 300px;
}

.report-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.report-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.report-empty p {
    font-size: 1rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.report-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--bg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.report-table th:first-child {
    border-radius: 8px 0 0 0;
}

.report-table th:last-child {
    border-radius: 0 8px 0 0;
}

.report-table tbody tr:hover {
    background: var(--bg-subtle);
}

/* ==========================================
   Print Template
   ========================================== */
.print-template {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    .print-template,
    .print-template * {
        visibility: visible;
    }

    .print-template {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        background: white;
    }

    .navbar,
    .hero-scroll,
    .scroll-top,
    .footer,
    .lightbox,
    .login-modal,
    .notification-toast {
        display: none !important;
    }
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 24px;
}

.print-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.print-logo i {
    font-size: 3rem;
    color: var(--primary);
}

.print-logo h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.print-logo p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
}

.print-info {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.print-info p {
    margin: 4px 0;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.print-table th,
.print-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
}

.print-table th {
    background: var(--bg-subtle);
    font-family: var(--font-heading);
    font-weight: 600;
}

.print-table td:last-child {
    min-width: 150px;
}

.print-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================
   Manage Children
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.children-manager {
    max-width: 900px;
    margin: 0 auto;
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

#childrenCount {
    font-weight: 500;
    color: var(--text-light);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.child-delete-btn {
    background: none;
    border: none;
    color: #E74C3C;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.child-delete-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* ==========================================
   Manage Children
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.children-manager {
    max-width: 900px;
    margin: 0 auto;
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-table .child-actions {
    display: flex;
    gap: 8px;
}

.children-table .child-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.children-table .child-actions .btn-edit {
    background: var(--secondary);
    color: white;
}

.children-table .child-actions .btn-edit:hover {
    background: var(--secondary-dark);
}

.children-table .child-actions .btn-delete {
    background: #E74C3C;
    color: white;
}

.children-table .child-actions .btn-delete:hover {
    background: #C0392B;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

/* ==========================================
   Manage Children Section
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.children-manager {
    max-width: 900px;
    margin: 0 auto;
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-table td {
    color: var(--text-dark);
}

.children-empty {
    text-align: center !important;
    color: var(--text-light) !important;
    font-style: italic;
    padding: 40px !important;
}

.child-actions {
    display: flex;
    gap: 8px;
}

.child-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.child-actions .btn-edit {
    background: var(--secondary);
    color: white;
}

.child-actions .btn-edit:hover {
    background: var(--secondary-dark);
}

.child-actions .btn-delete {
    background: #E74C3C;
    color: white;
}

.child-actions .btn-delete:hover {
    background: #C0392B;
}

/* ==========================================
   Manage Children Section
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

#childrenCount {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1rem;
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table th:first-child {
    border-radius: 8px 0 0 0;
}

.children-table th:last-child {
    border-radius: 0 8px 0 0;
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table .child-name {
    font-weight: 600;
    color: var(--text-dark);
}

.children-table .child-program {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(200, 90, 62, 0.1);
    color: var(--primary);
}

.children-table .child-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.children-table .child-actions {
    display: flex;
    gap: 8px;
}

.children-table .child-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.children-table .btn-edit {
    background: rgba(61, 122, 111, 0.1);
    color: var(--secondary);
}

.children-table .btn-edit:hover {
    background: var(--secondary);
    color: white;
}

.children-table .btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.children-table .btn-delete:hover {
    background: #E74C3C;
    color: white;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================
   Manage Children Section
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.add-child-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.children-list-header {
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table th:first-child {
    border-radius: 8px 0 0 0;
}

.children-table th:last-child {
    border-radius: 0 8px 0 0;
}

.children-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-table td {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.children-table .child-name {
    font-weight: 600;
}

.children-table .child-program {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(61, 122, 111, 0.1);
    color: var(--secondary);
}

.children-table .child-notes {
    color: var(--text-light);
    font-size: 0.85rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-actions {
    display: flex;
    gap: 8px;
}

.child-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-light);
}

.child-actions button:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.child-actions .delete-child:hover {
    color: #E74C3C;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
}

/* ==========================================
   Manage Children
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table th:first-child {
    border-radius: 8px 0 0 0;
}

.children-table th:last-child {
    border-radius: 0 8px 0 0;
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child td {
    border-bottom: none;
}

.children-table .child-name {
    font-weight: 600;
    color: var(--text-dark);
}

.children-table .child-program {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(200, 90, 62, 0.1);
    color: var(--primary);
}

.children-table .child-actions {
    display: flex;
    gap: 8px;
}

.children-table .child-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.children-table .child-actions .btn-edit {
    background: var(--bg-subtle);
    color: var(--secondary);
}

.children-table .child-actions .btn-edit:hover {
    background: var(--secondary);
    color: white;
}

.children-table .child-actions .btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.children-table .child-actions .btn-delete:hover {
    background: #E74C3C;
    color: white;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
}

/* ==========================================
   Manage Children Section
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: var(--bg-white);
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.child-actions {
    display: flex;
    gap: 8px;
}

.child-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-light);
}

.child-actions button:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.child-actions .delete-child:hover {
    color: #E74C3C;
}

/* ==========================================
   Manage Children
   ========================================== */
.manage-children {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-muted) 100%);
}

.add-child-form {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.add-child-form h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-child-form h3 i {
    color: var(--primary);
}

.children-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.children-list-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-list-header h3 i {
    color: var(--primary);
}

.children-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.children-table th,
.children-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.children-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-subtle);
}

.children-table tbody tr:hover {
    background: var(--bg-subtle);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-empty {
    text-align: center !important;
    color: var(--text-light) !important;
    font-style: italic;
}

.child-actions {
    display: flex;
    gap: 8px;
}

.child-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.child-actions .btn-edit {
    background: var(--secondary);
    color: white;
}

.child-actions .btn-edit:hover {
    background: var(--secondary-dark);
}

.child-actions .btn-delete {
    background: #E74C3C;
    color: white;
}

.child-actions .btn-delete:hover {
    background: #C0392B;
}

/* ==========================================
   Responsive: Login & Reports
   ========================================== */
@media (max-width: 768px) {
    .login-content {
        padding: 32px 24px;
    }

    .user-badge {
        display: none !important;
    }

    .reports-filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        flex-direction: row;
        width: 100%;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .login-prompt {
        padding: 40px 24px;
    }

    .print-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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