/* Horizontal carousel shared by the home page sections (includes/home-carousel.php). */
.hc {
    --hc-per: 3;
    --hc-gap: 28px;
    margin-top: 30px;
}
.hc--spotlight { --hc-per: 1; --hc-gap: 24px; }

.hc__carousel { display: flex; align-items: center; gap: 20px; }
.hc__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 8px 4px 20px; margin: 0 -4px; }
.hc__track {
    --hc-index: 0;
    display: flex;
    gap: var(--hc-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateX(calc(var(--hc-index) * -1 * (100% + var(--hc-gap)) / var(--hc-per)));
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    touch-action: pan-y;
}
.hc__slide {
    display: flex;
    flex: 0 0 calc((100% - (var(--hc-per) - 1) * var(--hc-gap)) / var(--hc-per));
    min-width: 0;
    margin: 0;
}
.hc__slide > * { flex: 1 1 auto; min-width: 0; }

.hc__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(87, 197, 199, .5);
    border-radius: 50%;
    background: #0d1419;
    color: #57c5c7;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.hc__arrow:hover:not(:disabled) { background: #57c5c7; color: #05080c; }
.hc__arrow:disabled { opacity: .35; cursor: not-allowed; }
.hc__arrow:focus-visible,
.hc__dot:focus-visible { outline: 3px solid #57c5c7; outline-offset: 3px; }
.hc__arrow svg { width: 22px; height: 22px; }
.hc__arrow--mobile { display: none; width: 46px; height: 46px; }

.hc__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.hc__dots { display: flex; align-items: center; gap: 4px; }
.hc__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hc__dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    transition: width .3s ease, background .3s ease;
}
.hc__dot[aria-current="true"]::before { width: 28px; background: #57c5c7; }
.hc__counter { margin: 0; color: #9fb3bd; font-size: .9rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hc__counter strong { color: #fff; font-size: 1.1rem; font-weight: 700; }

/* Everything fits on screen: no navigation needed. */
.hc.is-static .hc__arrow,
.hc.is-static .hc__nav { display: none; }

/* Cards inside a carousel fill their slide instead of using the grid's widths. */
.hc .pr-card,
.hc .home-latest-blogs__card { flex: 1 1 auto; width: 100%; max-width: none; }

@media (max-width: 1024px) {
    .hc { --hc-per: 2; --hc-gap: 24px; }
    .hc--spotlight { --hc-per: 1; }
}
@media (max-width: 640px) {
    .hc { --hc-per: 1; --hc-gap: 16px; }
    .hc__arrow--side { display: none; }
    .hc__arrow--mobile { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
    .hc__track { transition: none; }
}

/* ===== Programme Highlights: one wide "spotlight" slide per view ===== */
.hl-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(87, 197, 199, .14), transparent 70%),
        radial-gradient(50% 45% at 0% 100%, rgba(64, 170, 182, .10), transparent 70%),
        #04070a;
    color: #fff;
}
.hl-section__shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.hl-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
}
.hl-section__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: #57c5c7;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hl-section__title { margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2; }
.hl-section__title span { color: #57c5c7; }
.hl-section__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid rgba(87, 197, 199, .55);
    border-radius: 999px;
    color: #8ce4e4;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.hl-section__all:hover { background: #57c5c7; color: #05080c; }
.hl-section__all:focus-visible { outline: 2px solid #57c5c7; outline-offset: 3px; }

.hl-spot {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(87, 197, 199, .22);
    border-radius: 20px;
    background: linear-gradient(135deg, #0c1419 0%, #081015 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.hl-spot__media { position: relative; display: block; min-height: 100%; overflow: hidden; background: #0f1a20; }
.hl-spot__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 6s ease;
}
.hc__slide.is-active .hl-spot__media img { transform: scale(1); }
.hl-spot__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(8, 16, 21, .85) 100%);
    pointer-events: none;
}
.hl-spot__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #0c2a33, #0a0f16); }
.hl-spot__body { display: flex; flex-direction: column; gap: 14px; padding: 40px 40px 36px; text-align: left; }
.hl-spot__date {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(87, 197, 199, .12);
    color: #8ce4e4;
    font-size: .8rem;
    font-weight: 600;
}
.hl-spot__body h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.3; }
.hl-spot__body h3 a { color: #fff; text-decoration: none; }
.hl-spot__body h3 a:hover { color: #8ce4e4; }
.hl-spot__body h3 a:focus-visible { outline: 2px solid #57c5c7; outline-offset: 3px; }
.hl-spot__body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #c2ccd1;
    font-size: .98rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.hl-spot__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hl-spot__thumbs li { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #0f1a20; }
.hl-spot__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hl-spot__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 7, 10, .7);
    color: #fff;
    font-weight: 700;
}
.hl-spot__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding: 12px 24px;
    border-radius: 10px;
    background: #57c5c7;
    color: #05080c;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}
.hl-spot__cta:hover { background: #fff; color: #05080c; transform: translateY(-2px); }
.hl-spot__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
    .hl-spot { grid-template-columns: 1fr; }
    .hl-spot__media { aspect-ratio: 16 / 9; }
    .hl-spot__media::after { background: linear-gradient(180deg, transparent 65%, rgba(8, 16, 21, .8) 100%); }
    .hl-spot__body { padding: 26px 22px 24px; }
}
@media (max-width: 600px) {
    .hl-section { padding: 56px 0; }
    .hl-section__head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .hl-spot__media img,
    .hl-spot__cta { transition: none; }
    .hl-spot__media img { transform: none; }
}
