:root {
    /* Color Palette */
    --primary-green: #14532d;
    --green-dark: #0a2616;
    --green-light: #166534;
    --earth-brown: #8B4513;
    --sky-blue: #4A90E2;

    /* Gold Accents (School Colors: Green & Gold) */
    --gold: #D4AF37;
    /* Rich gold - 3.5:1 on white */
    --gold-dark: #B8860B;
    /* Dark goldenrod - better contrast for text */
    --gold-light: #F5E6C8;
    /* Light gold for backgrounds */
    --gold-accent: #DAA520;
    /* Goldenrod - 3.2:1 on white for large text */

    /* Premium Award Card Colors */
    --certificate-ivory: #FAF7F0;
    --certificate-cream: #F5F1E8;
    --gold-metallic-light: #F4E4BC;
    --gold-shimmer: #E8D5A8;

    /* Accessible Colors (WCAG AA Compliant) */
    --cream: #FAF8F3;
    --text-dark: #1a1a1a;
    /* 16.1:1 on white */
    --text-light: #ffffff;
    /* Maximum contrast on dark backgrounds */
    --text-gray: #4a5568;
    /* 7.5:1 on white */

    /* Typography */
    --font-display: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Accessibility */
    --focus-ring: 2px solid var(--gold);
    --focus-offset: 2px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.7;
}

/* Material Symbols Configuration */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
    vertical-align: middle;
    user-select: none;
}

/* Material icon sizing to match existing SVG icons */
h2 .material-symbols-outlined {
    font-size: 2.5rem;
    margin-right: 0.75rem;
}

h3 .material-symbols-outlined {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

li .material-symbols-outlined {
    font-size: 1.25rem;
}

button .material-symbols-outlined,
.social-icon .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-green);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.gradient-bg {
    background: var(--primary-green);
    backdrop-filter: blur(5px);
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* Links */
section a {
    text-decoration: underline;
    transition: all 0.2s ease;
}

section a:hover {
    text-decoration: none;
    color: var(--gold-dark);
}

section a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    text-decoration: none;
    background-color: var(--gold-light);
    border-radius: 2px;
}

/* Remove default focus outline, replace with custom */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

/* Ensure buttons and interactive elements have proper focus */
button:focus-visible,
a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

section[id] {
    scroll-margin-top: 80px;
}

/* Skip to content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--text-dark);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.nav-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 2px;
}

/* Premium Award Cards - "Gilded Prestige" Design */
.award-item {
    position: relative;
    background: linear-gradient(to bottom, var(--certificate-ivory), var(--certificate-cream));
    border: 3px double var(--gold);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(20, 83, 45, 0.1),
        0 2px 4px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

/* Subtle paper texture background */
.award-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence baseFrequency='0.04' numOctaves='5' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.95 0 0 0 0 0.91 0 0 0 0 0.015'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23paper)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    border-radius: 6px;
}

/* Gold shimmer sweep effect on hover */
.award-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(244, 228, 188, 0.3),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease-in-out;
    pointer-events: none;
}

.award-item:hover::after {
    left: 200%;
}

/* Corner ornaments using pseudo-elements on h3 */
.award-item h3::before,
.award-item h3::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
}

.award-item h3::before {
    top: 0.5rem;
    left: 0.5rem;
    border-right: none;
    border-bottom: none;
}

.award-item h3::after {
    top: 0.5rem;
    right: 0.5rem;
    border-left: none;
    border-bottom: none;
}

/* Enhanced hover state - dramatic lift with gold glow */
.award-item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--gold-accent);
    box-shadow:
        0 20px 40px rgba(212, 175, 55, 0.25),
        0 15px 25px rgba(20, 83, 45, 0.15),
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Typography enhancements for award cards */
.award-item h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gold-shimmer);
}

.award-item p {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Gold seal badge */
.award-item h3 .material-symbols-outlined {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--gold);
    vertical-align: middle;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.3));
}

/* Focus state for award items (keyboard navigation) */
.award-item:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    border-color: var(--gold-accent);
}

.award-winner {
    padding: 0.75rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.award-winner:hover {
    border-left-color: var(--gold);
    padding-left: 1.5rem;
    background: var(--gold-light);
}

/* Nominees Footnote Section */
.nominees-footnote {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gold-shimmer);
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
}

.nominees-footnote h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-style: normal;
    letter-spacing: 0.5px;
}

.nominees-footnote p {
    margin-bottom: 0.5rem;
}

.nominees-footnote strong {
    color: var(--primary-green);
    font-weight: 600;
    font-style: normal;
}

/* Gold accents for headings */
h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--gold);
    margin-right: 0.5rem;
    vertical-align: middle;
}

section[id="awards"] h2::before,
section[id="event"] h2::before {
    content: none;
    /* Remove for sections where SVG icons provide visual interest */
}

/* Gold border utility class */
.border-gold {
    border-color: var(--gold) !important;
}

section[id="awards"] .material-symbols-outlined,
section[id="event"] .material-symbols-outlined {
    color: var(--gold);
}

/* Gold underline hover effect */
.hover-gold-underline {
    position: relative;
    display: inline-block;
}

.hover-gold-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.hover-gold-underline:hover::after,
a:focus-visible .hover-gold-underline::after {
    width: 100%;
}

.icon-lg {
    width: 3rem !important;
    height: 3rem !important;
}

.icon-md {
    width: 2rem;
    height: 2rem;
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--gold) !important;
}

.social-icon:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    color: var(--gold) !important;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    transition: all 0.3s ease;
    /* Ensure minimum touch target size (WCAG 2.5.5) */
    min-width: 44px;
    min-height: 44px;
}

#back-to-top:hover {
    background-color: var(--gold);
    transform: translateY(-4px);
}

#back-to-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    background-color: var(--gold-dark);
}

/* Ensure all touch targets meet minimum size */
button,
a.nav-link,
.mobile-nav a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 0.75rem;
}

.mobile-nav a {
    padding: 0.75rem 1rem;
}

.hero-parallax {
    background-attachment: fixed;
}

.hero-title,
.hero-subtitle {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.animate-in,
.hero-subtitle.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-title,
.hero-subtitle {
    opacity: 0;
    transform: translateY(32px);
}

.divider-stream {
    height: 0;
}

/* Section animation (fade/slide up) */
.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.award-item:nth-child(1) {
    animation-delay: 0.1s;
}

.award-item:nth-child(2) {
    animation-delay: 0.2s;
}

.award-item:nth-child(3) {
    animation-delay: 0.3s;
}

.award-item:nth-child(4) {
    animation-delay: 0.4s;
}

.award-item:nth-child(5) {
    animation-delay: 0.5s;
}

.award-item:nth-child(6) {
    animation-delay: 0.6s;
}

.award-item:nth-child(7) {
    animation-delay: 0.7s;
}

.award-item:nth-child(8) {
    animation-delay: 0.8s;
}

.award-item:nth-child(9) {
    animation-delay: 0.9s;
}

.award-item:nth-child(10) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-section.animate-in .award-item {
    animation: fadeInUp 0.6s ease-out both;
}

/* Organic texture overlay */
.hero-parallax::after,
.interstitial-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

.two-column-list {
    columns: 1;
    column-gap: 1.5rem;
}

.two-column-list li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .two-column-list {
        columns: 2;
    }
}

@media (max-width: 640px) {
    .icon-lg {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .icon-md {
        width: 1.75rem;
        height: 1.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    header h1.text-5xl {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    header p.text-2xl {
        font-size: 1.1rem;
        margin-left: 0;
    }

    .mobile-nav {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav a {
        margin: 0.25rem 0;
    }

    .hero-parallax,
    .interstitial-parallax {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    /* Disable staggered animations on mobile for performance */
    .award-item {
        animation-delay: 0s !important;
    }

    /* Better spacing on mobile */
    .award-item {
        padding: 1rem;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
}

.mobile-nav a {
    padding: 0.75rem 1rem;
}

.hero-parallax {
    background-attachment: fixed;
}

.hero-title,
.hero-subtitle {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title.animate-in,
.hero-subtitle.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-title,
.hero-subtitle {
    opacity: 0;
    transform: translateY(32px);
}

.divider-stream {
    height: 0;
}

/* Section animation (fade/slide up) */
.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.award-item:nth-child(1) {
    animation-delay: 0.1s;
}

.award-item:nth-child(2) {
    animation-delay: 0.2s;
}

.award-item:nth-child(3) {
    animation-delay: 0.3s;
}

.award-item:nth-child(4) {
    animation-delay: 0.4s;
}

.award-item:nth-child(5) {
    animation-delay: 0.5s;
}

.award-item:nth-child(6) {
    animation-delay: 0.6s;
}

.award-item:nth-child(7) {
    animation-delay: 0.7s;
}

.award-item:nth-child(8) {
    animation-delay: 0.8s;
}

.award-item:nth-child(9) {
    animation-delay: 0.9s;
}

.award-item:nth-child(10) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-section.animate-in .award-item {
    animation: fadeInUp 0.6s ease-out both;
}

/* Organic texture overlay */
.hero-parallax::after,
.interstitial-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

.two-column-list {
    columns: 1;
    column-gap: 1.5rem;
}

.two-column-list li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .two-column-list {
        columns: 2;
    }
}

@media (max-width: 640px) {
    .icon-lg {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .icon-md {
        width: 1.75rem;
        height: 1.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    header h1.text-5xl {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    header p.text-2xl {
        font-size: 1.1rem;
        margin-left: 0;
    }

    .mobile-nav {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav a {
        margin: 0.25rem 0;
    }

    .hero-parallax,
    .interstitial-parallax {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    /* Disable staggered animations on mobile for performance */
    .award-item {
        animation-delay: 0s !important;
    }

    /* Better spacing on mobile */
    .award-item {
        padding: 1rem;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* FAQ Section */
.faq-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    background-color: rgba(20, 83, 45, 0.05);
    /* Very light green */
    border-left-color: var(--gold);
    transform: translateX(5px);
}

.faq-item h3 {
    transition: color 0.3s ease;
}

.faq-item:hover h3 {
    color: var(--primary-green);
}