/* =============================================================
   SUMER HERO SLIDER — Full-Page Page-Header Slider Component
   يُضاف أعلى محتوى كل صفحة (تحت الناف بار) عدا الرئيسية والأخبار
   ============================================================= */

/* ─── Container ─── */
.sumer-hero-slider {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 520px;
    max-height: 900px;
    overflow: hidden;
    background: #0a1628;
    /* stacking context so slides sit below navbar */
}

/* ─── Each Slide ─── */
.shs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: none; /* transitions handled per-effect via classes */
}

.shs-slide.shs-active {
    opacity: 1;
    z-index: 2;
}

.shs-slide.shs-prev {
    z-index: 1;
}

/* Slide background image */
.shs-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* ─── Dark overlay + gradient ─── */
.shs-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left,
            rgba(4, 14, 40, 0.72) 0%,
            rgba(4, 14, 40, 0.45) 50%,
            rgba(4, 14, 40, 0.2)  100%),
        linear-gradient(to top,
            rgba(4, 14, 40, 0.80) 0%,
            transparent 55%);
    z-index: 1;
}

/* ─── Slide Content ─── */
.shs-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 24px 80px;
    direction: rtl;
}

/* Logo */
.shs-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 6px rgba(52, 168, 218, 0.18),
        0 12px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 22px;
    opacity: 0;
    transform: scale(0.75) translateY(-20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
    backdrop-filter: blur(8px);
}

.shs-slide.shs-active .shs-logo {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Badge */
.shs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 168, 218, 0.18);
    border: 1px solid rgba(52, 168, 218, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #9ae8ff;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.25s,
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.shs-slide.shs-active .shs-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Main Title */
.shs-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease 0.35s,
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
    max-width: 800px;
}

.shs-slide.shs-active .shs-title {
    opacity: 1;
    transform: translateY(0);
}

/* Sub Title */
.shs-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s,
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.shs-slide.shs-active .shs-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll hint */
.shs-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: shsScrollHintFade 1s ease 1.6s forwards;
}

.shs-scroll-hint span {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.shs-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    position: relative;
}

.shs-scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(52, 168, 218, 0.85);
    border-radius: 2px;
    animation: shsMouseScroll 1.8s ease infinite;
}

@keyframes shsMouseScroll {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

@keyframes shsScrollHintFade {
    to { opacity: 1; }
}

/* ─── Navigation Dots ─── */
.shs-dots {
    position: absolute;
    bottom: 28px;
    right: 32px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, height 0.35s;
    padding: 0;
    flex-shrink: 0;
}

.shs-dot.shs-dot-active {
    background: #34a8da;
    height: 24px;
    border-radius: 4px;
    transform: scaleX(1.2);
}

/* ─── Prev / Next Arrows ─── */
.shs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    font-size: 18px;
    padding: 0;
}

.shs-arrow:hover {
    background: rgba(52, 168, 218, 0.25);
    border-color: rgba(52, 168, 218, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.shs-arrow-prev { right: 16px; }
.shs-arrow-next { left: 16px; }

/* ─── Progress Bar ─── */
.shs-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 5;
}

.shs-progress-bar {
    height: 100%;
    background: linear-gradient(to left, #34a8da, #5bc4f0);
    width: 0%;
    transition: width linear;
    border-radius: 0 2px 2px 0;
}

/* ─── Glassmorphism bottom bar ─── */
.shs-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right,
        rgba(52, 168, 218, 0.6),
        rgba(54, 66, 149, 0.4),
        rgba(52, 168, 218, 0.6));
    z-index: 4;
    filter: blur(1px);
}

/* ─── Particle overlay (decorative dots) ─── */
.shs-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shs-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(52, 168, 218, 0.15);
    animation: shsParticleFloat linear infinite;
}

@keyframes shsParticleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* ─── Transition Effects ─── */

/* Effect 1: Fade */
.shs-slide[data-effect="fade"] .shs-slide-bg {
    transition: opacity 1s ease;
}
.shs-slide.shs-prev[data-effect="fade"] .shs-slide-bg { opacity: 0; }
.shs-slide.shs-active[data-effect="fade"] .shs-slide-bg { opacity: 1; }

/* Effect 2: Ken Burns zoom */
.shs-slide.shs-active[data-effect="kenburns"] .shs-slide-bg {
    animation: shsKenBurns 8s ease-in-out both;
}
@keyframes shsKenBurns {
    from { transform: scale(1.12) translate(1%, 1%); }
    to   { transform: scale(1.0) translate(0, 0); }
}

/* Effect 3: Slide from right */
.shs-slide[data-effect="slide-rtl"] {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.shs-slide.shs-active[data-effect="slide-rtl"] {
    clip-path: inset(0 0% 0 0);
}

/* Effect 4: Slide from left */
.shs-slide[data-effect="slide-ltr"] {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.shs-slide.shs-active[data-effect="slide-ltr"] {
    clip-path: inset(0 0 0 0%);
}

/* Effect 5: Scale up */
.shs-slide[data-effect="scale"] .shs-slide-bg {
    transform: scale(1.18);
    transition: transform 1s ease, opacity 0.9s ease;
    opacity: 0;
}
.shs-slide.shs-active[data-effect="scale"] .shs-slide-bg {
    transform: scale(1);
    opacity: 1;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .sumer-hero-slider {
        height: 65svh;
        min-height: 420px;
    }

    .shs-content {
        padding: 100px 20px 60px;
    }

    .shs-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 16px;
    }

    .shs-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .shs-dots {
        right: 12px;
        bottom: 16px;
    }

    .shs-scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .sumer-hero-slider {
        height: 85svh; /* Increased from 60svh for larger mobile view */
        min-height: 450px;
    }

    .shs-badge { font-size: 11px; padding: 5px 14px; }
}

/* --- Seamless join: remove top gap between slider and the next section --- */
.sumer-hero-slider + * {
    margin-top: 0 !important;
}

.sumer-hero-slider + section,
.sumer-hero-slider + .sumer-intro-section {
    margin-top: 0 !important;
    padding-top: 60px !important;
}
