/**
 * Therapy Hero Slider Styles
 * Version: 1.1.0
 */

/* Main slider container */
.therapy-hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Slider wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── LAYER 1: Background images ─────────────────────────────────────────── */

.slide-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Each background image sits stacked; only the active one is visible */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-bg.active {
    opacity: 1;
}

/* ── Overlay (dim) ──────────────────────────────────────────────────────── */

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    /* No transition — overlay stays constant */
}

/* ── LAYER 2: Content (fixed, never moves or fades) ─────────────────────── */

.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.slide-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Content box — the shaded panel; stays put at all times */
.content-box {
    position: relative;
    background: rgba(60, 60, 60, 0.85);
    backdrop-filter: blur(10px);
    padding: 50px 60px;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* No opacity/transform transition — box never disappears */
}

/* ── Typography ─────────────────────────────────────────────────────────── */

.slide-heading {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.slide-subheading {
    font-size: 18px;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-style: italic;
}

/* ── Button ─────────────────────────────────────────────────────────────── */

.slide-button {
    display: inline-block;
    background: #d4a574;
    color: #1a1a1a;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.slide-button:hover {
    background: #c89560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* ── Footer text ────────────────────────────────────────────────────────── */

.slide-footer {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* ── Navigation arrows ──────────────────────────────────────────────────── */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: rgba(212, 165, 116, 0.95);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* ── Dots navigation ────────────────────────────────────────────────────── */

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: #d4a574;
    width: 30px;
    border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .therapy-hero-slider { height: 500px; }
    .content-box { padding: 40px 45px; max-width: 500px; }
    .slide-heading { font-size: 36px; }
    .slide-subheading { font-size: 16px; }
}

@media (max-width: 768px) {
    .therapy-hero-slider { height: 450px; }
    .slide-content { justify-content: center; }
    .content-box { padding: 35px 30px; max-width: 90%; }
    .slide-heading { font-size: 28px; margin-bottom: 15px; }
    .slide-subheading { font-size: 14px; margin-bottom: 20px; }
    .slide-button { padding: 12px 30px; font-size: 14px; }
    .slider-nav { width: 40px; height: 40px; }
    .slider-nav svg { width: 20px; height: 20px; }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
}

@media (max-width: 480px) {
    .therapy-hero-slider { height: 400px; }
    .content-box { padding: 25px 20px; }
    .slide-heading { font-size: 24px; }
    .slide-subheading { font-size: 13px; }
    .slide-footer { font-size: 12px; }
    .slider-dots { bottom: 15px; }
    .slider-dots .dot { width: 10px; height: 10px; }
    .slider-dots .dot.active { width: 24px; }
}
