/* Hero Slider v1.0.1 — Cairo + Lateef, proportions matching raseef22.net */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Lateef:wght@400;500;600;700&display=swap');

/* ── Wrapper ── */
.hs-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);   /* full viewport minus site header */
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    background: #111;
    direction: rtl;
    font-family: 'Lateef', serif;
}

/* ── Track ── */
.hs-track { position: relative; width: 100%; height: 100%; }

/* ── Slides ── */
.hs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hs-slide.hs-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.hs-slide.hs-exit {
    opacity: 0;
    transform: translateY(-30px);
}

/* ── Background ── */
.hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* ── Overlay ── */
.hs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.45) 55%,
        rgba(0,0,0,0.12) 100%
    );
}

/* ── Content — centered vertically, padded right ── */
.hs-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;          /* vertical center like raseef22 */
    align-items: flex-end;            /* RTL: hug the right edge */
    text-align: right;
    padding: 40px 5% 40px 80px;      /* leave room for dots on the left */
    box-sizing: border-box;
    color: #fff;
}

/* ── Tag pill (تصنيف) — Lateef Medium ── */
.hs-tag {
    font-family: 'Lateef', serif;
    font-weight: 500;
    font-size: 1.1rem;               /* ~text-base/lg */
    display: inline-block;
    background: #ee532d;
    color: #fff;
    padding: 2px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 14px;
    line-height: 1.6;
}
.hs-tag:hover { background: #d94420; text-decoration: none; }

/* ── Title — Cairo Bold ── */
.hs-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);  /* 26px → 40px like raseef22 */
    line-height: 1.3;
    margin: 0 0 14px;
    max-width: 680px;
}
.hs-title a { color: #fff; text-decoration: none; }
.hs-title a:hover { opacity: 0.88; }

/* ── Excerpt — Lateef Light ── */
.hs-excerpt {
    font-family: 'Lateef', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.7rem);     /* ~26px–32px like raseef22 */
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    margin: 0 0 20px;
    max-width: 680px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Byline — Lateef Semibold ── */
.hs-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lateef', serif;
    font-size: 1.15rem;              /* ~text-lg/xl like raseef22 */
}
.hs-author {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.hs-author:hover { text-decoration: underline; }
.hs-sep {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #ee532d;
}
.hs-byline time { color: rgba(255,255,255,0.7); font-weight: 400; }

/* ── Pagination — right edge, vertical numbers + thin line ── */
.hs-dots {
    position: absolute;
    top: 50%;
    right: 24px;                     /* RTL: visual right = screen right */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 10;
}

/* thin connector line between numbers */
.hs-dots::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255,255,255,0.3);
    transform: translateX(-50%);
    z-index: -1;
}

.hs-dot {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 4px 0;
    transition: color 0.25s, background 0.25s;
    z-index: 1;
}
.hs-dot:hover { color: #fff; }
.hs-dot.hs-dot-active {
    background: #ee532d;
    color: #fff;
    border-radius: 50%;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .hs-wrap { height: 85vh; max-height: none; }
    .hs-content {
        padding: 20px 16px 60px;
        justify-content: flex-end;
    }
    .hs-title { font-size: 1.6rem; }
    .hs-excerpt { font-size: 1.1rem; }

    /* dots move to bottom-center on mobile */
    .hs-dots {
        right: auto;
        top: auto;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
    }
    .hs-dots::before {
        top: 50%;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
    }
}
