/* ============================================================
   BH Posts Slider Section
   ============================================================ */

.bh-posts-slider {
    padding: 60px 0;
    background-color: #f3f4fb !important;
}

/* Section header */
.bh-posts-slider .bh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.bh-posts-slider .bh-section-head__title {
font-family: var(--font-family);
font-weight: 600;
font-size: 42px;
line-height: 119%;
color: #0c0c0c;
    margin: 0;
}

.bh-posts-slider .bh-section-head__more {
font-family: var(--font-family);
font-weight: 600;
font-size: 24px;
line-height: 133%;
background: linear-gradient(90deg, #2c5cd8 0%, #366eff 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.bh-posts-slider .bh-section-head__more:hover {
    text-decoration: underline;
}

/* ── Slider area: positioning context for arrows ── */
.bh-ps-slider-area {
    position: relative;
}

.bh-ps-swiper {
    overflow: hidden;
}

/* Equal height slides */
.bh-ps-swiper .swiper-wrapper {
    align-items: stretch;
}

.bh-ps-swiper .swiper-slide {
    height: auto;
}

/* ── Arrows — outside container ── */
.bh-swiper-arrow {
    position: absolute;
    top: calc(30% - 16px); /* align with card center, above pagination */
    transform: translateY(0);
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    width: 48px;
    height: 48px;
}

.bh-swiper-arrow--prev { left: -50px; }
.bh-swiper-arrow--next { right: -50px; }

/* Container is positioning context for arrows */
.bh-ps-slider-area .container {
    position: relative;
}

.bh-swiper-arrow__default,
.bh-swiper-arrow__hover {
    display: block;
    transition: opacity 0.2s;
}

.bh-swiper-arrow__hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.bh-swiper-arrow:hover .bh-swiper-arrow__default {
    opacity: 0;
}

.bh-swiper-arrow:hover .bh-swiper-arrow__hover {
    opacity: 1;
}

/* Prev hover: gradient SVG points right — flip to left */
.bh-swiper-arrow--prev .bh-swiper-arrow__hover {
    transform: scaleX(-1);
    left: auto;
    right: 0;
}

/* Next default: grey SVG points left — flip to right */
.bh-swiper-arrow--next .bh-swiper-arrow__default {
    transform: scaleX(-1);
}

.bh-swiper-arrow--disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Pagination ── */
.bh-ps-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.bh-ps-bullet {
    display: inline-block;
    width: 70px;
    height: 7px;
    border-radius: 9px;
    background: var(--grey-3);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.bh-ps-bullet--active {
    background: linear-gradient(90deg, #00c2ff 0%, #305cf8 100%);
    opacity: 1;
}

/* ── Post Card ── */
.bh-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.bh-post-card:hover {
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); */
}

/* Thumbnail */
.bh-post-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
}

.bh-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.bh-post-card:hover .bh-post-card__thumb img {
    transform: scale(1.03);
}

.bh-post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--grey-2);
}

/* Body */
.bh-post-card__body {
    flex: 1;
    padding: 16px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Labels row */
.bh-post-card__labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.bh-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #ff9f69; /* fallback, overridden by inline style from ACF */
    border-radius: 4px;
    padding: 4px 8px;
    white-space: nowrap;
}

.bh-label__icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.bh-post-card__readtime {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    color: var(--grey-3);
    margin-left: auto;
    white-space: nowrap;
}

/* Title */
.bh-post-card__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt */
.bh-post-card__excerpt {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: var(--grey-3);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer — pushed to bottom */
.bh-post-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: auto;
}

.bh-post-card__date,
.bh-post-card__author {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    color: var(--grey-3);
    white-space: nowrap;
}

.bh-post-card__sep {
    color: var(--grey-3);
    font-size: 13px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .bh-ps-slider-area .container {
        padding-left: calc(var(--bs-gutter-x, 15px) + 56px);
        padding-right: calc(var(--bs-gutter-x, 15px) + 56px);
    }
}

@media (max-width: 768px) {
    .bh-posts-slider {
        padding: 40px 0;
    }

    .bh-posts-slider .bh-section-head__title {
        font-size: 28px;
    }

    .bh-ps-slider-area .container {
        padding-left: var(--bs-gutter-x, 15px);
        padding-right: var(--bs-gutter-x, 15px);
    }

    .bh-swiper-arrow {
        display: block;
        top: 25%;
        transform: translateY(-50%);
    }

    .bh-swiper-arrow--prev { left: 0; }
    .bh-swiper-arrow--next { right: 0; }

    .bh-ps-slider-area .container {
  
    }

    .bh-ps-bullet {
        width: 33px;
        height: 7px;
        border-radius: 9px;
    }
}
