/* ============================================================
   Captivate – Header Banner Widget
   ============================================================ */

/* Wrapper */
.chb-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
}

/* Image on right (default) */
.chb-wrap.chb-img-right  .chb-content { order: 1; }
.chb-wrap.chb-img-right  .chb-image   { order: 2; }

/* Image on left */
.chb-wrap.chb-img-left   .chb-content { order: 2; }
.chb-wrap.chb-img-left   .chb-image   { order: 1; }

/* ── Content panel ─────────────────────────────────────────── */
.chb-content {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: #F5C518;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* ── Label ─────────────────────────────────────────────────── */
.chb-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    line-height: 1.4;
}

/* ── Heading ───────────────────────────────────────────────── */
.chb-heading {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #000;
}

/* ── Divider ───────────────────────────────────────────────── */
.chb-divider {
    width: 36px;
    height: 3px;
    background-color: #000;
    margin-bottom: 24px;
    flex-shrink: 0;
}

/* ── Description ───────────────────────────────────────────── */
.chb-description {
    margin: 0 0 40px;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.65;
    color: #000;
}

/* ── Badges ────────────────────────────────────────────────── */
.chb-badges {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: auto;
}

.chb-badge {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 700;
    color: #000;
    padding: 0 18px 0 0;
    white-space: nowrap;
}

.chb-badge:first-child {
    padding-left: 0;
}

.chb-badge-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #000;
    margin-right: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Image panel ───────────────────────────────────────────── */
.chb-image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.chb-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ── Responsive: tablet ────────────────────────────────────── */
@media (max-width: 1024px) {
    .chb-content {
        padding: 40px 40px;
    }
}

/* ── Responsive: mobile ────────────────────────────────────── */
@media (max-width: 767px) {

    .chb-wrap {
        flex-direction: column;
    }

    /* Reset flex sizing for stacked layout */
    .chb-content,
    .chb-image {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }

    /* Image on top (default mobile) */
    .chb-wrap.chb-mob-image-first  .chb-image   { order: 1; }
    .chb-wrap.chb-mob-image-first  .chb-content { order: 2; }

    /* Content on top */
    .chb-wrap.chb-mob-content-first .chb-content { order: 1; }
    .chb-wrap.chb-mob-content-first .chb-image   { order: 2; }

    .chb-image {
        height: 240px;
    }

    .chb-content {
        padding: 36px 28px;
    }

    .chb-heading {
        font-size: 30px;
    }
}
