/* Completely hide all section dividers and horizontal lines */
.section-divider,
hr,
.section .section-divider,
.section-title:before,
.section-title:after {
    display: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Remove left-aligned section title underlines and borders */
.section-title,
h2.section-title,
h1.section-title,
h3.section-title,
h4.section-title {
    border: none !important;
    border-left: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background: none !important;
}
/* Make all buttons only slightly wider than their text */
button,
.btn,
.btn-primary,
.submit-btn,
.newsletter-form button,
.cta-button,
.download-btn,
a.btn,
a.btn-primary,
a.submit-btn,
a.cta-button,
a.download-btn {
    width: fit-content !important;
    min-width: 0;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-sizing: border-box;
}
/* Center all buttons site-wide */
button,
.btn,
.btn-primary,
.submit-btn,
.newsletter-form button,
.cta-button,
.download-btn,
a.btn,
a.btn-primary,
a.submit-btn,
a.cta-button,
a.download-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}
/* Center all section text */
.section, .content-text {
    text-align: center !important;
}
/* Center all headers and body text site-wide */
h1, h2, h3, h4, h5, h6, p, li, ul, ol, span, strong, b {
    text-align: center !important;
}

/* Remove underline from all headers */
h1, h2, h3, h4, h5, h6 {
    text-decoration: none !important;
    border-bottom: none !important;
}

.section-title,
#about-heading.section-title {
    text-align: center !important;
    width: 100%;
    display: block;
}
/* Consistent headers and body text for all .section-light sections */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: #111111 !important;
    font-family: 'Afacad Flux', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.section-light p,
.section-light li,
.section-light ul,
.section-light ol,
.section-light span,
.section-light strong,
.section-light b,
.section-light .content-text,
.section-light .form-card p,
.section-light .form-card li {
    color: #111111 !important;
    font-family: 'Afacad Flux', Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1em;
    letter-spacing: 0.01em;
}
#about .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#judges .section-title,
#judges p,
#judges .judges-content,
#judges .judges-content p,
#makeover-heading,
#makeover-heading + p,
#makeover-heading ~ p,
#makeover-heading ~ div p {
    color: #111111 !important;
    font-weight: 400 !important;
}
#about-section,
#about-section .content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#about-section .content-text p,
#about-section .content-text,
#judges-section .content-text p,
#judges-section .content-text,
#event-makeover-section .content-text p,
#event-makeover-section .content-text {
    color: #111111 !important;
    font-weight: 400;
}
#judges-section .content-text p,
#judges-section .content-text,
#event-makeover-section .content-text p,
#event-makeover-section .content-text {
    color: #111111 !important;
    font-weight: 400;
}
#forms-section,
#forms-section .content-text,
#forms-section .forms-grid,
#forms-section .form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#about-section,
#about-section .content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#forms-section .content-text,
#forms-section .content-text p,
#forms-section .content-text ul,
#forms-section .content-text li,
#forms-section .content-text h2,
#forms-section .content-text h3,
#forms-section .content-text strong,
#forms-section .content-text b,
#forms-section .forms-grid .form-card h2,
#forms-section .forms-grid .form-card p,
#forms-section .forms-grid .form-card strong,
#forms-section .forms-grid .form-card b {
    color: #111111 !important;
    font-weight: 400;
}
/* Dance Spectacular - Main Stylesheet */
/* Refined navy and champagne palette - WCAG AAA compliant */

:root {
    /* Navy backgrounds - deep dark */
    --primary-dark: #261635;
    /* Lighter shades for sections to contrast with header */
    --section-bg-1: #252b42;
    --section-bg-2: #2a304a;
    --section-bg-3: #252b42;
    --section-bg-4: #2a304a;
    --section-light: #303652;
    --section-bg-purple-light: #3e3255;

    /* Champagne accent */
    --accent: #c9a84c;
    --accent-hover: #d9bc6a;

    /* Text - WCAG AAA compliant */
    --text-white: #f0ede8;
    --text-dark: #f0ede8;
    --text-body: #d4d0c8;
    --text-muted: #b5b0a6;
    --light-text: #a0a8b8;
    --white: #ffffff;

    /* Backward compat aliases */
    --bg-light: #303652;
    --primary-gold: #c9a84c;
    --gold-hover: #d9bc6a;
    --text-color: #f0ede8;

    /* Utility */
    --transition: all 0.3s ease;
    --header-height: 90px;
}

/* Font loading is handled via Google Fonts in HTML <head>. */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem; /* ~17px - slightly larger for readability */
    font-weight: 300; /* slightly heavier for easier reading */
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--primary-dark);
}

/* Use 400 weight for headings and titles */
h1, h2, h3, h4, h5, h6, .section-title, .hero h1 {
    font-weight: 400;
}

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

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

/* Visually Hidden (accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

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

/* ============================================
   FADE-IN ANIMATION (Intersection Observer)
   ============================================ */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-section.is-visible .feature-card,
.fade-section.is-visible .judge-card,
.fade-section.is-visible .form-card {
    opacity: 1;
    transform: translateY(0);
}

.fade-section .feature-card,
.fade-section .judge-card,
.fade-section .form-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-section.is-visible .feature-card:nth-child(1),
.fade-section.is-visible .judge-card:nth-child(1),
.fade-section.is-visible .form-card:nth-child(1) { transition-delay: 0.1s; }
.fade-section.is-visible .feature-card:nth-child(2),
.fade-section.is-visible .judge-card:nth-child(2),
.fade-section.is-visible .form-card:nth-child(2) { transition-delay: 0.2s; }
.fade-section.is-visible .feature-card:nth-child(3),
.fade-section.is-visible .judge-card:nth-child(3) { transition-delay: 0.3s; }
.fade-section.is-visible .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   HEADER - Transparent overlay, fixed on top
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Transparent by default so hero image shows through */
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* When scrolled, header becomes solid dark-blue for legibility */
header.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: auto;
    /* Constrain logo to fit inside the header (avoid cutting off nav on smaller pages) */
    max-height: calc(var(--header-height) - 20px);
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: #ffffff;
    position: relative;
    font-size: 15px;
}

nav a:hover,
nav a:focus {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
}

nav a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a.nav-link:hover::after,
nav a.nav-link:focus::after,
nav a.nav-link.active::after {
    width: 100%;
}

/* Social Icons in Navigation */
.nav-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--accent);
}

.nav-social a::after {
    display: none;
}

.nav-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* CTA Button in Nav */
.cta-button {
    background: var(--accent);
    color: #0a0a0a !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--accent);
}

.cta-button:hover,
.cta-button:focus {
    background: var(--accent-hover);
    color: var(--primary-dark) !important;
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.cta-button::after {
    display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 5px;
    position: relative;
    z-index: 1100;
}

.menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   HERO SECTION - Full viewport, behind navbar
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding: 0 20px;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Disable fixed background to avoid jitter on scroll (better performance) */
    background-attachment: scroll;
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.72), rgba(3, 8, 22, 0.65));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-body);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    background: #8c1b80;
    color: #ffffff;
    border-color: #8c1b80;
}

.hero-buttons .btn:hover,
.hero-buttons .btn:focus {
    background: #a02595;
    color: #ffffff;
    border-color: #a02595;
    box-shadow: 0 4px 15px rgba(140, 27, 128, 0.35);
}

/* Make the hero primary buttons use the dark navy requested */
.hero .btn-primary,
.hero-buttons .btn-primary {
    background: var(--primary-dark) !important;
    color: #ffffff !important;
    border-color: var(--primary-dark) !important;
}
.hero .btn-primary:hover,
.hero-buttons .btn-primary:hover {
    /* slight brightening on hover */
    background: #321a38;
    border-color: #321a38;
}

/* ============================================
   BUTTONS - Unified champagne style
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
    font-size: 1rem;
    cursor: pointer;
    background: var(--accent);
    color: var(--primary-dark);
}

.btn:hover,
.btn:focus {
    background: var(--accent-hover);
    color: var(--primary-dark);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    color: var(--primary-dark);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.btn-secondary {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-hover);
    color: var(--primary-dark);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 50px 0 0;
    flex-wrap: wrap;
}

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

.countdown-number {
    font-size: 50px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-body);
    margin-top: 6px;
}

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

.countdown-ended .countdown-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
}

/* ============================================
   CONTENT SECTIONS - Alternating backgrounds
   ============================================ */
.section {
    padding: 80px 20px;
    /* Ensure anchored headings are visible below the fixed header */
    scroll-margin-top: var(--header-height);
}

/* Alternate section backgrounds: odd = black with white text, even = white with black text */
.section:nth-of-type(odd) {
    /* Use a lighter purple/navy to contrast with the header */
    background: var(--section-bg-purple-light);
    color: #ffffff;
}
.section:nth-of-type(odd) .section-title {
    color: #ffffff;
}
.section:nth-of-type(even) {
    /* Slightly darker off-white for better contrast than pure white */
    background: #f5f5f4;
    color: #000000;
}
.section:nth-of-type(even) .section-title {
    color: #000000;
}
.section:nth-of-type(even) .content-text p,
.section:nth-of-type(even) .content-text ul {
    color: #222222;
}
.section:nth-of-type(even) a:not(.btn) {
    color: #000000;
}
.section:nth-of-type(even) .content-text h3 {
    color: #000000; /* ensure subheaders are readable on white */
}
.section:nth-of-type(even) .section-divider {
    background: #111111;
}
/* Buttons keep the site accent by default; do not override their colors here. */

/* Ensure "More Information" in contact area is readable */
#contact .contact-info h3 {
    color: #111111;
}

/* Improve contact form contrast on light (even) sections */
.section:nth-of-type(even) .contact-form {
    background: #ffffff; /* make form area stand out against off-white section */
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.section:nth-of-type(even) .contact-form .form-group label {
    color: #111111; /* ensure labels are dark */
}

.section:nth-of-type(even) .contact-form .form-group input,
.section:nth-of-type(even) .contact-form .form-group textarea {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0,0,0,0.12);
}

.section:nth-of-type(even) .contact-form .submit-btn {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

/* CTA button ripple / explosion effect */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.cta-button .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(217,188,106,0.28);
    pointer-events: none;
    animation: ripple 700ms ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure headings on dark sections remain high contrast */
.section:nth-of-type(odd) .content-text h3,
.section:nth-of-type(odd) .section-title,
.section:nth-of-type(odd) h1,
.section:nth-of-type(odd) h2 {
    color: #ffffff;
}

/* Improve focus styles for accessibility */
nav a:focus,
.menu-toggle:focus,
.cta-button:focus,
.btn:focus {
    outline: 3px solid rgba(201,168,76,0.9);
    outline-offset: 2px;
}

/* Make sure form labels and inputs have readable contrast on white sections */
.section:nth-of-type(even) .form-group label,
.section:nth-of-type(even) .form-group input,
.section:nth-of-type(even) .form-group textarea {
    color: #111111;
}

/* Links on dark sections should use accent but ensure contrast */
.section:nth-of-type(odd) a:not(.btn) {
    color: var(--accent);
}

.section-bg-1 {
    background: var(--section-bg-1);
    color: var(--text-white);
}

.section-bg-2 {
    background: var(--section-bg-2);
    color: var(--text-white);
}

.section-bg-3 {
    background: var(--section-bg-3);
    color: var(--text-white);
}

.section-bg-4 {
    background: var(--section-bg-4);
    color: var(--text-white);
}

.section-light {
    background: var(--section-light);
    color: var(--text-white);
}

.section-light .section-title {
    color: var(--text-white);
}

.section-light .content-text h2,
.section-light .content-text h3 {
    color: var(--accent);
}

.section-light .content-text p,
.section-light .content-text ul {
    color: var(--text-body);
}

.section-light .content-text strong {
    color: var(--text-white);
}

.section-light .content-text a:not(.btn) {
    color: var(--accent);
    text-decoration: underline;
}

.section-light .feature-card {
    background: rgba(201, 168, 76, 0.04);
    border-color: rgba(201, 168, 76, 0.10);
    box-shadow: none;
}

.section-light .feature-card:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-light .feature-card h3 {
    color: var(--text-white);
}

.section-light .feature-card p {
    color: var(--text-muted);
}

.section-light .contact-form {
    background: rgba(201, 168, 76, 0.04);
    border-color: rgba(201, 168, 76, 0.10);
    box-shadow: none;
}

.section-light .form-group label {
    color: var(--text-white);
}

.section-light .form-group input,
.section-light .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 168, 76, 0.20);
    color: var(--text-white);
}

.section-light .form-group input::placeholder,
.section-light .form-group textarea::placeholder {
    color: rgba(240, 237, 232, 0.35);
}

.section-light .contact-info h3 {
    color: var(--text-white);
}

.section-light .contact-info p {
    color: var(--text-muted);
}

.section-light .info-item h4 {
    color: var(--accent);
}

.section-light .info-item p,
.section-light .info-item a {
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section titles - left aligned on desktop */
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-white);
}

.section-title-dark {
    color: var(--text-dark);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 0 40px;
}

/* ============================================
   IMAGE CONTENT SECTIONS (two-column layouts)
   ============================================ */
.image-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.image-content-reverse {
    direction: rtl;
}

.image-content-reverse > * {
    direction: ltr;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    transition: background 0.5s ease;
}

.image-wrapper:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
    aspect-ratio: 1 / 1;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* Text on dark sections */
.content-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.content-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 30px;
    color: var(--accent);
}

.content-text p,
.content-text ul {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-text ul {
    padding-left: 20px;
}

.content-text a:not(.btn) {
    color: var(--accent);
}

.content-text a:not(.btn):hover {
    color: var(--accent-hover);
}

/* ============================================
   DUAL FEATURE (About Event + Spotlight row)
   ============================================ */
.dual-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.dual-feature-col h3 {

    /* Specific overrides: ensure the forms page and makeover section copy are dark (almost-black)
       — these override inline styles that were too light on light backgrounds. */
    #forms-section .content-text p,
    #forms-section .content-text ul,
    #forms-section .content-text h3,
    #forms-section .content-text li,
    #forms-section .forms-grid .form-card h2,
    #forms-section .forms-grid .form-card p,
    #forms-section .forms-grid .form-card .download-btn,
    section[aria-labelledby="makeover-heading"] .content-text p {
        color: #111111 !important;
    }

    /* Ensure strong labels inside forms-section are also dark */
    #forms-section .content-text p strong {
        color: #111111 !important;
    }
    font-size: 1.4rem;
    font-weight: 700;
    margin: 25px 0 15px;
    color: var(--accent);
}

.dual-feature-col p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 15px;
}

.dual-feature-col .image-wrapper img {
    aspect-ratio: 4 / 3;
}

.dual-feature-col .btn {
    margin-top: 10px;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.10);
    padding: 30px;
    border-radius: 8px;
    box-shadow: none;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-8px);
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   JUDGES SECTION
   ============================================ */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.judge-card {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.10);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
}

.judge-card:hover,
.judge-card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.06);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.judge-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: saturate(0.9);
    transition: filter 0.3s ease;
}

.judge-card:hover img {
    filter: saturate(1);
}

.judge-info {
    padding: 30px;
}

.judge-info h2,
.judge-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.judge-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Venue Gallery */
.venue-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.venue-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    filter: brightness(0.65);
}

.venue-gallery img:hover,
.venue-gallery img:focus {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(0.8);
}

/* Map Container */
.map-container {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 20, 0.25);
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: invert(0.9) hue-rotate(180deg) brightness(0.75) contrast(1.05) saturate(0.6) sepia(0.15);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.10);
    padding: 40px;
    border-radius: 8px;
    box-shadow: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111111;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(201, 168, 76, 0.20);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    color: #111111;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(240, 237, 232, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

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

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-message {
    color: #f87171;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.submit-btn {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 14px 36px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Afacad Flux', inherit; /* ensure consistency for send/submit buttons */
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #059669;
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

.error-banner {
    background: #dc2626;
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.error-banner.show {
    display: block;
}

/* Contact Info */
.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    line-height: 1.8;
}

.info-item a:hover,
.info-item a:focus {
    color: var(--accent);
}

/* ============================================
   PASSWORD PROTECTION (entryforms page)
   ============================================ */
.password-protected {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-form {
    /* slightly stronger tint for better contrast on dark backgrounds */
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.14);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.password-form h1 {
    margin-bottom: 20px;
    color: var(--text-white);
}

.password-form p {
    color: var(--text-body);
    margin-bottom: 25px;
}

.password-input-group {
    margin-bottom: 20px;
}

.password-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255,255,255,0.04);
    color: var(--text-white);
}

.password-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.password-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.password-error.show {
    display: block;
}

/* PDF Forms Display */
.pdf-forms {
    display: none;
}

.pdf-forms.unlocked {
    display: block;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.form-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.form-card:hover,
.form-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.form-card h2,
.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.form-card p {
    color: var(--text-dark); /* higher contrast copy inside white cards */
    margin-bottom: 20px;
}

/* Ensure content paragraphs on dark 'section-light' use a clearer text color */
.section.section-light .content-text p,
.section.section-light .content-text ul {
    color: var(--text-body);
}

.download-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.download-btn:hover,
.download-btn:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background-image: url('../images/NewsletterBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 20, 0.93);
}

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

.newsletter-content h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: var(--text-body);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(201, 168, 76, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(240, 237, 232, 0.4);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.10);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Afacad Flux', inherit; /* use Afacad Flux for subscribe button */
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 30px 20px 15px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.footer-nav,
.footer-social {
    text-align: center;
}

.footer-nav h4,
.footer-social h4 {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent);
}

/* Social Icons in Footer */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.footer-social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact-info p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-contact-info a {
    color: var(--text-muted);
}

.footer-contact-info a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 13px;
    color: rgba(240, 237, 232, 0.45);
}

.footer-bottom a {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-text .btn {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
    }

    .image-content {
        gap: 30px;
    }

    .dual-feature {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .logo img {
        height: 80px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        order: 2;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 10, 20, 0.98);
        flex-direction: column;
        padding: 100px 20px 40px;
        gap: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1050;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        text-align: center;
    }

    nav a {
        font-size: 18px;
    }

    .nav-social {
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid rgba(201, 168, 76, 0.12);
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero p {
        text-align: left;
    }

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

    /* Center titles on mobile */
    .section-title {
        text-align: center;
    }

    .section-divider {
        margin: 0 auto 40px;
    }

    .image-content {
        grid-template-columns: 1fr;
    }

    .image-content-reverse {
        direction: ltr;
    }

    .image-wrapper img {
        aspect-ratio: 16 / 10;
    }

    .dual-feature {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

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

    .btn {
        width: 100%;
        text-align: center;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .btn {
        max-width: 280px;
    }

    .section {
        padding: 60px 15px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .menu-toggle,
    .newsletter-section {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .fade-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Accessibility - Focus visible */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero {
        background-attachment: scroll;
    }

    .fade-section {
        opacity: 1 !important;
        transform: none !important;
    }
}
