/* ============================================
   Windsor Academy - Modern Navy & White Theme
   ============================================ */
:root {
    --navy: #0A2540;
    --navy-dark: #061628;
    --navy-light: #143A5C;
    --white: #FFFFFF;
    --off-white: #F7F9FC;
    --light-gray: #E8EEF4;
    --medium-gray: #6B7C8F;
    --text: #1A2B3C;
    --text-light: #4A5B6C;
    --border: #D0D9E4;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

iframe {
    max-width: 100%;
}

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

a:hover {
    color: var(--navy-light);
}

ul,
ol {
    list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3.5rem 0;
}

.bg-navy {
    background: var(--navy);
    color: var(--white);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy p {
    color: var(--white);
}

.bg-off {
    background: var(--off-white);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer .logo img {
    height: 50px;
}

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

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

.nav a:hover,
.nav a.active {
    color: var(--navy);
}

.nav a.btn,
.nav-cta a.btn {
    font-weight: 600;
    font-size: 1rem;
}

.nav a.btn-primary,
.nav-cta a.btn-primary {
    color: var(--white);
}

.nav a.btn-primary:hover,
.nav a.btn-primary:focus-visible,
.nav-cta a.btn-primary:hover,
.nav-cta a.btn-primary:focus-visible,
.nav a.btn-outline:hover,
.nav a.btn-outline:focus-visible,
.nav-cta a.btn-outline:hover,
.nav-cta a.btn-outline:focus-visible {
    color: var(--white);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* Same shape as a.btn; higher specificity so .nav a doesn't turn the label gray */
a.btn-support,
.nav a.btn-support,
.nav-cta a.btn-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

a.btn-support:hover,
a.btn-support:focus-visible,
.nav a.btn-support:hover,
.nav a.btn-support:focus-visible,
.nav-cta a.btn-support:hover,
.nav-cta a.btn-support:focus-visible {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
    text-decoration: none;
}

/* Hamburger → X when open */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== VALUE CARDS ========== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 37, 64, 0.14);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.value-card p {
    font-size: 0.95rem;
    margin: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: none;

    /* remove the previous 700px limit */
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-logo img {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        order: -1;

        /* logo on top on mobile */
        margin-bottom: 1.5rem;
    }

    .hero-logo img {
        max-width: 260px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

/* ========== TWO COLUMN ========== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.img-placeholder {
    background: var(--light-gray);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-weight: 500;
    border: 1px solid var(--border);
    overflow: hidden;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ========== FEATURES / ACADEMICS ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 1rem 0 0.5rem;
}

/* ========== CTA BAND ========== */
.cta-band {
    background: var(--navy);
    padding: 4.5rem 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

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

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    max-width: 280px;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    background: var(--navy);
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ADMISSIONS TABLE ========== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tuition-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    margin: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.tuition-table th,
.tuition-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tuition-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

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

.tuition-table tr:hover td {
    background: var(--off-white);
}

/* ========== PROCESS STEPS ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .two-col,
    .two-col.reverse,
    .feature-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-inner {
        height: 76px;
        position: relative;
    }

    .logo img {
        height: 46px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile nav open state */
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.25rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
        z-index: 1000;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .nav.open a {
        padding: 0.75rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav.open a:last-of-type {
        border-bottom: none;
    }

    .nav.open .nav-cta {
        flex-direction: column;
        width: 100%;
        margin-top: 0.75rem;
        gap: 0.75rem;
    }

    .nav.open .nav-cta .btn,
    .nav.open a.btn-support {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-sm {
        padding: 2.5rem 0;
    }

    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .value-grid {
        margin-top: -1.5rem;
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 1.5rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .hero-stats {
        gap: 1.25rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .tuition-table th,
    .tuition-table td {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    /* Prevent horizontal scroll from long words / content */
    .hero h1,
    .page-hero h1 {
        word-break: break-word;
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .nav a,
    .mobile-toggle {
        min-height: 44px;
    }
}

/* ========== ACADEMIC CALENDAR ========== */
.calendar-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cal-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--navy);
    color: var(--white);
}

.cal-header h2 {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
}

.cal-nav-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.22);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}

.cal-weekdays span {
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    padding: 1px;
}

.cal-day {
    background: var(--white);
    min-height: 72px;
    padding: 0.4rem;
    position: relative;
    cursor: default;
}

.cal-day.empty {
    background: var(--off-white);
}

.cal-day-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.cal-day.today .cal-day-num {
    background: var(--navy);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cal-event-dot {
    display: block;
    width: 100%;
    font-size: 0.65rem;
    line-height: 1.3;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cal-event-dot.holiday {
    background: #FEE2E2;
    color: #991B1B;
}

.cal-event-dot.break {
    background: #DBEAFE;
    color: #1E40AF;
}

.cal-event-dot.academic {
    background: #D1FAE5;
    color: #065F46;
}

.cal-event-dot.office {
    background: #F3F4F6;
    color: #4B5563;
}

.cal-event-dot.special {
    background: #EDE9FE;
    color: #5B21B6;
}

.cal-event-dot.shooting {
    background: #e2e8f0;
    color: #334155;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 0;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cal-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.cal-legend-swatch.holiday {
    background: #FECACA;
}

.cal-legend-swatch.break {
    background: #BFDBFE;
}

.cal-legend-swatch.academic {
    background: #A7F3D0;
}

.cal-legend-swatch.office {
    background: #D1D5DB;
}

.cal-legend-swatch.special {
    background: #DDD6FE;
}

.event-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 640px;
    overflow-y: auto;
}

.event-list-header {
    padding: 1.25rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
}

.event-list-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.event-item {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background: var(--off-white);
}

.event-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.event-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.event-type-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-type-tag.holiday {
    background: #FEE2E2;
    color: #991B1B;
}

.event-type-tag.break {
    background: #DBEAFE;
    color: #1E40AF;
}

.event-type-tag.academic {
    background: #D1FAE5;
    color: #065F46;
}

.event-type-tag.office {
    background: #F3F4F6;
    color: #4B5563;
}

.event-type-tag.special {
    background: #EDE9FE;
    color: #5B21B6;
}

.cal-selected-info {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-height: 60px;
}

.cal-selected-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cal-selected-info p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .cal-day {
        min-height: 56px;
    }

    .cal-event-dot {
        font-size: 0.6rem;
    }

    .event-list {
        max-height: 420px;
    }
}

@media (max-width: 600px) {
    .cal-day {
        min-height: 48px;
        padding: 0.25rem;
    }

    .cal-event-dot {
        display: none;
    }

    .cal-day.has-events::after {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background: var(--navy);
        border-radius: 50%;
        margin: 2px auto 0;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .pillar-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
}

/* Dynamic weekday labels: full on desktop, single letter when calendar contracts */
.cal-weekdays .wd-short {
    display: none;
}

.cal-weekdays .wd-long {
    display: inline;
}

@media (max-width: 600px) {
    .cal-weekdays .wd-long {
        display: none;
    }

    .cal-weekdays .wd-short {
        display: inline;
    }

    .cal-weekdays span {
        font-size: 0.7rem;
        padding: 0.5rem 0;
    }
}

/* —— TH@W: This Week @ Windsor —— */
.thaw-section {
    background: var(--off-white, #F7F9FC);
}

.thaw-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.thaw-title-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.thaw-title-mark .thaw-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy, #0A2540);
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
}

.thaw-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--text-light, #4A5B6C);
}

.thaw-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.thaw-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.thaw-swatch.events {
    background: #2563eb;
}

.thaw-swatch.athletics {
    background: #16a34a;
}

.thaw-swatch.lunchroom {
    background: #ea580c;
}

.thaw-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-gray, #6B7C8F);
    min-height: 1.3em;
    margin-bottom: 0.85rem;
}

.thaw-status.error {
    color: #b91c1c;
}

.thaw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.thaw-nav-btn {
    appearance: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy, #0A2540);
    background: var(--white, #fff);
    border: 1px solid var(--border, #D0D9E4);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.thaw-nav-btn:hover:not(:disabled) {
    border-color: var(--navy, #0A2540);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.1);
}

.thaw-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.thaw-nav-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy, #0A2540);
    min-width: 7rem;
    text-align: center;
}

.thaw-week {
    background: var(--white, #fff);
    border: 1px solid var(--border, #D0D9E4);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 4px 20px rgba(10, 37, 64, 0.08));
    overflow: hidden;
}

.thaw-week-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.95rem 1.25rem;
    background: var(--navy, #0A2540);
    color: #fff;
}

.thaw-week-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
}

.thaw-week-range {
    font-size: 0.85rem;
    opacity: 0.85;
}

.thaw-days {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border, #D0D9E4);
}

.thaw-day {
    background: var(--white, #fff);
    min-height: 120px;
    padding: 0.65rem 0.55rem;
}

.thaw-day.is-today {
    background: #f0f7ff;
    box-shadow: inset 0 0 0 2px var(--navy, #0A2540);
}

.thaw-day-head {
    margin-bottom: 0.45rem;
}

.thaw-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--medium-gray, #6B7C8F);
    margin-bottom: 0.15rem;
}

.thaw-day-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy, #0A2540);
}

.thaw-day.is-today .thaw-day-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--navy, #0A2540);
    color: #fff;
    font-size: 0.85rem;
}

.thaw-day-body {
    display: block;
}

.thaw-event {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.28rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-weight: 500;
    word-break: break-word;
}

.thaw-event.events {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

.thaw-event.athletics {
    background: #dcfce7;
    color: #166534;
    border-left: 3px solid #16a34a;
}

.thaw-event.lunchroom {
    background: #ffedd5;
    color: #9a3412;
    border-left: 3px solid #ea580c;
}

.thaw-event-time {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 0.1rem;
}

.thaw-empty {
    font-size: 0.78rem;
    color: var(--medium-gray, #6B7C8F);
    font-style: italic;
}

.thaw-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.thaw-footer a {
    font-weight: 600;
    color: var(--navy, #0A2540);
}

/* Tablet: 3 columns */
@media (max-width: 900px) {
    .thaw-days {
        grid-template-columns: repeat(3, 1fr);
    }

    .thaw-day {
        min-height: 110px;
        padding: 0.75rem 0.65rem;
    }

    .thaw-event {
        font-size: 0.78rem;
        padding: 0.35rem 0.45rem;
    }
}

/* Phone: stacked list — readable, full-width day rows */
@media (max-width: 640px) {
    .thaw-header {
        margin: 0 auto 1.15rem;
        padding: 0 0.25rem;
    }

    .thaw-header h2 {
        font-size: 1.45rem;
    }

    .thaw-header p {
        font-size: 0.95rem;
    }

    .thaw-legend {
        gap: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .thaw-nav {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
        padding: 0 0.15rem;
    }

    .thaw-nav-btn {
        flex: 0 0 auto;
        min-height: 44px;
        min-width: 44px;
        padding: 0.55rem 0.9rem;
        font-size: 0.88rem;
    }

    .thaw-nav-label {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.88rem;
    }

    .thaw-week {
        border-radius: 10px;
    }

    .thaw-week-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.9rem 1rem;
    }

    .thaw-week-header h3 {
        font-size: 1rem;
    }

    .thaw-week-range {
        font-size: 0.82rem;
    }

    .thaw-days {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: transparent;
    }

    .thaw-day {
        display: grid;
        grid-template-columns: 4.25rem 1fr;
        gap: 0.65rem;
        align-items: start;
        min-height: 0;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border, #D0D9E4);
        box-shadow: none;
    }

    .thaw-day:last-child {
        border-bottom: none;
    }

    .thaw-day.is-today {
        background: #f0f7ff;
        box-shadow: inset 3px 0 0 var(--navy, #0A2540);
    }

    .thaw-day-head {
        margin-bottom: 0;
    }

    .thaw-day-label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .thaw-day-date {
        font-size: 1.15rem;
    }

    .thaw-day.is-today .thaw-day-date {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }

    .thaw-event {
        font-size: 0.88rem;
        line-height: 1.4;
        padding: 0.45rem 0.55rem;
        margin-bottom: 0.4rem;
    }

    .thaw-event:last-child {
        margin-bottom: 0;
    }

    .thaw-event-time {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .thaw-empty {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .thaw-footer {
        margin-top: 1rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 400px) {
    .thaw-day {
        grid-template-columns: 3.6rem 1fr;
        padding: 0.75rem 0.85rem;
        gap: 0.5rem;
    }

    .thaw-event {
        font-size: 0.84rem;
    }

    .thaw-nav-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.82rem;
    }
}

/* ============================================
   Fall Raffle band — aligned with giving.waknights.com
   Mobile-first; stacks on phones, 3-up on tablet+
   ============================================ */
.raffle-band {
    background: linear-gradient(160deg, #3a1f12 0%, var(--navy-dark) 55%, var(--navy) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0 2.35rem;
    overflow-x: clip;
}

.raffle-band .container {
    min-width: 0;
    max-width: 100%;
}

.raffle-band h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    line-height: 1.15;
    margin: 0 auto;
    max-width: 18ch;
}

.raffle-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f3d19a;
    margin: 0 0 0.65rem;
}

.raffle-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem 0.45rem;
    margin: 0.7rem auto 0;
    font-weight: 600;
    color: #f3d19a;
    font-size: 0.95rem;
    line-height: 1.4;
}

.raffle-price-sep {
    opacity: 0.7;
}

.raffle-ticket-link {
    display: block;
    margin: 1.1rem auto 0;
    max-width: 1100px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    outline: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-tap-highlight-color: transparent;
}

.raffle-ticket-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.prize-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1rem;
    min-width: 0;
}

.prize-card {
    background: #f7f0e1;
    color: var(--navy);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2d3b3;
    text-align: left;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.65rem;
    min-width: 0;
}

.prize-place,
.prize-label,
.prize-amt {
    margin: 0;
    min-width: 0;
}

.prize-place {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9b1c2c;
    line-height: 1;
}

.prize-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6a7a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prize-amt {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
    justify-self: end;
}

.raffle-total {
    margin: 1.1rem auto 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.15rem;
}

.raffle-total strong {
    color: #f3d19a;
}

.raffle-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin: 1.35rem auto 0;
    width: 100%;
    max-width: 22rem;
}

.raffle-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
}

@media (max-width: 379px) {
    .raffle-kicker {
        letter-spacing: 0.06em;
        font-size: 0.68rem;
    }

    .prize-card {
        padding: 0.7rem 0.75rem;
        column-gap: 0.45rem;
    }

    .prize-label {
        letter-spacing: 0.04em;
    }

    .prize-amt {
        font-size: 1.05rem;
    }
}

@media (min-width: 640px) {
    .raffle-band {
        padding: 3.5rem 0 4rem;
    }

    .raffle-kicker {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }

    .raffle-price {
        font-size: 1.05rem;
    }

    .raffle-ticket-link {
        margin-top: 1.25rem;
        border-radius: var(--radius);
    }

    .prize-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        margin-top: 1.75rem;
    }

    .prize-card {
        display: block;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .prize-place {
        font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    }

    .prize-label {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.75rem;
        white-space: normal;
    }

    .prize-amt {
        display: block;
        margin-top: 0.4rem;
        font-size: clamp(1.25rem, 3vw, 1.85rem);
        justify-self: auto;
    }

    .raffle-total {
        font-size: 1.05rem;
        margin-top: 1.25rem;
    }

    .raffle-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
        margin-top: 1.75rem;
        gap: 0.85rem;
    }

    .raffle-actions .btn {
        width: auto;
        min-height: 0;
        padding: 1.1rem 2.25rem;
        font-size: 1.1rem;
    }
}