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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #111;
}

.container {
    width: 1180px;
    max-width: 94%;
    margin: auto;
}


/* HEADER */

.top-header {
    background: white;
    border-bottom: 1px solid #ddd;
}

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

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

.logo span {
    color: #e00000;
}

.header-date {
    color: #777;
    font-size: 14px;
}


/* NAVIGATION */

.navbar {
    background: #111;
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.nav-inner a {
    color: white;
    text-decoration: none;
    padding: 18px 16px;
    font-size: 13px;
    font-weight: bold;
}

.nav-inner a:hover,
.nav-inner a.active {
    background: #e00000;
}

.search-button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: white;
    font-size: 20px;
    cursor: pointer;
}


/* BREAKING */

.breaking {
    background: #e00000;
    color: white;
}

.breaking-inner {
    display: flex;
    align-items: center;
    min-height: 42px;
}

.breaking strong {
    background: #111;
    padding: 12px 18px;
    margin-right: 20px;
    font-size: 12px;
}

.breaking-text {
    font-size: 14px;
}


/* HERO */

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.main-news {
    background: white;
}

.news-image {
    height: 380px;
    background: #ddd;
    overflow: hidden;
}

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

.main-news-content {
    padding: 25px;
}

.category {
    color: #e00000;
    font-size: 12px;
    font-weight: bold;
}

.main-news h1 {
    font-size: 34px;
    margin: 10px 0;
    line-height: 1.15;
}

.main-news p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.time {
    color: #999;
    font-size: 12px;
}


/* SIDE NEWS */

.side-news {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.small-news {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    background: white;
    padding: 12px;
}

.small-news img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    background: #ddd;
}

.small-news h2 {
    font-size: 17px;
    line-height: 1.25;
    margin: 7px 0;
}


/* CONTENT */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 35px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 23px;
    white-space: nowrap;
}

.section-title div {
    height: 3px;
    background: #e00000;
    width: 100%;
}


/* NEWS CARDS */

.news-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
    background: white;
    padding: 15px;
    margin-bottom: 18px;
}

.news-card img {
    width: 230px;
    height: 150px;
    object-fit: cover;
    background: #ddd;
}

.news-card h3 {
    font-size: 21px;
    margin: 8px 0;
}

.news-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}


/* SIDEBAR */

.sidebar {
    background: white;
    padding: 20px;
    height: fit-content;
}

.popular {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    display: flex;
    gap: 15px;
}

.popular span {
    font-size: 25px;
    font-weight: bold;
    color: #e00000;
}

.popular h3 {
    font-size: 16px;
    line-height: 1.3;
}


/* FOOTER */

footer {
    background: #111;
    color: white;
    margin-top: 60px;
}

.footer-inner {
    min-height: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-inner .logo {
    color: white;
}

.footer-inner p {
    color: #aaa;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.copyright {
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
    padding: 20px;
    font-size: 13px;
}


/* SEARCH */

.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.search-box {
    background: white;
    width: 500px;
    max-width: 90%;
    padding: 30px;
    position: relative;
}

.search-box h2 {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.search-submit {
    margin-top: 12px;
    padding: 13px 20px;
    background: #e00000;
    color: white;
    border: 0;
    cursor: pointer;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}


/* MOBILE */

@media (max-width: 800px) {

    .header-date {
        display: none;
    }

    .nav-inner {
        overflow-x: auto;
    }

    .nav-inner a {
        white-space: nowrap;
        padding: 16px 10px;
    }

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

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

    .main-news h1 {
        font-size: 27px;
    }

    .news-card {
        grid-template-columns: 120px 1fr;
    }

    .news-card img {
        width: 120px;
        height: 100px;
    }

    .news-card h3 {
        font-size: 17px;
    }

    .news-card p {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0;
        gap: 25px;
    }
}

