/* ==========================================
   LITTLE HARVARD ACADEMY - Colorful & Bold
   ========================================== */

:root {
    --red: #E53935;
    --blue: #1E88E5;
    --green: #43A047;
    --yellow: #FFD600;
    --orange: #FB8C00;
    --purple: #8E24AA;
    --pink: #EC407A;
    --teal: #00ACC1;
    --dark: #1a1a2e;

    --heading-font: 'Fredoka One', cursive;
    --body-font: 'Nunito', sans-serif;

    --section-padding: 6rem 0;
    --radius: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: var(--body-font);
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--heading-font); }

/* ===== NAVBAR ===== */
#mainNav {
    background: transparent;
    transition: all 0.3s;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: #fff;
    transition: color 0.3s;
}

#mainNav.scrolled .navbar-brand { color: var(--dark); }

#mainNav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

#mainNav.scrolled .nav-link { color: #555; }
#mainNav.scrolled .nav-link:hover { color: var(--blue); }

.brand-icon { font-size: 1.4em; }

#mainNav .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

#mainNav.scrolled .navbar-toggler {
    border-color: rgba(0,0,0,0.2);
}

/* When scrolled (white bg), switch burger icon to dark */
#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.video-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 120vw; height: 120vh;
    min-width: 120%; min-height: 120%;
    transform: translate(-50%, -50%);
    border: none;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(30, 136, 229, 0.7) 0%,
        rgba(142, 36, 170, 0.6) 50%,
        rgba(229, 57, 53, 0.6) 100%
    );
}

.hero-title {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.95);
    font-family: var(--body-font);
    font-weight: 700;
}

.btn-cta {
    background: var(--yellow);
    color: var(--dark);
    border: none;
    font-weight: 800;
    font-family: var(--body-font);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-cta:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 140, 0, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 700;
    padding: 0.75rem 2rem;
}

/* ===== SECTION COMMON ===== */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.section-about {
    padding: var(--section-padding);
    background: #fff;
}

.section-about .lead {
    font-size: 1.2rem;
    color: #444;
    font-weight: 600;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-stat-icon { font-size: 1.5rem; }

.about-image-grid {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 55%;
    border-radius: var(--radius);
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== PROGRAMS ===== */
.section-programs {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.program-card {
    padding: 2rem;
    border-radius: var(--radius);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.program-card-red {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-left: 5px solid var(--red);
}

.program-card-blue {
    background: linear-gradient(135deg, #f0f7ff 0%, #d6eaff 100%);
    border-left: 5px solid var(--blue);
}

.program-card-green {
    background: linear-gradient(135deg, #f0faf0 0%, #d4edda 100%);
    border-left: 5px solid var(--green);
}

.program-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.program-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.program-age {
    display: inline-block;
    background: rgba(0,0,0,0.06);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.program-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.program-features li {
    padding: 0.25rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.program-features i {
    color: var(--green);
    margin-right: 0.3rem;
}

/* ===== GALLERY ===== */
.section-gallery {
    padding: var(--section-padding);
    background: #fff;
}

.gallery-scroll-wrapper {
    position: relative;
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) #eee;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: #eee; border-radius: 3px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: #fff;
    border: 2px solid #ddd;
    color: var(--dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.gallery-scroll-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.gallery-scroll-left { left: -22px; }
.gallery-scroll-right { right: -22px; }

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 300px;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

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

.gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-nav:hover { background: rgba(255,255,255,0.4); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* ===== SCHEDULE / BOOKING ===== */
.section-schedule {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #fffbf0 0%, #fff5e0 100%);
}

.booking-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    margin-right: 0.5rem;
}

/* Calendar Widget */
.calendar-widget {
    user-select: none;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cal-header h5 { margin: 0; font-size: 1.2rem; }

.cal-nav {
    background: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-day-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: #999;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.cal-day {
    padding: 0.6rem 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: default;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #ccc; }
.cal-day.today { border: 2px solid var(--blue); }

.cal-day.available {
    background: #e8f5e9;
    color: var(--green);
    cursor: pointer;
    font-weight: 800;
}

.cal-day.available:hover {
    background: var(--green);
    color: #fff;
    transform: scale(1.1);
}

.cal-day.selected {
    background: var(--blue);
    color: #fff;
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.time-slot-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--blue);
    background: #fff;
    color: var(--blue);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

/* ===== CONTACT ===== */
.section-contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: #fff;
}

.section-contact .section-title { color: #fff; }
.section-contact .section-badge { background: linear-gradient(135deg, var(--orange), var(--yellow)); color: var(--dark); }

.contact-card {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.contact-card a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
    word-break: break-all;
}

.contact-card a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
    background: #0d0d1a;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.site-footer h5, .site-footer h6 { color: #fff; }

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 0.15rem 0;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--yellow); }

.site-footer hr { border-color: rgba(255,255,255,0.1); }

/* ===== CONFIRMATION PAGE ===== */
.confirm-check-icon {
    font-size: 4rem;
    color: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.2rem; }

    /* Mobile burger dropdown — pull in from edges */
    #mainNav .navbar-collapse {
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        margin: 0.5rem -0.5rem 0;
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }
    #mainNav.scrolled .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
    }
    #mainNav .navbar-collapse .nav-link {
        padding: 0.6rem 0.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 30vh;
        min-height: 0;
    }
    .hero-overlay {
        padding: 0 1rem;
    }
    .hero-overlay .text-center {
        padding-top: 70px;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    .hero-buttons .btn.me-2 { margin-right: 0 !important; }
    .about-img-secondary { display: none; }
    .booking-widget { padding: 1.5rem; }
    .gallery-item { flex: 0 0 240px; height: 180px; }
    .gallery-scroll-btn { width: 36px; height: 36px; font-size: 1rem; }

    /* Reduce Bootstrap row gaps on mobile */
    .row.g-5 { --bs-gutter-y: 1.5rem; }
    .section-about .row { --bs-gutter-y: 2rem; }
}

@media (max-width: 480px) {
    .gallery-item { flex: 0 0 200px; height: 150px; }
    .program-card { padding: 1.5rem; }
}
