* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f6f8;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: #111827;
    color: #fff;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 23px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 22px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.main-nav a:hover {
    text-decoration: underline;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 55px 0 35px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.2;
}

.hero p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   POSTS
========================= */

.posts-section {
    padding-bottom: 60px;
}

.posts-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}


/* =========================
   THUMBNAIL
========================= */

.post-card > a {
    display: block;
}

.post-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}


/* =========================
   POST CONTENT
========================= */

.post-content {
    padding: 20px;
}

.category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    background: #f3f4f6;
    border-radius: 5px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.post-content h2 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.35;
}

.post-content h2 a {
    color: #111827;
    text-decoration: none;
}

.post-content h2 a:hover {
    text-decoration: underline;
}

.post-date {
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.post-content p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
}

.read-more {
    display: inline-block;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.read-more:hover {
    text-decoration: underline;
}


/* =========================
   EMPTY
========================= */

.empty {
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

.empty h2 {
    margin-top: 0;
}

.empty p {
    color: #6b7280;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 30px;
    padding: 35px 0;
    background: #111827;
    color: #9ca3af;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    .posts-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .container {
        width: min(
            100% - 30px,
            1100px
        );
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0;
        display: block;
    }

    .main-nav {
        margin-top: 14px;
        gap: 16px;
    }

    .hero {
        padding: 35px 0 25px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-card img {
        height: 220px;
    }

}
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    white-space: nowrap;
}
@media (max-width: 600px) {

    .header-inner {
        min-height: auto;
        padding: 18px 0;
        display: block;
    }

    .main-nav {
        margin-top: 15px;
        gap: 10px 15px;
    }

}