/* style.css */

/* ========== Global Styles & Variables ========== */
:root {
    --primary-color: #1A3A5A; /* Deep Blue */
    --secondary-color: #F4F7F9; /* Calm Gray */
    --accent1-color: #4DD0E1; /* Vibrant Teal */
    --accent2-color: #BFA06A; /* Warm Ochre */
    --text-color: #333333;
    --light-text-color: #F4F7F9;
    --gray-text-color: #666;
    --border-color: #e0e0e0;

    --font-primary: 'Montserrat', 'Noto Sans TC', sans-serif;
    --font-secondary: 'Noto Sans TC', sans-serif; /* Ensure Noto Sans TC is primary for Chinese */

    --header-height: 70px;
    --container-width: 1140px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling with nav links */
}

body {
    font-family: var(--font-secondary); /* Prioritize Noto Sans TC */
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary); /* Montserrat for headings */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 15px; }
/* Simple underline effect for section titles */
h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent1-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--gray-text-color); }
a { color: var(--accent1-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent2-color); }
ul { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-bg {
    background-color: #fff; /* White background for alternating sections */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-family: var(--font-primary);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--accent2-color);
    border-color: var(--accent2-color);
    color: var(--light-text-color);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}


/* ========== Header ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(26, 58, 90, 0.9); /* Semi-transparent Deep Blue */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Add a class on scroll if needed */
/* #header.scrolled { background-color: var(--primary-color); } */

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text-color);
    font-family: var(--font-primary);
}
.logo:hover {
    color: var(--accent1-color);
}

#navbar ul {
    display: flex;
    gap: 30px;
}

#navbar a {
    color: var(--light-text-color);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

#navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent1-color);
    transition: width 0.3s ease;
}

#navbar a:hover::after,
#navbar a.active::after { /* Add .active class via JS */
    width: 100%;
}

#mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.5rem;
    cursor: pointer;
}


/* ========== Hero Section ========== */
#hero {
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-text-color);
    /* Add a background image - replace with your actual image */
    background: url('https://via.placeholder.com/1920x1080/1A3A5A/F4F7F9?text=Background+Image') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 58, 90, 0.7); /* Darker overlay */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

#hero .subtitle {
    font-size: 1.2rem;
    color: rgba(244, 247, 249, 0.8); /* Lighter gray */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== About Section ========== */
#about { padding: var(--section-padding); }

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Align items to the top */
}

.about-text {
    flex: 2; /* Takes more space */
}

.about-text h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text ul {
    margin-top: 20px;
    padding-left: 0;
}
.about-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--gray-text-color);
}
.icon-value {
    color: var(--accent2-color);
    margin-right: 10px;
    font-size: 1.2em;
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}

.about-image {
    flex: 1;
    max-width: 400px; /* Control image size */
    margin-top: 20px; /* Align top slightly lower than text */
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* ========== Expertise Section ========== */
#expertise { padding: var(--section-padding); }

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

.expertise-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff; /* White background for items */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-item i { /* Icon styling */
    color: var(--accent1-color);
    margin-bottom: 20px;
}

.expertise-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.expertise-item ul {
    padding-left: 0;
}

.expertise-item li {
    color: var(--gray-text-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}


/* ========== Projects Section ========== */
#projects { padding: var(--section-padding); }

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

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image nicely */
}

.card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to push button down */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background-color: rgba(77, 208, 225, 0.15); /* Light Teal */
    color: var(--accent1-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Different tag colors (optional) */
.tag-social { background-color: rgba(191, 160, 106, 0.15); color: var(--accent2-color); }
.tag-tech { background-color: rgba(26, 58, 90, 0.1); color: var(--primary-color); }
.tag-edu { background-color: rgba(77, 208, 225, 0.15); color: var(--accent1-color); }
.tag-entrepreneur { background-color: rgba(77, 208, 225, 0.15); color: var(--accent1-color); }
.tag-data { background-color: #e0e0e0; color: #555; }
.tag-design { background-color: rgba(251, 255, 0, 0.15); color: var(--accent2-color); }
.tag-leadership { background-color: rgba(26, 58, 90, 0.1); color: var(--primary-color); }
.tag-interdisciplinary { background-color: #e0e0e0; color: #555; }

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1; /* Push button down */
}
.card-content p strong {
    color: var(--text-color);
}
.card-content .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button left */
}

/* ========== Insights Section (Optional) ========== */
#insights { padding: var(--section-padding); }
.insights-list { margin-top: 40px; }
.insight-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.insight-item h4 a { color: var(--primary-color); }
.insight-item h4 a:hover { color: var(--accent1-color); }
.insight-item .insight-source {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-text-color);
    margin-top: 5px;
}

/* ========== Contact Section ========== */
#contact {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

#contact h2 {
    color: var(--light-text-color);
}
#contact h2::after {
    background-color: var(--accent1-color); /* Line color on dark bg */
}

#contact p {
    color: rgba(244, 247, 249, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Wrap links on smaller screens */
}

.contact-links a {
    color: var(--light-text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-links a i {
    transition: color 0.3s ease;
    color: var(--accent1-color); /* Icon color */
}

.contact-links a:hover {
    color: var(--accent1-color);
    transform: translateY(-5px);
}
.contact-links a:hover i {
    color: var(--light-text-color);
}

/* ========== Footer ========== */
footer {
    background-color: #11273d; /* Slightly darker blue */
    color: rgba(244, 247, 249, 0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-links {
    margin-top: 10px;
}
.footer-links a {
    color: rgba(244, 247, 249, 0.6);
    margin: 0 10px;
    font-size: 1.2rem;
}
.footer-links a:hover {
    color: var(--accent1-color);
}

/* ========== Responsive Design ========== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    :root { --container-width: 960px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .about-content { flex-direction: column; align-items: center; }
    .about-image { max-width: 80%; margin-top: 30px; }
}

/* Mobile devices */
@media (max-width: 768px) {
    :root { --header-height: 60px; --section-padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 30px; }
    #hero { height: 80vh; }
    #hero .subtitle { font-size: 1rem; }

    /* Mobile Navigation */
    #navbar {
        position: absolute;
        top: var(--header-height);
        right: -100%; /* Initially hidden off-screen */
        width: 70%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        transition: right 0.3s ease-in-out;
        padding-top: 20px;
    }
    #navbar.active { /* Add this class via JS */
        right: 0;
    }
    #navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    #navbar li {
        width: 100%;
        text-align: center;
    }
    #navbar a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
     #navbar a::after { display: none; } /* Hide underline on mobile nav */
     #navbar a:hover, #navbar a.active {
        background-color: rgba(77, 208, 225, 0.1);
        color: var(--accent1-color);
    }

    #mobile-menu-toggle {
        display: block; /* Show button on mobile */
    }

    .expertise-grid { grid-template-columns: 1fr; } /* Stack items */
    .project-grid { grid-template-columns: 1fr; } /* Stack cards */
    .contact-links { gap: 20px; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    .btn { padding: 10px 25px; font-size: 0.8rem;}
    .about-content { gap: 20px;}
    .expertise-item { padding: 20px 15px; }
    .card-content { padding: 15px; }
    .card-content h3 { font-size: 1.1rem; }
    .card-content p { font-size: 0.85rem; }
}


/* Add these styles to your existing style.css */

/* Date Tag for Experience */
.date-tag {
    display: block; /* Put date on its own line */
    font-size: 0.8rem;
    color: var(--gray-text-color);
    margin-bottom: 10px;
    font-style: italic;
}

/* Modify project card content padding if needed */
.card-content {
    padding: 20px; /* Adjust as needed */
    /* ... other card-content styles ... */
}
/* Ensure button doesn't overlap date tag */
.card-content .btn {
    margin-top: 15px; /* Add some space above button */
     /* ... other btn styles ... */
}


/* Impact Snapshot Section */
#impact {
    padding: var(--section-padding);
    background-color: #fff; /* Or keep var(--secondary-color) */
}

#impact h2 {
    /* Styles for section title */
}

#impact p {
    /* Styles for introductory paragraph */
}

.chart-container {
    position: relative;
    margin: 30px auto; /* Center chart */
    height: 400px; /* Adjust height as needed */
    max-width: 800px; /* Max width for readability */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}


/* Contact Section Background (Changed to section-bg) */
#contact {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--secondary-color); /* Changed from primary */
    color: var(--text-color); /* Text color back to default */
}

#contact h2 {
    color: var(--primary-color); /* Heading color back to default */
}
#contact h2::after {
    background-color: var(--accent1-color); /* Keep accent line */
}

#contact p {
    color: var(--gray-text-color); /* Paragraph color back to default gray */
    /* ... other paragraph styles ... */
}

.contact-links a {
    color: var(--primary-color); /* Link color back to default */
     /* ... other link styles ... */
}

.contact-links a i {
    color: var(--accent1-color); /* Keep icon color accent */
     /* ... other icon styles ... */
}

.contact-links a:hover {
    color: var(--accent1-color); /* Hover color */
     /* ... other hover styles ... */
}
.contact-links a:hover i {
    color: var(--primary-color); /* Icon color change on hover */
}

/* Responsive adjustments for chart */
@media (max-width: 768px) {
    .chart-container {
        height: 350px;
        padding: 15px;
    }
}
@media (max-width: 576px) {
    .chart-container {
        height: 300px;
        padding: 10px;
    }
     /* Adjust expertise grid for better spacing on mobile */
     .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjust minmax */
        gap: 20px;
    }
     .expertise-item {
        padding: 20px 15px;
    }
}

/* Add this if you adjusted #contact background */
#contact.section-bg {
    background-color: #fff; /* Ensure it follows the alternating pattern if needed */
}

/* About Section - Animated Counters */
.counters {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap; /* Wrap on smaller screens */
    gap: 20px;
}

.counter-item {
    flex: 1;
    min-width: 180px; /* Minimum width for each counter */
}

.counter-icon {
    font-size: 2.5rem;
    color: var(--accent1-color);
    margin-bottom: 10px;
    display: block;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block; /* Keep % sign next to number */
}
.counter-item span:not(.counter-number) { /* For the % sign */
     font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 2px;
}

.counter-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-text-color);
    margin-top: 5px;
}


/* Project Card Image Cropping */
.project-card img {
    width: 100%;
    height: 200px; /* Or your desired fixed height */
    object-fit: cover; /* This crops the image */
    display: block; /* Remove extra space below image */
}

/* Competitions & Awards Section */
#awards {
    padding: var(--section-padding);
    background-color: var(--primary-color); /* Use primary color for contrast */
    color: var(--light-text-color);
}

#awards h2 {
    color: var(--light-text-color);
    text-align: center;
}
#awards h2::after {
    background-color: var(--accent1-color);
}

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

.award-item {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}
.award-item:hover {
     background-color: rgba(255, 255, 255, 0.1);
}

.award-icon {
    font-size: 2.5rem;
    color: var(--accent2-color); /* Warm accent for awards */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.award-details h4 {
    font-size: 1.2rem;
    color: var(--light-text-color);
    margin-bottom: 5px;
    font-family: var(--font-secondary); /* Use Noto Sans for award titles */
    font-weight: 700;
}

.award-details p {
    font-size: 0.9rem;
    color: rgba(244, 247, 249, 0.8);
    margin-bottom: 5px;
}

.award-details .date-tag {
    font-size: 0.8rem;
    color: rgba(244, 247, 249, 0.6);
    display: block;
    margin-top: 5px;
}

/* Ensure section-bg alternates correctly */
#impact.section-bg {
     background-color: #fff;
     color: var(--text-color); /* Reset text color */
}
#impact.section-bg h2 {
     color: var(--primary-color); /* Reset heading color */
}
#impact.section-bg p {
     color: var(--gray-text-color); /* Reset paragraph color */
}
#impact.section-bg .chart-container {
     background-color: #fff; /* Chart background matches section */
}

#contact {
     /* Ensure contact section has correct background if alternation changed */
     background-color: var(--secondary-color);
     color: var(--text-color);
}
#contact h2 { color: var(--primary-color); }
#contact h2::after { background-color: var(--accent1-color); }
#contact p { color: var(--gray-text-color); }
#contact .contact-links a { color: var(--primary-color); }
#contact .contact-links a i { color: var(--accent1-color); }
#contact .contact-links a:hover { color: var(--accent1-color); }
#contact .contact-links a:hover i { color: var(--primary-color); }


/* Responsive Adjustments */
@media (max-width: 576px) {
    .counters { gap: 10px; padding: 15px 0;}
    .counter-item { min-width: 140px; } /* Allow more items per row on small screens */
    .counter-icon { font-size: 2rem; }
    .counter-number, .counter-item span:not(.counter-number) { font-size: 2rem; }

    .award-item { flex-direction: column; text-align: center; gap: 15px; }
    .award-icon { margin-bottom: 5px; }
}

/* Add these styles or modify existing ones */

/* General Animation Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for hero content fade-in */
#hero .container.fade-in {
     opacity: 0;
     transition: opacity 0.8s 0.2s ease-in; /* Delay the fade-in slightly */
}
#hero .container.fade-in.visible {
     opacity: 1;
}


/* About Section - Icon Value Adjustments */
.icon-value {
    color: var(--accent2-color);
    margin-right: 12px; /* Slightly more space */
    font-size: 1.3em;  /* Slightly larger */
    width: 25px;
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}
/* Ensure list items have enough vertical space if icons wrap */
.about-text ul li {
    margin-bottom: 12px;
    align-items: flex-start; /* Align top if text wraps */
}


/* Competitions Section */
#competitions {
    padding: var(--section-padding);
}

.competitions-list {
    margin-top: 40px;
    max-width: 900px; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

.competition-item {
    display: flex;
    align-items: flex-start; /* Align icon and text top */
    background-color: #fff; /* Card background */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.competition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.competition-icon {
    font-size: 1.8rem;
    color: var(--accent1-color);
    margin-right: 25px;
    padding-top: 5px; /* Align icon visually with first line */
    width: 40px; /* Fixed width */
    text-align: center;
    flex-shrink: 0;
}
/* Different icon color */
.competition-item:nth-child(even) .competition-icon {
    color: var(--accent2-color);
}

.competition-details h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.competition-details p {
    font-size: 0.95rem;
    color: var(--gray-text-color);
    margin-bottom: 5px;
    line-height: 1.6;
}


/* Impact Snapshot Section - Chart Container */
.chart-container {
    position: relative;
    margin: 30px auto;
    height: 350px; /* Adjust height for horizontal chart */
    max-width: 900px; /* Can be wider for horizontal */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Adjust background colors based on new section structure */
#experience, #competitions, #contact { /* These are now light */
    background-color: var(--section-bg); /* #fff */
}
#about, #projects, #impact { /* These can be the secondary color */
     background-color: var(--secondary-color); /* #F4F7F9 */
     /* Or remove background-color to default to body's secondary color */
}
/* Or simply alternate */
section:nth-of-type(odd) { background-color: var(--secondary-color); }
section:nth-of-type(even) { background-color: #fff; }
/* Re-apply specific backgrounds if needed */
#hero { background: url('images/hero_background.png') no-repeat center center/cover; /* Keep Hero bg */ }
#contact { background-color: var(--section-bg); /* Ensure contact is light */ }


/* Responsive adjustments */
@media (max-width: 768px) {
    /* Adjust competition item layout */
    .competition-item {
        padding: 20px;
    }
    .competition-icon {
        font-size: 1.6rem;
        margin-right: 20px;
    }
    .competition-details h4 {
        font-size: 1.1rem;
    }
     /* Ensure alternating backgrounds work correctly with JS added sections */
     main > section:nth-of-type(odd) { background-color: var(--secondary-color); }
     main > section:nth-of-type(even) { background-color: #fff; }
     #hero + section { background-color: #fff; } /* Ensure section after hero is light */
     /* ... other responsive styles ... */
}

@media (max-width: 576px) {
    .competition-item {
        flex-direction: column; /* Stack icon on top */
        align-items: center;
        text-align: center;
    }
    .competition-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
     /* ... other responsive styles ... */
}