/* ============================================================
   Hero Slider Pro — hero-slider.css
   ============================================================ */

.hsp-root {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    display: block;
}

/* ─── Slides wrapper ─── */
.hsp-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hsp-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

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

/* ─── Background image ─── */
.hsp-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s ease-out;
}
.hsp-slide.active .hsp-slide-bg {
    transform: scale(1);
}

/* ─── Dark overlay ─── */
.hsp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.38) 55%,
        rgba(0,0,0,.10) 100%
    );
}

/* ─── Content ─── */
.hsp-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 8% 0 4%;
}

.hsp-text-box {
    max-width: 620px;
    color: #fff;
}

/* Badge */
.hsp-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.hsp-slide.active .hsp-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Title */
.hsp-title {
    font-size: clamp(32px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease .25s, transform .6s ease .25s;
}
.hsp-slide.active .hsp-title {
    opacity: 1;
    transform: translateY(0);
}
/* Highlighted word — colour set via JS from data-accent */
.hsp-title span { color: var(--hsp-accent, #FFD166); }

/* Subtitle */
.hsp-subtitle {
    font-size: clamp(15px, 1.8vw, 19px);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease .42s, transform .6s ease .42s;
}
.hsp-slide.active .hsp-subtitle {
    opacity: .85;
    transform: translateY(0);
}

/* Buttons */
.hsp-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease .58s, transform .6s ease .58s;
}
.hsp-slide.active .hsp-btns {
    opacity: 1;
    transform: translateY(0);
}

.hsp-btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 4px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: none;
    outline: none;
}
.hsp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.hsp-btn-primary {
    background: var(--hsp-accent, #FFD166);
    color: #111;
}
.hsp-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
}
.hsp-btn-outline:hover { background: rgba(255,255,255,.12); }

/* ─── Progress bar ─── */
.hsp-progress-bar {
    position: absolute;
    bottom: 0; right: 0;
    height: 3px;
    background: var(--hsp-accent, #FFD166);
    width: 0%;
    transition: width linear;
    z-index: 10;
}

/* ─── Dots ─── */
.hsp-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.hsp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .3s, width .3s, border-radius .3s;
}
.hsp-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}

/* ─── Arrows ─── */
.hsp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    color: #fff;
    font-size: 20px;
    user-select: none;
}
.hsp-arrow:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-50%) scale(1.08);
}
.hsp-arrow-prev { right: 20px; }
.hsp-arrow-next { left:  20px; }

/* ─── Counter ─── */
.hsp-counter {
    position: absolute;
    bottom: 24px; left: 24px;
    color: rgba(255,255,255,.6);
    font-size: 13px; font-weight: 600;
    letter-spacing: 1px;
    z-index: 20;
}
.hsp-counter span { color: #fff; }

/* ─── Side decorative line ─── */
.hsp-side-line {
    position: absolute;
    top: 50%; right: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
}
.hsp-side-line__bar {
    width: 2px; height: 60px;
    background: rgba(255,255,255,.2);
    position: relative; overflow: hidden;
}
.hsp-side-line__bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%;
    background: var(--hsp-accent, #FFD166);
    animation: hspLineAnim 5s linear infinite;
}
@keyframes hspLineAnim {
    0%   { height: 0;    top: 0; }
    50%  { height: 100%; top: 0; }
    100% { height: 0;    top: 100%; }
}
.hsp-side-line__text {
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hsp-content { padding: 0 5%; align-items: flex-end; padding-bottom: 80px; }
    .hsp-side-line { display: none; }
    .hsp-arrow { width: 38px; height: 38px; font-size: 16px; }
    .hsp-badge { font-size: 11px; }
    .hsp-arrow-prev { right: 10px; }
    .hsp-arrow-next { left:  10px; }
}
