/* 
 * Cyber UXcellence Awards - Enhanced Styles
 * ---------------------------------------
 * A modern, professional stylesheet for the Cyber UXcellence Awards website.
 * 
 * Table of Contents:
 * 1. Variables & Root
 * 2. Base Styles
 * 3. Typography
 * 4. Layout & Grid
 * 5. Buttons & Links
 * 6. Navigation
 * 7. Hero Section
 * 8. Section Styles (About, Categories, Why, Judges, Timeline, FAQ, CTA, Sponsors)
 * 9. Component Styles (Footer, BackToTop, Cookie, Modal, Forms)
 * 10. Animations & Transitions
 * 11. Utilities
 * 12. Accessibility
 * 13. Media Queries
 */

/* ======= 1. Variables & Root ======= */
:root {
    /* Color Palette */
    --primary-color: #6a1b9a; /* Purple */
    --primary-light: #9c4dcc;
    --primary-lighter: #d1c4e9; /* Used for vertical nav avatar */
    --primary-dark: #38006b;
    --primary-darker: #240046;

    --secondary-color: #ff6d00; /* Orange */
    --secondary-light: #ff9e40;
    --secondary-lighter: #ffe0b2;
    --secondary-dark: #c43c00;
    --secondary-darker: #992900;

    --accent-color: #00bcd4; /* Teal */
    --accent-light: #62efff;
    --accent-dark: #008ba3;

    /* Text Colors */
    --text-dark: #212121;
    --text-medium: #424242; /* Reverting to original - used for light backgrounds */
    --text-light: #ffffff;
    --text-muted: #757575; /* Reverting to original - used for light backgrounds */
    --active-text-color: #ffffff; /* Used for active vertical nav item */

    /* Background Colors */
    --background-light: #f5f7fa; /* Used for vertical nav hover */
    --background-white: #ffffff;
    --background-dark: #121212;
    --background-gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    --background-gradient-secondary: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    --card-bg: #ffffff; /* Used for vertical category card bg */

    /* Border Colors */
    --border-light: #e0e0e0; /* Used for vertical nav border & card separator */
    --border-medium: #bdbdbd;

    /* Status Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #e74c3c; /* Adjusted error color for better visibility */
    --info: #2196f3;

    /* Shadow Styles */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-focus: 0 0 0 3px rgba(106, 27, 154, 0.25);

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --section-padding: 6rem;
    --section-padding-mobile: 4rem;

    /* Z-index layers */
    --z-behind: -1;
    --z-normal: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;
}

/* ======= 2. Base Styles ======= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px); /* Adjust scroll padding */
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

/* ======= 3. Typography ======= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem; /* Responsive adjustments later */
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem; /* Responsive adjustments later */
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.75rem; /* Responsive adjustments later */
}

h4 {
    font-size: 1.5rem; /* Responsive adjustments later */
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium); /* Use medium text color for paragraphs */
}

strong, b {
    font-weight: 600;
    color: var(--text-dark); /* Ensure strong tags stand out */
}

small {
    font-size: 0.875rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ======= 4. Layout & Grid ======= */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-alternate {
    background-color: var(--background-white); /* Use white for alternating sections */
}

/* ======= 5. Buttons & Links ======= */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: var(--primary-light);
}

/* Keep focus styles consistent */
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm); /* Optional: add radius */
}
a:focus:not(:focus-visible) {
     outline: none;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* Base padding */
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden; /* Needed for pseudo-elements */
    z-index: 1;
}

/* Removed general .btn::after hover effect - can conflict with specific button types */

.btn:focus-visible {
     outline: 2px solid var(--primary-color);
     outline-offset: 2px;
     box-shadow: var(--shadow-focus); /* Add focus shadow */
 }
.btn:focus:not(:focus-visible) {
     outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent; /* Start transparent */
}

.btn-primary::before { /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    transform: translateY(-3px) scale(1.02); /* Add scale */
    box-shadow: 0 10px 20px rgba(106, 27, 154, 0.4);
    border-color: rgba(255, 255, 255, 0.2); /* Add border on hover */
}

.btn-primary:active {
    transform: translateY(-1px) scale(1); /* Adjust active state */
    box-shadow: 0 5px 10px rgba(106, 27, 154, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.btn-secondary::before { /* Shimmer effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 109, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 5px 10px rgba(255, 109, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline::after { /* Fill effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::after, .btn-outline:focus::after {
    height: 100%;
}

.btn-outline:hover, .btn-outline:focus {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 27, 154, 0.2); /* Softer shadow */
}

.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(106, 27, 154, 0.2);
}

.btn-large {
    padding: 1rem 2rem; /* Adjusted padding */
    font-size: 1.1rem; /* Slightly smaller large */
    letter-spacing: 0.5px;
}

.btn-small, .btn-sm { /* Standardize small button class */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-icon i {
    font-size: 1.1em; /* Relative size */
    transition: transform 0.3s ease;
}

.btn-icon:hover i {
    transform: translateX(3px);
}

.btn-glow {
    animation: glow 2.5s infinite alternate ease-in-out; /* Smoother glow */
    position: relative;
}
/* Removed ::after glow effect as it can be visually noisy */

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 109, 0, 0.4), 0 0 10px rgba(106, 27, 154, 0.2);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 109, 0, 0.7), 0 0 25px rgba(106, 27, 154, 0.4);
    }
}

/* ======= 6. Navigation ======= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Start slightly transparent, become more solid on scroll */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    z-index: var(--z-sticky);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease-out; /* Faster transition */
    border-bottom: 1px solid transparent; /* Start transparent */
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* Adjusted shadow */
    height: calc(var(--header-height) - 10px); /* Slightly smaller */
    border-bottom-color: rgba(0, 0, 0, 0.05); /* Add subtle border */
}
/* Removed gradient ::after border */
/* Removed header-hidden state - handle visibility purely with scrolled class if needed */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--spacing-md); /* Add padding */
}

.logo {
    /* Removed complex hover/after effect */
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 40px; /* Slightly smaller base height */
    width: auto;
    transition: height 0.3s ease-out;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.site-header.scrolled .logo-img {
    height: 35px; /* Smaller scrolled height */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0; /* Ensure no default padding */
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-medium); /* Start slightly muted */
    font-weight: 500; /* Regular weight */
    transition: all 0.3s ease;
    position: relative;
    padding: var(--spacing-sm) var(--spacing-sm); /* Adjusted padding */
    letter-spacing: 0.2px;
    border-radius: var(--border-radius-sm);
}

.nav-link::before { /* Underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0); /* Start hidden */
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-out;
    transform-origin: center;
}

.nav-link:hover,
.nav-link:focus, /* Combine hover/focus */
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(106, 27, 154, 0.05); /* Subtle background */
}

.nav-link:hover::before,
.nav-link:focus::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1); /* Reveal underline */
}

.nav-link.active {
    font-weight: 600; /* Bold active link */
}
/* Removed ::after background effect and transform: translateY */

.nav-cta {
    margin-left: var(--spacing-md);
}

.hamburger {
    display: none; /* Hidden by default, shown in media queries */
    flex-direction: column;
    justify-content: space-around; /* Better spacing */
    width: 28px; /* Slightly smaller */
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: calc(var(--z-drawer) + 1); /* Ensure above nav links and modal */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    transition: all var(--transition-normal);
    border-radius: 3px;
    transform-origin: center; /* Rotate around center */
}
/* Improved hamburger animation */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -200px; /* Further offscreen */
    left: 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md); /* Adjust padding */
    z-index: var(--z-toast);
    transition: top 0.3s ease-out;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); /* Rounded bottom */
}

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

/* ======= 7. Hero Section ======= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem); /* Adjusted padding */
    padding-bottom: 6rem; /* More bottom padding */
    background: linear-gradient(145deg, var(--primary-darker), var(--primary-dark) 30%, var(--primary-color) 70%); /* Adjusted gradient */
    background-size: 150% 150%; /* Simpler background size */
    animation: gradientAnimation 18s ease infinite;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    min-height: 90vh; /* Slightly less than full viewport */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content vertically */
}
/* Simpler gradient animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before { /* Subtle pattern overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M0 0 H40 V40 H80 V80 H40 V40 H0 Z" fill="rgba(255,255,255,0.02)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Particles created by JS now, remove background here */
    z-index: var(--z-behind);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: var(--z-normal);
    padding: var(--spacing-xl); /* Use variable */
    background: rgba(0, 0, 0, 0.15); /* Slightly less dark */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Adjusted shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0); /* Promote to own layer */
}

.hero-title {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Softer shadow */
    font-size: 3.5rem; /* Adjusted responsive size */
    letter-spacing: -1px;
    /* Removed gradient text - ensure high contrast */
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xl); 
    opacity: 1; /* Increased from 0.9 for better visibility */
    color: var(--text-light); /* Explicitly setting light text color */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Stronger shadow for better contrast */
    max-width: 750px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Better readability */
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: var(--spacing-md);
    justify-content: center;
}

.hero-wave {
    position: absolute;
    bottom: -1px; /* Ensure overlap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px); /* Ensure full coverage */
    height: 80px; /* Adjusted height */
    /* transform: rotateY(180deg); Removed rotation */
}
.hero-wave svg path {
    fill: var(--background-light); /* Matches body background */
}


/* ======= 8. Section Styles ======= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark); /* Use darker primary for titles */
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Space for underline */
}

.section-title::after { /* Underline */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Shorter underline */
    height: 3px;
    background: var(--primary-color); /* Solid primary color */
    border-radius: var(--border-radius-full);
}

.section-intro {
    font-size: 1.1rem; /* Adjusted size */
    max-width: 750px; /* Adjusted width */
    margin: 0 auto var(--spacing-lg); /* Adjusted margin */
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text p {
    font-size: 1.05rem; /* Slightly smaller */
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
    padding: 0; /* Remove default padding */
}

.feature-list li {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start; /* Align icon top */
    gap: var(--spacing-md);
}

.feature-icon {
    color: var(--secondary-dark); /* Use darker secondary */
    font-size: 1rem; /* Smaller icon */
    flex-shrink: 0;
    border-radius: var(--border-radius-md); /* Square radius */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-lighter); /* Lighter background */
    margin-top: 2px; /* Align better with text */
}
.feature-content strong {
     display: block; /* Make strong tag take full line */
     margin-bottom: var(--spacing-xs);
     color: var(--text-dark);
}
.feature-content {
     color: var(--text-medium);
     font-size: 1rem;
}


.image-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
/* Removed ::before overlay */
.image-wrapper:hover {
    transform: translateY(-5px) scale(1.02); /* Add scale */
    box-shadow: var(--shadow-xl);
}

/* --- Categories Section (Vertical Navigation) --- */
#categories { /* Add background to the entire section */
    position: relative; /* Needed for pseudo-element positioning */
    background-color: var(--background-white); /* Ensure a base color */
    overflow: hidden; /* Contain pseudo-elements */
}

#categories::before { /* Subtle background pattern */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,&lt;svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"&gt;&lt;path d="M10 10 H90 V90 H10 Z" fill="none" stroke="rgba(224, 224, 224, 0.3)" stroke-width="1"/&gt;&lt;path d="M20 20 H80 V80 H20 Z" fill="none" stroke="rgba(224, 224, 224, 0.2)" stroke-width="1"/&gt;&lt;path d="M30 30 H70 V70 H30 Z" fill="none" stroke="rgba(224, 224, 224, 0.1)" stroke-width="1"/&gt;&lt;/svg&gt;');
    background-size: 150px 150px; /* Adjust size as needed */
    opacity: 0.5; /* Make it subtle */
    z-index: 0; /* Place behind content */
}

#categories .section-header { /* Target specific section header */
    margin-bottom: 40px;
    position: relative; /* Ensure header is above the pattern */
    z-index: 1;
}

.categories-flex-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative; /* Ensure flex container is above the pattern */
    z-index: 1;
}

/* Vertical Navigation */
.categories-nav-vertical {
    flex: 0 0 280px; /* Fixed width */
    border-right: 1px solid var(--border-light);
    padding-right: 30px;
}

/* Style specific to vertical nav items */
.categories-nav-vertical .category-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--text-medium);
    text-align: left; /* Ensure text aligns left */
    white-space: normal; /* Allow wrapping if needed */
}

.categories-nav-vertical .category-nav-item .category-icon {
    margin-right: 15px;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    color: var(--primary-color);
    transition: color 0.3s ease;
    flex-shrink: 0; /* Prevent icon shrinking */
}

.categories-nav-vertical .category-nav-item .category-label {
    font-weight: 500;
    flex-grow: 1;
}

.categories-nav-vertical .category-nav-item:hover {
    background-color: var(--background-light); /* Use light background */
    color: var(--text-dark);
}

.categories-nav-vertical .category-nav-item.active {
    background-color: var(--primary-color);
    color: var(--active-text-color);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.2);
}

.categories-nav-vertical .category-nav-item.active .category-icon {
    color: var(--active-text-color);
}


/* Cards Container for Vertical Nav */
.categories-cards-container {
    flex: 1; /* Take remaining space */
    position: relative;
    min-height: 450px; /* Minimum height */
    overflow: hidden; /* Hide inactive cards */
}

/* Category Card (Specific to Vertical Layout) */
#categories .category-card { /* Target cards within #categories */
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg); /* Consistent radius */
    box-shadow: var(--shadow-lg); /* Use shadow variable */
    position: absolute;
    top: 50%; /* Position at the middle of the container */
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 15px)); /* Center vertically with 15px offset for animation */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s 0.4s;
    z-index: 1;
    border: 1px solid var(--border-light); /* Add subtle border */
    /* Reset potentially conflicting styles from horizontal carousel */
    margin: 0;
    flex-shrink: 1; /* Allow shrinking if needed */
    /* Remove conflicting perspective/transform styles */
    transform-style: flat;
    backface-visibility: visible;
    cursor: default; /* Reset cursor if it was pointer */
}

#categories .category-card.active {
    opacity: 1;
    visibility: visible;
    background-color: var(--primary-color); /* Make active card purple to match active nav */
    color: var(--text-light); /* Ensure all text is light on purple background */
    transform: translateY(-50%); /* Center vertically when active */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s 0s;
    z-index: 2; /* Ensure active is on top */
}

#categories .category-card .card-content {
    padding: var(--spacing-lg) var(--spacing-xl); /* Use spacing variables */
    display: flex;
    flex-direction: column;
    min-height: inherit; /* Inherit min-height */
}

/* Card Content Styling (Badge, Title, Desc, etc.) */
#categories .category-card .category-header {
    margin-bottom: var(--spacing-md);
    /* Removed flex properties conflicting with vertical layout */
}

#categories .category-card .case-study-badge {
    display: inline-block;
    background-color: var(--primary-lighter); /* Lighter primary */
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: var(--border-radius-full); /* Pill shape */
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Removed position absolute if present before */
}

#categories .category-card .category-title {
    font-size: 1.8rem;
    font-weight: 700; /* Bold title */
    margin-bottom: var(--spacing-md);
    color: var(--text-dark); /* Changed from primary-color for better contrast */
    padding-bottom: 0;
    text-align: left; /* Reset text align */
    letter-spacing: normal; /* Reset spacing */
    line-height: 1.3; /* Reset line height */
}

/* Category title styles for active (purple) cards */
#categories .category-card.active .category-title {
    color: var(--text-light); /* White text on purple background */
}
#categories .category-card .category-title::after {
     display: none; /* Remove underline from this context */
}


#categories .category-card .category-description {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg); /* More space */
    line-height: 1.7;
    flex-grow: 1; /* Push attribution down */
}

/* Description text for active (purple) cards */
#categories .category-card.active .category-description {
    color: rgba(255, 255, 255, 0.9); /* Light text on purple background */
    /* Reset conflicting styles */
    opacity: 1;
    padding: 0;
    max-width: none;
    text-align: left;
    letter-spacing: normal;
    font-weight: 400;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
    position: static;
}
#categories .category-card .category-description::before {
     display: none; /* Remove "Award Criteria" badge */
}


#categories .category-card .learn-more-link {
    display: inline-block;
    color: var(--text-light); /* Changed from primary-color for better visibility on purple */
    text-decoration: underline; /* Added underline for better visibility */
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    transition: color 0.3s ease, transform 0.3s ease; /* Add transform */
    align-self: flex-start; /* Align left */
}

#categories .category-card .learn-more-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

#categories .category-card .learn-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px); /* Move link slightly */
}
#categories .category-card .learn-more-link:hover i {
    transform: translateX(0px); /* Keep icon static relative to link */
}

/* Attribution Styling */
#categories .quote-attribution {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-md); /* Use variable */
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for visibility on purple */
}

#categories .attribution-avatar {
    width: 40px; /* Slightly smaller */
    height: 40px;
    border-radius: 50%;
    background-color: white; /* Changed from primary-lighter for better contrast */
    color: var(--primary-color); /* Changed to be visible on white background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem; /* Adjust size */
    margin-right: var(--spacing-md); /* Use variable */
    flex-shrink: 0;
}

#categories .attribution-details {
    font-size: 0.9rem;
}

#categories .attribution-name {
    font-weight: 600;
    color: var(--text-light); /* Changed from text-dark for visibility on purple */
}

#categories .attribution-title {
    color: rgba(255, 255, 255, 0.9); /* Changed from text-muted for visibility on purple */
    font-size: 0.85rem;
}
/* --- End Vertical Category Styles --- */

/* --- Remove or Comment Out Conflicting Horizontal/3D Carousel Styles --- */

/* .categories-scroll-container { */ /* REMOVED - was for horizontal scroll */
    /* ... */
/* } */

/* .categories-nav { */ /* REMOVED - styles now in .categories-nav-vertical */
    /* ... */
/* } */

/* .carousel-controls { */ /* REMOVED - positioning was for horizontal scroll */
    /* ... */
/* } */

/* .prev-btn, .next-btn { */ /* REMOVED - button styles not needed for vertical */
    /* ... */
/* } */

/* .category-cards { */ /* REMOVED - was for horizontal flex/perspective */
    /* ... */
/* } */

/* Commented out premium card styles related to 3D/horizontal layout */
/* .category-card-best-overall { */
    /* background: white; */ /* Style conflicts */
    /* ...other conflicting size/position styles */
/* } */
/* .category-card-best-overall::before, .category-card-best-overall::after { ... } */ /* REMOVED - decorative elements specific to old layout */

/* .rotating .category-card { ... } */ /* REMOVED - 3D rotation transition */

/* .category-card:hover::before, .category-card:hover::after { ... } */ /* REMOVED - hover effect specific to old layout */

/* .category-icon { ... } */ /* Keep base icon style, remove transforms */
/* .category-icon::before, .category-icon::after, .category-icon .shine-effect { ... } */ /* REMOVED - complex icon effects */
/* .category-card:hover .category-icon { ... } */ /* REMOVED - complex hover transform */

/* .category-card-best-overall .category-icon { ... } */ /* REMOVED - specific style for old layout */

/* .category-card:hover .category-title { ... } */ /* REMOVED - hover effect */
/* .category-card-best-overall .category-title { ... } */ /* REMOVED - specific style for old layout */
/* .category-card-best-overall .category-title::after { ... } */ /* REMOVED */

/* .category-card:hover .category-description { ... } */ /* REMOVED - hover effect */
/* .category-card-best-overall .category-description { ... } */ /* REMOVED - specific style */
/* .category-card-best-overall .category-description::before { ... } */ /* REMOVED */

/* .category-stats { ... } */ /* REMOVED - specific to old layout */
/* .stat-item, .stat-value, .stat-label { ... } */ /* REMOVED */
/* .category-card-best-overall .category-stats, .category-card-best-overall .stat-value, .category-card-best-overall .stat-label { ... } */ /* REMOVED */

/* .judge-quote, .judge-attribution { ... } */ /* REMOVED - specific to old layout */

/* .category-navigation, .category-nav-button, .carousel-indicators, .carousel-indicator { ... } */ /* REMOVED - controls for old layout */

/* .category-case-study, .case-study-content, .case-study-company, .case-study-image, .category-attribution, .category-author, .category-role { ... } */ /* REMOVED - specific to old card layout */


/* Why Nominate Section - Styles seem okay, ensure they don't conflict */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax */
    gap: var(--spacing-lg);
}

.benefit-card {
    padding: var(--spacing-lg); /* Use variable */
    border-radius: var(--border-radius-lg);
    background-color: var(--background-white);
    transition: all 0.4s ease-out; /* Smoother transition */
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md); /* Use variable */
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(106, 27, 154, 0.15); /* Subtle border highlight */
}
.benefit-card::before, .benefit-card::after { display: none; } /* Removed complex pseudo effects */


.benefit-icon {
    font-size: 2.5rem; /* Adjusted size */
    color: var(--primary-color); /* Use primary color */
    margin-bottom: var(--spacing-md); /* Use variable */
    position: relative;
    display: inline-flex; /* Use inline-flex */
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(106, 27, 154, 0.1); /* Subtle background */
    transition: all 0.4s ease-out;
}
.benefit-icon::after { display: none; } /* Removed pulse */

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(-5deg); /* Add rotation */
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

.benefit-card h3 { /* Target h3 directly */
    font-size: 1.3rem; /* Adjusted size */
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    color: var(--text-dark);
    transition: color 0.3s;
}
.benefit-card:hover h3 {
    color: var(--primary-color);
}
/* Removed ::after underline */
.benefit-title::after { display: none; }

.benefit-card p { /* Target p directly */
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1rem; /* Adjusted size */
    transition: color 0.3s;
}
.benefit-card:hover p {
    color: var(--text-medium);
}


/* Judges Section - Styles seem okay */
.judges {
    position: relative;
    background: var(--background-gradient-primary);
    color: var(--text-light);
}

.judges .section-title,
.judges .section-intro {
    color: var(--text-light);
}
.judges .section-title::after {
    background: white; /* White underline on dark bg */
}

.judges-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive */
    gap: var(--spacing-lg); /* Use variable */
    text-align: center;
}

.judges-info, .judges-event {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly more transparent */
    padding: var(--spacing-lg); /* Use variable */
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(8px); /* Increased blur */
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible border */
}

.judges-info:hover, .judges-event:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    background-color: rgba(255, 255, 255, 0.15);
}

.judges-icon, .event-icon {
    font-size: 2.8rem; /* Slightly smaller */
    margin-bottom: var(--spacing-md);
    color: var(--secondary-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.judges-placeholder h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    font-size: 1.4rem; /* Adjust size */
}

.judges-placeholder p {
    opacity: 0.85; /* Slightly less transparent */
    font-size: 1rem; /* Adjust size */
    line-height: 1.7;
    color: var(--text-light); /* Ensure light text color on dark background */
}

.event-date {
    margin-top: var(--spacing-md);
}

.date-highlight {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
}


/* Timeline Section Styles - Assume separate CSS or integrate here if needed */
/* Styles for .timeline-container, .timeline-item, .timeline-dot, etc. */
/* If styles are in styles-timeline.css, no changes needed here */


/* FAQ Section - Styles seem okay */
.faq-container {
    max-width: 850px; /* Wider FAQ */
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg); /* More rounded */
    overflow: hidden;
    transition: all var(--transition-normal);
    background-color: var(--background-white); /* Ensure background */
}
.faq-item:hover {
    box-shadow: var(--shadow-lg); /* More pronounced shadow on hover */
    border-color: rgba(106, 27, 154, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: transparent; /* Remove light background */
    cursor: pointer;
    transition: background-color var(--transition-normal);
    user-select: none;
    -webkit-user-select: none;
    position: relative; /* For potential border */
}
.faq-question:hover {
    background-color: rgba(106, 27, 154, 0.03); /* Very subtle hover */
}
.faq-question[aria-expanded="true"] {
     border-bottom: 1px solid var(--border-light); /* Add border when open */
}


.faq-question h3 {
    margin: 0;
    font-size: 1.2rem; /* Slightly larger */
    font-weight: 600; /* Bolder question */
    flex-grow: 1;
    color: var(--text-dark); /* Darker question text */
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease-out; /* Smoother transition */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-toggle i {
     transition: transform 0.3s ease-out; /* Animate the icon itself */
}
.faq-question[aria-expanded="true"] .faq-toggle i.fa-plus { display: none; }
.faq-question:not([aria-expanded="true"]) .faq-toggle i.fa-minus { display: none; }
/* Ensure JS adds both plus and minus icons and toggles visibility, or use transform: rotate(45deg) on fa-plus */


.faq-answer {
    padding: 0 var(--spacing-lg); /* Start with 0 padding */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Transition padding too */
    background-color: transparent; /* Keep background consistent */
}
.faq-answer p {
     color: var(--text-medium);
     font-size: 1rem;
     line-height: 1.7;
     margin-bottom: var(--spacing-md); /* Spacing between paragraphs */
}
.faq-answer p:last-child {
     margin-bottom: 0; /* Remove bottom margin on last paragraph */
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: var(--spacing-lg); /* Add padding when open */
    max-height: 500px; /* Adjust max-height if needed */
}


/* CTA Section - Styles seem okay */
.cta {
    background: var(--background-gradient-secondary); /* Changed to orange gradient */
    color: var(--text-light);
    text-align: center;
    padding: var(--section-padding) 0; /* Consistent padding */
    position: relative;
    overflow: hidden;
}
/* Add subtle pattern to CTA */
.cta::before {
     content: '';
     position: absolute;
     top: 0; left: 0; width: 100%; height: 100%;
     background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
     opacity: 0.6;
     z-index: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Ensure content is above ::before */
    z-index: 1;
}

.cta h2 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 2.2rem; /* Adjust size */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta p {
    font-size: 1.1rem; /* Adjust size */
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    color: var(--text-light); /* Explicitly set to white color */
}


/* Sponsors Section - Styles seem okay */
.sponsors {
    text-align: center;
    padding: var(--spacing-lg) 0; /* Reduced padding */
    background-color: var(--background-white); /* Use white background */
}
.sponsors h2 {
    color: var(--primary-dark); /* Darker title */
    margin-bottom: var(--spacing-sm);
}
.sponsors p {
    margin-bottom: var(--spacing-lg);
    max-width: 700px; /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
    color: var(--text-medium);
}
.sponsors .btn-secondary { /* Style the contact button */
     /* Use existing btn-secondary styles */
}


/* ======= 9. Component Styles ======= */
/* Footer */
.site-footer {
    background-color: var(--primary-darker); /* Darker footer */
    color: rgba(255, 255, 255, 0.95); /* Slightly muted text */
    padding: var(--spacing-xl) 0 var(--spacing-md);
    font-size: 0.95rem; /* Base font size for footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: var(--spacing-lg); /* Use variable */
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    height: 35px; /* Smaller footer logo */
    width: auto;
    margin-bottom: var(--spacing-sm); /* Less margin */
    opacity: 0.9;
}

.footer-branding p {
    opacity: 0.95; /* Increased opacity for better visibility */
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm); /* Slightly smaller gap */
}

.social-links a {
    color: rgba(255, 255, 255, 0.95); /* Brightened icons for better visibility */
    font-size: 1.2rem; /* Smaller icons */
    transition: all var(--transition-normal);
    width: 36px; /* Smaller hit area */
    height: 36px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.05); /* More subtle bg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-light); /* White on hover */
    background-color: var(--primary-color); /* Use primary color */
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* Add shadow */
}

.footer-nav h3,
.footer-contact h3 {
    color: var(--text-light);
    font-size: 1.1rem; /* Slightly smaller heading */
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-weight: 600; /* Less bold */
}

.footer-nav h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px; /* Shorter underline */
    height: 2px;
    background-color: var(--primary-light); /* Lighter primary */
    border-radius: var(--border-radius-full);
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0; /* Remove default padding */
}

.footer-nav li,
.footer-contact li {
    margin-bottom: var(--spacing-xs); /* Tighter spacing */
}

.footer-nav a,
.footer-contact a {
    color: rgba(255, 255, 255, 1); /* Full white for maximum contrast */
    transition: all var(--transition-normal);
    display: inline-block;
    padding: 2px 0; /* Add small vertical padding */
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--text-light); /* White on hover */
    transform: translateX(4px); /* Shift right */
}

.footer-contact i {
    margin-right: var(--spacing-sm);
    color: var(--primary-light); /* Lighter icon color */
    width: 1em; /* Align icons */
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg); /* More padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem; /* Smaller text */
    gap: var(--spacing-sm); /* Add gap for wrapping */
}

.copyright p {
    margin: 0;
    opacity: 0.9; /* Increased for better contrast */
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9); /* Brightened for better contrast */
    transition: color var(--transition-normal);
}
.footer-links a:hover {
    color: var(--text-light); /* White on hover */
}

/* Back to top button */
/* Styles for visibility are handled by JS adding/removing .visible class */
/* Base styles */
.back-to-top {
    position: fixed;
    bottom: 20px; /* Start position (adjust if needed) */
    right: 20px;
    width: 45px; /* Adjusted size */
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* Adjusted icon size */
    cursor: pointer;
    z-index: var(--z-sticky);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transform: translateY(20px); /* Start slightly down */
}
.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(15px) scale(1.05); /* Adjust hover transform */
    box-shadow: var(--shadow-lg);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Animate into view */
}


/* Cookie Consent Banner */
/* Styles for visibility are handled by JS adding/removing .visible class */
/* Base styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-dark); /* Dark background */
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    padding: var(--spacing-md);
    z-index: var(--z-toast);
    transform: translateY(100%); /* Start hidden below */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.cookie-consent.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: var(--spacing-md); /* Add gap */
}

.cookie-content p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem; /* Adjust text size */
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm); /* Smaller gap */
    flex-shrink: 0; /* Prevent shrinking */
}

.cookie-consent .btn-sm {
     padding: 0.4rem 0.8rem; /* Smaller padding */
     font-size: 0.8rem;
}
.cookie-consent .btn-primary { /* Style accept button */
    background: var(--primary-color);
}
.cookie-consent .btn-outline { /* Style decline button */
     border-color: rgba(255, 255, 255, 0.5);
     color: rgba(255, 255, 255, 0.8);
}
.cookie-consent .btn-outline:hover {
     background-color: rgba(255, 255, 255, 0.1);
     color: white;
     border-color: white;
}


.cookie-more {
    font-size: 0.85rem; /* Adjust size */
    color: var(--primary-lighter); /* Lighter link color */
    text-decoration: underline;
    margin-left: var(--spacing-xs);
}
.cookie-more:hover {
     color: white;
}


/* Modal Styles */
/* Styles for visibility are handled by JS adding/removing .active class */
/* Base styles */
.modal {
    position: fixed;
    inset: 0; /* Cover full viewport */
    display: flex; /* Use flex for centering */
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    overflow-y: auto; /* Allow scrolling if content overflows */
    padding: var(--spacing-md); /* Add padding for small screens */
    opacity: 0; /* Start hidden */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.7); /* Use dark bg color */
    backdrop-filter: blur(5px); /* Adjust blur */
    -webkit-backdrop-filter: blur(5px);
    z-index: -1; /* Behind container */
    /* Transition handled by parent .modal */
}

.modal-container {
    position: relative;
    width: 100%; /* Take full width within padding */
    max-width: 750px;
    max-height: 90vh; /* Limit height */
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95); /* Start slightly small */
    transition: transform 0.3s ease-out;
}
.modal.active .modal-container {
    transform: scale(1); /* Scale in */
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.4rem; /* Adjusted size */
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:hover {
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.modal-content {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex-grow: 1;
    background-color: var(--background-white);
}
/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary-lighter); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ======= 10. Animations & Transitions ======= */
/* Base fade-in used by JS */
.fade-in, .fade-in-delay, .fade-in-delay-2 {
     opacity: 0; /* Start hidden if JS adds class */
     /* Animation handled by JS keyframes or AOS */
}

/* Animation for elements that appear on scroll (AOS Fallback Styles) */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Fallback transition */
    will-change: opacity, transform;
}
[data-aos="fade-up"] { transform: translateY(30px); } /* Adjust distance */
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.95); } /* Subtle zoom */

/* State when AOS adds the animation class */
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1); /* Reset transform */
}


/* ======= 11. Form Styles ======= */
/* Base form styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-dark); /* Use dark text for labels */
    font-size: 0.9rem; /* Slightly smaller label */
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem; /* Adjust padding */
    border: 1px solid var(--border-medium); /* Use medium border */
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    background-color: var(--background-white); /* Ensure white background */
    line-height: 1.5; /* Ensure consistent line height */
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus); /* Use focus shadow variable */
}

textarea {
    min-height: 120px; /* Give textarea some default height */
    resize: vertical; /* Allow vertical resize */
}

select {
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236a1b9a" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Space for custom arrow */
}

/* Checkbox and Radio specific styling */
.checkbox-group, .radio-group { /* Use consistent class for groups */
    display: flex;
    align-items: center; /* Align items vertically */
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm); /* Reduce margin for groups */
}
.checkbox-group label, .radio-group label {
     margin-bottom: 0; /* Remove bottom margin on label within group */
     font-weight: normal; /* Normal weight for checkbox/radio labels */
     color: var(--text-medium);
     cursor: pointer;
     line-height: 1.4; /* Ensure label aligns well */
}
input[type="checkbox"], input[type="radio"] {
    width: 1.1em; /* Relative size */
    height: 1.1em;
    margin: 0; /* Remove default margin */
    flex-shrink: 0; /* Prevent shrinking */
    accent-color: var(--primary-color); /* Use theme color */
    cursor: pointer;
    position: relative; /* For potential custom styling */
    top: 1px; /* Fine-tune vertical alignment */
}

/* Form error/success styles - Keep in dynamically injected CSS if using JS for them */
/* Example base styles if not using JS injection for these: */
.form-error {
     color: var(--error);
     font-size: 0.875rem;
     margin-top: 0.5rem;
     display: none; /* Hide by default, shown by JS */
}
input.error, textarea.error, select.error {
     border-color: var(--error) !important; /* Ensure override */
}
/* .form-success { ... } */


/* Nomination Form Specific Styles */
.nomination-form {
    /* Keep base styles */
    padding: var(--spacing-lg); /* Add padding */
}
.nomination-form .form-section h4 { /* Style section headers */
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-lighter); /* Underline effect */
}

.nomination-form .form-row {
    display: grid; /* Use grid for better alignment */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: var(--spacing-md);
    margin-bottom: 0; /* Remove margin, handled by form-group */
}
.nomination-form .form-row .form-group {
     margin-bottom: var(--spacing-md); /* Restore margin within grid items */
}

.nomination-form .form-group {
    margin-bottom: var(--spacing-lg); /* Increase spacing between groups */
}

/* Style File Upload */
.file-upload-button {
    background: var(--background-light); /* Use light background */
    border: 2px dashed var(--border-medium); /* Use medium border */
    padding: var(--spacing-lg); /* More padding */
    color: var(--text-muted);
    font-weight: 500;
}
.file-upload-button i {
    font-size: 1.8rem; /* Slightly smaller icon */
    color: var(--primary-light); /* Lighter primary color */
}
.file-upload-container:hover .file-upload-button {
    background: rgba(106, 27, 154, 0.05);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.file-upload-text {
     margin-top: var(--spacing-sm); /* Reduce margin */
     font-size: 0.85rem;
     background-color: transparent; /* Remove background */
     padding: 0;
     text-align: center; /* Center text */
}
.file-upload-text.error-text { /* Class to add via JS for errors */
     color: var(--error);
     font-weight: 500;
}


.form-hint {
    font-size: 0.8rem; /* Smaller hint */
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.nomination-form .checkbox-group label a { /* Style link within checkbox label */
     font-weight: 500; /* Make link slightly bolder */
     text-decoration: underline;
}

.nomination-form .form-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light); /* Use light border */
    display: flex; /* Ensure flex for alignment */
    justify-content: space-between; /* Space out button and text */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    gap: var(--spacing-md);
}
.required-fields {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal; /* Remove italic */
    order: 2; /* Ensure it comes after button if wrapped */
}
.nomination-form .form-footer .btn {
    order: 1; /* Ensure button comes first visually */
}


/* ======= 12. Utilities ======= */
/* Keep utility classes as they are generally useful */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }
.bg-primary { background-color: var(--primary-color); color: var(--text-light); }
.bg-secondary { background-color: var(--secondary-color); color: var(--text-light); }
.bg-light { background-color: var(--background-light); }
.bg-white { background-color: var(--background-white); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: var(--border-radius-full); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--spacing-xs); } .mt-2 { margin-top: var(--spacing-sm); } .mt-3 { margin-top: var(--spacing-md); } .mt-4 { margin-top: var(--spacing-lg); } .mt-5 { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--spacing-xs); } .mb-2 { margin-bottom: var(--spacing-sm); } .mb-3 { margin-bottom: var(--spacing-md); } .mb-4 { margin-bottom: var(--spacing-lg); } .mb-5 { margin-bottom: var(--spacing-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; } .w-75 { width: 75%; } .w-50 { width: 50%; } .w-25 { width: 25%; }
.d-flex { display: flex; } .flex-column { flex-direction: column; } .justify-content-center { justify-content: center; } .justify-content-between { justify-content: space-between; } .align-items-center { align-items: center; }
.gap-1 { gap: var(--spacing-xs); } .gap-2 { gap: var(--spacing-sm); } .gap-3 { gap: var(--spacing-md); }

/* ======= 13. Accessibility ======= */
.visually-hidden { /* Standard visually hidden class */
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* Prevent wrapping */
    border: 0; /* Added */
    margin: -1px; /* Added */
    padding: 0; /* Added */
}
/* Focus styles moved to base elements for consistency */

/* ======= 14. Media Queries ======= */
/* Base responsive styles first */

@media (max-width: 992px) {
    /* Tablet */
    :root {
        --section-padding: 4rem;
        --header-height: 75px;
        font-size: 15px; /* Slightly smaller base font */
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .main-nav { padding: 0 var(--spacing-sm); } /* Less padding on nav */
    .nav-links { gap: var(--spacing-md); } /* Smaller gap in desktop nav */

    /* Vertical Category Nav Responsive */
    .categories-flex-container {
        flex-direction: column;
        gap: 30px;
    }
    .categories-nav-vertical {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 15px; /* Space below scrollable nav */
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-light) transparent;
        margin-bottom: var(--spacing-lg); /* Space below nav */
    }
    .categories-nav-vertical::-webkit-scrollbar { height: 4px; }
    .categories-nav-vertical::-webkit-scrollbar-track { background: transparent; }
    .categories-nav-vertical::-webkit-scrollbar-thumb { background-color: var(--primary-light); border-radius: 10px; }
    .categories-nav-vertical .category-nav-item {
        flex: 0 0 auto; /* Prevent shrinking */
        margin-bottom: 0;
        margin-right: var(--spacing-sm); /* Space between items */
        padding: 12px 18px; /* Adjust padding */
    }
    .categories-nav-vertical .category-nav-item:last-child { margin-right: 0; }

    .categories-cards-container {
        min-height: auto;
        width: 100%;
    }
    #categories .category-card { /* Reset positioning for stacking */
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none; /* Hide all */
        margin-bottom: var(--spacing-lg); /* Space between stacked cards if multiple were shown */
        width: 100%; /* Take full width */
    }
    #categories .category-card.active {
        display: block; /* Show only active */
        position: relative;
        z-index: 1;
    }


    .about-content, .judges-placeholder { grid-template-columns: 1fr; }
    .about-image { order: -1; max-width: 450px; margin: 0 auto;} /* Center image */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-branding { grid-column: 1 / -1; text-align: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 768px) {
    /* Mobile */
    :root {
        --section-padding: 3rem;
        --header-height: 70px;
    }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-intro { font-size: 1rem; }

    .hamburger { display: flex; } /* Show hamburger */
    .nav-links { /* Mobile nav styles */
        position: fixed;
        top: 0; /* Start hidden above */
        left: 0;
        width: 100%;
        height: 100vh; /* Full height */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
        transform: translateX(-100%); /* Start offscreen */
        transition: transform 0.4s ease-out;
        z-index: var(--z-drawer);
        gap: 0; /* Remove desktop gap */
        overflow-y: auto;
    }
    .nav-links.show {
        transform: translateX(0); /* Slide in */
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: var(--spacing-md) 0; font-size: 1.2rem; }
    .nav-cta { margin: var(--spacing-lg) auto 0; width: 80%; }
    .nav-cta .btn { width: 100%; }

    .cta-buttons { flex-direction: column; width: 80%; margin: 0 auto; }

    /* Adjust vertical category card padding */
    #categories .category-card .card-content { padding: var(--spacing-lg); }
    #categories .category-card .category-title { font-size: 1.6rem; }
    #categories .category-card .category-description { font-size: 0.95rem; }


    .timeline-container::before { left: 15px; } /* Adjust line position */
    .timeline-item { padding-left: 45px; } /* Adjust padding */
    .timeline-dot { left: 6px; width: 18px; height: 18px; border-width: 3px; }
    .timeline-dot::after { font-size: 10px; }

    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-content p { margin-bottom: var(--spacing-md); }
    .cookie-buttons { flex-direction: row; width: auto; } /* Row on mobile */

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-nav h3::after, .footer-contact h3::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: var(--spacing-md); }

    .form-row { grid-template-columns: 1fr; } /* Stack form rows */
    .nomination-form .form-row { grid-template-columns: 1fr; } /* Ensure nomination form rows stack too */
}

@media (max-width: 576px) {
    /* Small Mobile */
    :root {
        --section-padding: 2.5rem;
        --header-height: 65px;
        font-size: 14px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-content { padding: var(--spacing-lg); }

    .btn-large { padding: 0.9rem 1.8rem; font-size: 1rem; }
    .btn { padding: 0.7rem 1.2rem; }

    .categories-nav-vertical { padding-bottom: 10px; }
    .categories-nav-vertical .category-nav-item { padding: 10px 15px; font-size: 0.9rem; }

    #categories .category-card .card-content { padding: var(--spacing-md); }
    #categories .category-card .category-title { font-size: 1.4rem; }
    #categories .attribution-avatar { width: 35px; height: 35px; font-size: 0.8rem; margin-right: var(--spacing-sm); }
    #categories .quote-attribution { flex-direction: column; align-items: flex-start; gap: var(--spacing-xs); }

    .benefit-card { padding: var(--spacing-lg) var(--spacing-md); }

    .back-to-top { right: 15px; bottom: 15px; width: 40px; height: 40px; font-size: 1.2rem; }
    .back-to-top.visible { bottom: 15px; }

    .modal-container { width: 95%; margin: 15px auto; max-height: 90vh; }
    .modal-header h3 { font-size: 1.2rem; }
    .modal-content { padding: var(--spacing-md); }
    .nomination-form { padding: var(--spacing-md); }
    .form-section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
    .form-footer { flex-direction: column; gap: var(--spacing-md); }
}