
/* =========================================
   BLOG CATEGORY PAGE
   Forest & Walnut Theme
========================================= */

.blog-category-page {
    --bc-forest: #263D32;
    --bc-copper: #B87950;
    --bc-ivory: #F8F6F1;
    --bc-linen: #E5E0D5;
    --bc-white: #FFFFFF;
    --bc-text: #353932;
    --bc-muted: #73766F;
    --bc-border: rgba(38, 61, 50, 0.14);

    background: var(--bc-ivory);
    color: var(--bc-text);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

.blog-category-page *,
.blog-category-page *::before,
.blog-category-page *::after {
    box-sizing: border-box;
}

.blog-category-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category-page h1,
.blog-category-page h2,
.blog-category-page h3,
.blog-category-page p {
    margin-top: 0;
}

.blog-category-page h1,
.blog-category-page h2,
.blog-category-page h3 {
    color: var(--bc-forest);
    line-height: 1.35;
}

.blog-category-page p {
    color: var(--bc-muted);
    font-size: 13px;
    line-height: 1.9;
}

.bc-container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.bc-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--bc-copper);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* HERO */

.bc-hero {
    padding: 30px 0 75px;
    background: var(--bc-ivory);
}

.bc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--bc-muted);
    font-size: 11px;
}

.bc-breadcrumb a {
    color: var(--bc-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.bc-breadcrumb a:hover {
    color: var(--bc-copper);
}

.bc-breadcrumb span:last-child {
    color: var(--bc-forest);
}

.bc-hero-content {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.bc-hero-content h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -1.4px;
}

.bc-hero-content p {
    max-width: 690px;
    margin: 0 auto;
    font-size: 14px;
}


/* ARTICLES SECTION */

.bc-articles {
    padding: 75px 0 95px;
    background: var(--bc-white);
}

.bc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--bc-border);
}

.bc-section-heading .bc-eyebrow {
    margin-bottom: 8px;
}

.bc-section-heading h2 {
    margin-bottom: 0;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.6px;
}

.bc-article-count {
    padding-bottom: 5px;
    color: var(--bc-muted);
    font-size: 12px;
}


/* GRID */

.bc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}

.bc-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bc-border);
    background: var(--bc-white);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.bc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 121, 80, 0.5);
    box-shadow: 0 12px 30px rgba(38, 61, 50, 0.08);
}


/* IMAGE */

.bc-card-image {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: var(--bc-linen);
}

.bc-card-image img {
    transition: transform 0.5s ease;
}

.bc-card:hover .bc-card-image img {
    transform: scale(1.05);
}

.bc-category-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    background: var(--bc-forest);
    color: var(--bc-white);
    font-size: 10px;
    line-height: 1.5;
}


/* CONTENT */

.bc-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 21px 24px;
}

.bc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--bc-muted);
    font-size: 10px;
}

.bc-meta span {
    position: relative;
}

.bc-meta span::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: var(--bc-copper);
    content: "";
}

.bc-card-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.bc-card-content h3 a {
    color: var(--bc-forest);
    text-decoration: none;
    transition: color 0.25s ease;
}

.bc-card-content h3 a:hover {
    color: var(--bc-copper);
}

.bc-card-content p {
    margin-bottom: 22px;
    font-size: 12px;
}

.bc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--bc-forest);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.bc-read-more span {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.bc-read-more:hover {
    color: var(--bc-copper);
}

.bc-read-more:hover span {
    transform: translateX(4px);
}


/* PAGINATION */



.bc-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 55px;
}

.bc-page-number,
.bc-page-arrow {
    display: inline-flex;
    min-width: 43px;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid var(--bc-border);
    background: var(--bc-white);
    color: var(--bc-forest);
    font-size: 11px;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.bc-page-arrow {
    padding-inline: 16px;
}

.bc-page-number:hover,
.bc-page-arrow:hover {
    border-color: var(--bc-copper);
    background: var(--bc-copper);
    color: var(--bc-white);
}

.bc-page-number.bc-active {
    border-color: var(--bc-forest);
    background: var(--bc-forest);
    color: var(--bc-white);
}

.bc-page-dots {
    color: var(--bc-muted);
    font-size: 13px;
}

.bc-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* BOTTOM CTA */

.bc-cta {
    padding: 70px 0;
    background: var(--bc-forest);
}

.bc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bc-cta-content {
    max-width: 760px;
}

.bc-cta .bc-eyebrow {
    color: #D8B08E;
}

.bc-cta-content h2 {
    margin-bottom: 15px;
    color: var(--bc-white);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -0.6px;
}

.bc-cta-content p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
}

.bc-cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
}

.bc-btn {
    display: inline-flex;
    min-width: 175px;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.bc-btn-light {
    background: var(--bc-ivory);
    color: var(--bc-forest);
}

.bc-btn-light:hover {
    border-color: var(--bc-copper);
    background: var(--bc-copper);
    color: var(--bc-white);
}

.bc-btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--bc-white);
}

.bc-btn-outline:hover {
    border-color: var(--bc-white);
    background: var(--bc-white);
    color: var(--bc-forest);
}


/* TABLET */

@media (max-width: 1024px) {
    .bc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .bc-card-image {
        height: 240px;
    }

    .bc-cta-inner {
        align-items: flex-start;
    }
}


/* MOBILE */

@media (max-width: 600px) {
    .bc-container {
        width: calc(100% - 32px);
    }

    .bc-hero {
        padding: 24px 0 55px;
    }

    .bc-breadcrumb {
        gap: 7px;
        margin-bottom: 35px;
        font-size: 10px;
    }

    .bc-hero-content h1 {
        font-size: clamp(32px, 8.5vw, 42px);
        letter-spacing: -0.8px;
    }

    .bc-articles {
        padding: 55px 0 65px;
    }

    .bc-section-heading {
        margin-bottom: 25px;
    }

    .bc-section-heading h2 {
        font-size: 26px;
    }

    .bc-article-count {
        font-size: 10px;
    }

    .bc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px 12px;
    }

    .bc-card-image {
        height: 170px;
    }

    .bc-category-label {
        bottom: 8px;
        left: 8px;
        padding: 6px 8px;
        font-size: 9px;
    }

    .bc-card-content {
        padding: 15px 12px 17px;
    }

    .bc-meta {
        gap: 5px;
        margin-bottom: 10px;
        font-size: 9px;
    }

    .bc-meta span::before {
        margin-right: 5px;
    }

    .bc-card-content h3 {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .bc-card-content p {
        margin-bottom: 16px;
        font-size: 11px;
        line-height: 1.75;
    }

    .bc-read-more {
        gap: 6px;
        font-size: 10px;
    }

    .bc-read-more span {
        font-size: 15px;
    }

    .bc-pagination {
        gap: 6px;
        margin-top: 38px;
    }

    .bc-page-number,
    .bc-page-arrow {
        min-width: 35px;
        min-height: 37px;
        padding: 8px;
        font-size: 10px;
    }

    .bc-page-arrow {
        padding-inline: 9px;
    }

    .bc-cta {
        padding: 55px 0;
    }

    .bc-cta-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 25px;
    }

    .bc-cta-actions {
        width: 100%;
    }

    .bc-btn {
        width: 100%;
    }
}


/* SMALL MOBILE */

@media (max-width: 360px) {
    .bc-container {
        width: calc(100% - 24px);
    }

    .bc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bc-card-image {
        height: 225px;
    }

    .bc-card-content {
        padding: 20px;
    }

    .bc-card-content h3 {
        font-size: 17px;
    }

    .bc-card-content p {
        font-size: 12px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .blog-category-page *,
    .blog-category-page *::before,
    .blog-category-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.bc-articles .bc-container > .bc-pagination {
    position: static;
    display: flex;
    width: 100%;
    clear: both;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 45px 0 0;
    padding: 0;
    background: transparent;
}