:root {
    --primary: #365684;
    --accent: #FCB03E;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-700: #424242;
    --gray-900: #1a1a1a;
}

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

body {
    font-family: 'Archivo', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: url(Hero-Investing-in-Green-Energy-A-Smart-Move-for-the-Future-s.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Add overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(54, 86, 132, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
}

.hero-countdown {
    margin-top: 3rem;
    text-align: center;
}

.countdown-title {
    font-size: 1.2rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    min-width: 100px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ifac-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(252, 176, 62, 0.3);
}

h1 {
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-logos {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 2rem;
}

.hero-logo {
    height: 100px;
    width: 200px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 8px;
}

.hero-counter {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 3rem;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--white);
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 600;
}

.meta-value {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Navigation */
nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 9999;
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--accent);
    color: var(--white);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.section-inner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

section:nth-child(even) {
    background: var(--gray-100);
}

section.full-width {
    max-width: 100%;
    padding: 4rem 0;
}

section.full-width > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin: 1.5rem 0 2.5rem;
    max-width: 800px;
    line-height: 1.7;
}

/* Topics Grid - Max 4 per row */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1200px) {
    .topics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.topic-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.topic-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.topic-description {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.topic-card:hover .topic-description {
    opacity: 1;
    max-height: 200px;
}

/* Organizers Grid */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.organizer-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.organizer-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.organizer-affiliation {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.organizer-email {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
}

.organizer-email:hover {
    text-decoration: underline;
}

/* Speakers Section */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.speaker-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.speaker-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 1.5rem;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-700);
}

.speaker-header {
    margin-bottom: 1rem;
    width: 100%;
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.speaker-affiliation {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.4;
}

.talk-title {
    background: #f0f4f8;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 3px solid var(--accent);
    text-align: left;
    width: 100%;
}

.talk-title strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.talk-title-text {
    color: var(--gray-900);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.speaker-details {
    width: 100%;
    margin-top: 1rem;
}

.speaker-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
    font-family: 'Archivo', sans-serif;
}

.toggle-btn:hover {
    background: #2d4766;
}

.toggle-btn.accent {
    background: var(--accent);
    color: var(--gray-900);
}

.toggle-btn.accent:hover {
    background: #e5a035;
}

.speaker-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-align: left;
    padding: 0 1rem;
}

.speaker-content.active {
    max-height: 1000px;
    padding: 1rem;
}

.speaker-text {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Highlight Box */
.highlight-box {
    background: #f0f4f8;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border: 2px solid var(--accent);
}

.highlight-box h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style: none;
    padding-left: 0;
}

.highlight-box li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.highlight-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--white);
    color: var(--gray-700);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }
    
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .ifac-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.9rem;
        letter-spacing: 1px;
    }
    
    h1 {
        font-size: clamp(2.2rem, 7vw, 4.5rem);
    }
    
    .hero-logos {
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    .hero-logo {
        height: 70px;
        width: 140px;
        padding: 0.4rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .hero-counter {
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .counter-label {
        font-size: 0.7rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .nav-content {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .organizers-grid,
    .speakers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-content {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .speaker-buttons {
        flex-direction: column;
    }
}
/* =====================
   Schedule Section
   ===================== */

.schedule-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.schedule-block {
    border-bottom: 1px solid var(--gray-200);
}

.schedule-block:last-child {
    border-bottom: none;
}

.schedule-session-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 1.5rem;
}

.session-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.session-chair {
    font-size: 0.82rem;
    opacity: 0.8;
    font-style: italic;
}

.schedule-block.preliminary .schedule-session-header {
    background: #2a4268;
}

.schedule-row {
    display: grid;
    grid-template-columns: 110px 200px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    transition: background 0.15s ease;
}

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

.schedule-row:hover {
    background: #f7faff;
}

.schedule-row.keynote {
    background: #fff8ee;
}

.schedule-row.keynote:hover {
    background: #fff2db;
}

.schedule-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.schedule-speaker {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
}

.schedule-talk {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.45;
}

.keynote-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* Break rows */
.schedule-block.break {
    background: var(--gray-100);
}

.break-row {
    grid-template-columns: 110px 1fr !important;
    padding: 0.75rem 1.5rem !important;
    background: var(--gray-100) !important;
}

.break-row:hover {
    background: var(--gray-200) !important;
}

.break-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive schedule */
@media (max-width: 768px) {
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.8rem 1rem;
    }

    .break-row {
        grid-template-columns: 1fr !important;
        padding: 0.75rem 1rem !important;
    }

    .schedule-time {
        font-size: 0.78rem;
        color: var(--accent);
    }

    .schedule-speaker {
        font-size: 0.88rem;
    }

    .schedule-talk {
        font-size: 0.85rem;
    }

    .schedule-session-header {
        flex-direction: column;
        gap: 0.2rem;
    }
}
