main {
    padding-bottom: 0;
}

.category-tag {
    display: inline-block;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8d27a 0%, #efbf55 100%);
    color: #1f2430;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.3rem;
    color: #6a717c;
    font-size: 0.85rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.post-meta i {
    color: #8a909a;
}

/* ── Featured article ──────────────────────────── */
.featured-post {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.6rem, 3vw, 2.6rem);
    align-items: center;
}

.featured-media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 22px 44px rgb(31 36 48 / 14%);
}

.featured-media img {
    width: 100%;
    height: clamp(300px, 30vw, 420px);
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-media img {
    transform: scale(1.03);
}

.featured-media .category-tag,
.post-media .category-tag {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
}

.featured-copy h3 {
    margin: 0;
    color: #14161c;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.25;
}

.featured-copy p {
    margin: 0.9rem 0 0;
    color: #5d6470;
    font-size: 0.95rem;
    line-height: 1.7;
}

.featured-copy .post-meta {
    margin-top: 1.1rem;
}

.featured-copy .gold-btn {
    margin-top: 1.4rem;
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
}

/* ── Categories ────────────────────────────────── */
.category-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.category-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.6rem 1rem;
    border: 1px solid #ece6da;
    border-radius: 14px;
    background: #fff;
    color: #2f3540;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 18px rgb(31 36 48 / 5%);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, translate 0.2s ease;
}

.category-filters button i {
    color: #1f2430;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.category-filters button:hover {
    translate: 0 -2px;
    border-color: #f0dca8;
}

.category-filters button.is-active {
    border-color: #1f2533;
    background: #1f2533;
    color: #fff;
}

.category-filters button.is-active i {
    color: #fff;
}

/* ── Latest posts ──────────────────────────────── */
.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    color: #c8901f;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #f1e6cc;
    box-shadow: 0 14px 30px rgb(120 86 20 / 8%);
    transition: translate 0.25s ease, box-shadow 0.25s ease;
}

.post-card[hidden] {
    display: none;
}

.post-card:hover {
    translate: 0 -4px;
    box-shadow: 0 20px 38px rgb(120 86 20 / 13%);
}

.post-media {
    position: relative;
}

.post-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.3rem;
}

.post-body h3 {
    margin: 0;
    color: #14161c;
    font-size: 1.05rem;
    line-height: 1.35;
}

.post-body p {
    margin: 0.7rem 0 0;
    color: #6a717c;
    font-size: 0.9rem;
    line-height: 1.65;
}

.post-body .post-meta {
    margin-top: 1rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #d9921a;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.read-link i {
    transition: transform 0.2s ease;
}

.read-link:hover i {
    transform: translateX(3px);
}

.posts-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2.4rem 1rem;
    border: 1px dashed #ecdcb4;
    border-radius: 18px;
    color: #6a717c;
    text-align: center;
}

/* ── Newsletter ────────────────────────────────── */
.newsletter {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.2rem);
    padding-top: clamp(1.6rem, 3vw, 2.2rem);
    padding-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

.newsletter-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6ce71 0%, #e2ad38 100%);
    color: #1f2430;
    font-size: 1.5rem;
}

.newsletter .dark-card-copy {
    flex: 1;
}

.newsletter h2 {
    margin-top: 0.5rem;
}

.newsletter p {
    margin-top: 0.6rem;
    font-size: 0.92rem;
}

.newsletter-form {
    flex: 0 1 380px;
}

.newsletter-field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.35rem 0.35rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(0 0 0 / 25%);
}

.newsletter-field i {
    color: #8a909a;
}

.newsletter-field input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    color: #1f2430;
    font: inherit;
    font-size: 0.9rem;
}

.newsletter-field input:focus {
    outline: none;
}

.newsletter-field .gold-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
    box-shadow: none;
}

.newsletter-note {
    min-height: 1.2em;
    margin: 0.6rem 0 0 1.1rem !important;
    font-size: 0.82rem !important;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1080px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .category-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .newsletter {
        flex-wrap: wrap;
    }

    .newsletter-form {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .category-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        flex: none;
        width: 100%;
    }
}
