
/* Hero slider video popup and high-visibility navigation controls */
.hero-section #heroSlider { position: relative; height: 100%; }
.hero-section #heroSlider .carousel-control-prev,
.hero-section #heroSlider .carousel-control-next {
    z-index: 7;
    top: 50%;
    bottom: auto;
    width: 54px;
    height: 54px;
    opacity: 1;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    background: rgba(5,18,42,.78);
    box-shadow: 0 5px 22px rgba(0,0,0,.28);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hero-section #heroSlider .carousel-control-prev { left: 22px; }
.hero-section #heroSlider .carousel-control-next { right: 22px; }
.hero-section #heroSlider .carousel-control-prev:hover,
.hero-section #heroSlider .carousel-control-next:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-50%) scale(1.07);
}
.hero-section #heroSlider .carousel-control-prev-icon,
.hero-section #heroSlider .carousel-control-next-icon {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}
.hero-section .hero-video-trigger { cursor: pointer; }
.hero-video-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: #07152d;
    color: #fff;
}
.hero-video-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 14px 20px;
}
.hero-video-modal .modal-body { padding: 0; }
.hero-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.hero-video-frame video,
.hero-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}
.hero-video-frame [hidden] { display: none !important; }
@media (max-width: 767.98px) {
    .hero-section #heroSlider .carousel-control-prev,
    .hero-section #heroSlider .carousel-control-next {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 18px;
        transform: none;
    }
    .hero-section #heroSlider .carousel-control-prev { left: auto; right: 72px; }
    .hero-section #heroSlider .carousel-control-next { right: 18px; }
    .hero-section #heroSlider .carousel-control-prev:hover,
    .hero-section #heroSlider .carousel-control-next:hover { transform: scale(1.05); }
    .hero-section .hero-content { padding-left: 68px; padding-right: 28px; }
}


/* Keep the hero video popup compact, centered and fully visible without scrolling */
.hero-video-modal .modal-dialog {
    width: min(760px, calc(100% - 32px));
    max-width: 760px;
    margin: 1.75rem auto;
}
.hero-video-modal .modal-content {
    max-height: 90vh;
    max-height: 90dvh;
}
.hero-video-modal .modal-body {
    overflow: hidden;
}
.hero-video-frame {
    max-height: calc(90vh - 76px);
    max-height: calc(90dvh - 76px);
    aspect-ratio: 16 / 9;
}
@media (max-width: 767.98px) {
    .hero-video-modal .modal-dialog {
        width: calc(100% - 24px);
        max-width: 560px;
        margin: auto;
    }
    .hero-video-modal .modal-content {
        max-height: 88vh;
        max-height: 88dvh;
    }
    .hero-video-frame {
        max-height: calc(88vh - 68px);
        max-height: calc(88dvh - 68px);
    }
}
