/* ========================================
   CSS 1 – MAIN STYLES (Base)
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary palette */
    --sage-100: #f2f6f0;
    --sage-200: #e2ebe0;
    --sage-300: #c5d6c0;
    --sage-400: #9bb892;
    --sage-500: #7a9c70;
    --sage-600: #5c7a52;

    /* Earthy beiges & warm neutrals */
    --beige-100: #fdfbf7;
    --beige-200: #f5efe8;
    --beige-300: #e8ddd0;
    --beige-400: #d4c4b2;

    /* Gold accents */
    --gold-100: #f9f0e0;
    --gold-300: #e8cd9e;
    --gold-500: #d4a857;
    --gold-700: #b8893a;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #fcfaf8;
    --gray-50: #f9f8f6;
    --gray-100: #f0eeea;
    --gray-300: #cdc6bc;
    --gray-600: #7a7268;
    --gray-800: #3d3a35;
    --gray-900: #1e1c19;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --heading-weight: 600;
    --body-weight: 400;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 4rem 1.5rem;
    --card-radius: 1.25rem;
    --transition: 0.25s ease;

    /* Additions from CSS2 */
    --bg: #f5f7f2;
    --surface: #ffffff;
    --surface-strong: #f7f5f0;
    --text: #0f1724;
    --muted: #6b7280;
    --border: #e6e3df;
    --accent: var(--sage-600);
    --accent-soft: #eaf7ed;
    --shadow: 0 24px 80px rgba(11, 18, 32, 0.06);
    --anim-fast: 160ms;
    --anim-medium: 280ms;
    --easing: cubic-bezier(.2, .9, .3, 1);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--body-weight);
    color: var(--gray-800);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-600);
    background: var(--sage-200);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--heading-weight);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
    border-radius: 3rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--gray-900);
}

.btn-primary:hover {
    background: var(--gold-700);
    border-color: var(--gold-700);
    color: var(--white);
    box-shadow: 0 8px 28px rgba(212, 168, 87, 0.35);
}

.btn-ghost {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-ghost:hover {
    background: var(--sage-200);
    border-color: var(--sage-300);
}

.btn-large {
    font-size: 1.1rem;
    padding: 0.9rem 2.8rem;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
}

.btn-link:hover {
    border-bottom-color: var(--gold-300);
    color: var(--gold-300);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(205, 198, 188, 0.25);
    padding: 0.6rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width var(--transition);
}

.nav a:hover {
    color: var(--gray-900);
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-actions .btn-ghost {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
}

.header-actions .btn-primary {
    font-size: 0.9rem;
    padding: 0.5rem 1.4rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--gray-800);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

/* ========================================
   HERO (main landing)
   ======================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    /* Replace with your own hero image */
    background: linear-gradient(145deg, #dce8d7 0%, #b6cbb0 100%);
    background-size: cover;
    background-position: center;
    /* Uncomment below to use an actual image */
    /* background-image: url('hero-bg.jpg'); */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 28, 25, 0.25);
    background: linear-gradient(135deg, rgba(30, 28, 25, 0.15) 0%, rgba(30, 28, 25, 0.30) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-headline {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    margin: 0 auto 2.2rem auto;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.8rem;
}

.hero-actions .btn-primary {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--gray-900);
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-primary:hover {
    background: var(--gold-700);
    border-color: var(--gold-700);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(212, 168, 87, 0.45);
}

/* ========================================
   HERO-COMPACT (for internal pages)
   ======================================== */
.hero-compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    padding: 1rem 1.5rem !important;
    background: var(--beige-100) !important;
    background-image: none !important;
    background-color: var(--beige-100) !important;
    min-height: auto !important;
    border-bottom: 1px solid var(--gray-100);
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-compact > div:first-child {
    flex: 1;
    min-width: 180px;
}

.hero-compact .eyebrow {
    display: block;
    color: var(--sage-600);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.hero-compact h1 {
    font-size: 1.4rem !important;
    margin: 0.1rem 0 0.1rem !important;
    color: var(--gray-900);
    line-height: 1.2;
}

.hero-compact p {
    color: var(--gray-600);
    max-width: 560px;
    margin: 0.1rem 0 0 !important;
    font-size: 0.92rem;
}

/* Fix the button inside hero-compact */
.hero-compact .btn-secondary {
    font-size: 0.85rem !important;
    padding: 0.4rem 1.2rem !important;
    border-radius: 2rem !important;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    color: var(--gray-800) !important;
    transition: all var(--transition);
}

.hero-compact .btn-secondary:hover {
    background: var(--gray-100) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove any inherited hero styles */
.hero-compact,
.hero-compact * {
    background-attachment: initial !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: initial !important;
    overflow: visible !important;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
}

.trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 3rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.trust-item i {
    color: var(--sage-500);
    font-size: 1rem;
}

/* ========================================
   FEATURES (3-column grid)
   ======================================== */
.features {
    padding: var(--section-padding);
    background: var(--beige-100);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 1.8rem 2.2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--sage-200);
    color: var(--sage-600);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.98rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION (with full description)
   ======================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1.2;
}

.about-text .section-label {
    margin-bottom: 0.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin: 1rem 0 1.8rem 0;
    max-width: 540px;
}

.about-text .full-description {
    max-width: 100%;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    margin-bottom: 2rem;
}

.about-highlights span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--gray-800);
}

.about-highlights i {
    color: var(--gold-500);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image-placeholder {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    background: var(--sage-200);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sage-600);
    font-weight: 500;
    font-size: 1.1rem;
    gap: 0.8rem;
    border: 2px dashed var(--sage-300);
}

.about-image-placeholder i {
    font-size: 4rem;
    color: var(--sage-500);
}

/* ========================================
   SERVICES / WHAT WE OFFER (NEW SECTION)
   ======================================== */
.services {
    padding: var(--section-padding);
    background: var(--off-white);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem 1.2rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.service-card .service-icon {
    font-size: 2.4rem;
    color: var(--sage-500);
    margin-bottom: 0.8rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 4rem 1.5rem;
    background: var(--sage-100);
    text-align: center;
    border-top: 1px solid var(--sage-200);
}

.cta-inner {
    max-width: 680px;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--gray-900);
    font-weight: 700;
}

.cta-section .btn-primary:hover {
    background: var(--gold-700);
    border-color: var(--gold-700);
    color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.25rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-icon {
    color: var(--gold-500);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-links a:hover {
    color: var(--gold-300);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN (Mobile-first)
   ======================================== */

/* Tablets & small laptops */
@media (max-width: 992px) {
    .about-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-text p {
        max-width: 100%;
    }

    .about-image-placeholder {
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1.2rem 0 0.6rem 0;
        gap: 0.8rem;
        border-top: 1px solid var(--gray-100);
        margin-top: 0.6rem;
    }

    .nav.open {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .header-actions.open {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        gap: 0.6rem;
        padding-bottom: 0.4rem;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        font-size: 0.85rem;
        padding: 0.45rem 1rem;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-actions .btn-link {
        color: var(--white);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.8rem 1.2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .trust-inner {
        gap: 0.8rem 1.8rem;
    }

    .trust-item {
        font-size: 0.8rem;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .about-image-placeholder {
        max-width: 200px;
    }

    /* Dashboard responsive */
    .hero-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-compact .btn {
        align-self: flex-start;
    }

    .cards-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .section-block {
        grid-template-columns: 1fr;
    }

    .split-block {
        grid-template-columns: 1fr;
    }

    .main-view {
        padding: 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
        white-space: normal;
    }

    .logo-icon {
        width: 2rem;
        height: 2rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 0.7rem 2rem;
    }

    .hero-headline {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

/* ========================================
   ADDITIONAL STYLES FROM CSS2 (Unique)
   ======================================== */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: var(--gold-500);
    color: #111;
    border-radius: 6px;
    z-index: 9999;
}

/* Animation keyframes */
@keyframes floatUp {
    from {
        transform: translateY(6px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feature-card,
.feature,
.hero-content,
.service-card {
    animation: floatUp 420ms var(--easing) both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Utility */
.hidden {
    display: none !important;
}

.page-shell {
    min-height: 100vh;
}

.landing-shell {
    min-height: 100vh;
    padding: 48px 32px;
    display: grid;
    gap: 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
}

/* Hero variants from CSS2 */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(122, 156, 112, 0.12), transparent 20%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 168, 87, 0.06), transparent 20%);
    filter: blur(24px);
    transform: scale(1.02);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54vh;
}

.hero-copy {
    max-width: 760px;
    text-align: center;
    padding: 2rem 1rem;
}

.kicker {
    color: var(--sage-600);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-xl {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.05rem;
}

/* Additional responsive from CSS2 */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .landing-shell {
        padding: 24px;
    }
    .hero {
        padding: 28px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 2.4rem;
    }
}

/* ---------- Additional component styles ---------- */
.btn-secondary {
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-secondary:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.15);
}

.btn-tertiary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-tertiary:hover {
    background: var(--gray-100);
}

.icon-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge-warning {
    background: #ffedd5;
    color: #ea580c;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-muted {
    background: #e5e7eb;
    color: #374151;
}

/* Excused absence (attendance history) */
.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ========================================
   FIX: Logo image fallback
   ======================================== */
.logo-icon-img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* ========================================
   ENROLLMENT CTA specific
   ======================================== */
.enroll-cta-wrapper {
    display: inline-block;
}

/* ========================================
   DASHBOARD & INTERNAL PAGE COMPONENTS
   ======================================== */
.main-view {
    padding: 2rem 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cards-grid,
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 1.5rem 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.summary-card .card-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}

.summary-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.summary-card .badge {
    margin-top: 0.5rem;
}

.section-block {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.panel,
.full-panel,
.side-panel,
.highlight-panel,
.table-panel,
.wizard-card,
.slot-grid {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.highlight-panel {
    background: var(--beige-100);
    border-color: var(--sage-200);
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-head h3,
.panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

.panel p,
.panel-head p {
    color: var(--gray-600);
    margin: 0;
}

.item-list,
.audit-list,
.absence-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.item-list li,
.audit-list li,
.absence-list li {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-list li div,
.audit-list li div,
.absence-list li div {
    display: grid;
    gap: 0.2rem;
}

.item-list li h4,
.audit-list li h4,
.absence-list li h4 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-900);
}

.item-list li p,
.audit-list li p,
.absence-list li p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.split-block {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.metric-row div {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.metric-row p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.metric-row h4 {
    margin: 0.25rem 0 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.qr-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.qr-card span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.qr-card p {
    color: var(--gray-600);
    margin: 0.5rem 0 0;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.stack-form label {
    display: grid;
    gap: 0.3rem;
    font-weight: 500;
    color: var(--gray-700);
}

.stack-form input,
.stack-form select,
.stack-form textarea {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

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

.table-panel th,
.table-panel td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.table-panel th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-panel tbody tr:hover {
    background: var(--gray-50);
}

/* Wizard styles */
.wizard-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-step {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    border: 1px solid transparent;
}

.wizard-step.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--sage-300);
}

.wizard-step span {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: grid;
    gap: 1.2rem;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: grid;
    place-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-head h2 {
    font-size: 1.4rem;
    margin: 0;
}

.modal-body {
    display: grid;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Tab views */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.tab:hover {
    background: var(--gray-50);
}

.tab.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--gray-900);
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

/* Slot management cards */
.session-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

.session-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.session-card h4 {
    margin: 0;
    font-weight: 600;
}

.session-card p {
    margin: 0.25rem 0 0;
    color: var(--gray-600);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Walk-in & online lists */
#walkinList .btn,
#onlineList .btn {
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
}

/* Fix for child cards in enrollment */
.child-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-100);
    margin-bottom: 1rem;
}

.child-card label {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.child-card input,
.child-card select {
    padding: 0.5rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    font-family: inherit;
}

.slot-card {
    padding: 0.8rem 1rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition);
}

.slot-card:hover {
    background: var(--gray-50);
}

.slot-card input[type="radio"] {
    margin-right: 0.5rem;
}

/* Grid utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 820px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   ENROLLMENT – STEP 3 FORM STYLING
   ======================================== */

/* Form labels in Step 3 */
.wizard-panel[data-step="3"] label {
    display: grid;
    gap: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 4px;
}

/* Text areas - make them look polished */
.wizard-panel[data-step="3"] textarea {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-family: var(--font-family);
    font-size: 0.95rem;
    background: var(--white);
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    min-height: 60px;
    color: var(--gray-800);
}

.wizard-panel[data-step="3"] textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212, 168, 87, 0.15);
}

/* File upload wrapper - custom styled */
.file-upload-wrapper {
    display: grid;
    gap: 6px;
}

.file-upload-wrapper label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: var(--gray-50);
    transition: all var(--transition);
    cursor: pointer;
    flex-wrap: wrap;
}

.file-upload-area:hover {
    border-color: var(--sage-400);
    background: var(--sage-100);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-area .file-label {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gold-500);
    color: var(--gray-900);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.file-upload-area .file-label:hover {
    background: var(--gold-700);
    color: var(--white);
}

.file-upload-area .file-name {
    color: var(--gray-600);
    font-size: 0.9rem;
    flex: 1;
    min-width: 100px;
    word-break: break-all;
}

.file-upload-area .file-name.has-file {
    color: var(--sage-600);
    font-weight: 500;
}

.file-upload-area .file-icon {
    font-size: 1.2rem;
    color: var(--sage-500);
}

/* Upload status indicators */
.upload-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 20px;
}

.upload-status.uploaded {
    background: #dcfce7;
    color: #16a34a;
}

.upload-status.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Grid layout for file uploads in Step 3 */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.upload-grid .full-width {
    grid-column: span 2;
}

/* Step 3 container spacing */
.wizard-panel[data-step="3"] {
    gap: 12px;
}

.wizard-panel[data-step="3"] .section-divider {
    border-top: 1px solid var(--gray-100);
    margin: 8px 0 12px;
    padding-top: 8px;
}

.wizard-panel[data-step="3"] .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 4px 0 2px;
}

/* Review summary styling */
#reviewSummary {
    margin-top: 12px;
}

#reviewSummary > div {
    background: var(--gray-50);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
}

#reviewSummary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

#reviewSummary p {
    margin: 2px 0;
    font-size: 0.92rem;
    color: var(--gray-700);
}

#reviewSummary p strong {
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 820px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-grid .full-width {
        grid-column: span 1;
    }
    
    .file-upload-area {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .file-upload-area .file-name {
        min-width: auto;
        font-size: 0.85rem;
    }
}
/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, var(--beige-100) 0%, var(--off-white) 100%);
}

.login-card {
    max-width: 440px;
    width: 100%;
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.login-card .logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo-header .logo-img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    display: block;
    border-radius: 12px;
}

.login-card .logo-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.login-card .logo-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0.2rem 0 0;
}

.login-form {
    display: grid;
    gap: 1.2rem;
}

.login-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.login-form label .required {
    color: #dc2626;
    font-weight: 600;
}

.login-form input,
.login-form select {
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--white);
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--gray-800);
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212, 168, 87, 0.12);
}

.login-form input::placeholder {
    color: var(--gray-300);
}

.login-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}

.login-form .checkbox-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold-500);
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
}

.login-form .form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.login-form .form-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
}

.login-form .form-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid transparent;
}

.login-form .form-actions .btn-secondary:hover {
    background: var(--gray-200);
    transform: none;
    box-shadow: none;
}

.login-form .forgot-link {
    text-align: center;
    margin-top: 0.5rem;
}

.login-form .forgot-link a {
    color: var(--sage-600);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.login-form .forgot-link a:hover {
    color: var(--sage-500);
    text-decoration: underline;
}

/* Error styling */
.login-form .error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    display: none;
}

.login-form .error-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 1.8rem 1.2rem;
    }

    .login-card .logo-header h1 {
        font-size: 1.3rem;
    }

    .login-form .form-actions {
        flex-direction: column;
    }

    .login-form .form-actions .btn {
        width: 100%;
    }
}
/* ============================================================
   FLATPICKR — Friendly date/time pickers
   Used on enrollment.html (Preferred Date/Time) and parent.html
   (Date of Absence, Reschedule Date/Time). Scoped to flatpickr's
   own classes plus the shared .flatpickr-input / .schedule-hint
   helpers so it applies consistently across both pages.
   ============================================================ */
.flatpickr-input {
    cursor: pointer;
    background: #fff;
}

.flatpickr-calendar {
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.flatpickr-day {
    height: 42px;
    line-height: 42px;
    max-width: 42px;
}

.flatpickr-day.flatpickr-disabled {
    opacity: 0.35;
}

.flatpickr-time input {
    font-size: 1.1rem;
}

.schedule-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 400;
}
/* ===== Mobile hardening (enrollment + shared) ===== */
img, video, canvas, svg { max-width: 100%; }
.wizard-card, .wizard-panel, .grid-2, .grid-3, .form-row { min-width: 0; }
.wizard-panel > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 820px) {
    .wizard-header { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
    .wizard-step { flex-direction: column; justify-content: center; text-align: center; gap: 0.4rem; padding: 0.7rem 0.4rem; font-size: 0.78rem; line-height: 1.2; }
    .wizard-step span { width: 1.8rem; height: 1.8rem; flex: none; }
    .wizard-actions { flex-wrap: wrap; }
    .wizard-actions > * { flex: 1 1 140px; min-height: 44px; }
    input, select, textarea { font-size: 16px; }
    .table-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
