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

/* USC Brand Colors */
:root {
    /* Primary USC Colors */
    --usc-cardinal: #990000;
    --usc-gold: #FFCC00;
    
    /* Secondary USC Colors */
    --usc-black: #000000;
    --usc-white: #FFFFFF;
    --usc-gray-30k: #CCCCCC;
    --usc-gray-70k: #767676;
    
    /* USC Tertiary Colors */
    --usc-peach: #F2C6A7;
    --usc-pink: #F26178;
    --usc-blue: #2B5597;
    --usc-olive: #908C13;
    --usc-yellow: #FDE021;
    --usc-lime: #DAE343;
    --usc-orange: #FF9015;
    --usc-red: #E43D30;
    
    /* USC Gradients */
    --usc-primary-gradient: linear-gradient(135deg, var(--usc-cardinal) 0%, var(--usc-gold) 100%);
    --usc-secondary-gradient: linear-gradient(135deg, var(--usc-red) 0%, var(--usc-yellow) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--usc-black);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo .usc-logo {
    display: flex;
    align-items: center;
}

.nav-logo .usc-logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--usc-primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--usc-cardinal); /* Fallback for browsers that don't support background-clip */
}

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

.nav-link {
    text-decoration: none;
    color: var(--usc-black);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--usc-cardinal);
}

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--usc-black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--usc-primary-gradient);
    color: var(--usc-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom;
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.usc-hero-logo {
    flex-shrink: 0;
}

.usc-hero-logo .logo-img {
    width: 225px;
    height: 75px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-brand-text .usc-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--usc-white);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.hero-brand-text .imsc-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--usc-gold);
    opacity: 0.95;
    letter-spacing: 0.25px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(18, end) infinite, fade-glow 4s infinite;
}

/* Typography animation effect */
.hero-title::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--usc-gold);
    animation: typing-cursor 4s infinite;
}

/* Typewriter effect */
@keyframes typing {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* Cursor blinking effect */
@keyframes typing-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Subtle glow effect */
@keyframes fade-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 204, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.detail-item i {
    width: 20px;
    text-align: center;
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(153, 0, 0, 0.3);
    background: var(--usc-gold);
    color: var(--usc-cardinal);
}

.btn-secondary {
    background: transparent;
    color: var(--usc-white);
    border: 2px solid var(--usc-white);
}

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

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    min-width: 120px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.floating-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--usc-primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--usc-cardinal); /* Fallback */
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--usc-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.about-card p {
    color: #666;
    line-height: 1.7;
}

/* Schedule Section */
.schedule {
    padding: 6rem 0;
    background: white;
}

.schedule-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: var(--usc-primary-gradient);
    margin-left: -1px;
}

.timeline-item:last-child::before {
    bottom: 0;
}

.timeline-date {
    text-align: right;
    padding-right: 2rem;
}

.timeline-date h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--usc-cardinal);
}

.timeline-content {
    position: relative;
    padding-left: 2rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--usc-cardinal);
    border-radius: 50%;
    border: 4px solid var(--usc-white);
    box-shadow: 0 0 0 2px var(--usc-cardinal);
}

.timeline-event {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid var(--usc-cardinal);
}

.timeline-event h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.timeline-event p {
    color: #666;
}

/* Prizes Section */
.prizes {
    padding: 6rem 0;
    background: #f8fafc;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.prize-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--usc-primary-gradient);
}

.first-place::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

.second-place::before {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}

.third-place::before {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.prize-card:hover {
    transform: translateY(-10px);
}

.prize-icon {
    width: 80px;
    height: 80px;
    background: var(--usc-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.first-place .prize-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

.second-place .prize-icon {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}

.third-place .prize-icon {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.prize-icon i {
    font-size: 2rem;
    color: white;
}

.prize-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--usc-cardinal);
    margin-bottom: 1.5rem;
}

.first-place .prize-amount {
    color: #ffa500;
}

.second-place .prize-amount {
    color: #808080;
}

.third-place .prize-amount {
    color: #cd7f32;
}

.prize-benefits {
    list-style: none;
    text-align: left;
}

.prize-benefits li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.prize-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--usc-cardinal);
    font-weight: bold;
}

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

.special-awards h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

.special-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.special-award {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.special-award:hover {
    transform: translateY(-5px);
}

.special-award i {
    font-size: 2rem;
    color: var(--usc-cardinal);
    margin-bottom: 1rem;
}

.special-award h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.special-award p {
    color: #666;
    font-weight: 500;
}

/* Sponsors Section */
.sponsors {
    padding: 6rem 0;
    background: white;
}

.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.sponsor-tier h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sponsor-placeholder {
    padding: 2rem 3rem;
    background: #f8fafc;
    border: 2px dashed #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
}

.sponsor-placeholder:hover {
    background: var(--usc-cardinal);
    color: var(--usc-white);
    border-color: var(--usc-cardinal);
}

.platinum .sponsor-placeholder {
    padding: 3rem 4rem;
    font-size: 1.5rem;
}

.gold .sponsor-placeholder {
    padding: 2.5rem 3.5rem;
    font-size: 1.3rem;
}

.sponsor-cta {
    text-align: center;
    margin-top: 3rem;
}

.sponsor-cta p {
    font-size: 1.1rem;
    color: #666;
}

.sponsor-cta a {
    color: var(--usc-cardinal);
    text-decoration: none;
    font-weight: 600;
}

.sponsor-cta a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    align-items: start;
}

/* Ensure proper responsive behavior for different screen sizes */
@media (min-width: 768px) and (max-width: 1023px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    flex-shrink: 0;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--usc-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--usc-white);
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

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

.social-links h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--usc-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--usc-white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Registration CTA */
.register-cta {
    padding: 6rem 0;
    background: var(--usc-primary-gradient);
    color: var(--usc-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--usc-cardinal);
    color: var(--usc-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Center the first footer section (title) */
.footer-section:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-section:first-child h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-section:first-child h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section:first-child h3 a:hover {
    color: var(--usc-gold);
}

/* Style other footer sections */
.footer-section:not(:first-child) {
    text-align: left;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section:not(:first-child) {
        text-align: center;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--usc-gold);
}

.footer-bottom {
    border-top: 1px solid var(--usc-gray-70k);
    padding-top: 1rem;
    text-align: center;
    color: var(--usc-gray-30k);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Page Styles */
.page-header {
    background: var(--usc-primary-gradient);
    color: var(--usc-white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    padding: 4rem 0;
    background: #f8fafc;
}

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

/* If sidebar content exists, use 2-column layout */
.content-grid.has-sidebar {
    grid-template-columns: 2fr 1fr;
}

.content-main {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--usc-cardinal);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.track-overview {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.track-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.track-card h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-card i {
    color: var(--usc-cardinal);
}

.timeline-overview {
    display: grid;
    gap: 1.5rem;
}

.timeline-phase {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
}

.timeline-phase h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.timeline-phase p:first-of-type {
    font-weight: 600;
    color: #48bb78;
    margin-bottom: 0.5rem;
}

.prizes-overview {
    display: grid;
    gap: 2rem;
}

.prize-category h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
}

/* .content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
} */

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

.fact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #edf2f7;
}

.fact-list i {
    color: #667eea;
    width: 20px;
}

.status-indicator {
    margin-bottom: 2rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2f7;
}

.status-label {
    font-weight: 500;
    color: #4a5568;
}

.status-value {
    padding: 0.25rem 0.75rem;
    background: #48bb78;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: #f7fafc;
    color: #667eea;
}

.contact-links i {
    color: #667eea;
    width: 20px;
}

/* Active navigation link */
.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

/* Section Navigation Styles for Consolidated Pages */
.section-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.section-nav.sticky {
    position: sticky;
    top: 70px;
}

.section-nav.sticky-active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-nav-links {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-nav-links::-webkit-scrollbar {
    display: none;
}

.section-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid transparent;
}

.section-nav-link:hover {
    background: #f8f9fa;
    color: var(--usc-cardinal);
    border-color: #e0e0e0;
}

.section-nav-link.active {
    background: var(--usc-cardinal);
    color: var(--usc-white);
    border-color: var(--usc-cardinal);
}

.section-nav-link i {
    font-size: 1rem;
}

/* Track Header Styles */
.track-header {
    background: var(--usc-primary-gradient);
    color: var(--usc-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.track-hero {
    max-width: 800px;
    margin: 0 auto;
}

.track-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.track-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.track-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.track-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section Styles */
.content-section {
    padding: 4rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

/* Leaderboard Styles */
.leaderboard-section {
    /* USC-themed leaderboard variables */
    --primary-color: var(--usc-cardinal);
    --secondary-color: var(--usc-gold);
    --card-bg: var(--usc-white);
    --border-color: var(--usc-gray-30k);
    --text-color: var(--usc-black);
    --text-muted: var(--usc-gray-70k);
    --success-color: var(--usc-cardinal);
    --accent-color: var(--usc-gold);
}

.leaderboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-muted);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Leaderboard Table */
.leaderboard-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 200px 100px 100px 120px 150px;
    gap: 20px;
    padding: 20px;
    background: var(--bg-gradient);
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 200px 100px 100px 120px 150px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    align-items: center;
}

.table-row:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.table-row.top-rank {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.08));
}

.table-row:last-child {
    border-bottom: none;
}

.rank-col {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-number {
    min-width: 24px;
}

.team-col {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.team-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.school-col {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-col {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.accuracy-col {
    font-weight: 600;
    color: var(--success-color);
}

.submission-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.submission-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.error-icon {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 20px;
}

.error-state h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.demo-btn, .retry-btn {
    margin-top: 20px;
}

/* =========================
   ORGANIZERS PAGE STYLES
   ========================= */

/* Organizing Committee Section */
.organizing-committee {
    margin-bottom: 4rem;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Organizer Cards */
.organizer-card,
.modern-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(103, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.organizer-card::before,
.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--usc-primary-gradient);
}

.organizer-card:hover,
.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(103, 126, 234, 0.2);
}

/* Organizer Photo */
.organizer-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(103, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.organizer-card:hover .organizer-photo {
    border-color: rgba(103, 126, 234, 0.3);
    transform: scale(1.05);
}

.organizer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--usc-primary-gradient);
    color: var(--usc-white);
    font-size: 2rem;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Organizer Info */
.organizer-info {
    text-align: center;
}

.organizer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.organizer-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--usc-cardinal);
    margin-bottom: 0.25rem;
}

.organizer-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.organizer-affiliation {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.organizer-bio {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(103, 126, 234, 0.05);
    border-radius: 8px;
    text-align: left;
}

.organizer-bio p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Contact Buttons */
.organizer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(153, 0, 0, 0.1);
    color: var(--usc-cardinal);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(153, 0, 0, 0.2);
}

.contact-btn:hover {
    background: var(--usc-cardinal);
    color: var(--usc-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
}

.contact-btn i {
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background: rgba(153, 0, 0, 0.03);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 4rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--usc-cardinal);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-detail {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Join Team Section */
.join-team-section {
    margin: 4rem 0;
}

.join-header {
    text-align: center;
    margin-bottom: 3rem;
}

.join-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.join-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.join-option {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(153, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.join-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--usc-primary-gradient);
}

.join-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.join-icon {
    width: 80px;
    height: 80px;
    background: var(--usc-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--usc-white);
}

.join-option h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.join-option p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Sample Dataset Section */
.sample-dataset {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dataset-description {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.dataset-description p {
    font-size: 1.1rem;
    color: var(--usc-gray-70k);
    line-height: 1.8;
}

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

.country-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.country-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--usc-cardinal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--usc-gold);
}

.country-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dataset-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dataset-image:hover {
    transform: scale(1.02);
}

.dataset-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.dataset-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dataset-cta p {
    font-size: 1.2rem;
    color: var(--usc-gray-70k);
    margin-bottom: 1.5rem;
}

.dataset-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--usc-cardinal);
    border: 2px solid var(--usc-cardinal);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--usc-cardinal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
}

/* Responsive Design for Sample Dataset */
@media (max-width: 968px) {
    .dataset-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .country-section {
        padding: 1.5rem;
    }
    
    .country-images {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }
    
    .dataset-image img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .sample-dataset {
        padding: 60px 0;
    }
    
    .country-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dataset-image img {
        height: 180px;
    }
    
    .dataset-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-secondary {
        width: 200px;
    }
}

/* Responsive Organizers Layout */
@media (max-width: 968px) {
    .organizers-grid,
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 969px) {
    .organizers-grid,
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Prevent text selection */
.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.unselectable::selection {
    background: transparent;
}

.unselectable::-moz-selection {
    background: transparent;
}


