/* =====================================================
   SPACENEATLY CATEGORY ARCHIVE
===================================================== */

.sn-category-page {
    width: 100%;
}

.sn-category-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* =====================================================
   CATEGORY HERO
===================================================== */

.sn-category-hero {
    padding: 82px 0 76px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5fbf7 100%
        );

    border-bottom: 1px solid #e8f0eb;
}

.sn-category-hero-content {
    max-width: 760px;
}

.sn-category-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #079447;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sn-category-hero h1 {
    margin: 0 0 18px;

    color: #07344a;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;

    letter-spacing: -1.5px;
}

.sn-category-description {
    max-width: 680px;

    margin: 0;

    color: #5d7079;

    font-size: 16px;
    line-height: 1.8;
}

.sn-category-description p {
    margin: 0;
}


/* =====================================================
   POSTS AREA
===================================================== */

.sn-category-posts {
    padding: 72px 0 82px;

    background: #ffffff;
}

.sn-category-section-heading {
    margin-bottom: 34px;
}

.sn-category-section-label {
    display: block;

    margin-bottom: 8px;

    color: #079447;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.sn-category-section-heading h2 {
    margin: 0;

    color: #07344a;

    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
}


/* =====================================================
   GRID
===================================================== */

.sn-category-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =====================================================
   CARD
===================================================== */

.sn-category-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1ebe5;
    border-radius: 12px;
}

.sn-category-card-image {
    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f2f5f3;
}

.sn-category-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.sn-category-card-content {
    padding: 22px;
}

.sn-category-card-meta {
    margin-bottom: 10px;

    color: #7a8c84;

    font-size: 12px;
}

.sn-category-card-title {
    margin: 0 0 12px;

    font-size: 20px;
    line-height: 1.4;
}

.sn-category-card-title a {
    color: #07344a;

    text-decoration: none;
}

.sn-category-card-title a:hover {
    color: #079447;
}

.sn-category-card-excerpt {
    margin-bottom: 18px;

    color: #60737b;

    font-size: 14px;
    line-height: 1.75;
}

.sn-category-read-more {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #078c45;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


/* =====================================================
   PAGINATION
===================================================== */

.sn-category-pagination {
    margin-top: 50px;
}

.sn-category-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.sn-category-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 12px;

    border: 1px solid #dce8e1;
    border-radius: 6px;

    color: #385360;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.sn-category-pagination .page-numbers.current,
.sn-category-pagination .page-numbers:hover {
    background: #079447;
    border-color: #079447;

    color: #ffffff;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.sn-category-empty {
    padding: 50px 0;
}

.sn-category-empty h2 {
    margin-bottom: 8px;

    color: #07344a;
}

.sn-category-empty p {
    margin: 0;

    color: #647980;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .sn-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .sn-category-container {
        width: min(100% - 36px, 1200px);
    }

    .sn-category-hero {
        padding: 58px 0 54px;
    }

    .sn-category-hero h1 {
        font-size: 38px;
    }

    .sn-category-description {
        font-size: 15px;
    }

    .sn-category-posts {
        padding: 55px 0 64px;
    }

    .sn-category-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

}

/* =====================================================
   CATEGORY ARCHIVE — POLISH
===================================================== */

/* HERO SOFT DEPTH */

.sn-category-hero {
    position: relative;
    overflow: hidden;
}

.sn-category-hero::after {
    content: "";

    position: absolute;
    top: -120px;
    right: -80px;

    width: 360px;
    height: 360px;

    background: radial-gradient(
        circle,
        rgba(7, 148, 71, 0.08) 0%,
        rgba(7, 148, 71, 0) 70%
    );

    pointer-events: none;
}

.sn-category-hero-content {
    position: relative;
    z-index: 2;
}


/* SECTION HEADING SPACING */

.sn-category-section-heading {
    margin-bottom: 38px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.sn-category-empty {
    max-width: 760px;

    padding: 38px 40px;

    background: #f8fbf9;

    border: 1px solid #e1ebe5;
    border-radius: 12px;
}

.sn-category-empty h2 {
    margin: 0 0 8px;

    color: #07344a;

    font-size: 22px;
    line-height: 1.35;
}

.sn-category-empty p {
    margin: 0;

    color: #62767e;

    font-size: 14.5px;
    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 640px) {

    .sn-category-empty {
        padding: 28px 24px;
    }

}

/* =====================================================
   CATEGORY ARCHIVE — SPACING REFINEMENT
===================================================== */

.sn-category-hero {
    padding: 68px 0 62px;
}

.sn-category-posts {
    padding: 58px 0 68px;
}

.sn-category-section-heading {
    margin-bottom: 28px;
}

.sn-category-empty {
    max-width: 680px;
    padding: 32px 38px;
}


/* MOBILE */

@media (max-width: 640px) {

    .sn-category-hero {
        padding: 48px 0 44px;
    }

    .sn-category-posts {
        padding: 46px 0 56px;
    }

    .sn-category-empty {
        padding: 26px 22px;
    }

}