/**
 * Holden Villa — Blog pages
 */

body.page-blog,
body.page-blog-post {
    --hb-gold: #f5c518;
    --hb-gold-bright: #ffd54f;
    --hb-font: 'Outfit', 'DM Sans', sans-serif;
    --hb-display: 'Cinzel', 'Fraunces', Georgia, serif;
    color: #c8d0e0;
}

/* Never hide blog content behind reveal animation (tall posts break IO threshold on mobile) */
body.page-blog .hv-reveal,
body.page-blog-post .hv-reveal {
    opacity: 1 !important;
    transform: none !important;
}

body.page-blog section,
body.page-blog-post section {
    background: transparent !important;
}

.hb-page-hero {
    padding: calc(var(--hv-header-h, 84px) + 32px) 0 36px;
    text-align: center;
}

.hb-page-hero__inner {
    max-width: 760px;
}

.hb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--hb-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--hb-gold-bright);
    margin-bottom: 20px;
}

.hb-kicker__line {
    display: block;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hb-gold), transparent);
    opacity: 0.85;
}

.hb-kicker__diamond {
    font-size: 8px;
    color: var(--hb-gold);
    line-height: 1;
}

.hb-hero__title {
    font-family: var(--hb-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hb-hero__title--post {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.hb-hero__sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(200, 208, 224, 0.78);
}

.hb-blog {
    padding: 0 0 80px;
}

.hb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hb-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.12), transparent 42%),
        linear-gradient(165deg, rgba(24, 35, 59, 0.92), rgba(12, 18, 34, 0.96));
    border: 1px solid rgba(172, 202, 255, 0.14);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 197, 24, 0.35);
}

.hb-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b1220;
}

.hb-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hb-card:hover .hb-card__media img {
    transform: scale(1.04);
}

.hb-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    flex: 1;
}

.hb-card__date {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hb-gold);
    font-weight: 600;
}

.hb-card__title {
    margin: 0;
    font-family: var(--hb-display);
    font-size: 22px;
    line-height: 1.25;
    color: #fff;
}

.hb-card__title a {
    color: inherit;
    text-decoration: none;
}

.hb-card__title a:hover {
    color: var(--hb-gold-bright);
}

.hb-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(200, 208, 224, 0.82);
    flex: 1;
}

.hb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hb-gold-bright);
    text-decoration: none;
}

.hb-card__link:hover {
    color: #fff;
}

.hb-pager {
    margin-top: 36px;
    text-align: center;
}

.hb-pager ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(172, 202, 255, 0.18);
    background: rgba(8, 14, 28, 0.45);
    color: #dce7ff;
    text-decoration: none;
    font-weight: 600;
}

.hb-pager li.is-active a {
    background: linear-gradient(135deg, #f5c518, #d4a017);
    color: #1a1400;
    border-color: transparent;
}

.hb-empty {
    text-align: center;
    padding: 64px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(172, 202, 255, 0.22);
    background: rgba(8, 14, 28, 0.35);
}

.hb-empty i {
    font-size: 36px;
    color: var(--hb-gold);
    margin-bottom: 14px;
}

.hb-empty h2 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--hb-display);
}

.hb-empty p {
    margin: 0;
    color: rgba(200, 208, 224, 0.75);
}

/* Single post layout: article + recent sidebar inside container */
.hb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

/* Sticky recent-posts box (must not sit under a transformed parent) */
body.page-blog-post {
    overflow-x: clip;
}

.hb-sidebar {
    align-self: start;
    position: sticky;
    top: calc(var(--hv-header-h, 84px) + 16px);
    z-index: 3;
}

.hb-post {
    padding: 0 0 88px;
}

.hb-post__panel {
    border-radius: 22px;
    padding: 22px;
    background:
        radial-gradient(ellipse 360px 260px at 0% 0%, rgba(245, 197, 24, 0.12), transparent 55%),
        linear-gradient(165deg, rgba(24, 35, 59, 0.94), rgba(12, 18, 34, 0.98));
    border: 1px solid rgba(172, 202, 255, 0.16);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.hb-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hb-post-meta__sep {
    opacity: 0.5;
}

.hb-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hb-card__cat {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(200, 208, 224, 0.7);
    border: 1px solid rgba(172, 202, 255, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
}

.hb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.hb-tag {
    font-size: 12px;
    color: #dce7ff;
    background: rgba(8, 14, 28, 0.55);
    border: 1px solid rgba(172, 202, 255, 0.18);
    border-radius: 8px;
    padding: 5px 10px;
}

.hb-faq {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(172, 202, 255, 0.14);
}

.hb-faq__title {
    margin: 0 0 16px;
    font-family: var(--hb-display);
    font-size: 26px;
    color: #fff;
}

.hb-faq__item {
    border: 1px solid rgba(172, 202, 255, 0.14);
    border-radius: 12px;
    background: rgba(8, 14, 28, 0.4);
    margin-bottom: 10px;
    padding: 0 14px;
}

.hb-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-weight: 600;
    color: #fff;
}

.hb-faq__item summary::-webkit-details-marker {
    display: none;
}

.hb-faq__answer {
    padding: 0 0 14px;
    color: rgba(210, 218, 235, 0.9);
    font-size: 15px;
    line-height: 1.7;
}

.hb-sidebar__panel {
    border-radius: 18px;
    padding: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.1), transparent 45%),
        linear-gradient(165deg, rgba(24, 35, 59, 0.94), rgba(12, 18, 34, 0.98));
    border: 1px solid rgba(172, 202, 255, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.hb-sidebar__title {
    margin: 0 0 16px;
    font-family: var(--hb-display);
    font-size: 18px;
    color: #fff;
    letter-spacing: 0.04em;
}

.hb-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hb-recent__link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.hb-recent__thumb {
    display: block;
    width: 72px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b1220;
}

.hb-recent__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-recent__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #e8eefc;
}

.hb-recent__link:hover .hb-recent__name {
    color: var(--hb-gold-bright);
}

.hb-recent__date {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hb-gold);
}

.hb-sidebar__empty {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(200, 208, 224, 0.7);
}

.hb-sidebar__all {
    margin-top: 16px;
}

.hb-post__figure {
    margin: 0 0 22px;
    border-radius: 16px;
    overflow: hidden;
}

.hb-post__figure img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.hb-post__lead {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(230, 236, 255, 0.9);
    font-weight: 500;
}

.hb-post__body {
    color: rgba(210, 218, 235, 0.92);
    font-size: 16px;
    line-height: 1.8;
}

.hb-post__body h2,
.hb-post__body h3 {
    color: #fff;
    font-family: var(--hb-display);
    margin: 1.4em 0 0.55em;
}

.hb-post__body p {
    margin: 0 0 1em;
}

.hb-post__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.hb-post__body a {
    color: var(--hb-gold-bright);
}

.hb-post__foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(172, 202, 255, 0.14);
}

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

    .hb-layout {
        grid-template-columns: 1fr;
    }

    .hb-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .hb-grid {
        grid-template-columns: 1fr;
    }

    .hb-post__panel {
        padding: 16px;
        border-radius: 16px;
    }
}
