
/* ==========================================
   WOSIDOX HERO SLIDER
========================================== */

.ws-hero {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding-top: 28px;
    padding-bottom: 30px;
    direction: rtl;
    box-sizing: border-box;
}

.ws-hero *,
.ws-hero *::before,
.ws-hero *::after {
    box-sizing: border-box;
}

/* ==========================================
   MAIN SLIDER
========================================== */

.ws-hero-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ws-primary, #a52b46);
    isolation: isolate;
}

.ws-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.ws-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility .45s ease;
}

.ws-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ws-hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ws-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   NAVIGATION ARROWS
========================================== */

.ws-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ws-primary, #a52b46);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s, color .2s, transform .2s;
}

.ws-hero-arrow:hover {
    background: var(--ws-primary, #a52b46);
    color: #fff;
}

.ws-hero-arrow:active {
    transform: translateY(-50%) scale(.92);
}

.ws-hero-prev {
    right: 25px;
}

.ws-hero-next {
    left: 25px;
}

/* ==========================================
   PAGINATION DOTS
========================================== */

.ws-hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateX(-50%);
}

.ws-hero-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    opacity: .8;
    cursor: pointer;
    transition: width .25s, opacity .25s;
}

.ws-hero-dot.is-active {
    width: 25px;
    opacity: 1;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.ws-hero-arrow:focus-visible,
.ws-hero-dot:focus-visible,
.ws-hero-promo-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ==========================================
   PROMOTIONAL CARDS
========================================== */

.ws-hero-promos {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.ws-hero-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    padding: 20px 18px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ws-promo-1, #bd6a7d);
    color: #fff;
}

.ws-hero-promo:nth-child(2) {
    background: var(--ws-promo-2, #cd92a1);
}

.ws-hero-promo-content {
    min-width: 0;
    text-align: right;
}

.ws-hero-promo h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--ws-font-family, Tajawal, sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ws-hero-promo p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: var(--ws-font-family, Tajawal, sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.ws-hero-promo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--ws-primary, #a52b46);
    font-size: 24px;
    text-decoration: none;
    transition: transform .2s, background-color .2s, color .2s;
}

.ws-hero-promo-link:hover {
    transform: scale(1.1);
    background: var(--ws-primary, #a52b46);
    color: #fff;
}

/* ==========================================
   FULL WIDTH SLIDER
========================================== */

.ws-hero.ws-hero-full {
    grid-template-columns: minmax(0, 1fr);
}

.ws-hero-full .ws-hero-slider {
    width: 100%;
    min-width: 0;
}
.ws-hero-with-promos .ws-hero-slider {
    aspect-ratio: 2 / 1;
}
.ws-hero-full .ws-hero-slider {
    aspect-ratio: 16 / 5;
}
.ws-slider-empty {
    display: none !important;
}
/* ==========================================
   TABLETS
========================================== */

@media (min-width: 769px) and (max-width: 991px) {

    .ws-hero {
        grid-template-columns: minmax(0, 60%) minmax(0, 1fr);
        gap: 10px;
    }

    .ws-hero-promos {
        gap: 10px;
    }

    .ws-hero-promo {
        gap: 10px;
        padding: 12px;
    }

    .ws-hero-promo h3 {
        font-size: 16px;
    }

    .ws-hero-promo p {
        font-size: 12px;
        line-height: 22px;
    }

    .ws-hero-promo-link {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .ws-hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .ws-hero {
        display: block;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .ws-hero-slide.ws-no-mobile-image {
        display: none !important;
    }
    
    .ws-hero-slider {
        width: 100%;
        aspect-ratio: 2 / 1;
        border-radius: 10px;
        touch-action: pan-y;
    }

    .ws-hero-full .ws-hero-slider {
        aspect-ratio: 2 / 1;
    }

    .ws-hero-promos {
        display: none;
    }

    .ws-hero-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .ws-hero-prev {
        right: 10px;
    }

    .ws-hero-next {
        left: 10px;
    }

    .ws-hero-dots {
        bottom: 15px;
        gap: 5px;
    }

    .ws-hero-dot {
        width: 7px;
        height: 7px;
    }

    .ws-hero-dot.is-active {
        width: 20px;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .ws-hero-arrow,
    .ws-hero-dot,
    .ws-hero-promo-link,
    .ws-hero-slide {
        transition: none !important;
    }
}
