:root {
    --navy: #0b1f3a;
    --navy-dark: #071527;
    --crimson: #c0202e;
    --crimson-dark: #9c1a25;
    --gold: #c9a227;
    --bg: #f7f7f5;
    --text: #1e2733;
    --text-muted: #6c7686;
    --border: #eceef2;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #fff;
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, .headline-font {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; }

/* ---------- Breaking News Ticker ---------- */
.breaking-ticker {
    background: var(--crimson);
    color: #fff;
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    height: 42px;
}

.ticker-badge {
    background: #000;
    padding: 0 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    padding-left: 20px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    align-items: center;
}

.ticker-viewport {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-track a {
    color: #fff;
    margin-right: 50px;
    font-size: 0.88rem;
    font-weight: 500;
}

.ticker-track a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(11, 31, 58, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img { max-height: 42px; }

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--navy);
    letter-spacing: 0.3px;
}

.header-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    padding: 9px 14px;
    width: 220px;
    outline: none;
    font-size: 0.88rem;
    font-family: inherit;
}

.header-search button {
    background: var(--crimson);
    border: none;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--navy);
}

/* ---------- Main Nav ---------- */
.main-nav { border-top: 1px solid var(--border); }

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
    display: block;
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.15s, background 0.15s;
}

.main-nav > ul > li > a:hover {
    color: var(--crimson);
    background: #faf9f7;
}

.main-nav li.has-dropdown:hover .dropdown { display: block; }

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.14);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
}

.main-nav .dropdown li a {
    padding: 10px 18px;
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: none;
}

.main-nav .dropdown li a:hover {
    background: var(--bg);
    color: var(--crimson);
}

@media (max-width: 991.98px) {
    .header-search { display: none !important; }
    .main-nav ul { display: none; flex-direction: column; }
    .main-nav.open ul { display: flex; }
    .main-nav .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 16px;
    }
    .main-nav > ul > li > a { padding: 12px 4px; }
}

/* ---------- Ad slots ---------- */
.ad-slot {
    text-align: center;
    margin: 24px 0;
}

.ad-slot-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ad-slot img {
    max-width: 100%;
    border-radius: 6px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 50px;
    margin-top: 60px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-about { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-right: 8px;
}

.footer-social a:hover { background: var(--crimson); }

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-contact i { margin-right: 8px; color: var(--gold); }

.footer-bottom-ad {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 36px;
}

.footer-bottom-ad .ad-slot-label { color: rgba(255, 255, 255, 0.4); }

.copyright-bar {
    background: var(--navy-dark);
    padding: 16px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Shared utility classes (used by homepage / category / article pages) ---------- */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    border-left: 4px solid var(--crimson);
    padding-left: 12px;
    margin-bottom: 20px;
}

.badge-breaking {
    background: var(--crimson);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 3px;
}

.badge-category {
    background: rgba(11, 31, 58, 0.08);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 3px;
}

.text-muted-sm { font-size: 0.82rem; color: var(--text-muted); }

.btn-crimson {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
    font-weight: 600;
}

.btn-crimson:hover {
    background: var(--crimson-dark);
    border-color: var(--crimson-dark);
    color: #fff;
}

/* ---------- No-image fallback ---------- */
.hero-featured-img.no-image,
.article-card-img.no-image,
.compact-thumb.no-image {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-icon { color: rgba(255, 255, 255, 0.3); font-size: 2.4rem; }
.compact-thumb.no-image i { color: rgba(255, 255, 255, 0.3); font-size: 1.3rem; }

/* ---------- Hero featured card ---------- */
.hero-featured {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(11, 31, 58, 0.09);
    background: #fff;
    height: 100%;
}

.hero-featured-img {
    height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-badge { position: absolute; top: 16px; left: 16px; }

.hero-featured-body { padding: 22px 24px; }
.hero-featured-body h2 { font-size: 1.6rem; margin: 10px 0 8px; }
.hero-featured-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }

/* ---------- Compact list (top stories / trending) ---------- */
.top-stories-list, .trending-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    height: 100%;
}

.compact-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.compact-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.compact-rank {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--crimson);
    width: 22px;
    flex-shrink: 0;
    text-align: center;
}

.compact-thumb {
    width: 62px;
    height: 62px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.compact-body h6 { font-size: 0.9rem; margin: 0 0 4px; color: var(--navy); line-height: 1.35; }

/* ---------- Article card grid ---------- */
.article-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
    height: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(11, 31, 58, 0.12);
}

.article-card-img {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge { position: absolute; top: 10px; left: 10px; }

.article-card-body { padding: 14px 16px; }
.article-card-body h5 { font-size: 1rem; margin: 8px 0 8px; line-height: 1.35; }

.category-section { border-top: 1px solid var(--border); padding-top: 26px; }

/* ---------- Article page ---------- */
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--crimson); }
.breadcrumb-nav i { font-size: 0.7rem; margin: 0 4px; }

.article-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 6px 0 16px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-meta i { margin-right: 5px; color: var(--crimson); }

.share-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25d366; }
.share-copy { background: var(--navy); }

.article-featured-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body p { margin-bottom: 20px; }
.article-body h2, .article-body h3 { margin: 32px 0 16px; }
.article-body img { border-radius: 8px; margin: 20px 0; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body blockquote {
    border-left: 4px solid var(--crimson);
    padding: 6px 0 6px 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.article-body a { color: var(--crimson); text-decoration: underline; }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.tag-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}

.tag-pill:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
}

.article-gallery { margin: 30px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.gallery-item { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.gallery-item img { width: 100%; height: 140px; object-fit: cover; transition: transform 0.2s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(11, 31, 58, 0.75);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 8px;
}

/* ---------- Category page ---------- */
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategory-pill {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.subcategory-pill:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
}

/* ---------- Pagination ---------- */
.site-pagination .page-link {
    color: var(--navy);
    border: 1px solid var(--border);
    margin: 0 3px;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 0.88rem;
}

.site-pagination .page-item.active .page-link {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
}

.site-pagination .page-link:hover {
    background: var(--bg);
    color: var(--crimson);
}

/* ---------- Generic content card (About / Contact pages) ---------- */
.content-card-public {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}