.ajha-ref-section {
    padding: 10px 0 22px;
    background: transparent;
}

.ajha-ref-section .aj-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.ajha-ref-accordion,
.ajha-ref-accordion *,
.ajha-ref-accordion *::before,
.ajha-ref-accordion *::after {
    box-sizing: border-box;
}

.ajha-ref-accordion {
    --ajha-tab-width: 1.9rem;
    --ajha-height: clamp(180px, 48vw, 200px);
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: var(--ajha-height);
    height: var(--ajha-height);
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.45);
    font-family: 'Poppins', Arial, sans-serif;
    isolation: isolate;
    position: relative;
}

.ajha-ref-accordion__slide {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: var(--ajha-tab-width);
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    transition: flex 700ms cubic-bezier(0.4, 0, 0.2, 1), min-width 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ajha-ref-accordion__slide.is-active {
    flex: 1 1 0%;
    min-width: 0;
}

.ajha-ref-accordion__slide:focus-visible .ajha-ref-accordion__tab {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9), 2px 0 10px rgba(0, 0, 0, 0.2);
}

.ajha-ref-accordion__tab {
    width: var(--ajha-tab-width);
    min-width: var(--ajha-tab-width);
    max-width: var(--ajha-tab-width);
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: filter 200ms ease;
}

.ajha-ref-accordion__slide:hover .ajha-ref-accordion__tab {
    filter: brightness(1.08);
}

.ajha-ref-accordion__tabtext {
    position: absolute;
    display: block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: rotate(90deg);
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.ajha-ref-accordion__panel {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 500ms ease;
}

.ajha-ref-accordion__panel.is-visible {
    opacity: 1;
}

.ajha-ref-accordion__img,
.ajha-ref-accordion__overlay,
.ajha-ref-accordion__placeholder {
    position: absolute;
    inset: 0;
}

.ajha-ref-accordion__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
}

.ajha-ref-accordion__overlay {
    pointer-events: none;
}

.ajha-ref-accordion__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: 700;
}

.ajha-ref-accordion__cta-wrap {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.ajha-ref-accordion__cta-wrap--default {
    right: 4.5%;
    bottom: 8%;
}

.ajha-ref-accordion__cta-wrap--arabic {
    right: 9%;
    bottom: 8%;
}

body .ajha-ref-accordion__cta {
    display: inline-block;
    border: 0;
    border-radius: 9999px;
    text-decoration: none !important;
    line-height: 1.3;
    box-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.35);
    pointer-events: auto;
    animation: ajha-ref-pulse 2s infinite ease-in-out;
    transition: background-color 250ms ease, color 250ms ease, transform 200ms ease;
}

body .ajha-ref-accordion__cta--orange {
    padding: 0.36rem 0.9rem;
    background: #ff7200 !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

body .ajha-ref-accordion__cta--orange:hover {
    background: #ea580c !important;
    color: #ffffff !important;
}

body .ajha-ref-accordion__cta--arabic {
    padding: 0.34rem 1.25rem;
    background: #ffffff !important;
    color: #0081bc !important;
    font-size: 0.82rem !important;
    font-weight: 700;
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body .ajha-ref-accordion__cta--arabic:hover {
    background: #f3f4f6 !important;
}

@keyframes ajha-ref-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (min-width: 640px) {
    .ajha-ref-accordion {
        --ajha-tab-width: 2.2rem;
        --ajha-height: clamp(220px, 34vw, 240px);
    }

    .ajha-ref-accordion__tabtext {
        font-size: 10px;
    }

    .ajha-ref-accordion__cta-wrap--default {
        right: 6%;
        bottom: 10%;
    }

    .ajha-ref-accordion__cta-wrap--arabic {
        right: 11%;
        bottom: 10%;
    }

    body .ajha-ref-accordion__cta--orange {
        padding: 0.4rem 1.15rem;
        font-size: 9px !important;
    }

    body .ajha-ref-accordion__cta--arabic {
        padding: 0.38rem 1.55rem;
        font-size: 0.92rem !important;
    }
}

@media (min-width: 992px) {
    .ajha-ref-accordion {
        --ajha-tab-width: 2.85rem;
        --ajha-height: clamp(260px, 24vw, 300px);
    }

    .ajha-ref-accordion__tabtext {
        font-size: 14px;
    }

    .ajha-ref-accordion__cta-wrap--default {
        right: 8%;
        bottom: 11%;
    }

    .ajha-ref-accordion__cta-wrap--arabic {
        right: 13%;
        bottom: 11%;
    }

    body .ajha-ref-accordion__cta--orange {
        padding: 0.46rem 1.55rem;
        font-size: 0.76rem !important;
    }

    body .ajha-ref-accordion__cta--arabic {
        padding: 0.44rem 1.95rem;
        font-size: 1rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ajha-ref-accordion__slide,
    .ajha-ref-accordion__panel,
    body .ajha-ref-accordion__cta {
        transition: none !important;
        animation: none !important;
    }
}
