/* ============================================
   MTR Light Rail Sightseeing - Main Styles
   ============================================ */

:root {
    --primary: #007DC5;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: var(--shadow);
}

    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        z-index: 1000;
        border-top: 3px solid var(--primary);
    }

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-mtr {
    background: #8B0000;
    color: white;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 1.15rem;
    letter-spacing: 1px;
    border: 2px solid #5c0000;
}

.logo-text {
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Desktop nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover { color: white; }

.nav-dropdown-trigger {
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-trigger:hover { color: white; }

.dropdown-caret {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.nav-dropdown-trigger:hover .dropdown-caret {
    opacity: 1;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 25px 0;
    z-index: 1000;
    border-top: 3px solid var(--primary);
}

.mega-menu.active {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mega-menu-grid.lines-only {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.mega-menu-grid.lines-only .mega-menu-column {
    margin-bottom: 0;
}

.mega-menu-column {
    min-width: 0;
}

.mega-line-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--line-color, var(--primary));
}

.mega-line-header:hover { color: var(--primary); }

.line-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mega-station-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-station-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 3px 0 3px 20px;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-station-list a:hover {
    color: var(--primary);
}

.mega-station-list .view-all-link {
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.mega-station-list .view-all-link:hover {
    text-decoration: underline;
}

/* Hong Kong Guide Dropdown */
.hk-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 20px 0;
    z-index: 1000;
    border-top: 3px solid #8B0000;
}

.hk-dropdown.active {
    display: block;
}

.hk-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 700px;
}

.hk-dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hk-dropdown-grid a:hover {
    background: #f0f0f0;
    color: var(--primary);
    transform: translateX(4px);
}

/* Mobile nav sections — hidden on desktop */
.mobile-nav-section {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
}
.mobile-menu-overlay.active { display: block; }
body.menu-open { overflow: hidden; }

.hk-nav-link { display: flex; align-items: center; gap: 6px; }
.hk-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: #8B0000; display: inline-block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--dark);
    color: white;
    padding: 60px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    box-shadow: var(--shadow);
    outline: none;
}

/* ============================================
   STATIONS / LINES
   ============================================ */
.stations-section { padding: 40px 0; }

.line-group { margin-bottom: 40px; }

.line-title {
    font-size: 1.35rem;
    padding-left: 15px;
    border-left: 5px solid;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

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

.station-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.station-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.station-color {
    width: 6px;
    flex-shrink: 0;
}

.station-info { padding: 15px 18px; flex: 1; }
.station-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.station-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.station-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; }

.station-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.mini-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #e9ecef;
    color: var(--text-light);
    border-radius: 10px;
    font-weight: 500;
}

/* ============================================
   SEO CONTENT SECTION (Frontpage)
   ============================================ */
.seo-content-section {
    background: white;
    padding: 50px 0 60px;
    border-top: 1px solid var(--border);
}

.seo-article {
    max-width: 800px;
}

.seo-article h2 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 18px;
    line-height: 1.3;
}

.seo-article h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin: 28px 0 12px;
    font-weight: 600;
}

.seo-article p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.7;
}

.seo-article ul {
    margin: 14px 0 18px 22px;
}

.seo-article li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.seo-article a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.seo-article a:hover {
    text-decoration: underline;
}

.seo-cta {
    background: #f0f7fc;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 24px;
    font-size: 1.05rem;
}

/* ============================================
   ARTICLE / STATION PAGE
   ============================================ */
.station-article { background: white; min-height: calc(100vh - 200px); }

.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

.station-header-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
    margin-bottom: 30px;
}

.article-header {
    padding: 30px 0 20px;
    border-left: 6px solid;
    padding-left: 25px;
}

.line-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.station-badge {
    display: inline-block;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

a.station-badge:hover { opacity: 0.85; color: white; }

.article-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.station-chinese { font-size: 1.2rem; color: var(--text-light); margin-bottom: 8px; }
.station-district { color: var(--text-light); font-size: 0.95rem; }

.article-body { max-width: 800px; padding-bottom: 40px; }
.article-body h1 { font-size: 1.8rem; margin: 30px 0 15px; }
.article-body h2 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--dark); border-bottom: none; text-decoration: none; }
.article-body h3 { font-size: 1.2rem; margin: 25px 0 12px; }
.article-body p { margin-bottom: 15px; font-size: 1.05rem; }
.article-body ul { margin: 15px 0 15px 25px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--primary); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

.station-map-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.map-container { width: 100%; height: 280px; position: relative; z-index: 1; }

/* Force Leaflet map panes to stay below nav dropdowns */
.map-container .leaflet-pane,
.map-container .leaflet-map-pane,
.map-container .leaflet-tile-pane,
.map-container .leaflet-marker-pane,
.map-container .leaflet-popup-pane,
.map-container .leaflet-overlay-pane,
.map-container .leaflet-tooltip-pane,
.map-container .leaflet-shadow-pane {
    z-index: 1 !important;
}

/* Ensure map container never escapes its stacking context */
.station-map-card,
.map-container,
.map-container * {
    isolation: isolate;
}

.map-caption {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    background: #f8f9fa;
    border-top: 1px solid var(--border);
}

.full-map-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

/* Related stations */
.related-stations {
    border-top: 2px solid var(--border);
    padding-top: 30px;
    margin-top: 40px;
}

.related-stations h2 { font-size: 1.3rem; margin-bottom: 20px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.related-card:hover { background: #e9ecef; }

.related-color {
    width: 4px;
    height: 30px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Spoke cards */
.spoke-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 25px 0 35px;
}

.spoke-card {
    background: white;
    border-radius: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.spoke-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: var(--text);
}

.spoke-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.spoke-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.4; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li { margin-bottom: 8px; }

.footer-column ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover { color: white; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}

.footer-bottom p { margin: 0; font-size: 0.9rem; }
.footer-disclaimer { font-size: 0.8rem; margin-top: 8px; opacity: 0.6; }

/* ============================================
   ADMIN
   ============================================ */
.admin-body { background: #f0f2f5; }

.admin-header {
    background: var(--dark);
    padding: 12px 0;
    margin-bottom: 30px;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title { color: white; font-weight: 700; font-size: 1.1rem; }

.admin-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}

.admin-nav a:hover, .admin-nav a.active { color: white; }

.admin-main { padding-bottom: 60px; }

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.admin-login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.admin-login-box h1 { margin-bottom: 5px; }
.admin-site-name { color: var(--text-light); font-size: 0.9rem; margin-bottom: 25px; }
.admin-hint { margin-top: 20px; font-size: 0.85rem; color: var(--text-light); text-align: center; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

.admin-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-section-header h2 { font-size: 1.3rem; }

.search-form { display: flex; gap: 8px; }
.search-form input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 200px;
}
.search-form button {
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
    text-align: left;
    padding: 12px;
    background: var(--light);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.admin-table tr:hover { background: #f8f9fa; }

.line-badge {
    display: inline-block;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-badge.published { background: #d4edda; color: #155724; }
.status-badge.draft { background: #fff3cd; color: #856404; }

.link-count {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
}
.link-count.internal { background: #e3f2fd; color: #1565c0; }
.link-count.external { background: #fce4ec; color: #c62828; }

.link-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}
.link-badge.internal { background: #e3f2fd; color: #1565c0; }
.link-badge.external { background: #fce4ec; color: #c62828; }

.link-url {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    transition: all 0.2s;
}
.btn:hover { background: var(--light); }

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: #0069aa; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #c82333; }
.btn-small { padding: 4px 10px; font-size: 0.8rem; }
.btn-large { padding: 12px 28px; font-size: 1rem; }

.admin-form { background: white; padding: 30px; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

.code-editor { font-family: 'Monaco', 'Menlo', 'Consolas', monospace; font-size: 0.85rem; line-height: 1.5; }
.form-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }

.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.checkbox-group input { width: auto; }

.form-actions { display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.inline-form { display: inline; }

.links-preview { background: white; padding: 25px; border-radius: 8px; box-shadow: var(--shadow); }
.links-preview h3 { margin-bottom: 15px; }

.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }
.alert-warning { background: #fff3cd; color: #856404; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 75%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 40px;
        z-index: 9999;
        gap: 0;
        overflow-y: auto;
    }
    .main-nav.mobile-open { display: flex; box-shadow: -8px 0 30px rgba(0,0,0,0.6); }
    
    .main-nav a {
        margin: 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
        text-align: left;
        width: 100%;
    }
    
    .nav-dropdown { margin: 0; width: 100%; }
    .nav-dropdown-trigger { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1rem; text-align: left; width: 100%; }
    .mega-menu { display: none !important; }
    .hk-dropdown { display: none !important; }
    
    /* Mobile nav sections */
    .mobile-nav-section {
        display: block;
        padding: 10px 0 5px;
        border-top: none;
        margin-top: 10px;
        width: 100%;
        text-align: left;
    }
    .mobile-nav-heading {
        color: rgba(255,255,255,0.5);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 0 0 6px;
        padding: 0;
        text-align: left;
    }
    .mobile-nav-section a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 0;
        border-bottom: none;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.95);
        text-align: left;
        width: 100%;
    }
    .mobile-nav-section a:hover {
        color: white;
    }
    .mobile-line-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .stations-grid { grid-template-columns: 1fr; }
    
    .station-header-row { grid-template-columns: 1fr; }
    .station-map-card { order: -1; }
    .map-container { height: 220px; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body h1 { font-size: 1.4rem; }
    .article-body h2 { font-size: 1.2rem; }
    .article-body p { font-size: 1rem; }
    
    .related-grid { grid-template-columns: 1fr; }
    .spoke-cards { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-section-header { flex-direction: column; align-items: flex-start; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .mega-menu-grid { grid-template-columns: 1fr; }
    .line-title { font-size: 1.15rem; }
}
