/* -------------------------------------------
Project : THOR Neuromorphic Commons
Author  : Tej Pandit
Date    : Feb 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;
}
/* ------------------------------------------- */

/* START Test Banner Section  TODO => remove after launch Nov 12, 2025*/
.test-banner {
    background-image: url('../../../img/home/lsnc.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center; /* Vertically center content */ 
    text-align: left;
}

.test-banner .container {
    padding-top: 25rem; /* Adjust this value to position banner content */
    width: 100%;
}
 
.test-banner h1 {
    margin: 0 0 1rem 0;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    text-shadow: 8px 8px 12px rgb(0, 0, 0);
}
/* END Test Banner Section  TODO => remove after launch Nov 12, 2025*/

/* ------------------------------------------- */

/* Main Banner Section */
.main-banner {
    background-image: url('../../../img/home/Spin2Array.jpg');
    background-size: cover;
    background-position: center;
    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%;
}

.main-banner img {
    padding-bottom: 20px;
    width: 300px;
}
 
.main-banner h1 {
    margin: 0 0 1rem 0;
    font-size: 4.5rem;
    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 {
    margin-bottom: 100px;
}

.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: left;
}

/* 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;
    }

    .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%;
    }
}


/* ------------------------------------------- */
/* Events Timeline Section */

/* Events Banner Section */
.events-banner {
    padding: 7rem 0;
    background-color: #121212;
    color: #fff;
    padding-bottom: 20px;
}

.events-banner h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.events-banner .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* Events Timeline Section */
.events-timeline {
    padding: 2rem 0;
    background-color: #121212;
    padding-bottom: 150px;
}

.events-timeline .container {
    /* Override default container padding to allow slider to go edge-to-edge */
    max-width: none;
    padding: 0;
    /* height: 100vh; */
}

.events-timeline .swiper {
    height: 100%;
    padding: 0 20px; /* Add padding here to keep content from touching screen edges */
}

.events-timeline .swiper-slide {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center; /* Vertically center the card in the slide */
    justify-content: center;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 550px; /* Set a fixed, uniform height for all cards */
    width: 100%;
    max-width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-card img {
    width: 100%;
    height: 250px; /* A fixed height for the image area maintains card uniformity */
    object-fit: cover; /* Scales the image to cover the container, cropping if necessary */
}

.event-details {
    padding: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows this container to fill the remaining space */
}

.event-details h3 {
    margin-top: 0;
    height: 80px;
}

.event-details p {
    margin: 0.5rem 0;
    color: #555;
}

.event-details .btn {
    padding: 0.6rem 1.5rem; /* Reduced padding for a smaller button */
    margin-top: auto; /* Pushes the button to the bottom */
    align-self: flex-start; /* Ensures button doesn't stretch full width */
}

@media (max-width: 480px) {
    .event-details .btn{
        font-size: 12px;
        padding: 0.3rem 1rem; 
    }
    .events-banner h1 {
        font-size: 2rem;
    }
}

/* ------------------------------------------- */
/* Event Schedule Section */
.event-schedule-section {
    padding: 5rem 0;
    /* background-color: #fff; */
}

.event-schedule-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.schedule-container {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex: 0 0 180px;
    font-weight: 600;
    color: #ffa304;
    font-size: 1.1rem;
}

.schedule-content {
    flex: 1;
}

.schedule-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
}

.schedule-content p {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 600px) {
    .schedule-item {
        flex-direction: column;
    }
    .schedule-time {
        flex: none;
        margin-bottom: 0.5rem;
    }
}

/* 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;
}

/* ------------------------------------------- */
/* Venue Section */
.venue-section {
    padding: 5rem 0;
    background-color: #0e0e0e;
}

.venue-section h1 {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.venue-info-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: #1f1f1f;
    padding: 2.5rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.venue-image {
    flex: 1;
}

.venue-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.venue-details-text {
    flex: 1.2;
}

.venue-details-text h3 {
    margin-top: 0;
    color: #ffa304;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.venue-address {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.map-link {
    color: #ffa304;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

.venue-instructions p {
    line-height: 1.7;
    color: #ccc;
    margin: 0;
}

@media (max-width: 768px) {
    .venue-info-wrapper {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
    .venue-details-text {
        text-align: center;
    }
    .venue-address {
        justify-content: center;
    }
}

/* ------------------------------------------- */
/* Accommodations Section */
.accomodations-section {
    padding: 5rem 0;
    /* background-color: #f9f9f9; */
}

.accomodations-section h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 5rem;
    margin-bottom: 3rem;
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hotel-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hotel-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.hotel-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.hotel-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hotel-actions .btn {
    margin-right: 0;
}

.booking-instructions-trigger {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #565656;
    cursor: help;
    text-decoration: underline;
    position: relative;
}

.instructions-tooltip {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.booking-instructions-trigger:hover .instructions-tooltip {
    visibility: visible;
    opacity: 1;
}

/* More Hotels Section */
.more-hotels-toggle-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.more-hotels-container {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.more-hotel-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.more-hotel-item:last-child {
    border-bottom: none;
}

.more-hotel-main a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
}

.more-hotel-main a:hover {
    color: #ffa304;
}

.more-hotel-meta {
    font-size: 0.9rem;
    color: #777;
}

.star-rating {
    color: #ffa304;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .more-hotel-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .hotel-card {
        width: 100%;
    }
}

/* ------------------------------------------- */
/* Tutorial Page Specific Styles */
.tutorial-banner {
    background-image: url('../../../img/home/neuromorphic_hardware.jpg');
}

.tutorial-info-section {
    padding: 5rem 0;
    background-color: #fff;
}

.tutorial-grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-card h2 {
    color: #ffa304;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffa304;
    font-weight: bold;
}

.hardware-focus-section {
    padding: 5rem 0;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
}

.hardware-highlight {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ffa304;
    border-radius: 12px;
}

.hardware-highlight h3 {
    font-size: 2rem;
    color: #ffa304;
    margin-bottom: 1rem;
}

.getting-started-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.step-number {
    background: #ffa304;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tutorial-pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 1rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

.modules-section {
    padding: 5rem 0;
    background-color: #121212;
    color: #fff;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.module-card {
    background: #1f1f1f;
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 4px solid #ffa304;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Use ease-out for a snappier lift */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    will-change: transform, box-shadow; /* Performance hint for browsers */
    display: block; /* Ensure transform affects layout */
}

.module-blue {
    border-bottom: 4px solid #194ea4;
}

.module-card {
    text-decoration: none;
    color: inherit;
}

.module-card:hover {
    transform: translateY(-15px); /* Increased float distance for better visibility */
    box-shadow: 0 5px 20px rgba(173, 173, 173, 0.5); /* More pronounced shadow */
}

.module-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 163, 4, 0.217);
    margin-bottom: -1.5rem;
}

.module-card h3 {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .tutorial-grid-info {
        grid-template-columns: 1fr;
    }
    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ------------------------------------------- */
/* Module Viewer Styles */
.module-viewer-nav {
    background: #1a1a1a;
    padding: 1rem 0;
    margin-top: 80px; /* Below fixed header */
    border-bottom: 2px solid #ffa304;
    position: sticky;
    top: 80px;
    z-index: 900;
}

.module-viewer-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.module-nav-link span {
    color: #ffa304;
    margin-right: 5px;
    font-weight: 700;
}

.module-nav-link.active {
    color: #fff;
    border-bottom: 2px solid #ffa304;
    padding-bottom: 5px;
}

.module-content-area {
    padding: 4rem 0;
    min-height: 60vh;
    background: #fff;
}

.loading-spinner {
    text-align: center;
    font-size: 1.5rem;
    color: #ffa304;
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .module-viewer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Tutorial Embedded Code Styles */
.jp-OutputArea-output {
    background: #fff0da;
}