/* ===== CSS Variables & Reset ===== */
:root {
    /* Color Palette */
    --primary-hue: 220;
    --primary: hsl(var(--primary-hue), 85%, 55%);
    --primary-light: hsl(var(--primary-hue), 90%, 65%);
    --primary-dark: hsl(var(--primary-hue), 80%, 45%);
    --accent: hsl(280, 85%, 60%);
    --accent-light: hsl(280, 90%, 70%);

    /* Background Colors */
    --bg-primary: hsl(230, 25%, 8%);
    --bg-secondary: hsl(230, 22%, 12%);
    --bg-tertiary: hsl(230, 20%, 16%);
    --bg-glass: hsla(230, 25%, 15%, 0.6);

    /* Text Colors */
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(220, 15%, 75%);
    --text-tertiary: hsl(220, 12%, 60%);

    /* Borders & Shadows */
    --border-color: hsla(220, 30%, 40%, 0.2);
    --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.3);
    --shadow-md: 0 4px 16px hsla(0, 0%, 0%, 0.4);
    --shadow-lg: 0 8px 32px hsla(0, 0%, 0%, 0.5);
    --glow-primary: 0 0 20px hsla(var(--primary-hue), 85%, 55%, 0.4);
    --glow-accent: 0 0 20px hsla(280, 85%, 60%, 0.3);

    /* Typography */
    --font-ko: 'Noto Sans KR', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing */
    --gap-xs: 0.5rem;
    --gap-sm: 0.75rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-ko);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    position: relative;
    padding: var(--gap-lg) var(--gap-xl);
    background: linear-gradient(135deg,
            hsla(var(--primary-hue), 60%, 20%, 0.4) 0%,
            hsla(280, 60%, 20%, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 10;
    flex: 0 0 auto;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            hsla(var(--primary-hue), 85%, 55%, 0.1) 50%,
            transparent 100%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.title {
    display: flex;
    align-items: baseline;
    gap: var(--gap-md);
    margin-bottom: var(--gap-xs);
}

.title-ko {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px hsla(var(--primary-hue), 85%, 55%, 0.3);
}

.title-en {
    font-family: var(--font-en);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-tertiary);
    font-weight: 300;
}

/* Mobile Menu Button (Default Hidden) */
.mobile-menu-btn {
    display: none;
}

/* ===== Main Container ===== */
.main-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Remove fixed calc height, let flex-grow handle it */
    flex: 1;
    height: auto;
    gap: var(--gap-lg);
    padding: var(--gap-lg) var(--gap-xl);
    overflow: hidden;
    /* Keeps internal scrolling for sidebar/map working */
}

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    overflow-y: auto;
    padding-right: var(--gap-sm);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    transition: background var(--transition-base);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

.info-card,
.landmarks-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--gap-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.info-card:hover,
.landmarks-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    color: var(--primary-light);
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-sm);
    background: hsla(0, 0%, 100%, 0.03);
    border-radius: 8px;
    border: 1px solid hsla(220, 30%, 40%, 0.1);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.info-item:hover {
    background: hsla(0, 0%, 100%, 0.05);
    border-color: hsla(220, 30%, 40%, 0.2);
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

.landmarks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.landmark-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-sm) var(--gap-md);
    background: hsla(0, 0%, 100%, 0.03);
    border-radius: 8px;
    border: 1px solid hsla(220, 30%, 40%, 0.1);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.landmark-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.landmark-icon-container svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: white;
    fill: none;
}

.landmark-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landmark-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.landmark-item:hover {
    background: hsla(0, 0%, 100%, 0.07);
    border-color: var(--primary);
    transform: translateX(4px);
}

.landmark-item:hover::before {
    opacity: 1;
}

.landmark-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.landmark-category {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ===== Map Wrapper ===== */
.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border: 1px solid var(--border-color);
}

.map-container {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: var(--gap-md);
    right: var(--gap-md);
    z-index: 1000;
}

.map-controls {
    display: flex;
    gap: var(--gap-sm);
}

.control-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.control-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* ===== Leaflet Custom Styles ===== */
.leaflet-popup-content-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: var(--gap-md);
    font-family: var(--font-ko);
}

.leaflet-popup-tip {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--gap-xs);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-category {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--gap-sm);
}

.popup-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Boundary Tooltip */
.boundary-tooltip {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary) !important;
    border-radius: 8px;
    box-shadow: var(--shadow-md), var(--glow-primary);
    color: var(--text-primary) !important;
    font-family: var(--font-ko);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px !important;
    opacity: 1 !important;
}

.boundary-tooltip::before {
    border-top-color: var(--primary) !important;
}


/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        overflow-y: auto;
        /* Allow scrolling within the restricted height */
        max-height: 35vh;
        /* Use viewport unit instead of pixels */
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--gap-md);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--gap-sm);
        gap: var(--gap-sm);
        /* Mobile Layout: Header -> Map -> Sidebar (Drawer) */
        position: relative;
    }

    .header {
        padding: var(--gap-sm) var(--gap-md);
    }

    .title {
        flex-direction: column;
        gap: 0;
    }

    .title-ko {
        font-size: 1.25rem;
    }

    .title-en {
        font-size: 0.8rem;
    }

    .subtitle {
        display: none;
    }

    /* Save space */

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        /* Show btn */
        background: none;
        border: none;
        color: var(--text-primary);
        width: 32px;
        height: 32px;
        cursor: pointer;
    }

    /* Sidebar Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden */
        bottom: 0;
        width: 280px;
        background: var(--bg-secondary);
        z-index: 1500;
        padding: var(--gap-lg);
        transition: left var(--transition-base);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
        /* Shown */
    }

    /* News Ticker Mobile */
    .news-ticker {
        width: calc(100% - 20px) !important;
        left: 10px;
        right: 10px;
        bottom: 50px;
        /* Above map controls if aligned bottom */
        max-width: none;
    }

    .news-content {
        height: 96px;
        /* 4 lines instead of 5 to save space */
    }

    /* Map Controls */
    .map-controls {
        bottom: 50px;
        /* Push up above ticker */
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--gap-xl);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg), var(--glow-primary);
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--gap-md);
    right: var(--gap-md);
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--gap-xs);
    color: var(--text-primary);
}

.source-text {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--gap-lg);
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
}

.stat-item {
    background: hsla(0, 0%, 100%, 0.03);
    border: 1px solid hsla(220, 30%, 40%, 0.1);
    border-radius: 12px;
    padding: var(--gap-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
        padding: var(--gap-lg);
    }

    .stats-container {
        flex-direction: column;
        height: auto !important;
        max-height: 70vh;
    }

    .stats-tabs {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
        margin-bottom: 10px;
        padding-right: 0 !important;
    }

    .stats-tab-btn {
        flex: 0 0 auto;
        /* Allow horizontal scroll */
        white-space: nowrap;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-en);
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Weather Marker */
.weather-marker {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-family: var(--font-ko);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease;
}

.weather-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

.weather-icon {
    width: 24px;
    height: 24px;
    color: #ffaa00;
    /* Sunny color default */
}

.weather-temp {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.weather-name {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

/* School Markers */
.school-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.school-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

.school-marker.elementary {
    background: #FFD700;
}

/* Yellow */
.school-marker.middle {
    background: #32CD32;
}

/* Lime Green */
.school-marker.high {
    background: #1E90FF;
}

/* Dodger Blue */
.school-marker.university {
    background: #8A2BE2;
}

/* Blue Violet */

.school-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.school-popup .leaflet-popup-content {
    margin: 12px;
    font-family: var(--font-ko);
    text-align: center;
}

/* Public Markers */
.public-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.public-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

.public-marker.police {
    background: #0047A0;
}

/* Police Blue */
.public-marker.fire {
    background: #FF4500;
}

/* Fire OrangeRed */
.public-marker.government {
    background: #696969;
}

/* DimGray */

/* Mart Markers */
.mart-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: white;
    background: #2E8B57;
    /* SeaGreen */
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.mart-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

/* Marker Management Styles */
.marker-manage-card {
    background: hsla(220, 30%, 20%, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--gap-md);
    margin-top: var(--gap-md);
    /* Remove flex: 1 to allow natural height in scrolling sidebar */
    display: flex;
    flex-direction: column;
}

.marker-manage-list {
    /* Allow list to be as tall as needed, let sidebar scroll */
    flex: 1;
    margin-top: var(--gap-sm);
}

/* Category Container */
.marker-category {
    margin-bottom: var(--gap-md);
}

.marker-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: hsla(0, 0%, 100%, 0.05);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.marker-category-header:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: var(--text-primary);
}

.marker-category-header[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 2px;
}

.marker-category-content {
    padding-left: 12px;
    display: none;
}

.marker-category-content.expanded {
    display: block;
}

/* Marker Item (Checkbox Row) */
.marker-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-left: 2px solid hsla(0, 0%, 100%, 0.1);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.marker-check-item:hover {
    background: hsla(0, 0%, 100%, 0.03);
    color: var(--text-secondary);
    border-color: var(--primary);
}

.marker-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.marker-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.marker-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.marker-checkbox-label {
    cursor: pointer;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Population Labels */
.population-label {
    background: hsla(230, 85%, 60%, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    border: 1px solid hsla(0, 0%, 100%, 0.3);
}

.population-label div:first-child {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 1px;
}

.population-label div:last-child {
    font-size: 0.85rem;
}

/* Hospital Markers */
.hospital-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: white;
    background: #E63946;
    /* Red */
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.hospital-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

/* News Ticker Styles */
.news-ticker {
    position: absolute;
    bottom: 1px;
    /* Moved down further as requested */
    right: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 8px 15px;
    padding-top: 16px;
    /* Increased to fix top clipping */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* width: 600px; Enforce width for 1.5x size */
    width: 600px;
    animation: slideInRight 0.5s ease-out 0.5s backwards;
}

.news-content {
    display: flex;
    align-items: flex-start;
    /* Align to top to prevent clipping */
    padding-top: 4px;
    /* Slight offset */
    gap: 12px;
    color: white;
    font-size: 0.9em;
    flex: 1;
    height: 120px;
    /* 5 lines * 24px */
    overflow: hidden;
    position: relative;
}

.news-label {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    /* Slightly taller */
    margin-top: 0px;
    /* Align with text */
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

#news-text {
    flex: 1;
    height: 100%;
    position: relative;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.news-item {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.news-item:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .news-ticker {
        bottom: 5px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.8em;
    }
}

/* News Modal Styles */
.news-modal-content {
    max-width: 600px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

.news-detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #eee;
}

.news-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.news-detail-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-line;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}