/* ==========================================================================
   Block — Content Highlights
   Mobile-first, breakpoint at 768px
   ========================================================================== */

/* ── Section ── */
.block-content-highlights {
    position: relative;
    padding: var(--section-padding-y) 0;
    background-color: var(--gradient-radial-light-base);
    background-image: radial-gradient(ellipse at bottom right, rgba(255, 98, 73, 0.2) 0%, transparent 60%);
}

/* ── Inner ── */
.block-content-highlights__inner {
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

/* ── Top Section ── */
.block-content-highlights__top {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* ── Header Row ── */
.block-content-highlights__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.block-content-highlights__header-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ── Eyebrow ── */
.block-content-highlights__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--body-small-size);
    font-weight: var(--weight-medium);
    line-height: var(--body-small-line-height);
    color: var(--color-grey-dark);
}

.block-content-highlights__eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary-orange);
    flex-shrink: 0;
}

/* ── Heading ── */
.block-content-highlights__heading {
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    font-weight: var(--weight-medium);
    line-height: var(--h2-line-height);
    color: var(--color-orange-dark);
}

/* ── Header Right (subheading + body) ── */
.block-content-highlights__header-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.block-content-highlights__subheading {
    font-family: var(--font-body);
    font-size: var(--body-large-size);
    font-weight: var(--weight-semibold);
    line-height: var(--body-large-line-height);
    color: var(--color-grey-dark);
}

.block-content-highlights__body {
    font-family: var(--font-body);
    font-size: var(--body-mid-size);
    font-weight: var(--weight-regular);
    line-height: var(--body-mid-line-height);
    color: var(--color-grey-mid);
}

/* ── Media ── */
.block-content-highlights__media {
    border-radius: var(--card-radius);
    overflow: hidden;
}

.block-content-highlights__media img,
.block-content-highlights__media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── Bottom Section ── */
.block-content-highlights__bottom {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ── Cards Label ── */
.block-content-highlights__cards-label {
    font-family: var(--font-body);
    font-size: var(--body-large-size);
    font-weight: var(--weight-medium);
    line-height: var(--body-large-line-height);
    color: var(--color-grey-dark);
}

/* ── Card Track ── */
.block-content-highlights__track {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.block-content-highlights__track::-webkit-scrollbar {
    display: none;
}

/* ── Card ── */
.block-content-highlights__card {
    position: relative;
    flex: 0 0 calc(100% - 16px);
    min-width: 0;
    border-radius: var(--card-radius);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-snap-align: start;
}

/* ── Card Background Styles ── */
.block-content-highlights__card--dark-orange {
    background-color: var(--color-orange-dark);
}

.block-content-highlights__card--dark-orange .block-content-highlights__number,
.block-content-highlights__card--dark-orange .block-content-highlights__card-heading,
.block-content-highlights__card--dark-orange .block-content-highlights__card-body {
    color: var(--color-white);
}

.block-content-highlights__card--light-grey {
    background-color: var(--color-grey-light);
}

.block-content-highlights__card--light-grey .block-content-highlights__number,
.block-content-highlights__card--light-grey .block-content-highlights__card-heading {
    color: var(--color-orange-dark);
}

.block-content-highlights__card--light-grey .block-content-highlights__card-body {
    color: var(--color-grey-dark);
}

.block-content-highlights__card--dark-grey {
    background-color: var(--color-grey-dark);
}

.block-content-highlights__card--dark-grey .block-content-highlights__number,
.block-content-highlights__card--dark-grey .block-content-highlights__card-heading,
.block-content-highlights__card--dark-grey .block-content-highlights__card-body {
    color: var(--color-white);
}

.block-content-highlights__card--white {
    background-color: var(--color-off-white);
}

.block-content-highlights__card--white .block-content-highlights__number,
.block-content-highlights__card--white .block-content-highlights__card-heading {
    color: var(--color-orange-dark);
}

.block-content-highlights__card--white .block-content-highlights__card-body {
    color: var(--color-grey-dark);
}

/* ── Icon ── */
.block-content-highlights__icon {
    position: absolute;
    top: -10px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-content-highlights__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ── Number ── */
.block-content-highlights__number {
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: var(--weight-regular);
    line-height: 1;
}

/* ── Card Heading ── */
.block-content-highlights__card-heading {
    font-family: var(--font-body);
    font-size: var(--h6-size);
    font-weight: var(--weight-medium);
    line-height: var(--h6-line-height);
}

/* ── Card Body ── */
.block-content-highlights__card-body {
    font-family: var(--font-body);
    font-size: var(--body-large-size);
    font-weight: var(--weight-regular);
    line-height: var(--body-large-line-height);
}

/* ── Mobile Controls ── */
.block-content-highlights__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* ── Arrows ── */
.block-content-highlights__arrows {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.block-content-highlights__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.block-content-highlights__arrow:hover {
    opacity: 0.8;
}

.block-content-highlights__arrow--prev {
    background-color: var(--color-grey-mid);
}

.block-content-highlights__arrow--next {
    background-color: var(--color-primary-orange);
}

.block-content-highlights__arrow svg {
    width: 14px;
    height: 14px;
}

/* ── Pagination Bars ── */
.block-content-highlights__pagination {
    display: flex;
    align-items: center;
    gap: 20px;
}

.block-content-highlights__bar {
    width: 60px;
    height: 4px;
    border: none;
    border-radius: 3px;
    background-color: var(--color-grey-light);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.block-content-highlights__bar.is-active {
    background-color: var(--color-primary-orange);
}

/* ══════════════════════════════════════════════════════════════════════════
   Desktop (≥ 768px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    .block-content-highlights__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-xl);
    }

    .block-content-highlights__header-left {
        flex: 0 0 49%;
    }

    .block-content-highlights__header-right {
        flex: 0 0 46%;
        border-left: 2px solid var(--color-white);
        padding-left: 20px;
    }

    .block-content-highlights__subheading {
        font-size: var(--h6-size);
        line-height: var(--h6-line-height);
    }

    .block-content-highlights__body {
        font-size: var(--body-large-size);
        line-height: var(--body-large-line-height);
    }

    /* Cards grid */
    .block-content-highlights__track {
        overflow: visible;
        scroll-snap-type: none;
    }

    .block-content-highlights__card {
        flex: 1 1 0%;
        min-height: 332px;
    }

    /* Hide mobile controls on desktop */
    .block-content-highlights__controls {
        display: none;
    }
}
