/* ── Deen Slider v2.1 ── */
.deen-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.deen-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slide base ── */
.ds-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.ds-slide.ds-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Background image ── */
.ds-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease;
}

.ds-slide.ds-active .ds-bg {
    transform: scale(1.06);
}

/* ── YouTube video — true full-cover ── */
/*
 * The trick: a 16:9 iframe must cover a container of ANY aspect ratio.
 *
 * Case A — container is WIDER than 16:9 (landscape / desktop):
 *   width = 100%, height needs to be at least width × (9/16) = 56.25vw
 *   But the container may be shorter than that, so height = 100% is fine
 *   and we just need width wide enough: min-width = height × (16/9)
 *
 * Case B — container is TALLER than 16:9 (portrait / mobile):
 *   height = 100%, width = 100% leaves black bars on the sides… NO.
 *   We need width = height × (16/9).
 *   The container height is set in px (e.g. 400px on mobile).
 *   So we use a CSS custom property --ds-h set by JS, then:
 *   width = calc(var(--ds-h) * 16 / 9)
 *
 * We combine both with: take whichever is larger — 100% or h*(16/9).
 * JS sets --ds-h on the wrapper so CSS calc can use it.
 */
.ds-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.ds-video-blocker {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
}

.ds-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Width + height are set entirely by JS coverIframe().
       No percentage sizing here — percentages fight with JS px values. */
    border: none;
    pointer-events: none;
    transform: translate(-50%, -50%);
}



/* ── Overlay ── */
.ds-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* ── Content ── */
.ds-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.ds-heading {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    font-family: 'Playfair Display', 'Georgia', serif;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    max-width: 900px;
}

.ds-sub {
    font-size: clamp(14px, 2vw, 22px);
    color: rgba(255,255,255,0.88);
    margin: 0 0 28px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    max-width: 650px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.ds-btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: background 0.3s, color 0.3s;
}

.ds-btn:hover {
    background: #fff;
    color: #0D3B2E;
}

/* ── Transition: FADE ── */
.ds-slide[data-transition="fade"] {
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

/* ── Transition: SLIDE ── */
.ds-slide[data-transition="slide"] {
    transition: opacity 0.01s, visibility 0.01s, transform 0.8s cubic-bezier(0.77,0,0.175,1);
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
}
.ds-slide[data-transition="slide"].ds-active {
    transform: translateX(0);
}
.ds-slide[data-transition="slide"].ds-prev-slide {
    transform: translateX(-100%);
}

/* ── Transition: ZOOM ── */
.ds-slide[data-transition="zoom"] {
    transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s ease;
    transform: scale(1.08);
}
.ds-slide[data-transition="zoom"].ds-active {
    transform: scale(1);
}

/* ── Transition: FLIP ── */
.ds-slide[data-transition="flip"] {
    transition: opacity 0.8s ease, visibility 0.8s ease;
    transform: rotateY(10deg);
}
.ds-slide[data-transition="flip"].ds-active {
    transform: rotateY(0deg);
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

/* ── Text Animations ── */
.ds-active[data-animation="fadeInUp"] .ds-heading,
.ds-active[data-animation="fadeInUp"] .ds-sub,
.ds-active[data-animation="fadeInUp"] .ds-btn { animation: dsSlideUp 0.8s forwards; }

.ds-active[data-animation="fadeInDown"] .ds-heading,
.ds-active[data-animation="fadeInDown"] .ds-sub,
.ds-active[data-animation="fadeInDown"] .ds-btn { animation: dsSlideDown 0.8s forwards; }

.ds-active[data-animation="fadeInLeft"] .ds-heading,
.ds-active[data-animation="fadeInLeft"] .ds-sub,
.ds-active[data-animation="fadeInLeft"] .ds-btn,
.ds-active[data-animation="slideInLeft"] .ds-heading,
.ds-active[data-animation="slideInLeft"] .ds-sub,
.ds-active[data-animation="slideInLeft"] .ds-btn { animation: dsSlideLeft 0.8s forwards; }

.ds-active[data-animation="fadeInRight"] .ds-heading,
.ds-active[data-animation="fadeInRight"] .ds-sub,
.ds-active[data-animation="fadeInRight"] .ds-btn,
.ds-active[data-animation="slideInRight"] .ds-heading,
.ds-active[data-animation="slideInRight"] .ds-sub,
.ds-active[data-animation="slideInRight"] .ds-btn { animation: dsSlideRight 0.8s forwards; }

.ds-active[data-animation="zoomIn"] .ds-heading,
.ds-active[data-animation="zoomIn"] .ds-sub,
.ds-active[data-animation="zoomIn"] .ds-btn,
.ds-active[data-animation="zoomInDown"] .ds-heading,
.ds-active[data-animation="zoomInDown"] .ds-sub,
.ds-active[data-animation="zoomInDown"] .ds-btn { animation: dsZoomIn 0.8s forwards; }

.ds-active[data-animation="bounceIn"] .ds-heading,
.ds-active[data-animation="bounceIn"] .ds-sub,
.ds-active[data-animation="bounceIn"] .ds-btn { animation: dsBounce 0.9s forwards; }

.ds-active[data-animation="flipInX"] .ds-heading,
.ds-active[data-animation="flipInX"] .ds-sub,
.ds-active[data-animation="flipInX"] .ds-btn { animation: dsFlip 0.8s forwards; }

.ds-active[data-animation="rotateIn"] .ds-heading,
.ds-active[data-animation="rotateIn"] .ds-sub,
.ds-active[data-animation="rotateIn"] .ds-btn { animation: dsRotate 0.9s forwards; }

.ds-active[data-animation="lightSpeedIn"] .ds-heading,
.ds-active[data-animation="lightSpeedIn"] .ds-sub,
.ds-active[data-animation="lightSpeedIn"] .ds-btn { animation: dsLightSpeed 0.6s forwards; }

/* Stagger delays */
.ds-active .ds-heading { animation-delay: 0.2s !important; }
.ds-active .ds-sub     { animation-delay: 0.4s !important; }
.ds-active .ds-btn     { animation-delay: 0.6s !important; }

/* ── Keyframes ── */
@keyframes dsSlideUp    { to { opacity:1; transform:translateY(0); } }
@keyframes dsSlideDown  { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes dsSlideLeft  { from { opacity:0; transform:translateX(-60px); } to { opacity:1; transform:translateX(0); } }
@keyframes dsSlideRight { from { opacity:0; transform:translateX(60px);  } to { opacity:1; transform:translateX(0); } }
@keyframes dsZoomIn     { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes dsBounce     { 0% { opacity:0; transform:scale(0.6); } 60% { opacity:1; transform:scale(1.05); } 80% { transform:scale(0.97); } 100% { opacity:1; transform:scale(1); } }
@keyframes dsFlip       { from { opacity:0; transform:perspective(400px) rotateX(-60deg); } to { opacity:1; transform:perspective(400px) rotateX(0); } }
@keyframes dsRotate     { from { opacity:0; transform:rotate(-10deg) scale(0.9); } to { opacity:1; transform:rotate(0) scale(1); } }
@keyframes dsLightSpeed { from { opacity:0; transform:translateX(-100%) skewX(-20deg); } 60% { opacity:1; transform:translateX(10%) skewX(5deg); } 80% { transform:translateX(-5%) skewX(-3deg); } to { opacity:1; transform:translateX(0) skewX(0); } }

/* ── Dots ── */
.ds-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ds-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.ds-dot.ds-dot-active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Arrows ── */
.ds-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.ds-arrow:hover { background: rgba(255,255,255,0.3); }
.ds-prev { left: 20px; }
.ds-next { right: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    /* Make slider a true 16:9 box on mobile — eliminates grey gap below */
    .deen-slider-wrap {
        height: 56.25vw !important;  /* 9/16 of viewport width = perfect 16:9 */
        min-height: 200px;           /* never collapse too small */
        max-height: 500px;           /* cap on large tablets */
    }
    .ds-arrow { width: 36px; height: 36px; font-size: 14px; }
}
