/*
 * CDS Spotlight Carousel
 */

/* ── Section wrapper ───────────────────────────────────────── */
.cds-spotlight-carousel {
    margin: 1.5rem 0;
}

.cds-spotlight-heading {
    /* font-weight: 700; */
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 700;
}
.cds-spotlight-heading::before {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-right: .25rem;
    color: #b31b1b;
    content: "\f0eb";
}

.cds-spotlight-intro {
    font-size: 1.1rem;
    margin: 0 0 1em;
}

/* ── Track ─────────────────────────────────────────────────── */
.cds-spotlight-track-wrap {
    overflow: hidden;
}

.cds-spotlight-track {
    position: relative;
    width: 100%;
    min-height: 220px;
}

/* ── Slide ─────────────────────────────────────────────────── */
.cds-slide {
    position: absolute;
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cds-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.cds-slide::after {
    content: '';
    display: table;
    clear: both;
}

.cds-slide img {
    float: right;
    display: block;
    max-width: 40%;
    max-height: 110px;
    height: auto;
    object-fit: contain;
    margin: 0 0 0.75rem 1rem;
}

.cds-slide h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5em;
    line-height: 1.35;
}

.cds-slide h3 a {
    color: #006699;
}

.cds-slide p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* ── Controls row ──────────────────────────────────────────── */
.cds-spotlight-controls {
    display: flex;
    align-items: center;
    justify-content: right;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.cds-spotlight-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Prev / Next buttons ───────────────────────────────────── */
.cds-spotlight-prev,
.cds-spotlight-next {
    background: #fff;
    border: 1px solid #aaa;
    color: #333;
    padding: 0.3rem 0.7rem;
    font-size: 0.8125rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.cds-spotlight-prev:hover,
.cds-spotlight-next:hover {
    background: #f0f0f0;
    border-color: #666;
}

.cds-spotlight-prev:disabled,
.cds-spotlight-next:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── "View all" link ───────────────────────────────────────── */
.cds-spotlight-all-link {
    display: inline-block;
    color: #222222;
    float: right;
    margin-top: .3rem;
}

.cds-spotlight-all-link:hover,
.cds-spotlight-all-link:focus {
    text-decoration: underline;
}

/* ── Reduce motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cds-spotlight-track {
        transition: none;
    }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .cds-slide img {
        float: none;
        display: block;
        margin: 0 0 0.75rem;
        max-width: 100%;
        max-height: 60px;
        object-fit: contain;
        object-position: left;
    }
}
