@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS variables for color system & design tokens */
:root {
    /* Color Palette - Light Mode */
    --primary-color: #0b1a30;
    --primary-light: #17325c;
    --accent-orange: #f37021;
    --accent-gold: #ffc72c;
    --bg-light: #f5f8fa;
    --card-bg-light: rgba(255, 255, 255, 0.85);
    --card-border-light: rgba(255, 255, 255, 0.5);
    --text-main-light: #2d3748;
    --text-muted-light: #718096;
    
    /* Active variables defaulting to light mode */
    --theme-bg: var(--bg-light);
    --theme-card-bg: var(--card-bg-light);
    --theme-card-border: var(--card-border-light);
    --theme-text-main: var(--text-main-light);
    --theme-text-muted: var(--text-muted-light);
    --theme-header-bg: rgba(11, 26, 48, 0.9);
    
    /* Standard Design Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --theme-bg: #090e16;
    --theme-card-bg: rgba(20, 29, 45, 0.85);
    --theme-card-border: rgba(255, 255, 255, 0.08);
    --theme-text-main: #f7fafc;
    --theme-text-muted: #a0aec0;
    --theme-header-bg: rgba(9, 14, 22, 0.92);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--theme-bg);
    color: var(--theme-text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--theme-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--theme-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--theme-card-border);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--accent-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(243, 112, 33, 0.4);
}

.logo-icon {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
}

.brand-text h1 {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: var(--accent-orange);
    transform: rotate(15deg);
}

.emergency-btn {
    background: var(--accent-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.35);
}

.emergency-btn:hover {
    background: #e05e10;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 26, 48, 0.95), rgba(20, 29, 45, 0.8)), url('hero_railway.png') no-repeat center center/cover;
    padding-top: 80px;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--theme-bg), transparent);
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    z-index: 5;
    position: relative;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h2 span {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #d94e00);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(243, 112, 33, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Station/Train Query Search Widget */
.search-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.search-widget h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.search-widget h3 span {
    color: var(--accent-gold);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.input-group input, .input-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 199, 44, 0.3);
}

.input-group select option {
    background: var(--primary-color);
    color: #fff;
}

.search-widget button {
    background: var(--accent-gold);
    color: var(--primary-color);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.3);
}

.search-widget button:hover {
    background: #ffb700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 44, 0.5);
}

.search-result {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

/* --- News Flash Ticker --- */
.news-ticker-section {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 0;
    border-bottom: 3px solid var(--accent-orange);
    z-index: 10;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    background: var(--accent-orange);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 24px;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticker-track span {
    margin-right: 50px;
}

.ticker-track span::after {
    content: "•";
    margin-left: 50px;
    color: var(--accent-gold);
}

/* --- Sections Common --- */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--accent-orange);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--theme-text-main);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

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

/* --- Dashboard / Stats Section --- */
.stats-section {
    background: var(--theme-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(243, 112, 33, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-text-main);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Services Grid --- */
.services-section {
    background: linear-gradient(180deg, var(--theme-bg), rgba(23, 50, 92, 0.03));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 199, 44, 0.4);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(243, 112, 33, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--accent-orange);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--theme-text-main);
}

.service-card p {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-link {
    font-weight: 600;
    color: var(--accent-orange);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--primary-light);
}

.service-link svg {
    transition: transform 0.2s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* --- Featured Stations (Tabs) --- */
.stations-section {
    background: var(--theme-bg);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    color: var(--theme-text-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.tab-btn.active {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.35);
}

.station-display {
    min-height: 450px;
    position: relative;
}

.station-pane {
    display: none;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease forwards;
}

.station-pane.active {
    display: grid;
}

.station-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    aspect-ratio: 4/3;
    border: 4px solid var(--theme-card-bg);
}

.station-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.station-pane:hover .station-img-box img {
    transform: scale(1.05);
}

.station-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: var(--primary-color);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.station-details h3 {
    font-size: 2.2rem;
    color: var(--theme-text-main);
    margin-bottom: 1rem;
}

.station-details p {
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.station-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

.spec-item {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.spec-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.spec-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* --- Heritage & Timeline Section --- */
.timeline-section {
    background: linear-gradient(180deg, rgba(23, 50, 92, 0.03), var(--theme-bg));
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-card-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid var(--theme-bg);
    border-radius: 50%;
    top: 26px;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-gold);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-orange);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--accent-orange);
}

.timeline-date {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 8px;
    display: inline-block;
    font-family: var(--font-heading);
}

.timeline-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(243, 112, 33, 0.3);
}

.timeline-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--theme-text-main);
}

.timeline-card p {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
}

/* --- Media Gallery Section --- */
.gallery-section {
    background: var(--theme-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/2;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 26, 48, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Contact & Emergency Section --- */
.contact-section {
    background: linear-gradient(180deg, var(--theme-bg), rgba(11, 26, 48, 0.05));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--theme-text-main);
}

.contact-info p {
    color: var(--theme-text-muted);
}

.emergency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.emergency-card {
    background: var(--theme-card-bg);
    border: 2px solid rgba(243, 112, 33, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.emergency-card:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.emergency-card.red {
    border-color: rgba(224, 60, 60, 0.2);
}

.emergency-card.red:hover {
    border-color: #e03c3c;
}

.emergency-card .phone-icon {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.emergency-card.red .phone-icon {
    color: #e03c3c;
}

.emergency-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--theme-text-main);
    display: block;
    margin: 8px 0;
    font-family: var(--font-heading);
}

.emergency-card h4 {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.directory-list {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.directory-list h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--theme-text-main);
    border-bottom: 1px solid var(--theme-card-border);
    padding-bottom: 12px;
}

.directory-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .directory-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.directory-item:last-child {
    border-bottom: none;
}

.role-title {
    font-weight: 600;
    color: var(--theme-text-main);
}

.role-contact {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-orange);
}

/* --- Lightbox Modal --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 26, 48, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 24px;
    text-align: center;
}

.lightbox-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.lightbox-caption p {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: rotate(90deg);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 4rem;
}

.footer-info h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    align-items: center;
}

/* --- Animations Keyframes --- */
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(243, 112, 33, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .station-pane {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .station-img-box {
        aspect-ratio: 16/9;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .hamburger {
        display: flex;
    }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--theme-header-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 999;
        transition: var(--transition-smooth);
        padding: 3rem 2rem;
        border-top: 1px solid var(--theme-card-border);
    }
    nav.active {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--theme-card-bg);
    min-width: 190px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    border-radius: var(--radius-sm);
    border: 1px solid var(--theme-card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    top: 100%;
    left: 0;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}

.dropdown-content a {
    color: var(--theme-text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

[data-theme="dark"] .dropdown-content a {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Modal Box Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 26, 48, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--theme-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-orange);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.6rem;
    color: var(--theme-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin-top: 6px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-form .input-group input, .modal-form .input-group select {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--theme-text-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
}

[data-theme="dark"] .modal-form .input-group input, [data-theme="dark"] .modal-form .input-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-form .input-group input:focus, .modal-form .input-group select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.2);
}

.modal-form .input-group label {
    color: var(--theme-text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.forgot-link {
    color: var(--accent-orange);
}

.modal-submit-btn {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
    transition: var(--transition-smooth);
}

.modal-submit-btn:hover {
    background: #e05e10;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.45);
}

.nav-register-btn {
    background: var(--accent-orange) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.3) !important;
}

.nav-register-btn:hover {
    background: #e05e10 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Mobile responsive fixes for dropdown in navigation drawer */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: relative;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        padding-left: 15px;
        background: transparent;
        display: block; /* always display items nested in mobile view */
        width: 100%;
        top: 0;
    }
    .dropdown-content a {
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: none;
        padding: 8px 0;
    }
    .dropdown-content a:hover {
        background: transparent !important;
        color: var(--accent-gold) !important;
        padding-left: 5px;
    }
}

/* --- Menu Page Section Styles --- */
.menu-page-section {
    background: linear-gradient(180deg, var(--theme-bg), rgba(23, 50, 92, 0.04));
    padding: 6rem 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.menu-tile {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.menu-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    opacity: 0;
    transition: var(--transition-smooth);
}

.menu-tile:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(243, 112, 33, 0.3);
}

.menu-tile:hover:not(.disabled)::before {
    opacity: 1;
}

.tile-icon-box {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: rgba(243, 112, 33, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.menu-tile:hover:not(.disabled) .tile-icon-box {
    background: var(--accent-orange);
    color: #fff;
    transform: scale(1.05);
}

.menu-tile h3 {
    font-size: 1.3rem;
    color: var(--theme-text-main);
    font-weight: 700;
    margin: 0;
}

.menu-tile p {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
}

.tile-action {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.menu-tile:hover:not(.disabled) .tile-action {
    gap: 12px;
}

/* Disabled/Coming Soon Tile Styles */
.menu-tile.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.menu-tile.disabled .tile-icon-box {
    background: rgba(0, 0, 0, 0.05);
    color: var(--theme-text-muted);
}

[data-theme="dark"] .menu-tile.disabled .tile-icon-box {
    background: rgba(255, 255, 255, 0.05);
}

.menu-tile.disabled .tile-action {
    color: var(--theme-text-muted);
}

.tile-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--theme-text-muted);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--theme-card-border);
}

[data-theme="dark"] .tile-badge {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Leader Card Styles in Hero Section --- */
.leader-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 380px;
    margin: 0 auto;
}

.leader-image-box {
    width: 160px;
    height: 190px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.leader-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.leader-info h4 {
    font-size: 1.35rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.leader-info span {
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.leader-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin: 0;
}

