body:has(.blog-category-hero) {
    background: #fff8f3;
}

.blog-category-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 88px 0 56px;
    overflow: hidden;
    background:
        linear-gradient(to top, rgb(255 248 243 / 94%) 0%, rgb(255 248 243 / 48%) 52%, transparent 100%),
        url('../assets/img/explore-hero.jpg') center / cover;
}

.blog-category-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.blog-category-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #7b5800;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.blog-category-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #201b12;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
}

.blog-category-hero-actions {
    flex: 0 0 auto;
    padding-bottom: 4px;
}

.blog-category-hero-actions .page-heading-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-category-hero-actions .btn {
    min-height: 44px;
    border-radius: 2px;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-category-hero-actions .btn-links {
    border: 1px solid #7b5800;
    color: #7b5800;
}

.blog-category-hero-actions .btn-newsletter {
    background: #d49b00;
    color: #261900;
}

.blog-category-hero-actions .btn:hover,
.blog-category-hero-actions .btn:focus-visible {
    box-shadow: 0 0 0 3px rgb(212 155 0 / 24%);
}

.blog-category-hero + .blog {
    padding: 72px 0 96px;
}

.blog-category-post-wrap {
    display: flex;
    margin-bottom: 24px;
}

.blog-category-post-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(130 117 97 / 18%);
    border-top: 4px solid #3f6564;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 24px rgb(32 27 18 / 7%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-category-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgb(32 27 18 / 13%);
}

.blog-category-post-card:focus-within {
    outline: 3px solid rgb(212 155 0 / 45%);
    outline-offset: 3px;
}

.blog-category-post-card > a:first-child {
    display: block;
    overflow: hidden;
    background: #ece1d2;
}

.blog-category-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    transition: transform 300ms ease;
}

.blog-category-post-card:hover .blog-category-post-image {
    transform: scale(1.03);
}

.blog-category-post-card h3 {
    margin: 0;
    padding: 22px 22px 10px;
    color: #201b12;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
}

.blog-category-post-card .readmore {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 22px 18px;
    color: #7b5800;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.blog-category-post-card .readmore:hover,
.blog-category-post-card .readmore:focus-visible {
    color: #3f6564;
    text-decoration: underline;
}

.blog-category-hero ~ .blog .sidebar {
    padding-left: 18px;
}

.blog-category-hero ~ .blog .widget {
    margin-bottom: 28px;
}

.blog-category-hero ~ .blog .widget h4 {
    margin-bottom: 12px;
    color: #201b12;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
}

.blog-category-hero ~ .blog .list-group {
    overflow: hidden;
    border: 1px solid rgb(130 117 97 / 18%);
    border-radius: 4px;
}

.blog-category-hero ~ .blog .blog-sidebar-item {
    border: 0;
    border-bottom: 1px solid rgb(130 117 97 / 16%);
    background: transparent;
    color: #504534;
}

.blog-category-hero ~ .blog .blog-sidebar-item:last-child {
    border-bottom: 0;
}

.blog-category-hero ~ .blog .blog-sidebar-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    color: inherit;
    text-decoration: none;
}

.blog-category-hero ~ .blog .blog-sidebar-item:hover,
.blog-category-hero ~ .blog .blog-sidebar-item:focus-within {
    background: rgb(255 248 243 / 72%);
    color: #7b5800;
}

@media (max-width: 991px) {
    .blog-category-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-category-hero-actions { padding-bottom: 0; }
    .blog-category-hero ~ .blog .sidebar { padding-left: 0; }
}

@media (max-width: 575px) {
    .blog-category-hero {
        min-height: 420px;
        padding: 72px 0 40px;
    }

    .blog-category-hero-actions .page-heading-ctas {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-category-post-card,
    .blog-category-post-image { transition: none; }
}

/* Match the shared shell while keeping the existing Bootstrap content/modal. */
.blog-category-page .no-post {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.blog-category-hero-actions .page-heading-ctas { flex-wrap: wrap; }

.blog-category-hero-actions a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 12px 18px;
    white-space: nowrap;
    text-decoration: none;
}

.blog-category-hero-actions a.btn-links {
    border-color: #7b5800;
    color: #7b5800;
}

.blog-category-hero-actions a.btn-newsletter {
    background: #d49b00;
    border-color: #d49b00;
}

.blog-category-hero-actions a.btn:hover {
    background: #7b5800;
    border-color: #7b5800;
    color: #fff !important;
}

.blog-category-page button:focus-visible,
.blog-category-hero-actions a:focus-visible {
    outline: 2px solid #7b5800 !important;
    outline-offset: 4px;
}
