/* ============================================
   Middle School Template Custom Styles
   Description: K-12 Middle School website template with
   school spirit colors, parent-friendly design, and
   student engagement features
   ============================================ */

/* ============================================
   CSS Custom Variables - School Theme
   ============================================ */
:root {
    /* School Color Palette */
    --school-primary: #2563eb;      /* Royal Blue */
    --school-secondary: #f59e0b;    /* Gold/Orange */
    --school-accent: #10b981;       /* Fresh Green */
    --school-navy: #1e3a8a;         /* Dark Navy */
    --school-light: #dbeafe;        /* Light Blue */
    --school-cream: #fef3c7;        /* Cream */

    /* Gradients */
    --school-gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    --school-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --school-gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);

    /* Typography */
    --heading-font-weight: 700;
    --body-font-weight: 400;
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Navigation Enhancements
   ============================================ */
.rsl-navbar {
    background: var(--school-navy) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.rsl-navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--heading-font-weight);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rsl-navbar-brand i {
    font-size: 2rem;
    color: var(--school-secondary);
}

.rsl-navbar-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.rsl-navbar-link:hover,
.rsl-navbar-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px;
}

.rsl-navbar-link.active {
    color: #ffffff !important;
    background: var(--school-primary);
    border-radius: 6px;
}

/* Portal Button in Nav */
.portal-button {
    background: var(--school-secondary) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 1rem;
}

.portal-button:hover {
    background: #ea580c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--school-gradient-hero);
    z-index: 1;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3rem 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: var(--heading-font-weight);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-section .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-group .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--school-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--school-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1d4ed8 !important;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--school-secondary) !important;
    color: #ffffff !important;
    border: 2px solid var(--school-secondary);
}

.btn-accent:hover,
.btn-accent:focus {
    background: #ea580c !important;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ============================================
   Section Styling
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--school-navy);
    margin-bottom: 1rem;
    font-weight: var(--heading-font-weight);
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Stats Cards
   ============================================ */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--school-primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.stat-icon {
    font-size: 3rem;
    color: var(--school-secondary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--school-navy);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Event Cards
   ============================================ */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--school-accent);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.event-date {
    background: var(--school-gradient-primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.event-date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-date-month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    margin: 0 0 0.75rem 0;
    color: var(--school-navy);
    font-size: 1.25rem;
}

.event-content p {
    color: #64748b;
    margin: 0 0 1rem 0;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.event-meta i {
    color: var(--school-primary);
}

/* ============================================
   Program/Club Cards
   ============================================ */
.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.program-image {
    width: 100%;
    height: 200px;
    background: var(--school-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.program-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    margin: 0 0 1rem 0;
    color: var(--school-navy);
    font-size: 1.5rem;
}

.program-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    flex: 1;
}

.program-content .btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
}

/* ============================================
   Custom Announcement Slider
   ============================================ */
.announcement-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.announcement-slides {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.announcement-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.announcement-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.announcement-content {
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
}

.announcement-content h3 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: white;
}

.announcement-content p {
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    color: white;
}

.announcement-prev,
.announcement-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.announcement-prev:hover,
.announcement-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.announcement-prev {
    left: -60px;
}

.announcement-next {
    right: -60px;
}

.announcement-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.announcement-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.announcement-dot.active {
    background: var(--school-primary);
    width: 32px;
    border-radius: 6px;
}

/* Mobile adjustments for slider */
@media (max-width: 1024px) {
    .announcement-prev {
        left: 10px;
    }

    .announcement-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .announcement-prev,
    .announcement-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .announcement-content h3 {
        font-size: 1.5rem;
    }

    .announcement-content p {
        font-size: 1rem;
    }

    .announcement-content {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   Inlay Alerts (Home Page Announcements)
   ============================================ */
.announcements-grid {
    display: grid;
    gap: 1.5rem;
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    background: var(--school-light);
    padding: 4rem 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Info Boxes
   ============================================ */
.info-box {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--school-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-box h3 {
    margin-top: 0;
    color: var(--school-navy);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: var(--school-secondary);
}

.info-box.success {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--school-accent);
}

/* ============================================
   Form Styling
   ============================================ */
.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.login-form-container h2 {
    text-align: center;
    color: var(--school-navy);
    margin-bottom: 2rem;
}

.form-links {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.form-link {
    color: var(--school-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: var(--school-secondary);
    text-decoration: underline;
}

.form-link-divider {
    margin: 0 0.75rem;
    color: #94a3b8;
}

[data-theme="dark"] .form-links {
    background: #0f172a;
}

[data-theme="dark"] .login-form-container h2 {
    color: #f1f5f9;
}

/* ============================================
   Choice Cards (Parent Quick Links)
   ============================================ */
.choice-card-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   Staff Card
   ============================================ */
.staff-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--school-gradient-primary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.staff-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--school-navy);
}

.staff-card .staff-title {
    color: var(--school-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.staff-card .staff-email {
    color: #64748b;
    font-size: 0.875rem;
}

/* ============================================
   Footer Styling
   ============================================ */
.site-footer {
    background: var(--school-navy);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
}

.footer-grid {
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--school-secondary);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--school-secondary);
}

.footer-motto {
    font-style: italic;
    color: var(--school-cream);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.social-icons a:hover {
    background: var(--school-secondary);
    transform: translateY(-4px);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 1rem;
}

.footer-bottom a:hover {
    color: var(--school-secondary);
}

/* ============================================
   Calendar Events
   ============================================ */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calendar-event-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    transition: all 0.3s ease;
    border-left: 4px solid var(--school-primary);
}

.calendar-event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.event-date {
    background: var(--school-gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
}

.event-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    display: block;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-top: 0.25rem;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

.event-details h4 {
    margin: 0 0 0.75rem 0;
    color: var(--school-navy);
    font-size: 1.25rem;
}

.event-details p {
    margin: 0.5rem 0;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details p:last-child {
    margin-top: 1rem;
}

.event-details i {
    color: var(--school-primary);
    width: 16px;
}

/* ============================================
   Photo Gallery
   ============================================ */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: white;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   RSL Cards
   ============================================ */
.rsl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rsl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rsl-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.rsl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsl-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rsl-card-content h3 {
    color: var(--school-navy);
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.rsl-card-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.rsl-card-content .btn {
    margin-top: auto;
}

/* Dark mode for cards */
[data-theme="dark"] .rsl-card {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .rsl-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .rsl-card-image {
    background: #0f172a;
}

[data-theme="dark"] .rsl-card-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .rsl-card-content p {
    color: #94a3b8;
}

/* ============================================
   Resource Link Cards
   ============================================ */
.resource-link-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.resource-link-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.resource-link-card i {
    font-size: 2.5rem;
    color: var(--school-secondary);
}

.resource-link-card h4 {
    margin: 0;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   Quick Links Choice Cards (RSL Card Component)
   ============================================ */
.quick-link-card {
    text-align: center;
}

.quick-link-card .card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem 1rem;
    background: transparent;
    border: none;
}

.quick-link-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.quick-link-icon i {
    font-size: 1.75rem;
    color: white;
}

.quick-link-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--school-navy);
    padding: 0 1.5rem;
}

.quick-link-card .card-body {
    padding: 0.75rem 1.5rem;
}

.quick-link-card .card-body p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quick-link-card .card-footer {
    padding: 1rem 1.5rem 1.5rem;
    background: transparent;
    border: none;
}

.quick-link-arrow {
    color: var(--school-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.quick-link-arrow:hover {
    color: var(--school-secondary);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dark theme for quick link cards */
[data-theme="dark"] .quick-link-card .card-title {
    color: #f1f5f9;
}

[data-theme="dark"] .quick-link-card .card-body p {
    color: #cbd5e1;
}

/* ============================================
   Filter Checkboxes (Off-Canvas)
   ============================================ */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--school-navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-checkbox:hover {
    background: #f8fafc;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--school-primary);
}

.filter-checkbox span {
    color: #334155;
    font-size: 0.9375rem;
}

/* ============================================
   Content Section
   ============================================ */
.content-section {
    padding: 4rem 2rem;
}

/* ============================================
   Communication Cards
   ============================================ */
.communication-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.communication-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.comm-icon {
    font-size: 3rem;
    color: var(--school-secondary);
    margin-bottom: 1rem;
}

.communication-card h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.communication-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.text-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.text-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

/* ============================================
   Mission & Vision Cards
   ============================================ */
.mission-vision-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--school-primary);
}

.mission-vision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.mv-icon {
    font-size: 3.5rem;
    color: var(--school-secondary);
    margin-bottom: 1.5rem;
}

.mission-vision-card h3 {
    color: var(--school-navy);
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
}

.mission-vision-card p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* ============================================
   Value Badges
   ============================================ */
.value-badge {
    background: var(--school-gradient-primary);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.value-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.value-badge i {
    font-size: 2rem;
    color: var(--school-secondary);
}

.value-badge span {
    font-weight: 600;
    font-size: 1.0625rem;
}

/* ============================================
   Staff Cards
   ============================================ */
.staff-phone {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.staff-card .btn {
    margin-top: 1rem;
}

/* ============================================
   Accordion Styling
   ============================================ */
.accordion-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--school-primary);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
}

.accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: white;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--school-navy);
    transition: all 0.3s ease;
    position: relative;
}

.accordion-title:hover {
    background: #f8fafc;
    color: var(--school-primary);
}

.accordion-title:focus {
    outline: 2px solid var(--school-primary);
    outline-offset: -2px;
}

.accordion-title i {
    margin-right: 0.75rem;
    color: var(--school-secondary);
    font-size: 1.25rem;
}

/* Chevron icon */
.accordion-title::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--school-primary);
    transition: transform 0.3s ease;
}

.accordion-title[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.open {
    padding: 1.5rem 2rem 2rem 2rem;
    max-height: 2000px;
    opacity: 1;
}

.accordion-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.accordion-content strong {
    color: var(--school-navy);
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.accordion-content strong:first-child {
    margin-top: 0;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.accordion-content ul li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: #475569;
    line-height: 1.6;
}

.accordion-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--school-accent);
    font-size: 0.875rem;
}

/* ============================================
   Off-Canvas Panel Overrides
   ============================================ */

/* Ensure off-canvas appears above navbar */
.off-canvas-overlay {
    z-index: 10500 !important;
}

.off-canvas {
    z-index: 10600 !important;
}

/* Off-canvas header and body will get backgrounds from JavaScript */
.off-canvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* Text color overrides for theme support */
[data-theme="light"] .off-canvas h1,
[data-theme="light"] .off-canvas h2,
[data-theme="light"] .off-canvas h3,
[data-theme="light"] .off-canvas h4 {
    color: var(--school-navy);
}

[data-theme="light"] .off-canvas p {
    color: #475569;
}

[data-theme="light"] .off-canvas-close {
    color: #64748b;
}

[data-theme="light"] .off-canvas-close:hover {
    color: var(--school-primary);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

[data-theme="dark"] .off-canvas h1,
[data-theme="dark"] .off-canvas h2,
[data-theme="dark"] .off-canvas h3,
[data-theme="dark"] .off-canvas h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .off-canvas p {
    color: #cbd5e1;
}

[data-theme="dark"] .off-canvas-close {
    color: #94a3b8;
}

[data-theme="dark"] .off-canvas-close:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Button overrides inside off-canvas for both themes */
[data-theme="light"] .off-canvas .btn-secondary {
    background: transparent !important;
    color: var(--school-primary) !important;
    border: 2px solid var(--school-primary);
}

[data-theme="light"] .off-canvas .btn-secondary:hover {
    background: var(--school-primary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .off-canvas .btn-secondary {
    background: transparent !important;
    color: #38bdf8 !important;
    border: 2px solid #38bdf8;
}

[data-theme="dark"] .off-canvas .btn-secondary:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
}

/* Filter section styling */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--school-secondary);
}

[data-theme="dark"] .filter-section h4 {
    color: var(--school-accent);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    padding-left: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--school-primary);
}

.filter-checkbox span {
    font-size: 0.9375rem;
}

[data-theme="light"] .filter-checkbox span,
body:not([data-theme="dark"]) .filter-checkbox span {
    color: #334155;
}

[data-theme="dark"] .filter-checkbox span {
    color: #cbd5e1;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--school-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    min-width: 120px;
    background: var(--school-gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--school-accent);
}

.timeline-content h3 {
    margin: 0 0 1rem 0;
    color: var(--school-navy);
    font-size: 1.375rem;
}

.timeline-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   Contact Info Cards
   ============================================ */
.contact-info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-icon {
    font-size: 3rem;
    color: var(--school-secondary);
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    line-height: 1.7;
}

.contact-info-card p strong {
    color: white;
}

/* ============================================
   Form Download List
   ============================================ */
.form-download-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--school-primary);
    gap: 1.5rem;
}

.form-info {
    flex: 1;
}

.form-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--school-navy);
    font-size: 1.125rem;
}

.form-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9375rem;
}

.form-download-item .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .hero-cta-group .btn {
        width: auto;
        min-width: 200px;
        max-width: 85%;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .portal-button {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .calendar-event-item {
        flex-direction: column;
    }

    .event-date {
        min-width: 100%;
        padding: 1rem;
    }

    .event-date .day {
        font-size: 2rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .form-download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-download-item .btn {
        width: 100%;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        min-width: 80px;
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }

    .timeline-content {
        width: 100%;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */
[data-theme="dark"] body {
    background-color: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .section-alt {
    background: #1e293b;
}

[data-theme="dark"] .section-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .section-header p {
    color: #94a3b8;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .staff-card {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .event-content h3,
[data-theme="dark"] .program-content h3,
[data-theme="dark"] .staff-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .event-content p,
[data-theme="dark"] .event-meta,
[data-theme="dark"] .program-content p,
[data-theme="dark"] .staff-card .staff-email {
    color: #94a3b8;
}

[data-theme="dark"] .login-form-container {
    background: #1e293b;
}

[data-theme="dark"] .info-box {
    background: rgba(37, 99, 235, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .info-box.warning {
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .info-box.success {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .btn-primary {
    background: var(--school-primary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-accent {
    background: var(--school-secondary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .video-section {
    background: #1e293b;
}

[data-theme="dark"] .calendar-event-item {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .event-details h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .event-details p {
    color: #94a3b8;
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .filter-section h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .filter-checkbox:hover {
    background: #334155;
}

[data-theme="dark"] .filter-checkbox span {
    color: #cbd5e1;
}

[data-theme="dark"] .form-download-item {
    background: #334155;
}

[data-theme="dark"] .form-info h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .form-info p {
    color: #94a3b8;
}

[data-theme="dark"] .mission-vision-card {
    background: #1e293b;
}

[data-theme="dark"] .mission-vision-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .mission-vision-card p {
    color: #94a3b8;
}

[data-theme="dark"] .timeline-content {
    background: #1e293b;
}

[data-theme="dark"] .timeline-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .timeline-content p {
    color: #94a3b8;
}

[data-theme="dark"] .accordion-item {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .accordion-title {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .accordion-title:hover {
    background: #334155;
}

[data-theme="dark"] .accordion-content p {
    color: #cbd5e1;
}

[data-theme="dark"] .accordion-content strong {
    color: #e2e8f0;
}

[data-theme="dark"] .accordion-content ul li {
    color: #cbd5e1;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .rsl-navbar,
    .hero-cta-group,
    .site-footer {
        display: none;
    }

    .hero-section {
        background: none;
        color: #000;
        min-height: auto;
    }

    .hero-section::before {
        display: none;
    }
}

/* ===================================
   ACCESSIBILITY WIDGET THEME OVERRIDES
   Matching Middle School Colors
   =================================== */
:root {
    --rsl-a11y-primary: #2563eb;
    --rsl-a11y-primary-dark: #1e3a8a;
    --rsl-a11y-primary-light: #3b82f6;
    --rsl-a11y-secondary: #f59e0b;
    --rsl-a11y-button-gradient: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    --rsl-a11y-button-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    --rsl-a11y-button-shadow-hover: 0 6px 24px rgba(37, 99, 235, 0.5);
    --rsl-a11y-header-gradient: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    --rsl-a11y-toggle-gradient: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    --rsl-a11y-success: #10b981;
}

/* ===================================
   CALENDAR THEME OVERRIDES
   School-branded dark mode colors
   =================================== */
[data-theme="dark"] {
    /* Calendar background with school navy tint */
    --rsl-calendar-bg: #0f172a;
    --rsl-calendar-border: #1e3a8a;
    --rsl-calendar-header-bg: #1e293b;
    --rsl-calendar-header-text: #e2e8f0;

    /* Cell colors with school blue tints */
    --rsl-calendar-cell-bg: #0f172a;
    --rsl-calendar-cell-hover: rgba(37, 99, 235, 0.15);
    --rsl-calendar-cell-selected: rgba(37, 99, 235, 0.25);
    --rsl-calendar-cell-today: rgba(245, 158, 11, 0.15);
    --rsl-calendar-cell-outside: #0c1222;
    --rsl-calendar-weekend-bg: rgba(30, 58, 138, 0.1);

    /* Text colors */
    --rsl-calendar-text: #e2e8f0;
    --rsl-calendar-text-muted: #94a3b8;
    --rsl-calendar-text-outside: #475569;

    /* Toolbar with school gradient hint */
    --rsl-calendar-toolbar-bg: #1e293b;
    --rsl-calendar-toolbar-border: #1e3a8a;
    --rsl-calendar-btn-bg: rgba(37, 99, 235, 0.1);
    --rsl-calendar-btn-hover: rgba(37, 99, 235, 0.2);
    --rsl-calendar-btn-active: #2563eb;
    --rsl-calendar-btn-active-text: #ffffff;

    /* Event default color - school primary */
    --rsl-calendar-event-default: #2563eb;

    /* Panel styling */
    --rsl-calendar-panel-bg: #1e293b;
    --rsl-calendar-panel-border: #1e3a8a;
    --rsl-calendar-panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    /* Focus states with school colors */
    --rsl-calendar-focus-ring: 0 0 0 3px #2563eb, 0 0 0 6px rgba(37, 99, 235, 0.4);
    --rsl-calendar-focus-ring-inset: inset 0 0 0 3px #2563eb;
}

/* Calendar container border accent */
[data-theme="dark"] .rsl-calendar {
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Calendar toolbar gradient accent line */
[data-theme="dark"] .rsl-calendar-toolbar {
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

/* Today cell highlight with school gold */
[data-theme="dark"] .rsl-calendar-cell.is-today .rsl-calendar-day-number {
    background: var(--school-secondary);
    color: #1e293b;
}

/* Upcoming events panel styling */
[data-theme="dark"] .rsl-calendar-upcoming {
    background: #1e293b;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .rsl-calendar-upcoming-title {
    color: #f1f5f9;
    border-bottom-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .rsl-calendar-upcoming-item {
    border-bottom-color: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .rsl-calendar-upcoming-item:hover {
    background: rgba(37, 99, 235, 0.1);
}
