
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #102a43;
    --secondary: #e63946;
    --text: #243447;
    --muted: #718096;
    --background: #f4f7fb;
    --white: #ffffff;
    --border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

/* Top Bar */
.topbar {
    background: #081b2c;
    color: #d7e1ec;
    font-size: 12px;
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Header */
.header {
    background: var(--white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    gap: 20px;
}

.logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.header-tagline {
    color: var(--muted);
    font-size: 14px;
}

.subscribe-btn {
    background: var(--secondary);
    color: white;
    padding: 11px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s;
}

.subscribe-btn:hover {
    background: #c92d3a;
}

/* Navigation */
.navbar {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-content a {
    display: block;
    padding: 16px 13px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}

.nav-content a:hover,
.nav-content a.active {
    background: var(--secondary);
}

/* Breaking News */
.breaking {
    background: white;
    border-bottom: 1px solid var(--border);
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    overflow: hidden;
}

.breaking-label {
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 7px 12px;
    white-space: nowrap;
}

.breaking marquee {
    font-size: 13px;
    color: #475569;
}

/* Main Content */
.main-content {
    padding-top: 30px;
    padding-bottom: 50px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.section-heading h2 {
    font-size: 23px;
    color: var(--primary);
    position: relative;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: var(--secondary);
    margin-top: 5px;
}

.section-heading > span,
.section-heading > a {
    font-size: 12px;
    color: var(--secondary);
    font-weight: bold;
}

/* Featured Stories */
.featured-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 22px;
    margin-bottom: 42px;
}

.featured-main {
    position: relative;
    height: 460px;
    overflow: hidden;
    border-radius: 8px;
    background: #172b3e;
}

.featured-main img {
    height: 100%;
    transition: transform 0.5s;
}

.featured-main:hover img {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    background: linear-gradient(
        to top,
        rgba(5, 17, 31, 0.96),
        rgba(5, 17, 31, 0.1) 80%
    );
}

.category {
    display: inline-block;
    width: fit-content;
    background: var(--secondary);
    color: white;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.7px;
    border-radius: 3px;
}

.featured-overlay h1 {
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.25;
    margin: 13px 0;
}

.featured-overlay p {
    color: #e2e8f0;
    font-size: 14px;
}

.read-more {
    margin-top: 18px;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.read-more:hover {
    color: #ffb4bb;
}

.featured-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 22px;
    min-height: 460px;
}

.small-feature {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.small-feature img {
    height: 130px;
    flex-shrink: 0;
}

.small-feature-content {
    padding: 12px 15px;
}

.small-feature-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 7px 0;
}

.small-feature-content small {
    font-size: 11px;
    color: var(--muted);
}

/* News Layout */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: start;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.09);
}

.news-card img {
    height: 190px;
    transition: transform 0.3s;
}

.news-card-body {
    padding: 17px;
}

.news-card h3 {
    font-size: 17px;
    line-height: 1.45;
    margin: 10px 0;
    color: var(--primary);
}

.news-card p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 15px;
}

.news-meta {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-box,
.newsletter {
    background: white;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.sidebar-box h2,
.newsletter h2 {
    font-size: 20px;
    color: var(--primary);
    padding-bottom: 13px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 8px;
}

.popular-item {
    display: flex;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-number {
    font-size: 28px;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1.2;
}

.popular-item h3 {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.popular-item small {
    font-size: 11px;
    color: var(--muted);
}

.newsletter {
    background: var(--primary);
    color: white;
    border: none;
}

.newsletter h2 {
    color: white;
    border-color: #334e68;
}

.newsletter p {
    font-size: 13px;
    color: #d7e1ec;
    margin-bottom: 16px;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    border: 1px solid #486581;
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter input:focus {
    border-color: #60a5fa;
}

.newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.newsletter button:hover {
    background: #c92d3a;
}

.newsletter > small {
    display: block;
    font-size: 10px;
    color: #cbd5e1;
    margin-top: 12px;
}

/* Footer */
.footer {
    background: #081b2c;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-top: 40px;
    padding-bottom: 35px;
}

.footer-logo {
    color: white;
    font-size: 30px;
}

.footer-content p {
    font-size: 13px;
    color: #a9bbcc;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #d7e1ec;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ff7a85;
}

.copyright {
    text-align: center;
    border-top: 1px solid #263d52;
    padding: 16px;
    color: #a9bbcc;
    font-size: 12px;
}

/* Tablet */
@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        height: 400px;
    }

    .featured-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }

    .small-feature img {
        height: 160px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        width: 94%;
    }

    .topbar-content {
        font-size: 10px;
    }

    .header-content {
        min-height: 80px;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 8px;
    }

    .logo {
        font-size: 28px;
    }

    .header-tagline {
        display: none;
    }

    .subscribe-btn {
        padding: 9px 12px;
        font-size: 11px;
    }

    .nav-content a {
        padding: 13px 12px;
        font-size: 12px;
    }

    .breaking-content {
        gap: 9px;
    }

    .breaking-label {
        font-size: 9px;
        padding: 7px;
    }

    .breaking marquee {
        font-size: 11px;
    }

    .main-content {
        padding-top: 22px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .featured-main {
        height: 350px;
    }

    .featured-overlay {
        padding: 20px;
    }

    .featured-overlay h1 {
        font-size: 25px;
    }

    .featured-overlay p {
        font-size: 12px;
    }

    .featured-side {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .small-feature {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: center;
    }

    .small-feature img {
        height: 100%;
        min-height: 135px;
    }

    .small-feature-content {
        padding: 12px;
    }

    .small-feature-content h3 {
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card img {
        height: 210px;
    }

    .sidebar {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 14px;
    }
}
