/* Elephant Rise — Homepage Featured Video */

.er-featured-video {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(202, 164, 77, 0.09), transparent 34%),
        linear-gradient(180deg, #f7f4ed 0%, #ffffff 100%);
}

.er-video-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.er-video-heading h2 {
    margin: 10px 0 0;
}

.er-video-heading p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted, #66706a);
    line-height: 1.75;
}

.er-video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #09110d;
    box-shadow: 0 24px 70px rgba(8, 21, 15, 0.18);
}

.er-video-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.er-video-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.er-video-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #09110d;
}

.er-video-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 999px;
    background: rgba(8, 20, 14, 0.66);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.er-video-nav:hover {
    background: rgba(8, 20, 14, 0.88);
    transform: translateY(-50%) scale(1.05);
}

.er-video-prev {
    left: 18px;
}

.er-video-next {
    right: 18px;
}

.er-video-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.er-video-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 52, 37, 0.24);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.er-video-dot.is-active {
    width: 30px;
    background: #c8a24f;
}

@media (max-width: 767px) {
    .er-video-heading {
        margin-bottom: 22px;
    }

    .er-video-stage {
        border-radius: 14px;
        box-shadow: 0 16px 42px rgba(8, 21, 15, 0.17);
    }

    .er-video-nav {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .er-video-prev {
        left: 10px;
    }

    .er-video-next {
        right: 10px;
    }

    .er-video-dots {
        margin-top: 16px;
    }
}


/* YOUTUBE FEATURED VIDEO SUPPORT */
.er-youtube-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: inherit;
    background: #000;
}

.er-youtube-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
