/* ========================================
   PRISMS Science Bowl - Modern CSS
   Clean, mobile-first architecture
   ======================================== */

/* ============ CSS Variables ============ */
:root {
    /* PRISMS Brand Colors */
    --burgundy: #800810;
    --burgundy-light: #a51623;
    --burgundy-dark: #5a0008;
    --gold: #d4af37;
    --cream: #faf9f6;

    /* Medal Colors */
    --silver: #c0c0c0;
    --bronze: #cd7f32;

    /* Functional Colors */
    --blue: #3b82f6;
    --green: #10b981;
    --red: #ef4444;

    /* Neutrals */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --bg-light: #f9fafb;
    --white: #ffffff;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 60px;
    --card-radius: 12px;

    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* ============ Layout ============ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--bg-light);
}

/* ============ Navigation ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 75px;
    width: auto;
    max-width: 800px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
    padding: 8px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 28px;
    color: var(--burgundy);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--bg-light);
    border-color: var(--burgundy);
}

.nav-toggle:active {
    transform: scale(0.95);
}

/* Main content offset for fixed nav */
.main {
    padding-top: 80px;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--burgundy);
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1em;
}

.text-large {
    font-size: 18px;
    line-height: 1.7;
}

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

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    min-height: 44px;
    min-width: 44px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 8, 16, 0.25);
}

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

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
}

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

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============ Hero Section ============ */
.hero,
.page-hero {
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.03) 0%, rgba(165, 22, 35, 0.03) 100%);
    padding: 40px 0;
}

.hero-grid {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1,
.page-hero h1 {
    font-size: 46px;
    color: var(--text-primary);
    animation: slideUp 0.8s ease-out;
}

.hero-content h2,
.page-hero h2 {
    font-size: 24px;
    color: var(--burgundy);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.08) 0%, rgba(165, 22, 35, 0.12) 100%);
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(128, 8, 16, 0.15);
    letter-spacing: 0.3px;
    animation: slideUp 0.8s ease-out 0.15s both;
}

.hero-content .btn-group,
.page-hero .btn-group {
    margin: 25px 0;
}

/* Info Cards in Hero */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(128, 8, 16, 0.15);
    border-color: var(--burgundy);
}

.info-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-content {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

a.info-card-link {
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

a.info-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(128, 8, 16, 0.25);
    border-color: var(--burgundy);
}

a.info-card-link:hover .info-card-action {
    opacity: 1;
    transform: translateY(-2px);
}

.info-card-action {
    font-size: 14px;
    font-weight: 700;
    color: var(--burgundy);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* ============ Key Dates Section ============ */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto;
}

.date-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.date-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(128, 8, 16, 0.15);
    border-color: var(--burgundy);
}

.date-card-highlight {
    background: linear-gradient(135deg, rgba(165, 22, 35, 0.05) 0%, rgba(201, 42, 58, 0.05) 100%);
    border-color: var(--burgundy);
    border-width: 3px;
}

.date-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.date-card-highlight .date-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
}

.date-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.date-card-highlight .date-value {
    font-size: 22px;
    color: var(--burgundy);
}

/* ============ Contact Icons ============ */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

/* ============ Media Coverage ============ */
.media-card-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.media-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    flex-shrink: 0;
}

.media-info {
    flex: 1;
}

.media-title {
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.5;
}

.media-title a {
    transition: opacity 0.3s ease;
}

.media-title a:hover {
    opacity: 0.8;
}

.media-meta {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.media-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* ============ Why Section ============ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(128, 8, 16, 0.15);
    border-color: var(--burgundy);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
}

.why-card h3 {
    color: var(--burgundy);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ============ Acknowledgements Section ============ */
.acknowledgement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.acknowledgement-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.acknowledgement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(128, 8, 16, 0.15);
    border-color: var(--burgundy);
}

.acknowledgement-logo {
    width: 300px;
    height: 240px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acknowledgement-logo-large {
    width: 280px;
}

.acknowledgement-logo-small {
    width: 242px;
    align-items: flex-start;
    padding-top: 35px;
}

.acknowledgement-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.acknowledgement-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.1) 0%, rgba(165, 22, 35, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-size: 48px;
    border: 3px solid rgba(128, 8, 16, 0.2);
}

.acknowledgement-card h3 {
    color: var(--burgundy);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.acknowledgement-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.acknowledgement-card a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ Cards ============ */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(128, 8, 16, 0.12);
    border-color: var(--burgundy);
}

.card h3 {
    color: var(--burgundy);
    margin-bottom: 12px;
}

/* Only apply nowrap to specific sections that need it */
.about-grid .card h3 {
    white-space: nowrap;
}

/* Allow media titles to wrap */
.card .media-title,
.card h3.media-title,
.card .media-title a {
    white-space: normal !important;
    overflow-wrap: break-word;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* About grid - 4 columns */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Utility classes for common inline styles */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.text-nowrap-override {
    white-space: normal !important;
}

.external-link-icon {
    font-size: 0.8em;
    margin-left: 5px;
}

.card-special-border {
    border: 3px solid var(--burgundy);
    background: linear-gradient(135deg, rgba(165, 22, 35, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.text-italic-primary {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.text-weight-600-secondary {
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-text-light {
    color: rgba(255, 255, 255, 0.9);
}

/* ============ Schedule Cards ============ */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--card-radius);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(128, 8, 16, 0.12);
    border-color: var(--burgundy);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.schedule-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.schedule-icon.burgundy {
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
}

.schedule-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.schedule-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.schedule-icon.gold {
    background: linear-gradient(135deg, var(--gold) 0%, #c9a635 100%);
}

.schedule-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--burgundy);
}

.schedule-time {
    font-size: 14px;
    color: var(--text-secondary);
}

.schedule-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

/* ============ Stats Section ============ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.08) 0%, rgba(165, 22, 35, 0.08) 100%);
    border-radius: var(--card-radius);
    margin: 30px 0;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ============ Photo Grid ============ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.photo-item {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ============ Testimonial ============ */
.testimonial {
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    border-radius: var(--card-radius);
    padding: 40px;
    color: var(--white);
    position: relative;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(128, 8, 16, 0.2);
}

.testimonial-quote {
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 16px;
}

.quote-icon {
    font-size: 36px;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 30px;
}

.testimonial-blue {
    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
}

/* ============ Team Section ============ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

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

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.team-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.team-email a {
    color: var(--burgundy);
    transition: color 0.3s;
}

.team-email a:hover {
    color: var(--burgundy-light);
}

/* ============ Footer ============ */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    display: inline-block;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.footer-logo img {
    height: 40px;
    margin: 0 auto;
    display: block;
}

.footer-address {
    margin: 15px 0;
    font-size: 15px;
}

.footer-address a {
    color: var(--white);
    transition: color 0.3s;
}

.footer-address a:hover {
    color: var(--burgundy-light);
}

.footer-events {
    margin: 20px 0;
}

.footer-events-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-event-link {
    display: inline-block;
    color: var(--white);
    font-size: 15px;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.footer-event-link:hover {
    color: var(--burgundy-light);
    transform: translateX(5px);
}

.footer-event-link i {
    margin-right: 6px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

/* ============ Map ============ */
.map-container {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--burgundy);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ============ Accent Section ============ */
.accent-section {
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.05) 0%, rgba(165, 22, 35, 0.05) 100%);
    border-left: 4px solid var(--burgundy);
}

/* ============ Utilities ============ */
/* Margin utilities */
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width utilities */
.w-full { width: 100%; }

/* Max-width containers */
.max-width-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.max-width-1000 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Display utilities */
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Icon color utilities */
.icon-burgundy {
    color: var(--burgundy);
}

.text-burgundy {
    color: var(--burgundy);
}

.text-burgundy-bold {
    color: var(--burgundy);
    font-weight: 600;
}

.card-accent-bg {
    background: linear-gradient(135deg, rgba(128, 8, 16, 0.05) 0%, rgba(165, 22, 35, 0.05) 100%);
}

/* Text color utilities */
.text-secondary {
    color: var(--text-secondary);
}

.text-gold {
    color: var(--gold);
}

.text-blue {
    color: var(--blue);
}

/* ============ Accessibility ============ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--burgundy);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--burgundy);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--burgundy-light);
    outline-offset: 4px;
}

/* ============ Register Page Styles ============ */
.countdown-timer {
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    text-align: center;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 4px 16px rgba(128, 8, 16, 0.2);
}

.countdown-timer h3 {
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.countdown-timer p {
    color: var(--white);
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.timer-display {
    font-size: 36px;
    font-weight: 800;
    margin: 15px 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
}

.checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--burgundy);
}

.form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--card-radius);
    border: 3px solid var(--burgundy);
    box-shadow: 0 4px 16px rgba(128, 8, 16, 0.1);
}

.form-container iframe {
    width: 100%;
    height: 1400px;
    border: none;
    border-radius: 8px;
    background: white;
}

/* FAQ Grid - 3 columns for balanced layout */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Registration FAQ Grid - 2 columns */
.faq-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============ Archive Page Styles ============ */
.archive-hero {
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    box-shadow: 0 4px 16px rgba(128, 8, 16, 0.2);
}

.archive-hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.archive-hero p {
    color: var(--white);
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.winners-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px auto;
    max-width: 900px;
}

.podium-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 3px solid;
    text-align: center;
    position: relative;
}

.podium-card.first {
    border-color: var(--gold);
    transform: scale(1.05);
}

.podium-card.second {
    border-color: var(--silver);
}

.podium-card.third {
    border-color: var(--bronze);
}

.podium-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.podium-card.first .podium-icon {
    color: var(--gold);
}

.podium-card.second .podium-icon {
    color: var(--silver);
}

.podium-card.third .podium-icon {
    color: var(--bronze);
}

.podium-place {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.podium-team {
    font-size: 22px;
    font-weight: 800;
    color: var(--burgundy);
}

.podium-school {
    color: var(--text-secondary);
    margin-top: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Table wrapper for horizontal scroll on mobile */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.standings-table th {
    background: var(--burgundy);
    color: var(--white);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
}

.standings-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

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

.standings-table tr:hover {
    background: var(--bg-light);
    transition: background 0.2s ease;
}

.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: var(--burgundy);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

/* CTA Section (used on archive page) */
.cta-section {
    background: linear-gradient(135deg, #a51623 0%, #c92a3a 100%);
    color: var(--white);
    text-align: center;
    box-shadow: 0 4px 16px rgba(128, 8, 16, 0.2);
}

.cta-heading {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-text {
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

/* Animate page hero subtitle/description */
.page-hero .text-large,
.page-hero p {
    animation: slideUp 0.8s ease-out 0.2s both;
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content h2,
    .page-hero h1,
    .page-hero .text-large,
    .page-hero p,
    .fade-in,
    .slide-up {
        animation: none;
    }
}

/* ============ Loading States ============ */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--border);
    border-top-color: var(--burgundy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }

    .nav,
    .nav-container {
        height: 90px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 5px;
        z-index: 999;
    }

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 6px;
    }

    .nav-links a:hover {
        background: var(--bg-light);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-logo img {
        height: 70px;
        max-width: 450px;
    }

    .nav-container {
        gap: 15px;
    }

    .main {
        padding-top: 90px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .hero-content h2,
    .page-hero h2 {
        font-size: 20px;
    }

    .text-large {
        font-size: 17px;
    }

    p {
        font-size: 15px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-grid,
    .schedule-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-bar {
        gap: 30px;
        padding: 25px 15px;
    }

    .stat {
        min-width: 100px;
    }

    .stat-number {
        font-size: 42px;
    }

    .stat-label {
        font-size: 14px;
    }

    /* Archive page responsive */
    .winners-podium {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .podium-card.first {
        transform: scale(1);
        order: -1;
    }

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

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--card-radius);
    }

    .standings-table {
        min-width: 600px;
        font-size: 14px;
    }

    .standings-table th,
    .standings-table td {
        padding: 12px 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .standings-table td:nth-child(2) {
        white-space: normal;
        min-width: 150px;
    }

    /* Form responsive */
    .form-container {
        padding: 15px;
    }

    .form-container iframe {
        height: 1500px;
    }

    /* Date cards, Why section, About grid, and FAQ grid responsive */
    .dates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-grid-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Media coverage mobile optimization */
    .media-card-content {
        flex-direction: column;
        gap: 20px;
    }

    .media-icon {
        margin: 0 auto;
    }

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

    /* Improve touch targets */
    .team-email a,
    .footer-address a {
        padding: 8px 4px;
        display: inline-block;
    }

    /* Better mobile spacing */
    .section {
        padding: 35px 0;
    }

    .card,
    .schedule-card {
        padding: 20px;
    }

    /* Testimonial mobile */
    .testimonial {
        padding: 25px 20px;
    }

    .testimonial-quote {
        font-size: 17px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    /* About grid and FAQ grid - 2 columns on tablets */
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .dates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .winners-podium {
        gap: 15px;
    }

    .stats-bar {
        gap: 40px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }
}

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

    .nav-logo img {
        height: 65px;
        max-width: 400px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 28px;
    }

    .hero-content h2,
    .page-hero h2 {
        font-size: 18px;
    }

    .text-large {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .schedule-card,
    .card {
        padding: 18px;
    }

    .archive-hero h1 {
        font-size: 28px;
    }

    .timer-display {
        font-size: 26px;
    }

    .stat-number {
        font-size: 36px;
    }

    .btn {
        font-size: 15px;
        padding: 14px 20px;
    }

    .info-card {
        padding: 18px;
    }

    .podium-team {
        font-size: 20px;
    }

    .testimonial-quote {
        font-size: 16px;
    }
}
