/* ═══════════════════════════════════════
   OIC Hero Box — الصندوق السحري
   ═══════════════════════════════════════ */

/* ── الحاوية ── */
.oic-hero-box {
    position: relative;
    width: 100%;
    height: var(--hero-h, 500px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── الخلفية ── */
.oic-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.oic-hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.oic-hero-bg-image.parallax {
    background-attachment: fixed;
}
/* فيديو */
.oic-hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.oic-hero-yt {
    pointer-events: none;
}
.oic-hero-yt iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* صورة بديلة — تظهر قبل تحميل الفيديو */
.oic-hero-poster {
    transition: opacity 1s;
}

/* ── التراكب ── */
.oic-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── المحتوى ── */
.oic-hero-content {
    position: relative;
    z-index: 3;
    padding: 20px 5%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.oic-hero-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    color: inherit;
    margin: 0 0 12px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.oic-hero-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    color: inherit;
    opacity: 0.9;
    margin: 0 0 24px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.oic-hero-cta {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.oic-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ── Breadcrumb ── */
.oic-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.oic-hero-breadcrumb a {
    color: inherit;
    opacity: 0.9;
    text-decoration: none;
    transition: color .2s;
}
.oic-hero-breadcrumb a:hover { opacity: 1; }

/* ── Meta ── */
.oic-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
    margin-top: 12px;
}

/* ═══ SLIDER ═══ */
.oic-hero-slider {
    position: absolute;
    inset: 0;
}
.oic-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}
.oic-hero-slide.active {
    opacity: 1;
    z-index: 1;
}
/* Slide animation mode */
.oic-hero-slider[data-anim="slide"] .oic-hero-slide {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.6s ease;
}
.oic-hero-slider[data-anim="slide"] .oic-hero-slide.active {
    transform: translateX(0);
}
.oic-hero-slider[data-anim="slide"] .oic-hero-slide.slide-out {
    transform: translateX(-100%);
}

/* محتوى الشريحة */
.oic-hero-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.oic-hero-slide-cat {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.oic-hero-slide-title {
    display: block;
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 700px;
}
a.oic-hero-slide-title:hover { text-decoration: underline; text-underline-offset: 4px; }

/* أسهم ونقاط */
.oic-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.oic-hero-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.oic-hero-prev { right: 20px; }
.oic-hero-next { left: 20px; }

.oic-hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}
.oic-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}
.oic-hero-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* ═══ OVERLAY MODE — الأشرطة فوق الصندوق ═══ */
.oic-hero-overlay-wrap {
    position: relative;
    overflow: hidden;
}
.oic-hero-overlay-wrap > .oic-hero-box {
    position: relative;
    z-index: 0;
}
.oic-hero-overlay-bars {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}
/* إزالة الخلفيات والحدود الأصلية فقط — الطبقات تتحكم */
.oic-hero-overlay-bars .hs-topbar,
.oic-hero-overlay-bars .hs-header-main,
.oic-hero-overlay-bars .hs-nav-wrapper,
.oic-hero-overlay-bars .hs-news-bar {
    background: transparent;
    border: none;
    box-shadow: none;
}
.oic-hero-overlay-bars .hs-nav-spacer {
    display: none;
}

/* ═══ شريط الألوان — تراكب التدرج ═══ */
.hs-colorbar {
    position: relative;
}
.hs-colorbar-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    .oic-hero-box {
        height: var(--hero-mob-h, 100vh);
        min-height: 400px;
    }
    .hero-hide-mobile {
        display: none !important;
    }
    .oic-hero-bg-image.parallax {
        background-attachment: scroll;
    }
    .oic-hero-bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .oic-hero-content {
        padding: 16px 20px;
    }
    .oic-hero-slide-content {
        padding: 24px 16px 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }
    .oic-hero-slide-title {
        font-size: clamp(16px, 5vw, 22px);
        line-height: 1.6;
        max-width: 100%;
    }
    .oic-hero-slide-cat {
        font-size: 9px;
        padding: 3px 10px;
    }
    .oic-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .oic-hero-prev { right: 10px; }
    .oic-hero-next { left: 10px; }
    .oic-hero-slider-dots {
        bottom: 12px;
    }
}

/* ═══ DARK MODE ═══ */
.dark-mode .oic-hero-cta {
    background: rgba(255,255,255,0.9);
}
