: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);
}

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

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.9); /* stone/soft */
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.95),
        rgba(5, 150, 105, 0.95)
    ); /* emerald */
    border-radius: 999px;
    border: 3px solid rgba(241, 245, 249, 0.9); /* يعطي “padding” جميل */
    box-shadow:
        0 6px 16px rgba(16, 185, 129, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 1),
        rgba(4, 120, 87, 1)
    );
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        rgba(52, 211, 153, 1),
        rgba(5, 150, 105, 1)
    );
}

/* Corner (when both scrollbars appear) */
::-webkit-scrollbar-corner {
    background: rgba(241, 245, 249, 0.9);
}

body {
    font-family: "PingARLT", serif !important;
    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;
}

/* 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);
}
