.xd-homepage-hero {
    position: relative;
    min-height: var(--xd-hh-height, 100vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #1c1c1c;
    background-image: var(--xd-hh-bg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    isolation: isolate;
}

.xd-homepage-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.xd-homepage-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.xd-homepage-hero__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.xd-homepage-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.xd-homepage-hero__heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 5.7vw, 86px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: normal;
    text-wrap: balance;
}

.xd-homepage-hero__copy {
    margin: 0;
    color: #ffffff;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.2;
    max-width: 700px;
}

.xd-homepage-hero__cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFB82B;
    color: #1e1e1e;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    line-height: 1.2;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
}

.xd-homepage-hero__cta:hover,
.xd-homepage-hero__cta:focus {
    background-color: #e6a520;
    color: #1e1e1e;
    text-decoration: none;
}

.xd-homepage-hero__cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Play/pause button — bottom-right, always visible when video is active */

/* Default: show pause icon, hide play icon */
.xd-homepage-hero__play-icon {
    display: none;
}

/* When paused: swap icons */
.xd-homepage-hero__pause-btn.is-paused .xd-homepage-hero__pause-icon {
    display: none;
}

.xd-homepage-hero__pause-btn.is-paused .xd-homepage-hero__play-icon {
    display: block;
}

/* Position is locked across ALL states (hover/focus/active/focus-visible)
   with !important — the theme skin has button:active/button:focus rules that
   otherwise knock the button out of its absolute position and drop it into
   the section's flex flow at the bottom-left (same class of bug as the
   sidebar-navigation trigger drift). */
.xd-homepage-hero .xd-homepage-hero__pause-btn,
.xd-homepage-hero .xd-homepage-hero__pause-btn:hover,
.xd-homepage-hero .xd-homepage-hero__pause-btn:focus,
.xd-homepage-hero .xd-homepage-hero__pause-btn:active,
.xd-homepage-hero .xd-homepage-hero__pause-btn:focus-visible {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    float: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.xd-homepage-hero__pause-btn {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.xd-homepage-hero__pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.xd-homepage-hero__pause-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .xd-homepage-hero {
        border-bottom-left-radius: 36px;
        border-bottom-right-radius: 36px;
    }

    .xd-homepage-hero__inner {
        padding: 0 32px 72px;
    }
}

@media (max-width: 575px) {
    .xd-homepage-hero {
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
}

@media (max-width: 767px) {
    .xd-homepage-hero {
        min-height: var(--xd-hh-height-mobile, var(--xd-hh-height, 100vh));
    }

    .xd-homepage-hero__inner {
        padding: 0 24px 80px;
    }

    .xd-homepage-hero__content {
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .xd-homepage-hero__heading {
        font-size: clamp(32px, 10vw, 56px);
        line-height: 1.05;
        text-align: center;
    }

    .xd-homepage-hero__copy {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .xd-homepage-hero__cta {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }

    .xd-homepage-hero .xd-homepage-hero__pause-btn,
    .xd-homepage-hero .xd-homepage-hero__pause-btn:hover,
    .xd-homepage-hero .xd-homepage-hero__pause-btn:focus,
    .xd-homepage-hero .xd-homepage-hero__pause-btn:active,
    .xd-homepage-hero .xd-homepage-hero__pause-btn:focus-visible {
        bottom: 16px !important;
        right: 16px !important;
    }
}
