/* ==========================================================================
   مجمع الفارس التجاري — SECTION: الجاهزية التشغيلية (ready)
   A slim, headerless credential strip that sits directly under the hero.
   Swiper carousel + sharp (square) navigation arrows to match the theme.
   Namespaced `rdy-`; composes the elx-* kit. Loads after elfares.css + elfares-ui.css.
   ========================================================================== */

/* Slim band hugging the slider above — keep the padding compact. */
.rdy.elx-section {
    padding-block: clamp(24px, 3.4vw, 44px);
}

/* Simple, small title (deliberately modest — not a big section heading) */
.rdy-title {
    text-align: center;
    margin: 0 0 clamp(16px, 2.2vw, 28px);
    font-family: var(--title-font);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 700;
    color: var(--title-dark);
}
.rdy-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2));
}

/* Row: [prev arrow] — [carousel] — [next arrow] */
.rdy-bar {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 20px);
}

/* --------------------------------------------------------------------------
   Carousel viewport
   -------------------------------------------------------------------------- */
.rdy-swiper {
    flex: 1 1 auto;
    min-width: 0;              /* lets the flex item shrink so Swiper can clip */
    overflow: hidden;
    padding-block: 8px;        /* room for the chip shadow / hover lift */
}
.rdy-slide {
    width: auto;               /* slidesPerView:'auto' — chips size to content */
    display: flex;
    align-items: center;
}

/* Credential pill-card */
.rdy-chip {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 22px 12px 18px;
    background: #fff;
    border: 1px solid var(--smoke-color);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(16, 38, 63, .06);
    white-space: nowrap;
    transition: border-color .3s cubic-bezier(.2, .7, .2, 1),
                box-shadow .3s cubic-bezier(.2, .7, .2, 1),
                transform .3s cubic-bezier(.2, .7, .2, 1);
}
.rdy-slide:hover .rdy-chip {
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(46, 96, 158, .18);
    transform: translateY(-4px);
}

/* Credential badge — outlined by default (no filled blue), reshaped to a circle.
   Overrides the .elx-icon primitive's gradient fill. */
.rdy-chip__icon.elx-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    flex: none;
    background: #fff;                          /* no blue fill — just a ring */
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    box-shadow: none;
    transition: background .3s cubic-bezier(.2, .7, .2, 1),
                border-color .3s cubic-bezier(.2, .7, .2, 1),
                color .3s cubic-bezier(.2, .7, .2, 1),
                transform .3s cubic-bezier(.2, .7, .2, 1);
}
/* On hover the ring fills with the brand gradient */
.rdy-slide:hover .rdy-chip__icon.elx-icon {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color2));
    border-color: transparent;
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(46, 96, 158, .26);
}

.rdy-chip__label {
    color: var(--title-dark);
    font-family: var(--title-font);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.2;
}
.rdy-chip__ok {
    color: var(--theme-color2);
    font-size: 16px;
    margin-inline-start: 2px;
    flex: none;
}

/* --------------------------------------------------------------------------
   Sharp navigation arrows (square, angular — matches the theme)
   -------------------------------------------------------------------------- */
.rdy-nav {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(46px, 4vw, 54px);
    height: clamp(46px, 4vw, 54px);
    border-radius: 0;                       /* SHARP corners */
    background: #fff;
    border: 1px solid var(--smoke-color);
    color: var(--theme-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16, 38, 63, .07);
    transition: background .25s ease, color .25s ease,
                border-color .25s ease, transform .25s ease;
}
.rdy-nav:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    transform: translateY(-2px);
}
.rdy-nav:active { transform: translateY(0); }
/* Swiper disables the arrows when there is nothing to scroll */
.rdy-nav.swiper-button-disabled {
    opacity: .4;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .rdy-chip { gap: 11px; padding: 10px 18px 10px 13px; }
    .rdy-chip__icon.elx-icon { width: 42px; height: 42px; font-size: 17px; }
    .rdy-chip__label { font-size: .95rem; }
    .rdy-nav { font-size: 16px; }
}
