/* -------------------------------------------
Project : THOR Neuromorphic Commons
Author  : Tej Pandit
Date    : March 2026
------------------------------------------- */

/* Fonts and Icons */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css);

/* General Body Styles */
html, body {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}
 
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ------------------------------------------- */
 
/* Header Styles */
.main-header {
    color: #fff;
    padding: 1rem 0;
    background: rgba(20, 20, 20, 0.5); /* Subtle background for dark sections */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    transition: background 0.3s ease; /* Smooth transition for header background */
    backdrop-filter: blur(10px);
}

.main-header.header-light {
    background: rgba(255, 255, 255, 0.2); /* Light background for light sections */
}
 
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
    filter: invert(0); /* Default: Makes the logo white (assuming original is dark) */
    transition: filter 0.3s ease; /* Smooth transition for logo color change */
}
.main-header.header-light .logo img {
    filter: invert(1); /* Revert to original (dark) color for light sections */
}
/* ------------------------------------------- */ 

/* Navigation Bar Styles */
.nav-menu {
    padding: 0;
    list-style: none;
    margin: 0;
}
 
.nav-menu li {
    display: inline;
    margin-right: 20px;
}
 
.nav-menu li:last-child {
    margin-right: 0;
}
 
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease; /* Smooth transition for link color */
}
.main-header.header-light .nav-menu a {
    color: #333; /* Dark link color for light sections */
}
/* ------------------------------------------- */

/* Mobile Menu Specifics */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}
 
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: background 0.3s ease; /* Smooth transition for hamburger color */
}
.main-header.header-light .menu-toggle span {
    background: #333; /* Dark hamburger color for light sections */
}
 
.mobile-menu-fullscreen {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.98);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-fullscreen.is-open {
    display: flex; /* Show the menu */
}

.mobile-menu-fullscreen .nav-menu li {
    display: block;
    margin: 0 0 2rem 0;
    text-align: center;
}

.mobile-menu-fullscreen .nav-menu a {
    font-size: 1.8rem;
}

.menu-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-close-btn .fa-times {
    color: #fff;
    font-size: 2rem;
}
/* ------------------------------------------- */

/* Main Banner Section */
.main-banner {
    background-image: url('../img/home/THOR Neurobench Challenge Banner Right.webp');
    background-size: cover;
    background-position: center;
    background-color: #070915;
    color: #fff;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center; /* Vertically center content */ 
    text-align: left;
}

.main-banner .container {
    padding-top: 2rem; /* Adjust this value to position banner content */
    width: 100%;
}

.competition-header {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 15px; /* Space between logo and text */
    margin: 0 0 1rem 0; /* Inherit original h1 margin */
}

.competition-header img {
    height: 4.5rem; /* Match h1 font-size for visual balance */
    width: auto; /* Maintain aspect ratio */
    padding-bottom: 0; /* Override any existing padding */
    filter: invert(0); /* Ensure logo color is correct for dark background */
}

.competition-header h1 {
    margin: 0; /* Remove default h1 margin */
    font-size: 4.5rem; /* Keep original h1 font size */
    padding-top: 12px;
    font-weight: 300;
    line-height: 1.1;
    text-shadow: 8px 8px 12px rgb(0, 0, 0);
}

.main-banner h1 span{
    font-weight: 600;
}
.main-banner p {
    margin: 0;
    font-size: 1.3rem;
    max-width: 500px; /* Constrain line length for readability */
}

.banner-actions {
    margin-top: 2rem;
}

.banner-actions .btn {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px; /* Rounded corners */
    margin-right: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #ffa304; /* Yellow */
    color: #333;
}

.btn-primary:hover {
    background-color: #f0d06f;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
/* ------------------------------------------- */


/* ------------------------------------------- */

/* Partner Section */
.partner-section {
    padding: 5rem 0;
    background-color: #f4f4f4;
}

.partner-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.partner-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.partner-item {
    position: relative;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    flex-basis: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.partner-item img {
    max-width: 80%;
    /* max-height: 60px; */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-lead {
    background-color: #ffffff; /* Slightly different background */
    transform: scale(1.05);
}

.partner-lead-title {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffa304;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 60%;
    text-align: center;
}

.support-agency img {
    max-width: 300px;
}

.support-agency-grid {
    justify-content: center;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
}
/* ------------------------------------------- */



/* Basic Responsive: Hide desktop nav on small screens */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .menu-toggle {
        display: block;
    }

    .main-header .container {
        /* Ensure toggle is on the far right */
        justify-content: space-between;
    }

    .mobile-nav a:hover {
        color: #ffa304;
    }

    .main-banner h1 {
        font-size: 3rem;
    }

    @media (max-width: 768px) {
        .competition-header {
            flex-direction: column; /* Stack on smaller screens */
            align-items: flex-start; /* Align to left on smaller screens */
            gap: 5px;
        }
        .competition-header img {
            height: 3rem; /* Smaller logo on mobile */
            margin-bottom: 0;
        }
        .competition-header h1 {
            font-size: 3rem; /* Smaller h1 on mobile */
        }
    }

    .ecosystem-details {
        display: none;
    }

    .news-item {
        padding-left: 40px;
        padding-right: 40px;
    }

    .about-content {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }

    .about-image {
        margin-top: 2rem;
        max-width: 400px; /* Constrain image size on mobile */
    }
    .support-agency-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .grid-item {
        padding-top: 160px; /* Reset mobile padding */
    }
    .about-text p {
        margin-top: 10px;
        margin-right: 0px;
    }
    .about-image img {
        height: 400px;
    }
    .partner-item {
        max-width: 120px;
        padding: 10px;
    }
    .partner-item img {
        max-width: 100%;
    }
    .support-agency-grid {
        justify-content: center;
    }
    .support-agency {
        max-width: 100%;
        
    }
    .support-agency img {
        max-width: 80%;
    }
}

/* ------------------------------------------- */
/* Speaker List Styles for Schedule */
.speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.speaker-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.speaker-thumb {
    width: 60px;
    height: 85px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #ffa304;
}

.speaker-info {
    display: flex;
    flex-direction: column;
}

.speaker-info a {
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.speaker-info a:hover {
    color: #ffa304;
}

.speaker-info span {
    font-size: 0.8rem;
    color: #777;
}

/* ------------------------------------------- */
/* Competition Section */
.competition-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ------------------------------------------- */
/* Competition Dataset Section */
.competition-dataset-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.competition-dataset-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.reference-publication {
    padding: 1rem 0; /* Add some vertical padding */
    margin-top: 1.5rem; /* Space above the reference */
    margin-bottom: 1.5rem; /* Space below the reference */
    line-height: 1.6;
    color: #555; /* Slightly darker text for the paragraph */
}

.comp-references {
    color: #b04f00; /* Darker color for the link */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.comp-references:hover {
    color: #ffa304; /* Yellow color on hover */
}

/* Sub-heading styles */
.sub-heading {
    color: #ffa304; /* Yellow color */
    font-size: 1.3rem; /* Slightly larger than body text, smaller than h2 */
    font-weight: 600; /* Bold */
    margin-top: 2rem; /* Space above the sub-heading */
    margin-bottom: 1rem; /* Space below the sub-heading */
}

/* Dataset List styles */
.dataset-list {
    list-style: none; /* Remove default list styling */
    padding-left: 0; /* Remove default padding */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.dataset-list li {
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
    margin-bottom: 0.8rem; /* Space between list items */
    line-height: 1.6;
    color: #333; /* Default text color */
}

.dataset-list li::before {
    content: '→'; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #ffa304; /* Yellow color for the bullet */
    font-weight: bold;
}

#dataset h2 {
    margin-top: 80px;
}

.dataset-image {
    width: 100%;
}

.dataset-image-right {
    float: right;
    margin-left: 20px; /* Space between image and text */
    max-width: 50%; /* Allow image to take up to 50% of the container width */
    width: 100%;
}

/* ------------------------------------------- */
/* Competition Challenge Section */
.competition-challenge-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.competition-challenge-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.competition-challenge-section p{
    text-align: justify;
}

#challenge h2 {
    margin-top: 80px;
}

.challenge-bold {
    /* font-weight: bold; */
    color: #b04f00;
}

/* ------------------------------------------- */
/* Competition Instructions Section */
.competition-instruct-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.competition-instruct-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.instruction-cards-grid {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    justify-content: center; /* Center cards horizontally */
    gap: 2rem; /* Space between cards */
    margin-top: 3rem;
}

.instruction-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    flex: 1; /* Allow cards to grow and shrink */
    min-width: 40%; /* Minimum width for cards before wrapping */
    max-width: 300px; /* Max width for cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.instruction-card .card-icon {
    font-size: 3rem;
    color: #051423; /* Accent color */
    margin-bottom: 1.5rem;
}

.instruction-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.instruction-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take up available space */
    margin-bottom: 1.5rem;
}

.instruction-card .btn-primary {
    margin-top: auto; /* Push button to the bottom */
    width: fit-content; /* Ensure button only takes necessary width */
}

@media (max-width: 768px) { /* For smaller mobile screens, switch to single column */
    .instruction-cards-grid {
        flex-direction: row; /* Stack cards vertically */
        align-items: center;
        gap: 1rem;
    }
    .instruction-card {
        width: 20%; /* Take up most of the width */
        max-width: 350px; /* Prevent from getting too wide on very small screens */
        min-width: unset; /* Remove min-width constraint for single column */
        height: 450px;
    }
}

@media (max-width: 480px) {
    .instruction-card p {
        display: none;
    }
    .instruction-card {
        height: 300px;
    }
    .instruction-card .btn-primary {
        margin-top: auto; /* Push button to the bottom */
        margin-left: 15px;
        width: 80%; /* Ensure button only takes necessary width */
        /* Removed width: 80% to allow fit-content and centering */
    }
}

/* ------------------------------------------- */
/* Competition Schedule Section */
.competition-schedule-section {
    padding: 5rem 0;
    background-color: #051423;
}

.competition-schedule-section h1 {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.schedule-item {
    background-color: #020f1c; /* Dark background for the item */
    color: #fff; /* Default white text color for the item */
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem; /* Space before the next item */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Subtle shadow */
    transition: opacity 0.3s ease; /* Smooth transition for opacity change */
}

/* Class for past events to reduce opacity */
.past-event .schedule-date {
    color: #d3bc6f;
}

.schedule-header-row {
    display: flex;
    justify-content: space-between; /* Puts date and title on opposite ends */
    align-items: baseline; /* Aligns text baselines */
    margin-bottom: 0.75rem; /* Space between header and description */
}

.schedule-date {
    font-weight: 600;
    color: #ffa304; /* Yellow highlight color */
    font-size: 1.1rem;
    flex-shrink: 0; /* Prevent date from shrinking */
    padding-right: 1rem; /* Space between date and title if title is long */
}

.schedule-item h3 {
    margin: 0; /* Remove default h3 margin */
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff; /* White color for the title */
    text-align: right; /* Align title to the right */
    flex-grow: 1; /* Allow title to take available space */
}

.schedule-description {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc; /* Slightly lighter white for description */
}

@media (max-width: 480px) {
    .schedule-header-row {
        display: block;
        justify-content: space-between;
    }
    .schedule-item h3 {
        text-align: left; /* Align title to the right */
    }
}

/* ------------------------------------------- */
/* Competition Awards Section */
.competition-awards-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.competition-awards-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.competition-awards-section p{
    text-align: justify;
}

/* ------------------------------------------- */
/* Competition Contact Section */
.competition-contact-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.competition-contact-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}