/* ===================================================
   1. GLOBAL VARIABLES & RESET
   =================================================== */
:root {
    --primary-navy: #001f3f;    
    --secondary-blue: #0284c7;  
    --accent-gold: #f2a900;      
    --bg-light: #f8fafc;        
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --check-green: #10b981;      
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 2000px; margin: 0 auto; padding: 0.2rem 5%; }
.bg-gray { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }


.sub-heading { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); text-align: center; margin: 3rem 0 1.5rem 0; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 2rem; font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 4px; transition: var(--transition); text-align: center; cursor: pointer; border: none; }
.btn-primary { background-color: var(--secondary-blue); color: #fff; }
.btn-primary:hover { background-color: #0369a1; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(2,132,199,0.3); }
.btn-large-block { display: block; width: 100%; max-width: 800px; margin: 2rem auto; padding: 1.2rem; font-size: 1.3rem; font-weight: 700; border-radius: 8px; box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3); }
.btn-danger { background-color: #ef4444; color: white; font-size: 1.1rem; border-radius: 6px; padding: 1rem 2rem; display: block; width: 100%; max-width: 450px; margin: 2rem auto 0; text-align: center; text-decoration: none; font-weight: bold; transition: var(--transition); }
.btn-danger:hover { background-color: #dc2626; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(239,68,68,0.3); }

/* ===================================================
   2. NAVBAR & TOP BAR (DESKTOP)
   =================================================== */
.top-bar { background-color: var(--primary-navy); color: var(--bg-white); padding: 0.6rem 5%; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; }
.top-bar-links a { color: #cbd5e1; text-decoration: none; margin-left: 1.5rem; transition: var(--transition); font-weight: 500; }
.top-bar-links a:hover { color: var(--accent-gold); }

.navbar { background-color: var(--bg-white); padding: 0.8rem 5%; display: flex; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.brand h1 { font-family: var(--font-heading); color: var(--primary-navy); font-size: 1.7rem; font-weight: 900; white-space: nowrap; margin: 0; }

/* Desktop Menu Container (Extreme Right Aligned) */
.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; margin: 0 0 0 auto; padding: 0; justify-content: flex-end; }
.nav-links li { list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links > li > a:hover { color: var(--secondary-blue); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1rem; color: var(--primary-navy); cursor: pointer; transition: 0.3s; margin-left: auto; }
.mobile-toggle:hover { color: var(--secondary-blue); transform: scale(1.1); }

/* Dropdown Desktop */
.dropdown { position: relative; }
.dropdown .dropbtn { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown .dropbtn i { font-size: 0.75rem; transition: transform 0.3s ease; }
.dropdown .dropbtn i.fa-plus, .dropdown .dropbtn i.fa-minus { display: none; }
.dropdown .dropbtn i.fa-chevron-down { display: inline-block; }

.dropdown-content {
    display: none; position: absolute; background-color: var(--bg-white); min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; border-radius: 8px; top: 100%; right: 0; padding: 0.5rem 0; border: 1px solid var(--border-color);
    list-style: none; margin: 0;
}
.dropdown-content li { width: 100%; list-style: none; }
.dropdown-content a { color: var(--text-dark); padding: 12px 20px; display: block; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--bg-light); transition: 0.2s ease; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--secondary-blue); padding-left: 25px; } 

@media (min-width: 1025px) {
    .dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease forwards; }
    .dropdown:hover .dropbtn i.fa-chevron-down { transform: rotate(180deg); color: var(--secondary-blue); }
}

.nav-overlay { display: none; }

/* ===================================================
   3. RESPONSIVE NAVBAR (MOBILE & TABLET < 1024px)
   =================================================== */
@media (max-width: 1024px) {
    .top-bar { display: none; }
    .navbar { padding: 1rem 5%; justify-content: space-between; }
    .mobile-toggle { display: block; z-index: 1002; position: relative; }

    /* Offcanvas Mobile Menu with Scroll */
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 340px; max-width: 85vw; height: 100vh; 
        background-color: var(--bg-white); flex-direction: column; align-items: flex-start;
        justify-content: flex-start;
        padding: 1.5rem 1.5rem 3rem 1.5rem; box-shadow: -10px 0 25px rgba(0,0,0,0.15); 
        gap: 0; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: 1001;
        overflow-y: auto; list-style: none; margin: 0;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    .nav-links.active { right: 0; }
    
    .nav-links > li { width: 100%; border-bottom: 1px solid var(--border-color); list-style: none; }
    .nav-links > li:last-child { border-bottom: none; margin-top: 1.5rem; } 
    .nav-links a { font-size: 1.15rem; width: 100%; display: block; padding: 1.2rem 0; color: var(--text-dark); }
    .nav-links > li > a.btn { padding: 1rem; border-radius: 6px; text-align: center; margin-bottom: 2rem;}

    /* Mobile Accordion Dropdown Setup */
    .dropdown .dropbtn { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .dropdown .dropbtn i.fa-chevron-down { display: none; }
    .dropdown .dropbtn i.fa-plus { display: inline-block; font-size: 1.1rem; color: var(--secondary-blue); transition: 0.3s ease; }
    .dropdown .dropbtn i.fa-minus { display: none; font-size: 1.1rem; color: var(--secondary-blue); transition: 0.3s ease; }
    
    .dropdown.active .dropbtn i.fa-plus { display: none; }
    .dropdown.active .dropbtn i.fa-minus { display: inline-block; transform: rotate(180deg); }
    
    .dropdown-content {
        display: none; position: static; box-shadow: none; border: none;
        background-color: var(--bg-light); padding: 0; width: 100%;
        border-radius: 8px; border-left: 4px solid var(--secondary-blue); margin-bottom: 1rem;
        list-style: none; overflow: hidden;
    }
    .dropdown.active .dropdown-content { display: block; animation: slideDown 0.4s ease forwards; }
    .dropdown-content a { font-size: 1.05rem; padding: 0.8rem 1.5rem; border-bottom: 1px solid #e2e8f0; }

    .nav-overlay {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 31, 63, 0.7); z-index: 1000; opacity: 0; visibility: hidden; transition: 0.4s ease;
        backdrop-filter: blur(4px);
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
}

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-15px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ===================================================
   4. HERO, COUNTDOWN & SECTIONS
   =================================================== */
.hero { position: relative;  center/cover; padding: 6rem 5%; color: var(--bg-white); min-height: 70vh; display: flex; align-items: center; }
.hero-content { max-width: 900px; border-left: 4px solid var(--accent-gold); padding-left: 2rem; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero-desc { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 300; margin-bottom: 2rem; color: #e2e8f0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; font-size: 1.1rem; font-weight: 500; }
.event-meta div { display: flex; align-items: center; gap: 0.75rem; }
.event-meta i { color: var(--accent-gold); font-size: 1.3rem; }

.countdown-section { background-color: var(--primary-navy); color: var(--bg-white); text-align: center; padding: 3rem 5%; border-bottom: 4px solid var(--accent-gold); }
.countdown-section h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1.5rem; letter-spacing: 1px; }
.timer-grid { display: flex; justify-content: center; gap: 2rem; max-width: 600px; margin: 0 auto; }
.timer-box { display: flex; flex-direction: column; align-items: center; }
.timer-box span { font-size: 3rem; font-weight: 700; font-family: var(--font-body); line-height: 1; margin-bottom: 0.5rem; }
.timer-box p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #ccc; }

.about-text { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; text-align: justify; margin-bottom: 3rem; }
.about-text p { margin-bottom: 1.5rem; }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(700px, 1fr)); gap: 0.2rem; margin-top: 0.2rem; }
.topic-item { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.05rem; color: var(--text-dark); background: var(--bg-white); padding: 1rem 1.5rem; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid var(--border-color); }
.topic-item i { color: var(--check-green); font-size: 1.2rem; margin-top: 0.2rem; }

.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.four-col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.convenor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.speaker-card { background: var(--bg-light); border-radius: 12px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; border: 2px solid var(--border-color); }
.speaker-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); background: var(--bg-white); border-color: var(--secondary-blue); }
.speaker-img { width: 100%; height: 280px; object-fit: cover; object-position: top; background-color: #e2e8f0; }
.speaker-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; text-align: left; }
.speaker-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 700; line-height: 1.3;}
.speaker-role { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

.mode-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; text-align: center; margin-top: 2rem; }
.mode-card { flex: 1; min-width: 280px; max-width: 400px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mode-header { background-color: var(--secondary-blue); color: white; padding: 1.2rem; font-weight: 700; font-size: 1.2rem; }
.mode-body { padding: 2rem; font-size: 1.6rem; font-weight: 600; color: var(--text-dark); }

.fee-grid, .date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.fee-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-white); box-shadow: 0 4px 6px rgba(0,0,0,0.03); text-align: center; display: flex; flex-direction: column; }
.fee-header { background-color: var(--secondary-blue); color: white; padding: 1rem; font-weight: 700; font-size: 1.1rem; }
.fee-amount { padding: 1.5rem; font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.date-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
.date-header { background-color: var(--secondary-blue); color: white; padding: 1rem; font-weight: 700; font-size: 1.2rem; }
.date-body { padding: 2rem 1rem; }
.date-body p { margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-muted); }
.date-body strong { color: var(--text-dark); font-weight: 700; font-size: 1.15rem; }
.fee-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto 3rem auto; }

.call-list { list-style: none; margin-top: 2rem; padding: 0;}
.call-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-dark); background: var(--bg-white); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); list-style: none;}
.call-list li i { color: var(--text-dark); font-size: 1.2rem; margin-top: 0.3rem; flex-shrink: 0; } 
.call-list li span { word-break: break-word; overflow-wrap: break-word; }
.call-list a { color: var(--secondary-blue); text-decoration: none; font-weight: 600; word-break: break-all; }

.venue-section { background-color: var(--secondary-blue); color: white; padding: 2rem 5%; margin-top: 2rem; }
.venue-section .section-title { color: white; }
.venue-section .section-title::after { background-color: white; }
.venue-desc { font-size: 1.1rem; max-width: 900px; margin: 0 auto 3rem; line-height: 1.8; text-align: justify; }
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.transport-card { border: 1px solid rgba(255,255,255,0.3); padding: 2rem; border-radius: 8px; background: rgba(0,0,0,0.05); transition: var(--transition); }
.transport-card:hover { background: rgba(0,0,0,0.1); border-color: rgba(255,255,255,0.6); }
.transport-card h4 { font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-heading); }
.transport-card p { font-size: 1rem; line-height: 1.7; opacity: 0.9; margin-bottom: 1.5rem; text-align: justify; }
.transport-link { color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.transport-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .container { padding: 3rem 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .mt-4 { margin-top: 2.5rem; }
    .btn-large-block { font-size: 1.1rem; }
    .timer-grid { gap: 1rem; }
    .timer-box span { font-size: 2rem; }
    .hero-content { border-left: none; padding-left: 0; }
    .topics-grid { grid-template-columns: 1fr; }
    .fee-grid, .fee-grid-2 { grid-template-columns: 1fr 1fr !important; gap: 0.8rem; }
    .fee-grid .fee-card:last-child { grid-column: span 2; }
    .fee-header { font-size: 0.85rem; padding: 0.6rem 0.4rem; }
    .fee-amount { font-size: 1.1rem; padding: 0.8rem; }
    .speakers-grid, .four-col-grid, .convenor-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
    .speaker-img { height: 160px; } 
    .speaker-info { padding: 1rem 0.8rem; }
    .speaker-name { font-size: 0.95rem; }
    .speaker-role { font-size: 0.8rem; line-height: 1.4; }
    .mode-header { padding: 0.5rem; font-size: 0.8rem; }
}

/* ===================================================
   FOOTER STYLES (Copied from Section 12)
   =================================================== */
.site-footer {
    background-color: var(--primary-navy);
    color: #cbd5e1;
    padding: 4rem 0 0 0;
    position: relative;
    font-family: var(--font-body);
    border-top: 5px solid var(--accent-gold);
}

.container { max-width: 1500px; margin: 0 auto; padding: 2rem 5%; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--font-heading); color: white; font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--accent-gold); }
.footer-desc { line-height: 1.6; margin-bottom: 1.5rem; font-size: 0.95rem; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--accent-gold); transform: translateX(5px); }

.contact-item { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-item i { color: var(--accent-gold); margin-top: 0.3rem; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-btn {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: var(--transition);
    border: 1px solid transparent;
}
.social-btn:hover { background: var(--secondary-blue); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }

.footer-bottom { background-color: rgba(0, 0, 0, 0.2); padding: 1.5rem 5%; text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { margin: 0; }

/* Back to Top Button */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--accent-gold); color: var(--primary-navy);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: var(--transition);
    z-index: 990; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: white; transform: translateY(-5px); }