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

body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #172033;
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: white;
    border-bottom: 1px solid #e8edf4;
}

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

.logo {
    font-size: 27px;
    font-weight: bold;
    color: #1769e0;
    text-decoration: none;
}

.logo span {
    color: #172033;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #455166;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #1769e0;
}

.hero {
    background: linear-gradient(120deg, #1258c7, #3186f5);
    color: white;
    padding: 65px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.hero p {
    opacity: .9;
    margin-bottom: 25px;
}

.search {
    max-width: 550px;
    margin: auto;
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px;
    font-size: 14px;
    min-width: 0;
}

.search button {
    background: #1769e0;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
}

main {
    padding: 45px 0;
}

.section-title {
    font-size: 23px;
    margin-bottom: 8px;
}

.section-desc {
    color: #718096;
    margin-bottom: 25px;
    font-size: 14px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category {
    border: 1px solid #dce5f0;
    padding: 8px 17px;
    border-radius: 30px;
    background: white;
    color: #475569;
    cursor: pointer;
}

.category.active,
.category:hover {
    background: #1769e0;
    color: white;
    border-color: #1769e0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    align-content: start;
}

.card {
    background: white;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    overflow: hidden;
    transition: .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

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

.card-body {
    padding: 19px;
}

.tag {
    color: #1769e0;
    font-size: 12px;
    font-weight: bold;
}

.card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.4;
}

.card p {
    color: #718096;
    font-size: 13px;
}

.read {
    display: inline-block;
    margin-top: 15px;
    color: #1769e0;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.sidebar {
    background: white;
    padding: 22px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.sidebar p {
    color: #718096;
    font-size: 14px;
}

.sidebar ul {
    padding-left: 18px;
    margin-top: 15px;
    color: #475569;
    font-size: 14px;
}

.sidebar li {
    margin-bottom: 10px;
}

footer {
    background: #14243b;
    color: white;
    padding: 35px 0;
    text-align: center;
}

footer p {
    color: #b7c4d7;
    font-size: 13px;
}

.empty {
    display: none;
    color: #718096;
    padding: 30px;
    text-align: center;
    grid-column: 1 / -1;
}

@media(max-width: 800px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .articles {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        gap: 12px;
    }
}

@media(max-width: 550px) {
    .topbar {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 27px;
    }

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