@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800;900&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --primary: #0a192f;
    --secondary: #c80000;
    --accent: #ffd700;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --bg-main: #ffffff;
    --bg-alt: #f1f1f1;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

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

/* Header & Navigation */
header {
    border-bottom: 3px solid var(--primary);
    padding: 1rem 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--secondary);
}

.lang-switcher select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    background: white;
    outline: none;
    transition: var(--transition);
}

.lang-switcher select:hover {
    border-color: var(--primary);
}

/* Breaking News Ticker */
.ticker-wrap {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    overflow: hidden;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    padding: 0 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item::before {
    content: '•';
    color: var(--secondary);
    font-size: 1.5rem;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-story {
    position: relative;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.main-story img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.main-story .category {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.main-story h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.main-story p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.side-stories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-story {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mini-story img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-story h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Feed Section */
.content-grid {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.latest-feed h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.article-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
}

.img-wrapper {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.article-card p {
    font-family: 'Lora', serif;
    color: var(--text-muted);
}

/* Sidebar & Map */
.sidebar section {
    margin-bottom: 3rem;
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--secondary);
}

/* Stats Tracker */
.stats-dashboard {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.stats-dashboard h2 {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--secondary);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.map-container {
    background: #eef2f5;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: #dcdde1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid white;
    filter: drop-shadow(0 0 5px rgba(200, 0, 0, 0.5));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Article View (Modal/Overlay style) */
#article-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 4px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 700;
}

.article-banner {
    width: 100%;
    max-height: 500px;
    background: #f0f0f0;
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.article-body {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Modal General Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
}

.modal-content {
    background: var(--white);
    max-width: 450px;
    margin: 10% auto;
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 700;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

#subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

#subscribe-form input,
#subscribe-form select {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.location-group {
    text-align: left;
}

.location-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-card {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .article-container {
        padding: 2rem;
    }

    .article-content h1 {
        font-size: 2.5rem;
    }
}