* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #111827;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

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

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

.container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0756a6;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(
        135deg,
        #0878df,
        #064b9b
    );
    box-shadow: 0 8px 20px rgba(6, 75, 155, .22);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    position: relative;
    padding: 29px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #075db4;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 5px 5px 0 0;
    background: #0878df;
}

/* =========================
   TRENDING
========================= */

.trend-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.trend-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trend-inner::-webkit-scrollbar {
    display: none;
}

.trend-label {
    color: #075db4;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.trend-item {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.trend-item::before {
    content: "•";
    color: #0878df;
    margin-right: 7px;
    font-weight: 900;
}

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

.page {
    padding: 30px 0 70px;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading small {
    display: block;
    margin-bottom: 7px;
    color: #0878df;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.page-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.7px;
}

/* =========================
   FEATURED
========================= */

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr);
    gap: 28px;
    margin-bottom: 45px;
}

.featured-card {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1728;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .10);
}

.featured-image {
    width: 100%;
    height: 440px;
    object-fit: cover;
    opacity: .88;
}

.featured-placeholder {
    width: 100%;
    height: 440px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    background:
        radial-gradient(
            circle at 20% 20%,
            #1688f5,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #062e67,
            #07111f
        );
}

.featured-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 34px;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .82),
            rgba(0, 0, 0, .06) 70%
        );
}

.featured-content {
    max-width: 780px;
    color: #fff;
}

.news-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 7px;
    color: #fff;
    background: rgba(8, 120, 223, .95);
    font-size: 12px;
    font-weight: 800;
}

.featured-title {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.8px;
}

.featured-excerpt {
    max-width: 680px;
    margin: 0 0 15px;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.55;
}

.featured-meta {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

/* =========================
   LATEST SIDEBAR
========================= */

.latest-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.latest-header {
    padding: 21px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.latest-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 850;
}

.latest-news {
    display: block;
    padding: 17px 22px;
    border-bottom: 1px solid #edf0f3;
    transition: .2s ease;
}

.latest-news:last-child {
    border-bottom: 0;
}

.latest-news:hover {
    background: #f8fafc;
}

.latest-news-title {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.latest-news-meta {
    color: #9ca3af;
    font-size: 11px;
}

/* =========================
   NEWS LIST
========================= */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr);
    gap: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.section-title-line {
    width: 55px;
    height: 4px;
    margin-top: 8px;
    border-radius: 10px;
    background: #0878df;
}

.news-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.news-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 21px;
    border-bottom: 1px solid #edf0f3;
    transition: .2s ease;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item:hover {
    background: #fafcff;
}

.news-item-image {
    width: 220px;
    height: 145px;
    object-fit: cover;
    border-radius: 12px;
    background: #e5e7eb;
}

.news-item-placeholder {
    width: 220px;
    height: 145px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        #0878df,
        #06366e
    );
}

.news-item h3 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.news-item h3:hover {
    color: #075db4;
}

.news-item-text {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.news-item-category {
    color: #0878df;
    font-weight: 700;
}

/* =========================
   CATEGORY BOX
========================= */

.category-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
}

.category-box h3 {
    margin: 0 0 17px;
    font-size: 19px;
    font-weight: 850;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-link {
    padding: 9px 12px;
    border-radius: 8px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.category-link:hover,
.category-link.active {
    color: #fff;
    background: #0878df;
}

/* =========================
   EMPTY
========================= */

.empty-state {
    padding: 70px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #0878df;
    background: #eaf4ff;
    font-size: 25px;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 850;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
}

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

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    padding: 45px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 13px;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.footer-description {
    max-width: 430px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    margin: 0 0 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 13px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #263244;
    color: #6b7280;
    font-size: 12px;
}

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

@media (max-width: 1000px) {

    .header-inner {
        min-height: 68px;
    }

    .main-nav a {
        padding: 25px 9px;
        font-size: 13px;
    }

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

    .latest-box {
        order: 2;
    }

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

}

@media (max-width: 700px) {

    .container {
        width: min(100% - 24px, 1220px);
    }

    .logo {
        font-size: 23px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .header-inner {
        gap: 15px;
    }

    .main-nav {
        display: none;
    }

    .page {
        padding-top: 20px;
    }

    .page-heading h1 {
        font-size: 26px;
    }

    .featured-card,
    .featured-image,
    .featured-placeholder {
        min-height: 360px;
        height: 360px;
    }

    .featured-overlay {
        padding: 22px;
    }

    .featured-title {
        font-size: 27px;
    }

    .featured-excerpt {
        font-size: 13px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-item-image,
    .news-item-placeholder {
        width: 100%;
        height: 190px;
    }

    .news-item h3 {
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}
