/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color scheme - refined to match professional logo design */
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #cc6600;
    --accent-light: #ff9933;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #d0d0d0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1000;
    background: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.lang-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switcher a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.lang-switcher a.active {
    color: var(--primary-color);
    background-color: rgba(0, 51, 102, 0.1);
}

.lang-switcher .separator {
    color: var(--border-color);
    margin: 0 0.25rem;
}

/* Header */
.header {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-dark);
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 51, 102, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
    opacity: 1;
}

.header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-content {
    margin-top: var(--spacing-md);
    max-width: 800px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.dates {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

/* Emergency Information Box */
.emergency-box {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-sm);
    padding-top: calc(var(--spacing-md) + 100px);
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    animation: pulse-border 2s ease-in-out infinite;
    border-bottom: 4px solid #ff0000;
    margin-top: 0;
    border-top: 3px solid var(--primary-color);
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 68, 68, 0.6);
    }
}

.emergency-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    background: transparent;
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 1001;
    pointer-events: none;
}

.emergency-gif-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emergency-gif {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    pointer-events: auto;
}

.emergency-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.emergency-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.emergency-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    font-weight: 500;
}

.emergency-contact {
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    opacity: 0.95;
}

.emergency-contact a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    transition: var(--transition);
}

.emergency-contact a:hover {
    color: #ffeb3b;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(0, 51, 102, 0.1);
    font-weight: 600;
}

.nav-menu a.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Content */
.main {
    padding: var(--spacing-lg) 0;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.content-box {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.schedule-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.schedule-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.schedule-time {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--accent-light);
    display: inline-block;
    width: 100%;
}

.schedule-events {
    list-style: none;
}

.schedule-events li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
}

.schedule-events li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8em;
}

/* Live Section */
.coming-soon-text {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.live-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.live-item {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.live-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.live-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, var(--primary-color) 0%, #001a33 100%);
    color: white;
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
    border-top: 3px solid var(--accent-color);
}

.footer p {
    opacity: 0.95;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .header {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .dates {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h2::after {
        width: 40px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: var(--spacing-sm) 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: var(--spacing-sm);
        text-align: center;
    }
    
    .nav {
        min-height: 50px;
        z-index: 999;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 50px;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        margin: 0;
        padding: 8px;
    }
    
    .nav .container {
        position: relative;
        padding-left: 50px;
        min-height: 50px;
        display: flex;
        align-items: center;
    }
    
    .nav {
        min-height: 50px;
    }
    
    .emergency-gif {
        max-width: 150px;
    }
    
    .emergency-title {
        font-size: 1.2rem;
    }
    
    .emergency-text {
        font-size: 1rem;
    }
    
    .emergency-contact {
        font-size: 0.9rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .lang-switcher {
        position: fixed;
        top: auto;
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .content-box {
        padding: var(--spacing-sm);
    }
    
    .logo {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .content-box p {
        font-size: 1rem;
    }
    
    .schedule-card {
        padding: var(--spacing-sm);
    }
    
    .emergency-gif {
        max-width: 120px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .lang-switcher,
    .nav,
    .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
