:root {
    --brand: #d71920;
    --brand-dark: #a90f16;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f6f7fb;
    --teal: #0f766e;
    --blue: #1d4ed8;
    --warning: #f59e0b;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

[data-theme="dark"] {
    --ink: #f9fafb;
    --muted: #c7ccd4;
    --line: #2f3542;
    --paper: #141820;
    --soft: #0f1218;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container.narrow {
    max-width: 860px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--brand);
    z-index: 2000;
}

.top-strip {
    background: var(--ink);
    color: #fff;
    padding: 7px 0;
    font-size: 0.88rem;
}

[data-theme="dark"] .top-strip {
    background: #05070a;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.live-dot span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: transparent;
    color: currentColor;
}

.brand-row {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-link img,
.footer-brand img {
    width: 72px;
    height: 54px;
    object-fit: contain;
}

.brand-link strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.brand-link small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    overflow: visible;
}

.search-box > i {
    padding-left: 14px;
    color: var(--muted);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px;
    outline: none;
    color: var(--ink);
}

.search-box button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 700;
}

.search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 1000;
    overflow: hidden;
}

.search-suggest a {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}

.search-suggest small {
    display: block;
    color: var(--muted);
}

.nav-row {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.navbar-toggler {
    border-radius: var(--radius);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

.nav-link {
    font-weight: 700;
    padding: 15px 12px !important;
}

.nav-link:hover {
    color: var(--brand);
}

.mega-menu {
    width: 100%;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 20px 0;
    background: var(--paper);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius);
    font-weight: 700;
}

.mega-link:hover {
    background: var(--soft);
}

.mega-link span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.breaking-strip {
    background: #fff4f4;
    border-bottom: 1px solid #ffd6d6;
    padding: 10px 0;
}

[data-theme="dark"] .breaking-strip {
    background: #201113;
    border-color: #3a1f23;
}

.breaking-label {
    background: var(--brand);
    color: #fff;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.breaking-ticker {
    display: flex;
    gap: 24px;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-ticker a {
    font-weight: 700;
}

.home-hero,
.content-band {
    padding: 34px 0;
}

.content-band.alt {
    background: var(--soft);
}

.hero-slider,
.hero-slide {
    min-height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: #fff;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78));
}

.hero-slide .category-pill,
.hero-slide h1,
.hero-slide p {
    position: relative;
    z-index: 1;
}

.hero-slide h1 {
    max-width: 820px;
    margin: 14px 0 8px;
    font-size: 2.35rem;
    line-height: 1.12;
}

.hero-slide p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--line);
}

.section-head h2 {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand);
    font-size: 1.35rem;
}

.section-head a {
    color: var(--brand);
    font-weight: 700;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section-head.compact h2 {
    font-size: 1.05rem;
}

.stack-panel,
.side-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.rank-link {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.rank-link:last-child {
    border-bottom: 0;
}

.rank-link span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.rank-link strong {
    line-height: 1.35;
}

.grid-news {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.grid-news.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-news.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--soft);
}

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

.type-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

.news-card-body {
    padding: 14px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    background: var(--cat-color, var(--brand));
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.news-card h3 {
    margin: 10px 0 8px;
    font-size: 1.02rem;
    line-height: 1.34;
}

.news-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.mini-link {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mini-link:last-child {
    border-bottom: 0;
}

.mini-link img {
    width: 86px;
    height: 62px;
    object-fit: cover;
    border-radius: var(--radius);
}

.mini-link span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
    line-height: 1.3;
}

.mini-link small {
    color: var(--muted);
    font-weight: 500;
}

.ad-slot {
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    background: var(--soft);
    padding: 14px;
    margin: 18px 0;
    text-align: center;
    color: var(--muted);
    overflow: hidden;
}

.ad-slot img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-cloud .section-head {
    flex-basis: 100%;
}

.category-cloud a {
    border: 1px solid var(--line);
    border-left: 5px solid var(--cat-color);
    padding: 10px 13px;
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 800;
}

.media-row,
.headline-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.media-row i {
    color: var(--brand);
    font-size: 1.25rem;
}

.page-heading {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    padding: 42px 0;
}

.page-heading h1 {
    margin: 10px 0 8px;
    font-size: 2.1rem;
}

.page-heading p {
    max-width: 760px;
    color: var(--muted);
    margin: 0;
}

.article-wrap {
    padding: 32px 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.45rem;
    line-height: 1.12;
    margin-bottom: 12px;
}

.article-subtitle {
    color: var(--muted);
    font-size: 1.2rem;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 22px 0;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.share-btn {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    padding: 9px 12px;
    font-weight: 800;
}

.share-btn.whatsapp {
    background: #128c7e;
    color: #fff;
}

.share-btn.telegram {
    background: #229ed9;
    color: #fff;
}

.article-content {
    font-size: 1.06rem;
}

.article-content p,
.article-content li {
    margin-bottom: 1rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.6rem;
}

.article-content img,
.article-gallery img {
    width: 100%;
    border-radius: var(--radius);
}

.article-gallery {
    margin-top: 34px;
}

.live-updates {
    margin-top: 34px;
    border-left: 4px solid var(--brand);
    padding-left: 18px;
}

.live-update {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.live-update time {
    display: inline-block;
    color: var(--brand);
    font-weight: 900;
    margin-bottom: 4px;
}

.live-update strong {
    display: block;
    font-size: 1.05rem;
}

.live-update p {
    color: var(--muted);
    margin: 6px 0 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tag-list span {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 700;
}

.search-wide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 760px;
}

.empty-state {
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    background: #10131a;
    color: #e5e7eb;
    padding: 42px 0 22px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.site-footer p {
    color: #b9c0cc;
}

.site-footer h3 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    color: #cbd5e1;
    padding: 4px 0;
}

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

.social-links a {
    display: grid !important;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding-top: 18px;
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (max-width: 1199px) {
    .grid-news,
    .grid-news.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .brand-row .container {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
    }

    .hero-slider,
    .hero-slide {
        min-height: 360px;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .brand-link {
        min-width: 0;
    }

    .brand-link img {
        width: 58px;
        height: 44px;
    }

    .brand-link strong {
        font-size: 1.08rem;
    }

    .search-box button {
        padding: 12px;
    }

    .grid-news,
    .grid-news.two,
    .grid-news.four {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-slide {
        min-height: 330px;
    }

    .hero-slide {
        padding: 22px;
    }

    .hero-slide h1 {
        font-size: 1.45rem;
    }

    .article-title,
    .page-heading h1 {
        font-size: 1.65rem;
    }

    .search-wide {
        grid-template-columns: 1fr;
    }
}
