/**
 * الرئيسية — أحدث الأخبار (Swiper فقط، نطاق .jia-hl)
 */
.jia-hl {
    --jia-hl-radius: 14px;
    --jia-hl-ink: #163247;
    --jia-hl-muted: #5f7383;
    --jia-hl-brand: #0a4d6e;
    --jia-hl-brand-2: #1a7a9c;
    --jia-hl-line: rgba(10, 77, 110, 0.11);
    --jia-hl-img-h: 11.25rem;
    --jia-hl-edge: 10px;
    --jia-hl-arrow-size: 2.75rem;
    --jia-hl-arrow-gutter: calc(var(--jia-hl-arrow-size) + var(--jia-hl-edge) + 6px);
    --jia-hl-ease: cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
    position: relative;
    z-index: 8;
    width: 100%;
    padding: 0.25rem 0 0.85rem;
}

.jia-hl *,
.jia-hl *::before,
.jia-hl *::after {
    box-sizing: border-box;
}

.page-home .home-public--v2 .jia-home-media-hub .jia-hl {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0;
}

.jia-hl__head {
    text-align: center;
    margin-bottom: 0.85rem;
}

.jia-hl__stage {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: var(--jia-hl-edge) 0;
    padding-inline: var(--jia-hl-arrow-gutter);
    isolation: isolate;
}

.jia-hl__swiper.swiper {
    width: 100%;
    overflow: hidden;
    padding: 0.15rem 0 0.35rem;
    margin-inline: 0;
    --jia-hl-fallback-gap: 10px;
}

.jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"])::-webkit-scrollbar {
    display: none;
}

.jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--jia-hl-fallback-gap);
    width: 100%;
    box-sizing: border-box;
}

.jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) .swiper-slide {
    flex: 0 0 calc(100% - 0.5rem);
    width: calc(100% - 0.5rem);
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) .swiper-slide {
        flex-basis: calc((100% - var(--jia-hl-fallback-gap)) / 2);
        width: calc((100% - var(--jia-hl-fallback-gap)) / 2);
    }
}

@media (min-width: 992px) {
    .jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) {
        overflow-x: hidden;
    }

    .jia-hl__swiper:not(.jia-hl__swiper--ready):not([data-jia-hl-ready="1"]) .swiper-slide {
        flex-basis: calc((100% - (3 * var(--jia-hl-fallback-gap))) / 4);
        width: calc((100% - (3 * var(--jia-hl-fallback-gap))) / 4);
    }
}

.jia-hl__slide.swiper-slide {
    height: auto;
    display: flex;
}

.jia-hl__swiper--ready .swiper-slide,
.jia-hl__swiper[data-jia-hl-ready="1"] .swiper-slide {
    width: auto;
    max-width: none;
    flex: none;
}

.jia-hl__swiper .swiper-wrapper {
    transition-timing-function: var(--jia-hl-ease);
}

.jia-hl__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 1px solid var(--jia-hl-line);
    border-radius: var(--jia-hl-radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(6, 36, 54, 0.06);
    transition:
        box-shadow 0.38s var(--jia-hl-ease),
        border-color 0.38s var(--jia-hl-ease),
        transform 0.38s var(--jia-hl-ease);
}

.jia-hl__card:hover,
.jia-hl__card:focus-within {
    border-color: rgba(26, 122, 156, 0.22);
    box-shadow: 0 14px 32px rgba(6, 36, 54, 0.11);
    transform: translateY(-3px);
}

.jia-hl__media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: var(--jia-hl-img-h);
    min-height: var(--jia-hl-img-h);
    max-height: var(--jia-hl-img-h);
    overflow: hidden;
    background: linear-gradient(160deg, #eef4f8 0%, #e2ebf2 100%);
}

.jia-hl__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 65%, rgba(6, 36, 54, 0.07));
}

.jia-hl__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s var(--jia-hl-ease);
}

.jia-hl__card:hover .jia-hl__img,
.jia-hl__card:focus-within .jia-hl__img {
    transform: scale(1.03);
}

.jia-hl__img.is-news-placeholder {
    object-fit: contain;
    object-position: center;
    width: auto;
    max-width: 72%;
    max-height: 82%;
    height: auto;
    padding: 0.35rem;
    transform: none;
}

.jia-hl__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.35rem;
    padding: clamp(0.85rem, 2.5vw, 1rem) clamp(0.95rem, 3vw, 1.1rem);
    text-align: right;
}

.jia-hl__panel::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 3px;
    border-radius: 2px;
    background: var(--jia-hl-brand-2);
}

.jia-hl__date {
    display: inline-block;
    align-self: flex-start;
    margin: 0;
    padding: 0.14rem 0.55rem;
    border-radius: 6px;
    background: #e8f3f8;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--jia-hl-brand);
}

.jia-hl__headline {
    margin: 0;
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
    line-height: 1.5;
}

.jia-hl__headline a {
    color: var(--jia-hl-ink);
    text-decoration: none;
}

.jia-hl__headline a:hover {
    color: var(--jia-hl-brand-2);
}

.jia-hl__excerpt {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--jia-hl-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jia-hl__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(10, 77, 110, 0.1);
    position: relative;
    z-index: 4;
}

.jia-hl__foot .news-engagement--labeled {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

.jia-hl__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 77, 110, 0.22);
    background: #fff;
    color: var(--jia-hl-brand);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.jia-hl__more:hover {
    background: var(--jia-hl-brand);
    border-color: var(--jia-hl-brand);
    color: #fff;
}

.jia-hl__arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--jia-hl-arrow-size);
    height: var(--jia-hl-arrow-size);
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--jia-hl-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    color: var(--jia-hl-brand);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 36, 54, 0.12);
    transform: translateY(-50%);
    transition:
        background 0.32s var(--jia-hl-ease),
        color 0.32s var(--jia-hl-ease),
        transform 0.32s var(--jia-hl-ease),
        box-shadow 0.32s var(--jia-hl-ease);
}

.jia-hl__arrow:hover:not(.swiper-button-disabled) {
    background: var(--jia-hl-brand);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 24px rgba(10, 77, 110, 0.2);
}

.jia-hl__arrow.swiper-button-disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.jia-hl__arrow--prev {
    inset-inline-start: var(--jia-hl-edge);
}

.jia-hl__arrow--next {
    inset-inline-end: var(--jia-hl-edge);
}

@media (min-width: 768px) {
    .jia-hl {
        --jia-hl-img-h: 12.5rem;
    }
}

@media (max-width: 639.98px) {
    .jia-hl {
        --jia-hl-arrow-size: 2.25rem;
        --jia-hl-edge: 4px;
    }

    .jia-hl__stage {
        padding-inline: calc(var(--jia-hl-arrow-size) + var(--jia-hl-edge) + 4px);
        margin: var(--jia-hl-edge) 0;
    }

    .jia-hl__arrow {
        display: inline-flex;
        box-shadow: 0 4px 14px rgba(6, 36, 54, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jia-hl__card:hover,
    .jia-hl__card:focus-within {
        transform: none;
    }

    .jia-hl__img {
        transition: none;
    }

    .jia-hl__card:hover .jia-hl__img,
    .jia-hl__card:focus-within .jia-hl__img {
        transform: none;
    }
}