/* Homepage hero slider — scoped BEM (ox-gdhs__) to avoid clashes with guardian-hero.css */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');

.ox-gdhs {
    --ox-gdhs-pad: clamp(20px, 5vw, 64px);
    --ox-gdhs-nav-h: 3.25rem;
    --ox-gdhs-orange: #ff6b1a;
    --ox-gdhs-orange2: #e85500;
    --ox-gdhs-dark: #0d1b2a;
    --ox-gdhs-muted: #7a8fa6;
    --ox-gdhs-txt: #0d1b2a;
    --ox-gdhs-fd: 'Barlow Condensed', sans-serif;
    --ox-gdhs-fb: 'Barlow', sans-serif;
    --ox-gdhs-fm: 'Barlow Semi Condensed', sans-serif;
    position: relative;
    width: 100%;
    height: min(100svh, 900px);
    min-height: 520px;
    overflow: hidden;
    font-family: var(--ox-gdhs-fb);
    color: #fff;
}

.ox-gdhs img {
    display: block;
    max-width: 100%;
}

.ox-gdhs__track {
    position: absolute;
    inset: 0;
}

.ox-gdhs__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
    column-gap: clamp(0.35rem, 1.8vw, 1.5rem);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.55s ease;
}

.ox-gdhs__slide--active {
    opacity: 1;
    pointer-events: all;
    z-index: 2;
}

.ox-gdhs__bg--navy {
    background: linear-gradient(135deg, #0d1b2a 0%, #172436 60%, #1b2d45 100%);
}

.ox-gdhs__bg--forest {
    background: linear-gradient(135deg, #0f1e10 0%, #152b16 60%, #1a3520 100%);
}

.ox-gdhs__bg--ember {
    background: linear-gradient(135deg, #1a0a00 0%, #2a1200 60%, #1e0d05 100%);
}

.ox-gdhs__bg--cobalt {
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1535 60%, #111e42 100%);
}

.ox-gdhs__curtain {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    transform: scaleX(0);
    opacity: 0;
}

.ox-gdhs__slide--active .ox-gdhs__curtain {
    animation: oxGdhsCurtain 0.64s ease-in-out forwards;
}

@keyframes oxGdhsCurtain {
    0% {
        transform: scaleX(0);
        transform-origin: left;
        opacity: 1;
    }
    45% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 1;
    }
    55% {
        transform: scaleX(1);
        transform-origin: right;
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
        opacity: 0;
    }
}

.ox-gdhs__col--text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--ox-gdhs-pad);
    padding-right: clamp(0.5rem, 1vw, 1rem);
    padding-top: clamp(3rem, 5.5vh, 4.25rem);
    padding-bottom: calc(var(--ox-gdhs-nav-h) + 1.25rem);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.ox-gdhs__tag {
    font-family: var(--ox-gdhs-fm);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ox-gdhs__tag::before {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.ox-gdhs__title {
    font-family: var(--ox-gdhs-fd);
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -1px;
    margin-bottom: 18px;
    text-transform: uppercase;
    color: #fff;
}

.ox-gdhs__title-em {
    font-style: normal;
}

.ox-gdhs__body {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.ox-gdhs__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ox-gdhs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--ox-gdhs-fd);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    padding: 13px 32px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.ox-gdhs__btn--primary {
    background: var(--ox-gdhs-orange);
    color: #fff;
}

.ox-gdhs__btn--primary:hover {
    background: var(--ox-gdhs-orange2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 107, 26, 0.4);
}

.ox-gdhs__btn--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    padding: 13px 28px;
}

.ox-gdhs__btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ox-gdhs__col--visual {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(3rem, 5.5vh, 4.25rem);
    padding-bottom: calc(var(--ox-gdhs-nav-h) + 1.25rem);
    padding-left: clamp(0.25rem, 1vw, 0.75rem);
    padding-right: 62px;
    box-sizing: border-box;
    overflow: visible;
}

.ox-gdhs__blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.35;
}

.ox-gdhs__ring {
    position: absolute;
    border-radius: 50%;
    border-width: 1px;
    border-style: solid;
    pointer-events: none;
    opacity: 0.13;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ox-gdhs__ring--sm {
    width: 320px;
    height: 320px;
}

.ox-gdhs__ring--lg {
    width: 490px;
    height: 490px;
}

/* Image + badges share one box so badges sit on/near the photo */
.ox-gdhs__frame {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    flex-shrink: 0;
}

.ox-gdhs__frame picture {
    display: block;
    width: 100%;
}

.ox-gdhs__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    /* border-radius: 12px; */
    /* box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48); */
    object-fit: cover;
}

@media (min-width: 1201px) {
    .ox-gdhs__ring--sm {
        width: 360px;
        height: 360px;
    }

    .ox-gdhs__ring--lg {
        width: 560px;
        height: 560px;
    }

    .ox-gdhs__blob {
        width: 540px;
        height: 540px;
    }

    .ox-gdhs__frame {
        max-width: 640px;
    }

    .ox-gdhs__body {
        max-width: 440px;
    }
}

@media (min-width: 1400px) {
    .ox-gdhs__frame {
        max-width: 700px;
    }

    .ox-gdhs__body {
        max-width: 460px;
    }
}

@media (min-width: 1600px) {
    .ox-gdhs__frame {
        max-width: 760px;
    }

    .ox-gdhs__ring--lg {
        width: 620px;
        height: 620px;
    }
}

.ox-gdhs__badge {
    position: absolute;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Anchored to .ox-gdhs__frame (tight to the image card) */
.ox-gdhs__frame .ox-gdhs__badge--b1 {
    bottom: 5%;
    left: 3%;
    right: auto;
    top: auto;
}

.ox-gdhs__frame .ox-gdhs__badge--b2 {
    top: 5%;
    right: 3%;
    left: auto;
    bottom: auto;
}

.ox-gdhs__frame .ox-gdhs__badge--b3 {
    bottom: 18%;
    right: 4%;
    left: auto;
    top: auto;
}

.ox-gdhs__slide--active .ox-gdhs__badge--b1 {
    animation: oxGdhsFloat1 4s ease-in-out infinite;
}

.ox-gdhs__slide--active .ox-gdhs__badge--b2 {
    animation: oxGdhsFloat2 5s ease-in-out infinite;
}

.ox-gdhs__slide--active .ox-gdhs__badge--b3 {
    animation: oxGdhsFloat1 3.6s ease-in-out 1s infinite;
}

@keyframes oxGdhsFloat1 {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes oxGdhsFloat2 {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.ox-gdhs__badge-title {
    font-family: var(--ox-gdhs-fd);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ox-gdhs-txt);
    letter-spacing: 0.5px;
}

.ox-gdhs__badge-sub {
    font-family: var(--ox-gdhs-fm);
    font-size: 0.58rem;
    color: var(--ox-gdhs-muted);
    letter-spacing: 0.3px;
}

/* One bar: dots + arrows left, counter right — lives in right column on desktop (no overlap with CTAs) */
.ox-gdhs__bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    pointer-events: none;
}

.ox-gdhs__bottom-bar-inner {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
    min-height: 44px;
    padding: 0.25rem 0;
    padding-left: var(--ox-gdhs-pad);
    padding-right: calc(var(--ox-gdhs-pad) + 70px);
    pointer-events: auto;
    box-sizing: border-box;
}

.ox-gdhs__bottom-bar--single {
    grid-template-columns: 1fr;
}

.ox-gdhs__bottom-bar--single .ox-gdhs__bottom-bar-inner {
    grid-column: 1;
    justify-content: flex-end;
    padding-right: var(--ox-gdhs-pad);
    padding-left: var(--ox-gdhs-pad);
}

.ox-gdhs__ctrl {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.125rem);
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.ox-gdhs__dots {
    display: flex;
    gap: clamp(5px, 1vw, 7px);
    align-items: center;
    flex-shrink: 0;
}

.ox-gdhs__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.ox-gdhs__dot--on {
    background: var(--ox-gdhs-orange);
    width: 22px;
    border-radius: 4px;
}

.ox-gdhs__arrows {
    display: flex;
    gap: clamp(5px, 1vw, 7px);
    flex-shrink: 0;
}

.ox-gdhs__arr {
    width: clamp(34px, 5vw, 40px);
    height: clamp(34px, 5vw, 40px);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    transition: all 0.25s;
    flex-shrink: 0;
}

.ox-gdhs__arr:hover {
    background: var(--ox-gdhs-orange);
    border-color: var(--ox-gdhs-orange);
    transform: scale(1.08);
    color: #fff;
}

.ox-gdhs__counter {
    position: static;
    flex: 0 0 auto;
    font-family: var(--ox-gdhs-fm);
    font-size: clamp(0.56rem, 1.05vw, 0.65rem);
    letter-spacing: clamp(1px, 0.2vw, 2px);
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    text-align: right;
}

.ox-gdhs__counter b {
    color: #fff;
}

.ox-gdhs__prog {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--ox-gdhs-orange);
    z-index: 10;
    width: 0%;
}

.ox-gdhs__thumbs {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
}

.ox-gdhs__thumb {
    width: 54px;
    height: 54px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s;
    opacity: 0.45;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0;
    background: none;
}

.ox-gdhs__thumb--on {
    border-color: var(--ox-gdhs-orange);
    opacity: 1;
    transform: scale(1.07);
}

.ox-gdhs__thumb:hover {
    opacity: 0.85;
}

.ox-gdhs__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .ox-gdhs__slide {
        grid-template-columns: 1fr;
    }

    .ox-gdhs__col--visual {
        position: absolute;
        inset: 0;
        z-index: 1;
        opacity: 0.25;
        pointer-events: none;
        display: block;
        mix-blend-mode: luminosity;
        padding: 0;
        overflow: hidden;
    }

    .ox-gdhs__frame {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .ox-gdhs__img {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .ox-gdhs__badge,
    .ox-gdhs__ring,
    .ox-gdhs__blob {
        display: none !important;
    }

    .ox-gdhs__thumbs {
        display: none;
    }

    .ox-gdhs__col--text {
        position: relative;
        z-index: 2;
        padding: 0 var(--ox-gdhs-pad);
        padding-top: clamp(4.75rem, 11vh, 6rem);
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
        max-width: 700px;
    }

    .ox-gdhs__bottom-bar {
        grid-template-columns: 1fr;
    }

    .ox-gdhs__bottom-bar-inner {
        grid-column: 1;
        padding-left: var(--ox-gdhs-pad);
        padding-right: var(--ox-gdhs-pad);
        padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    }

    .ox-gdhs__title {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    .ox-gdhs__body {
        max-width: 520px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .ox-gdhs__tag {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 992px) {
    .ox-gdhs {
        min-height: 480px;
    }

    .ox-gdhs__col--text {
        max-width: 100%;
    }

    .ox-gdhs__title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }

    .ox-gdhs__body {
        font-size: 0.92rem;
        max-width: 460px;
    }
}

@media (max-width: 768px) {
    .ox-gdhs {
        --ox-gdhs-pad: 18px;
        height: min(100svh, 900px);
        min-height: 500px;
    }

    .ox-gdhs__col--text {
        padding-top: clamp(4.5rem, 12vw, 5.5rem);
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
    }

    .ox-gdhs__title {
        font-size: clamp(2rem, 5.5vw, 2.8rem);
    }

    .ox-gdhs__dot {
        width: 6px;
        height: 6px;
    }

    .ox-gdhs__dot--on {
        width: 18px;
    }

    .ox-gdhs__arr {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .ox-gdhs__prog {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .ox-gdhs {
        --ox-gdhs-pad: 16px;
        min-height: 480px;
    }

    .ox-gdhs__actions {
        flex-direction: column;
        width: 100%;
    }

    .ox-gdhs__btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Very narrow: stack counter under dots/arrows so nothing collides */
@media (max-width: 380px) {
    .ox-gdhs__bottom-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.4rem;
    }

    .ox-gdhs__ctrl {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ox-gdhs__counter {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* -----------------------------------------------------------------
   Message queue (mq-wrap) below hero — matches slider theme (dark bar, orange)
   ----------------------------------------------------------------- */
.mq-wrap.ox-gdhs-mq {
    --ox-gdhs-orange: #ff6b1a;
    --ox-gdhs-fd: 'Barlow Condensed', sans-serif;
    --ox-gdhs-fb: 'Barlow', sans-serif;
    --ox-gdhs-fm: 'Barlow Semi Condensed', sans-serif;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.45rem 0;
    min-height: 2.25rem;
    background: linear-gradient(180deg, #0b1420 0%, #0a1624 55%, #08121c 100%);
    border-top: 1px solid rgba(255, 107, 26, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.35);
    font-family: var(--ox-gdhs-fm);
    font-size: clamp(0.68rem, 1.5vw, 0.8rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(243, 244, 246, 0.92);
}

.mq-wrap.ox-gdhs-mq .guardian-top-banner-content {
    display: inline-flex;
    animation: scroll-banner 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
    min-width: 300%;
}

.mq-wrap.ox-gdhs-mq .ox-gdhs-mq__item {
    margin-right: clamp(3.5rem, 12vw, 9rem);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    white-space: nowrap;
    gap: 0.35rem;
    color: rgba(243, 244, 246, 0.92);
}

.mq-wrap.ox-gdhs-mq .ox-gdhs-mq__item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ox-gdhs-orange);
    opacity: 0.85;
    flex-shrink: 0;
}

.mq-wrap.ox-gdhs-mq .ox-gdhs-mq__link {
    color: var(--ox-gdhs-orange);
    font-weight: 700;
    font-family: var(--ox-gdhs-fb);
    text-decoration: none;
    margin-left: 0.35rem;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 26, 0.35);
    background: rgba(255, 107, 26, 0.08);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.mq-wrap.ox-gdhs-mq .ox-gdhs-mq__link:hover {
    background: rgba(255, 107, 26, 0.18);
    border-color: rgba(255, 107, 26, 0.55);
    color: #fff;
}

.mq-wrap.ox-gdhs-mq:hover .guardian-top-banner-content {
    animation-play-state: paused;
}
