.wll-blog {
    padding: 50px 0 70px;
}

.wll-blog__header {
    margin: 0 auto 32px;
    text-align: center;
}

.wll-blog__container {
    width: min(90%, 1280px);
    margin: 0 auto;
}

.wll-blog__description {
    width: min(90%, 800px);
    margin: 0 auto 32px;
    text-align: center;
    overflow-wrap: anywhere;
}

.wll-blog__category-toggle.c-btn {
    display: none !important;
}

.wll-blog__category-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.wll-blog__category-tiles .c-btn {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    overflow-wrap: anywhere;
    padding-inline: 12px !important;
}

.wll-blog__category-icon {
    box-sizing: content-box;
    flex: none;
    padding: 7px;
    border-radius: 50%;
    background-color: #eef1e8;
    color: var(--wll-green, #486c28);
}

.wll-blog__category-section {
    margin-bottom: 70px;
}

.wll-blog__category-section .wll-post-card__category {
    display: none;
}

.wll-blog__category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--wll-green, #486c28);
}

.wll-blog__category-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    background: var(--wll-green, #486c28);
    color: #fff;
    font-size: clamp(18px, 2.1vw, 23px);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.wll-blog__category-heading .wll-blog__category-icon {
    padding: 5px;
    background: #eef1e8;
}

.wll-blog__category-header .wll-blog__category-link {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.wll-blog__category-footer {
    display: none;
}

.wll-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.wll-blog__pagination {
    margin-top: 56px;
}

.wll-blog__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.wll-blog__pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #486c28;
    color: #486c28;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wll-blog__pagination .current,
.wll-blog__pagination a:hover {
    background-color: #486c28;
    color: #fff;
}

.wll-blog__pagination a:focus-visible {
    outline: 2px solid #486c28;
    outline-offset: 3px;
}

.wll-blog__empty {
    text-align: center;
}

@media (max-width: 992px) {
    .wll-blog__category-section {
        margin-bottom: 40px;
    }

    .wll-blog__category-header {
        justify-content: center;
        border-bottom: 0;
    }

    .wll-blog__category-heading {
        max-width: 100%;
        border-radius: 8px;
        text-align: center;
    }

    .wll-blog__category-header .wll-blog__category-link {
        display: none !important;
    }

    .wll-blog__category-footer {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 980px) {
    .wll-blog__category-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .wll-blog {
        padding: 42px 0 64px;
    }

    .wll-blog__header {
        margin-bottom: 38px;
    }

    .wll-blog__header p {
        font-size: 22px;
    }

    .wll-blog__grid {
        grid-template-columns: 1fr;
    }
}

@media (width < 576px) {
    .wll-blog__category-heading {
        justify-content: flex-start;
        width: 100%;
        padding: 10px 14px;
        text-align: left;
    }

    .wll-blog__category-toggle.c-btn:not([hidden]) {
        display: flex !important;
        width: 100%;
        margin-bottom: 40px;
    }

    .wll-blog__category-toggle[aria-expanded="false"]:not([hidden]) + .wll-blog__category-tiles {
        display: none;
    }

    .wll-blog__category-toggle.c-btn[aria-expanded="true"] {
        margin-bottom: 12px;
    }

    .wll-blog__category-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .wll-blog__category-tiles {
        grid-template-columns: minmax(0, 1fr);
    }
}
