:root {
    --swiper-bullet: #fefefe;
    --swiper-bullet-active: #f3a109;
    --swiper-bullet-shadow: rgba(4, 120, 187, 0.35);
    --swiper-btn-bg: #ffffff;
    --swiper-btn-color: #111827;
    --swiper-btn-border: rgba(0, 0, 0, 0.08);
    --swiper-btn-hover-bg: #f3f4f6;
}

@font-face {
    font-family: "PingARLT";
    src:
        url(../fonts/PingARLT/PingARLT-Regular.woff2) format("woff2"),
        url(../fonts/PingARLT/PingARLT-Regular.woff) format("woff");
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.8) rgba(241, 245, 249, 0.9);
}

body {
    padding-bottom: var(--global-player-height, 0px);
    font-family: "PingARLT", sans-serif;
    scroll-behavior: smooth;
    background-image:
        radial-gradient(#10b981 0.5px, transparent 0.5px),
        radial-gradient(#10b981 0.5px, #fafaf9 0.5px);
    background-size: 20px 20px;
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.1);
    background-position:
        0 0,
        10px 10px;
}

.islamic-pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* News Swiper: smooth ticker */
.news-swiper {
    direction: rtl;
}

.news-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Foldable Player Animation */
#player-body {
    max-height: 440px;
    opacity: 1;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding 0.35s ease;
}

#player-wrap.is-folded #player-body {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0 !important;
    overflow: hidden;
}

#player-wrap #player-play-mini {
    display: none;
}

#player-wrap.is-folded #player-play-mini {
    display: inline-flex;
}

#player-wrap.is-folded .player-fold-hide {
    display: none;
}

/* Now Playing Single-Line Ticker */
.player-now-ticker-shell {
    overflow: hidden;
    white-space: nowrap;
    direction: rtl;
}

.player-now-ticker-track {
    display: inline-block;
    min-width: 100%;
    animation: player-now-ticker 16s linear infinite;
    will-change: transform;
}

.player-now-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes player-now-ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-now-ticker-track {
        animation: none;
        transform: none;
    }
}

/* Swiper Customization */

.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
    transition: 0.25s;
}

.swiper-nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.06);
}

.swiper-nav-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.swiper-nav-btn i {
    font-size: 24px;
}

/* RTL: التالي على اليسار، السابق على اليمين */
.swiper-button-next-custom {
    left: 18px;
}

.swiper-button-prev-custom {
    right: 18px;
}

/* إخفاء أيقونات السهم الافتراضية للـ Swiper لو كانت تظهر */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}

/* تحسين نقاط الـ pagination */
.swiper-pagination {
    padding: 10px 14px;
    width: max-content !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* لمسة سحرية: hover على السلايدر */
.main-swiper:hover .swiper-nav-btn {
    opacity: 1;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--swiper-bullet);
    opacity: 0.45;
    transition:
        width 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
}

.swiper-pagination-bullet:hover {
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 999px;
    background: var(--swiper-bullet-active);
    opacity: 1;
    box-shadow: 0 0 14px var(--swiper-bullet-shadow);
}

/* مودل تسجيل الدخول */
.modal-show {
    display: block !important;
}

.modal-fade-in {
    opacity: 1 !important;
}

a {
    text-decoration: none;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    border: 3px solid rgba(241, 245, 249, 0.9); /* يعطي “padding” جميل */
}

::-webkit-scrollbar-thumb {
    border: 0;
    box-shadow: none;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.65);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(148, 163, 184, 0.8);
}

/* Corner (when both scrollbars appear) */
::-webkit-scrollbar-corner {
    background: transparent;
}

.swiper-scrollbar {
    border-radius: var(--swiper-scrollbar-border-radius, 10px);
    position: relative;
    touch-action: none;
    background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1));
}

.swiper-scrollbar-disabled > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-disabled {
    display: none !important;
}

.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    position: absolute;
    left: var(--swiper-scrollbar-sides-offset, 1%);
    bottom: var(--swiper-scrollbar-bottom, 4px);
    top: var(--swiper-scrollbar-top, auto);
    z-index: 50;
    height: var(--swiper-scrollbar-size, 4px);
    width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
}

.swiper-scrollbar.swiper-scrollbar-vertical,
.swiper-vertical > .swiper-scrollbar {
    position: absolute;
    left: var(--swiper-scrollbar-left, auto);
    right: var(--swiper-scrollbar-right, 4px);
    top: var(--swiper-scrollbar-sides-offset, 1%);
    z-index: 50;
    width: var(--swiper-scrollbar-size, 4px);
    height: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
}

.swiper-scrollbar-drag {
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));
    border-radius: var(--swiper-scrollbar-border-radius, 10px);
    left: 0;
    top: 0;
}

.swiper-scrollbar-cursor-drag {
    cursor: move;
}

.hero-swiper-pagination-bars {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-swiper-pagination-bars .swiper-pagination-bullet {
    margin: 0 !important;
    height: 100%;
    flex: 1 1 0;
    width: auto;
    border-radius: 999px;
    background: transparent;
    opacity: 1;
    transition:
        background-color 0.35s ease,
        opacity 0.35s ease;
}

.hero-swiper-pagination-bars .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.hero-text-swiper,
.hero-image-swiper {
    width: 100%;
    min-height: 1px;
}

.hero-text-swiper .swiper-wrapper,
.hero-image-swiper .swiper-wrapper {
    align-items: stretch;
    height: auto !important;
}

.hero-text-swiper .swiper-slide,
.hero-image-swiper .swiper-slide {
    width: 100%;
    height: auto;
    min-height: 1px;
}

.hero-text-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image-swiper .swiper-slide {
    display: flex;
    align-items: center;
}

@media (max-width: 639.98px) {
    .hero-swiper-pagination-bars {
        max-width: 240px;
    }

    .hero-text-swiper,
    .hero-image-swiper {
        overflow: visible;
    }

    .hero-text-swiper .swiper-wrapper,
    .hero-image-swiper .swiper-wrapper {
        min-height: inherit;
    }
}

.nav-dropdown__panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        ),
        rgba(34, 41, 52, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.nav-dropdown__head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown__kicker {
    color: rgba(110, 231, 183, 0.88);
}

.nav-dropdown__title {
    color: #fff;
}

.nav-dropdown__desc {
    color: rgba(226, 232, 240, 0.82);
}

.nav-dropdown__icon {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-dropdown__link {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.nav-dropdown__link-title {
    color: #fff;
}

.nav-dropdown__link-meta {
    color: rgba(148, 163, 184, 0.92);
}

.nav-dropdown__link-icon {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.95);
}

.nav-dropdown__link:hover {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown__link:hover .nav-dropdown__link-icon {
    background: rgba(16, 185, 129, 0.16);
    color: rgb(110, 231, 183);
    transform: translate(-2px, -2px);
}

.mobile-menu-panel {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        ),
        rgba(34, 41, 52, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.mobile-menu-brand__logo,
.mobile-menu-close,
.mobile-menu-tool,
.mobile-menu-hero,
.mobile-menu-group,
.mobile-menu-contact,
.mobile-menu-link,
.mobile-menu-action {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-brand__logo,
.mobile-menu-close,
.mobile-menu-tool,
.mobile-menu-link,
.mobile-menu-group,
.mobile-menu-contact {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-brand__title,
.mobile-menu-link__title,
.mobile-menu-group__title,
.mobile-menu-contact__value {
    color: #fff;
}

.mobile-menu-brand__subtitle,
.mobile-menu-link__meta,
.mobile-menu-group__meta,
.mobile-menu-contact__label,
.mobile-menu-hero__copy {
    color: rgba(226, 232, 240, 0.74);
}

.mobile-menu-hero__badge {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(110, 231, 183, 0.92);
}

.mobile-menu-hero__dot {
    background: rgb(52, 211, 153);
}

.mobile-menu-close,
.mobile-menu-tool,
.mobile-menu-link__icon {
    color: #fff;
}

.mobile-menu-link {
    text-decoration: none;
}

.mobile-menu-link.is-active,
.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(52, 211, 153, 0.28);
}

.mobile-menu-link__icon {
    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.mobile-menu-link:hover .mobile-menu-link__icon {
    color: rgb(110, 231, 183);
    transform: translate(-2px, -2px);
}

.mobile-menu-group[open] .mobile-menu-group__icon {
    transform: rotate(180deg);
}

.mobile-menu-action--primary {
    background: rgb(16, 185, 129);
    color: rgb(15, 23, 42);
}

.mobile-menu-action--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.header-search-panel {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        ),
        rgba(34, 41, 52, 0.96);
    box-sizing: border-box;
}

.header-search-scroller {
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 231, 183, 0.45) rgba(255, 255, 255, 0.05);
    overscroll-behavior: contain;
}

.header-search-scroller::-webkit-scrollbar {
    width: 10px;
}

.header-search-scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.header-search-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(52, 211, 153, 0.85),
        rgba(16, 185, 129, 0.55)
    );
    border-radius: 999px;
    border: 2px solid rgba(34, 41, 52, 0.6);
}

.header-search-scroller::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(110, 231, 183, 0.95),
        rgba(16, 185, 129, 0.7)
    );
}

.header-search-result,
.header-search-shortcut {
    text-decoration: none;
}

.header-search-result:hover i:last-child,
.header-search-shortcut:hover i:last-child {
    color: rgb(110, 231, 183);
    transform: translate(-2px, -2px);
}
