/* ============================================================
   Faradis Pill-Control Sliders (Swiper.js)
   ============================================================ */

.far-slider {
    position: relative;
    overflow: hidden;
}

.far-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* ---------------- Hero (SpecialSlide) ---------------- */

.far-hero {
    height: 100vh;
    min-height: 560px;
}

.far-hero .swiper {
    min-height: 480px;
    height: calc(100vh - 52px);
    background: linear-gradient(135deg, #0b2239 0%, #123a5e 45%, #0e7490 100%);
}

.far-hero .swiper-wrapper {
    height: 100%;
}

.far-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.far-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(13, 27, 42, 0) 45%, rgba(13, 27, 42, 0.35) 100%);
}

.far-hero-caption {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    color: #fff;
}

.far-hero-slogan {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.92);
}

.far-hero-title {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.far-hero-desc {
    max-width: 720px;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.far-hero-btn {
    margin-top: 30px;
}

/* ---------------- Simple slider ---------------- */

.far-slide-simple .swiper {
    background: #f2f5f8;
}

.far-slide-simple .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.far-slide-simple .swiper-slide a,
.far-slide-simple .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-link,
.clickable-slide {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   Pill Controls (capsule below the slider)
   ============================================================ */

/* نوار زیر اسلاید که کپسول داخل آن قرار می‌گیرد */
.far-pill-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 16px;
}

.far-pill-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(252px, 100%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(180, 180, 180, 0.2);
    border: 1px solid #8cc3e6;
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.1);
}

.far-pill-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0b2239;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.far-pill-btn:hover {
    background: transparent;
    color: #5f4fa0;
}

.far-pill-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

.far-pill-btn:active {
    transform: scale(0.92);
}

.far-pill-pagination {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 6px;
}

.far-pill-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 100px;
    background: rgba(13, 27, 42, 0.22);
    opacity: 1;
    transition: width 0.35s ease, background 0.35s ease;
}

.far-pill-pagination .swiper-pagination-bullet-active {
    width: 26px;
    background: #0b2239;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 767px) {
    .far-hero {
        min-height: 480px;
    }

    .far-hero .swiper {
        min-height: 380px;
        height: calc(100vh - 48px);
    }

    .far-pill-strip {
        height: 48px;
        padding: 0 12px;
    }

    .far-pill-controls {
        padding: 5px 10px;
        gap: 10px;
    }

    .far-pill-btn {
        width: 30px;
        height: 30px;
    }

    .far-pill-pagination {
        gap: 5px;
        padding: 0 4px;
    }

    .far-pill-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .far-pill-pagination .swiper-pagination-bullet-active {
        width: 20px;
    }
}