@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Roboto+Slab:wght@700;800;900&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --red: #e30613;
    --dark: #2f2f2f;
    --blue: #075f9f;
    --border: #e2e2e2;
    --text: #111;
    --muted: #666;
    --bg: #f2f2f2;
    --white: #fff;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 1280px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: #333;
    color: #fff;
    font-size: 13px;
}

.topbar-inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    color: #fff;
    font-weight: 700;
}

.weather-mini {
    color: #ffcf4d;
    font-size: 17px;
    font-weight: 800;
}

/* =========================
   HEADER
========================= */

.header-main {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-main-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 42px;
    min-width: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-black {
    color: #111;
}

.logo-red {
    color: var(--red);
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.main-menu a {
    position: relative;
    padding: 29px 0;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width .2s ease;
}

.main-menu a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 20px;
}

/* =========================
   TICKER / MARKET
========================= */

.ticker-area {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.ticker-grid {
    display: grid;
    grid-template-columns: 38% 62%;
}

.breaking-box {
    height: 44px;
    display: flex;
    align-items: center;
    background: #fafafa;
    border-left: 1px solid #eee;
}

.breaking-icon {
    width: 48px;
    text-align: center;
    font-size: 19px;
    color: #f6a400;
}

.breaking-text {
    flex: 1;
    padding-right: 12px;
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-arrows {
    height: 44px;
    display: flex;
}

.ticker-arrows span {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-left: 1px solid #ddd;
    font-size: 22px;
    color: #555;
}

.market-box {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 18px;
    background: var(--blue);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.market-box::-webkit-scrollbar {
    display: none;
}

.market-box span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.market-box b {
    font-size: 17px;
    font-weight: 700;
}

.market-box small {
    color: #ff4b4b;
}

/* =========================
   PAGE LAYOUT
========================= */

.page-shell {
    width: 1580px;
    max-width: calc(100% - 24px);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 22px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.side-ad {
    position: sticky;
    top: 16px;
}

.ad-box {
    width: 160px;
    height: 600px;
    border: 1px solid #d5d5d5;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #cfcfcf;
    padding: 42px 0;
}

.ad-top {
    font-size: 20px;
    color: #d8d8d8;
}

.ad-size {
    font-size: 42px;
    line-height: 1.18;
    text-align: center;
    color: #888;
    font-weight: 800;
}

/* =========================
   HOME HEADLINE
========================= */

.headline-wrapper {
    background: transparent;
}

.headline-main {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #111;
    color: inherit;
}

.headline-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.03);
}

.headline-empty {
    background: linear-gradient(135deg, #111, #333);
}

.headline-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.16) 42%, rgba(165,76,28,0.72) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.18), transparent 60%);
}

.headline-caption {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 56%;
    text-align: right;
    color: #fff;
    z-index: 2;
}

.headline-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffea00;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 3px 8px rgba(0,0,0,0.45);
}

.headline-caption h1 {
    margin: 0;
    color: #fff;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.1px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.42);
}

.headline-numbers {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    background: #fff;
    border-left: 1px solid #ddd;
}

.headline-numbers span {
    height: 36px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 15px;
    font-weight: 800;
}

.headline-numbers span.active {
    background: var(--red);
    color: #fff;
}


/* =========================
   HOME CATEGORY BLOCKS
========================= */

.category-section {
    margin-top: 30px;
}

.section-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 14px;
}

.section-header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    color: #111;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-header a {
    color: var(--red);
    font-size: 14px;
    font-weight: 900;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.category-news {
    background: #fff;
    border: 1px solid #e7e7e7;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.category-news img,
.category-news-lg img,
.category-news-sm img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    object-position: center;
    background: #e5e5e5;
}

.category-content {
    padding: 13px;
}

.category-content span {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-content h3 {
    margin: 0;
    color: #050505;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.category-content p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.45;
}

/* =========================
   CATEGORY PAGE
========================= */

.category-page-head {
    background: #fff;
    padding: 24px 28px;
    border: 1px solid #e7e7e7;
    margin-bottom: 22px;
}

.category-page-head h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
    color: #111;
}

.category-page-head p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.category-list-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    color: #111;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.category-list-card img,
.no-image {
    width: 100%;
    height: 165px;
    object-fit: cover;
    object-position: center;
}

.no-image {
    background: #f1f1f1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-list-content {
    padding: 16px;
}

.category-list-content span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-list-content h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
}

.category-list-content p {
    margin: 0 0 12px;
    color: #555;
    line-height: 1.5;
}

.news-meta {
    color: #888;
    font-size: 13px;
}

.empty-news {
    background: #fff;
    padding: 30px;
    border: 1px solid #e7e7e7;
    color: #666;
    grid-column: 1 / -1;
}

.frontend-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

/* =========================
   NEWS DETAIL
========================= */

.news-detail-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 30px 36px;
}

.news-detail-category a {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.news-detail-card h1 {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 950;
    color: #111;
    letter-spacing: -1px;
}

.news-detail-summary {
    margin: 0 0 18px;
    font-size: 19px;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    margin-bottom: 24px;
    color: #777;
    font-size: 14px;
}

.news-detail-image {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 24px;
}

.news-detail-content {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

.news-detail-content p {
    margin: 0 0 20px;
}

.source-link-box {
    margin-top: 30px;
    padding: 18px;
    background: #f7f7f7;
    border-left: 4px solid var(--red);
}

.source-link-box a {
    color: var(--red);
    font-weight: 800;
}

.related-news-section {
    margin-top: 34px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 50px;
    background: #252525;
    color: #fff;
    padding: 36px 0;
}

.site-footer strong {
    display: block;
    font-size: 30px;
    font-weight: 950;
    margin-bottom: 8px;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1500px) {
    .page-shell {
        width: 1280px;
        max-width: calc(100% - 40px);
        grid-template-columns: minmax(0, 1fr);
    }

    .side-ad {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header-main-inner {
        height: auto;
        padding: 18px 0;
        align-items: flex-start;
        gap: 18px;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .main-menu {
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .main-menu a {
        padding: 0;
    }

    .main-menu a::after {
        display: none;
    }

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

    .market-box {
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
    }

    .headline-main {
        height: 310px;
    }

    .headline-caption {
        right: 28px;
        width: 68%;
    }
}

@media (max-width: 768px) {
    .container,
    .page-shell {
        max-width: calc(100% - 24px);
    }

    .topbar-inner {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .site-logo {
        font-size: 25px;
    }

    .header-icons {
        display: none;
    }

    .market-box {
        height: auto;
        min-height: 44px;
        flex-wrap: nowrap;
        padding: 10px 14px;
    }

    .headline-main {
        height: 250px;
    }

    .headline-caption {
        left: 18px;
        right: 18px;
        bottom: 22px;
        top: auto;
        transform: none;
        width: auto;
        text-align: left;
    }

    .headline-tag {
        font-size: 20px;
    }

    .headline-caption h1 {
        font-size: 27px;
        letter-spacing: -0.8px;
    }

    .headline-numbers {
        grid-template-columns: repeat(10, 1fr);
    }

    .headline-numbers span {
        height: 34px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 27px;
    }

    .news-detail-card {
        padding: 22px 18px;
    }

    .news-detail-card h1 {
        font-size: 28px;
    }

    .news-detail-summary {
        font-size: 18px;
    }

    .news-detail-image {
        max-height: 280px;
    }

    .news-detail-content {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .category-news-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }
}

        body {
            background: #f3f3f3;
            margin: 0;
            font-family: Arial, sans-serif;
            color: #111;
        }

        .page-container {
            max-width: 1180px;
            margin: 0 auto;
            padding: 30px 15px 60px;
        }

        .page-title {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 24px;
            border-bottom: 1px solid #ddd;
            padding-bottom: 12px;
        }

        .page-title h1 {
            font-size: 34px;
            font-weight: 800;
            margin: 0;
            text-transform: uppercase;
        }

        .site-logo {
            text-decoration: none;
            font-size: 28px;
            font-weight: 900;
            color: #111;
        }

        .logo-red {
            color: #e30613;
        }

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

        .gallery-card {
            background: #fff;
            display: block;
            text-decoration: none;
            color: #111;
            overflow: hidden;
            border-bottom: 4px solid #e30613;
        }

        .gallery-card img {
            width: 100%;
            height: 210px;
            object-fit: cover;
            display: block;
        }

        .gallery-card-body {
            padding: 16px;
        }

        .gallery-card h3 {
            margin: 0 0 8px;
            font-size: 21px;
            line-height: 1.3;
            font-weight: 800;
        }

        .gallery-card p {
            margin: 0;
            color: #666;
            line-height: 1.5;
        }

        .video-box iframe {
            width: 100%;
            height: 240px;
            border: 0;
            display: block;
        }

        .author-card {
            background: #fff;
            display: flex;
            gap: 18px;
            padding: 18px;
            border-bottom: 4px solid #e30613;
        }

        .author-card img {
            width: 92px;
            height: 92px;
            object-fit: cover;
            border-radius: 50%;
        }

        .author-card h3 {
            margin: 0 0 4px;
            font-size: 22px;
            font-weight: 800;
        }

        .author-card small {
            color: #e30613;
            font-weight: 700;
        }

        .author-card p {
            margin: 10px 0 0;
            color: #555;
            line-height: 1.5;
        }

        @media (max-width: 900px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .author-card {
                flex-direction: column;
            }
        }