/* =========================================
   1. Variables & Global Typography
   ========================================= */
:root {
    /* 1. Override Bootstrap's default blue to Very Dark Green */
    --bs-primary: #061f14;
    --bs-primary-rgb: 10, 56, 37;

    /* 2. Update your custom theme variables */
    --primary-blue: #051d13;
    /* Very Dark Green */
    --secondary-blue: #10452d;
    /* Slightly lighter Dark Green for hovers/accents */
    --accent-red: #D32F2F;
    /* Keep red for "Register" CTA */
    --accent-orange: #F77F00;
    --accent-dark-orange: #b35e03;
    /* Keep orange for highlights */
    --light-bg: #f8f9fa;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --border-color: #E0E6ED;
}

body {
    font-family: 'Open Sans', 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* =========================================
   2. Top Utility Bar (Professional Touch)
   ========================================= */
.top-bar {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: var(--accent-orange);
}

.top-bar .separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* =========================================
   3. Main Navigation (Sticky & Clean)
   ========================================= */
.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1030;
}

.main-nav .navbar-brand {
    font-weight: 800;
    color: var(--primary-blue) !important;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.main-nav .navbar-brand span {
    color: var(--accent-orange);
}

.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 15px !important;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 70%;
}

.main-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

.btn-orange {
    background-color: var(--accent-orange);
    color: white !important;
}

.btn-orange:hover {
    background-color: var(--accent-dark-orange);
    color: white !important;
}

.btn-register-nav {
    background-color: var(--accent-orange);
    color: white !important;
    border-radius: 4px;
    padding: 8px 20px !important;
    font-weight: 700;
    margin-left: 10px;
}

.btn-register-nav:hover {
    background-color: var(--accent-dark-orange);
    color: white !important;
}

.btn-register-nav::after {
    display: none !important;
}

/* Remove underline on button */

/* =========================================
   4. Hero Section (Homepage)
   ========================================= */
.hero-section {
    /* background: linear-gradient(135deg, rgba(0, 78, 77, 0.9) 0%, rgba(0, 110, 153, 0.8) 100%),
        url('../images/bg-img.jpeg') center/cover no-repeat;
    color: white;
    padding: 100px 0; */
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* =========================================
   5. Inner Page Banner (For Subpages)
   ========================================= */
.page-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 50px;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: var(--accent-orange);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   6. Content Styling (Cards, Tables, Timelines)
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.professional-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-orange);
}

/* Modern Table */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-modern thead th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table-modern tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-orange);
}

.timeline-date {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.9rem;
}

/* =========================================
   7. Footer
   ========================================= */
footer {
    background-color: #0A192F;
    /* Very dark blue */
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   8. Language Toggle & Utilities
   ========================================= */
.lang-zh {
    display: none;
}

body.zh-active .lang-en {
    display: none !important;
}

body.zh-active .lang-zh {
    display: block !important;
}

body.zh-active span.lang-zh {
    display: inline !important;
}

body.zh-active .d-flex span.lang-zh {
    display: flex !important;
}

/* Fix for flex containers */

.lang-switch {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav .nav-link::after {
        display: none;
    }

    .hero-section {
        /* padding: 60px 0; */
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* --- Modern Sponsorship Layout --- */
.sponsor-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Tier-specific top borders instead of heavy headers */
.sponsor-card.tier-diamond {
    border-top: 5px solid #003366;
}

.sponsor-card.tier-platinum {
    border-top: 5px solid #7f8c8d;
}

.sponsor-card.tier-gold {
    border-top: 5px solid #f1c40f;
}

.sponsor-card.tier-silver {
    border-top: 5px solid #bdc3c7;
}

.sponsor-card.tier-bronze {
    border-top: 5px solid #cd7f32;
}

.sponsor-card.tier-session {
    border-top: 5px solid var(--accent-orange);
}

.sponsor-card-header {
    padding: 25px 20px 10px;
    text-align: center;
}

.sponsor-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.sponsor-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin: 10px 0 5px;
    line-height: 1;
}

.sponsor-quota {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.sponsor-features {
    list-style: none;
    padding: 0 25px 25px;
    margin: 0;
    flex-grow: 1;
    /* Pushes content to fill height evenly */
}

.sponsor-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
    color: #495057;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.sponsor-features li:last-child {
    border-bottom: none;
}

.sponsor-features li i {
    margin-top: 3px;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.sponsor-features li i.fa-star {
    color: #f1c40f;
}

.sponsor-features li i.fa-check {
    color: #28a745;
}

/* Special Dual-Layout for Session/Booth Card */
.dual-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 25px 15px;
    border-bottom: 2px dashed #e9ecef;
    margin-bottom: 15px;
}

.pricing-block {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pricing-block h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-block .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.pricing-block .quota {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-top: 5px;
}

.feature-divider {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 25px 5px;
    display: flex;
    align-items: center;
}

.feature-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
    margin-left: 10px;
}

.mobile-show {
    display: none;
}

@media (max-width: 768px) {
    .dual-pricing-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }
}