/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a { text-decoration: none; }
.nav-logo h2 {
    color: #0f1b29; /* deeper navy */
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 700;
    font-size: 1.5rem; /* larger for visibility */
    font-style: italic;
    letter-spacing: 0.8px;
    text-transform: none;
    margin: 0;
    line-height: 1;
    padding-left: 6px;
    text-shadow: 0 2px 6px rgba(16,24,32,0.12);
    transition: transform 0.18s ease, color 0.18s ease;
    display: inline-block;
}

/* Decorative accent for nav logo */
.nav-logo h2::after {
    content: '';
    display: block;
    width: 100%; /* span the full width of the logo */
    max-width: 220px; /* optional cap to prevent very long bars on wide screens */
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    margin-top: 6px;
    border-radius: 3px;
}

.nav-logo h2:hover { transform: translateY(-2px); color: #08344a; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Dropdown menu for nav items (Event Details) */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    display: none; /* hidden by default */
    z-index: 1100;
}
.nav-dropdown .dropdown li { list-style: none; }
.nav-dropdown .dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #2c3e50;
    text-decoration: none;
}
.nav-dropdown .dropdown li a:hover { background: #f4f6f8; color: #3498db; }

/* Show dropdown on hover for desktop */
.nav-dropdown:hover .dropdown { display: block; }

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;    
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);  
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    min-height: 620px; /* reasonable desktop hero height matching previous design */
    display: flex;
    align-items: flex-start; /* keep content near top so nav doesn't overlap */
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45; /* stronger background visibility */
}

/* Dark overlay over the background image to increase contrast */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 56, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* Ensure hero content sits above overlay */
.hero-container { z-index: 2; }

.hero-container {
    position: relative;
    z-index: 2;
}



.conference-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: white;
    padding: 10px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-details {
     display: flex;
     justify-content: space-between;
     gap: 2.5rem;
     margin-bottom: 2rem;
     flex-wrap: wrap;
     align-items: center;
 }

 .hero-info-left {
     display: flex;
     flex-direction: column;
     gap: 0.8rem;
     align-items: flex-start;
 }.hero-date, .hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Announcement badge styling to match screenshot */
.hero-announcement {
    display: inline-block;
    margin: 20px 0 18px;
    padding: 18px 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 3;
}

/* Countdown panels styling — make boxes prominent and translucent */
.countdown { z-index: 3; }
.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 14px 16px;
    border-radius: 10px;
    min-width: 78px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.countdown-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}
.countdown-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    letter-spacing: 0.8px;
}

/* Brochure CTA inside hero */
.brochure-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 1.5rem auto;
    z-index: 3;
}
.brochure-text {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    padding: 20px 26px; /* larger padding to match announcement badge */
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.18rem; /* bigger text */
    letter-spacing: 0.2px;
    max-width: 860px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}
.brochure-cta .btn.btn-primary {
    padding: 14px 34px;
    border-radius: 40px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 0 0 0 rgba(255,255,255,0.02);
    background: linear-gradient(90deg,#ff7a59 0%, #ff3b5e 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brochure-cta .btn.btn-primary::before {
    content: '\1F4C4'; /* page icon */
    font-size: 1.05rem;
    display: inline-block;
    transform: translateY(-1px);
}
.brochure-cta .btn.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(255,59,94,0.22);
}

@keyframes brochure-pulse {
    0% { box-shadow: 0 12px 36px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 18px 46px rgba(255,59,94,0.18); }
    100% { box-shadow: 0 12px 36px rgba(0,0,0,0.15); }
}
.brochure-cta .btn.btn-primary.pulse {
    animation: brochure-pulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .brochure-text { font-size: 0.95rem; padding: 10px 12px; }
    .brochure-cta .btn.btn-primary { width: 100%; max-width: 320px; }
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Mode toggle buttons (With/Without Abstract) - match primary hover behavior */
.register-mode-toggle .btn {
    padding: 10px 20px;
    border-radius: 40px;
    border: 2px solid #d1d5db; /* subtle grey border */
    background: #f3f4f6; /* light grey background */
    color: #2c3e50; /* dark text for contrast */
    font-weight: 600;
    transition: all 0.25s ease;
}

.register-mode-toggle .btn:hover,
.register-mode-toggle .btn:focus,
.register-mode-toggle .btn.active {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

.register-mode-toggle .btn[aria-pressed="true"] {
    background: #e74c3c;
    color: #fff;
}

/* Section Styles */
section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.about-images {
    margin-top: 2rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.organizing-logos {
    margin-top: 3rem;
    text-align: center;
}

.organizing-logos h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.institution-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.institution-logo:hover {
    transform: scale(1.1);
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.organizers h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.organizers ul {
    list-style: none;
    margin-bottom: 2rem;
}

.organizers li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.organizers li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Dates Section */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.date-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.date-card:hover {
    transform: translateY(-5px);
}

.date-card.highlight {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.date-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.date-card.highlight .date-icon {
    color: white;
}

.date-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e74c3c;
}

.date-card.highlight .date {
    color: white;
}

/* Technical Section */
.technical {
    background: #f8f9fa;
}

.technical-banner {
    margin-bottom: 3rem;
    text-align: center;
}

.technical-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.topic-category h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-category h3 i {
    color: #3498db;
}

.topic-category ul {
    list-style: none;
}

.topic-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.topic-category li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Exhibition Section */
.exhibition-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.exhibition-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.exhibition-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exhibition-card h3 i {
    color: #3498db;
}

.exhibition-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.exhibition-image {
    margin-top: 3rem;
    text-align: center;
}

.exhibition-hall-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.contact-header i {
    font-size: 2rem;
    color: #3498db;
}

.contact-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-info p i {
    color: #3498db;
    width: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Info Card */
.registration-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 85%;
    margin: 0 auto 4rem auto; /* centers the block */
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.registration-info:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}




.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h4 i {
    color: #3498db;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e8ed;
    position: relative;
    padding-left: 1.5rem;
}

.info-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

.info-card p strong {
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Mobile navbar tweaks: make navbar transparent and move hamburger to top-right */
    .navbar {
        background: transparent;
        padding: 0.4rem 0; /* reduce vertical space */
        box-shadow: none;
    }

    .nav-container {
        padding: 0 16px;
        position: relative;
    }

    /* Hide the large logo on mobile to avoid the white bar */
    .nav-logo { display: none; }

    .hamburger {
        position: absolute;
        right: 14px;
        top: 10px;
        z-index: 1201;
    }
    /* Make hamburger visible on dark hero: light bars and subtle rounded background */
    .hamburger {
        background: rgba(255,255,255,0.10);
        padding: 8px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

    .hamburger .bar {
        background: #fff; /* white bars for contrast */
        width: 20px;
        height: 3px;
    }

    .hamburger:active { transform: scale(0.98); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px; /* slightly below the top so menu slides in under the status area */
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    /* When navbar becomes scrolled (white background), use darker bars for contrast */
    .navbar.scrolled {
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    }

    .navbar.scrolled .hamburger {
        background: rgba(255,255,255,0.92);
    }

    .navbar.scrolled .hamburger .bar {
        background: #2c3e50; /* dark bars when navbar is light */
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .exhibition-content {
        grid-template-columns: 1fr;
    }

    .registration-info {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 2rem;
    }

    /* Exhibition page: ensure tables and cards don't overflow on narrow screens */
    .exhibition {
        padding-left: 12px;
        padding-right: 12px;
    }

    .exhibition .exhibition-card {
        box-sizing: border-box;
        width: 100%;
    }

    .exhibition .ad-table-wrapper,
    .exhibition .sponsorship-table,
    /* Also apply to global sponsorship/ad wrappers so other pages (payment, accomodation) behave responsively */
    .ad-table-wrapper,
    .sponsorship-table {
        overflow-x: auto;
        width: 100%;
    }

    /* Override inline min-widths in table markup so tables can shrink on small screens */
    .exhibition .ad-table-wrapper table,
    .exhibition .sponsorship-table table,
    .ad-table-wrapper table,
    .sponsorship-table table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .exhibition table th,
    .exhibition table td,
    /* Allow small-screen word wrap on other tables too */
    .sponsorship-table table th,
    .sponsorship-table table td,
    .ad-table-wrapper table th,
    .ad-table-wrapper table td {
        white-space: normal !important;
        word-break: break-word;
        padding: 8px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    /* Keep tables scrollable on very small screens and add a visual
       scroll hint so users know the table can be scrolled horizontally. */
    .exhibition .ad-table-wrapper,
    .exhibition .sponsorship-table,
    .ad-table-wrapper,
    .sponsorship-table {
        overflow-x: auto;
        position: relative;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px; /* give space for scrollbar on some devices */
    }

    /* Ensure the table preserves its column layout and can be scrolled */
    .exhibition .ad-table-wrapper table,
    .exhibition .sponsorship-table table,
    .ad-table-wrapper table,
    .sponsorship-table table {
        /* Allow the table to shrink to the wrapper width on very small screens
           to avoid creating page-level overflow. If you prefer strict
           horizontal scrolling, we can revert this. */
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: collapse;
    }

    .exhibition .ad-table-wrapper table th,
    .exhibition .ad-table-wrapper table td,
    .exhibition .sponsorship-table table th,
    .exhibition .sponsorship-table table td,
    .ad-table-wrapper table th,
    .ad-table-wrapper table td,
    .sponsorship-table table th,
    .sponsorship-table table td {
        padding: 8px !important;
        white-space: normal;
        text-align: left;
    }

    /* Right-side gradient hint to indicate horizontal scrollability */
    .exhibition .ad-table-wrapper::after,
    .exhibition .sponsorship-table::after,
    .ad-table-wrapper::after,
    .sponsorship-table::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 56px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(255,255,255,0), rgba(0,0,0,0.06));
        /* Hide the hint overlay when the table fits the wrapper to avoid
           visual glitches at the right edge on some Android browsers. */
        opacity: 0.9;
    }

    /* Small floating scroll hint (label + chevron) */
    .exhibition .scroll-hint,
    .sponsorship-table ~ .scroll-hint,
    .ad-table-wrapper ~ .scroll-hint,
    .scroll-hint {
        position: absolute;
        right: 8px;
        bottom: 8px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        z-index: 5;
        pointer-events: none;
    }

    .exhibition .scroll-hint .chev {
        border: solid #fff;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 4px;
        transform: rotate(-45deg);
    }
}

/* Homepage hero override: reduce large whitespace under navbar
   - collapse the 100vh min-height
   - stop vertical centering so content sits near the top
   - reduce padding for a tighter banner
   These rules are intentionally specific and use !important to
   override existing theme styles only for the homepage (#home). */
#home.hero {
    min-height: 0 !important;
    padding: 40px 0 10px !important;
    align-items: flex-start !important;
}

#home .hero-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    #home.hero {
        padding: 30px 0 8px !important;
    }
}