/* JIA home news bundle */

/* --- jia-featured-news.css --- */
/**
 * JIA — الخبر الرئيسي (تصميم جديد: flex — صورة | نص)
 */
.jia-featured-wrap {
    --jia-ft-radius: 16px;
    --jia-ft-brand: #0a4d6e;
    --jia-ft-brand-2: #1a7a9c;
    --jia-ft-ink: #163247;
    --jia-ft-muted: #5f7383;
    --jia-ft-line: rgba(10, 77, 110, 0.12);
    --jia-ft-shadow: 0 10px 32px rgba(6, 36, 54, 0.08);
    padding: clamp(0.75rem, 2vw, 1.25rem) 0 0.25rem;
}

.jia-featured__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--jia-ft-radius);
    background: #fff;
    border: 1px solid var(--jia-ft-line);
    box-shadow: var(--jia-ft-shadow);
}

.jia-featured__media-stack {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.jia-featured__media-cap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0 0 0.55rem;
}

.jia-featured__hub-label {
    margin: 0;
    text-align: start;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--jia-ft-brand);
}

.jia-featured__media-rule {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--jia-ft-brand-2) 18%,
        var(--jia-ft-brand-2) 100%
    );
}

/* —— عمود الصور —— */
.jia-featured__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    background: #e8eef2;
}

.jia-featured__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a2230;
}

.jia-featured__slides {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
}

.jia-featured__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.55s step-end;
}

.jia-featured__slide:not([hidden]) {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.jia-featured__slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.jia-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.jia-featured__ui {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.jia-featured__badge {
    position: absolute;
    top: 0.55rem;
    inset-inline-start: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.jia-featured__dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.jia-featured__dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jia-featured__dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
}

.jia-featured__dot[aria-current="true"]::before {
    background: #fff;
    transform: scale(1.15);
}

.jia-featured__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.jia-featured__media > .jia-featured__nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--jia-ft-brand);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
    transition:
        background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.jia-featured__media > .jia-featured__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.jia-featured__media > .jia-featured__nav:focus-visible {
    outline: 2px solid var(--jia-ft-brand-2);
    outline-offset: 2px;
}

.jia-featured__media > .jia-featured__nav--prev {
    inset-inline-start: 10px;
}

.jia-featured__media > .jia-featured__nav--next {
    inset-inline-end: 10px;
}

/* —— عمود النص —— */
.jia-featured__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1.1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    color: var(--jia-ft-ink);
}

.jia-featured__date {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jia-ft-muted);
}

.jia-featured__title {
    margin: 0;
    font-family: "Katibeh", "Lateef", serif;
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.45;
}

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

.jia-featured__title a:hover,
.jia-featured__title a:focus-visible {
    color: var(--jia-ft-brand);
}

.jia-featured__excerpt {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3a4f61;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jia-featured__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--jia-ft-line);
}

.jia-featured__actions .news-engagement--compact {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.jia-featured__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 77, 110, 0.22);
    background: var(--jia-ft-brand);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(10, 77, 110, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.jia-featured__cta:hover {
    background: var(--jia-ft-brand-2);
    color: #fff !important;
}

.jia-featured__cta:focus-visible {
    outline: 2px solid var(--jia-ft-brand-2);
    outline-offset: 2px;
}

/* لابتوب فما فوق: صورة | نص جنب بعض */
@media (min-width: 768px) {
    .jia-featured__card {
        flex-direction: row;
        align-items: stretch;
    }

    .jia-featured__media {
        flex: 0 0 clamp(280px, 46%, 520px);
        max-width: 46%;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        min-height: 288px;
    }

    .jia-featured__frame {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 260px;
        height: 100%;
        aspect-ratio: auto;
    }

    .jia-featured__body {
        flex: 1 1 auto;
        justify-content: center;
        padding: clamp(1rem, 2vw, 1.5rem) clamp(1.1rem, 2.4vw, 1.65rem);
        border-inline-start: 1px solid var(--jia-ft-line);
    }
}

@media (max-width: 767.98px) {
    .jia-featured__media > .jia-featured__nav {
        display: inline-flex;
        width: 2rem;
        height: 2rem;
    }

    .jia-featured__media > .jia-featured__nav--prev {
        inset-inline-start: 6px;
    }

    .jia-featured__media > .jia-featured__nav--next {
        inset-inline-end: 6px;
    }

    .jia-featured__frame {
        display: flex;
        flex-direction: column;
    }

    .jia-featured__slides {
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .jia-featured__ui {
        position: static;
        inset: auto;
        flex: 0 0 auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.5rem 0.65rem 0.15rem;
        pointer-events: auto;
        background: transparent;
    }

    .jia-featured__badge {
        position: static;
        background: rgba(10, 77, 110, 0.88);
        font-size: 0.78rem;
    }

    .jia-featured__dots {
        position: static;
        transform: none;
        background: rgba(10, 77, 110, 0.12);
    }

    .jia-featured__body {
        padding: 1.15rem clamp(1.1rem, 4.5vw, 1.35rem) 1.3rem;
        gap: 0.65rem;
        text-align: start;
    }

    .jia-featured__excerpt {
        margin-bottom: 0.15rem;
    }

    .jia-featured__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 0.55rem;
        padding-top: 0.85rem;
    }

    .jia-featured__cta {
        width: 100%;
        justify-content: center;
        min-height: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jia-featured__slide {
        transition: none;
    }
}

/* --- jia-highlight-news.css --- */
/**
 * JIA — أخبار مميزة (شبكة مضغوطة)
 */
.jia-highlight {
    --jia-hl-brand: var(--jia-pub-brand, #0a4d6e);
    --jia-hl-ink: var(--jia-pub-ink, #163247);
    --jia-hl-muted: var(--jia-pub-muted, #5f7383);
    --jia-hl-line: var(--jia-pub-line, rgba(10, 77, 110, 0.1));
    --jia-hl-radius: 12px;
    padding: clamp(0.65rem, 1.8vw, 1rem) 0 clamp(0.55rem, 1.5vw, 0.85rem);
    background: transparent;
}

.jia-highlight .jia-section-head {
    margin-bottom: 0.75rem;
}

.jia-highlight .jia-section-head__title {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.jia-highlight .jia-section-head__accent {
    width: 2.5rem;
    height: 2px;
    margin-bottom: 0.55rem;
}

.jia-highlight__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 58rem;
    margin-inline: auto;
    padding: 0;
    list-style: none;
    justify-items: center;
}

@media (min-width: 576px) {
    .jia-highlight__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        justify-items: stretch;
    }

    .jia-highlight__item:nth-child(3):last-child {
        grid-column: 1 / -1;
        max-width: 17.5rem;
        justify-self: center;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .jia-highlight__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .jia-highlight__item:nth-child(3):last-child {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }
}

.jia-highlight-card {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--jia-hl-line);
    border-radius: var(--jia-hl-radius);
    box-shadow: 0 4px 14px rgba(6, 36, 54, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.jia-highlight-card:hover,
.jia-highlight-card:focus-within {
    box-shadow: 0 8px 20px rgba(6, 36, 54, 0.08);
    border-color: rgba(10, 77, 110, 0.18);
}

.jia-highlight-card__media {
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    max-height: 9.5rem;
    overflow: hidden;
    background: linear-gradient(155deg, #f2f6f9, #e6eef4);
}

.jia-highlight-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.25s ease;
}

.jia-highlight-card__img.is-news-placeholder {
    object-fit: contain;
    width: auto;
    max-width: 70%;
    max-height: 78%;
    height: auto;
    padding: 0.4rem;
}

.jia-highlight-card:hover .jia-highlight-card__img,
.jia-highlight-card:focus-within .jia-highlight-card__img {
    opacity: 0.94;
}

.jia-highlight-card__body {
    box-sizing: border-box;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.65rem 0.6rem;
    text-align: right;
}

.jia-highlight-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--jia-hl-muted);
}

.jia-highlight-card__date-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.75;
}

.jia-highlight-card__title {
    margin: 0 0 0.4rem;
    font-size: clamp(0.8rem, 1.05vw, 0.88rem);
    font-weight: 700;
    line-height: 1.45;
    flex: 1 1 auto;
}

.jia-highlight-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--jia-hl-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.jia-highlight-card__title a:hover,
.jia-highlight-card__title a:focus-visible {
    color: var(--jia-hl-brand);
}

.jia-highlight-card__foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    width: 100%;
    padding-top: 0.38rem;
    margin-top: auto;
    border-top: 1px solid rgba(10, 77, 110, 0.06);
}

.jia-highlight-card__foot .news-engagement--compact {
    margin: 0 !important;
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.2rem;
    min-width: 0;
    font-size: 0.68rem;
}

.jia-highlight-card__foot .news-engagement__action {
    padding: 0.1rem 0.32rem;
    min-height: 26px;
    gap: 0.18rem;
}

.jia-highlight-card__foot .news-engagement__action-text {
    display: none;
}

.jia-highlight-card__more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.16rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(26, 122, 156, 0.28);
    background: transparent;
    color: var(--jia-hl-brand) !important;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.jia-highlight-card__more-icon {
    width: 12px;
    height: 12px;
}

.jia-highlight-card__more:hover,
.jia-highlight-card__more:focus-visible {
    background: var(--jia-hl-brand);
    border-color: var(--jia-hl-brand);
    color: #fff !important;
}

@media (min-width: 992px) {
    .jia-highlight-card__media {
        max-height: 8.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jia-highlight-card {
        transition: none;
    }

    .jia-highlight-card__img {
        transition: none;
    }
}

/* --- news-engagement.css --- */
/* تفاعل الأخبار — مشاهدات وإعجاب */

.news-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    font-size: 0.8rem;
    color: var(--hn-muted, #5f7383);
}

.news-engagement--compact {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.news-engagement--full {
    margin: 0.75rem 0 0.85rem;
    padding: 0.65rem 0.75rem;
    background: var(--hn-brand-soft, #e8f3f8);
    border: 1px solid var(--hn-line, rgba(15, 77, 112, 0.12));
    border-radius: 12px;
    justify-content: space-between;
}

.news-engagement__icon {
    display: block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    opacity: 0.9;
}

.news-engagement__icon--like {
    width: 1.05rem;
    height: 1.05rem;
}

.page-home .news-engagement__action,
.home-public .news-engagement__action {
    border-radius: 999px !important;
    min-height: 32px;
    padding: 0.22rem 0.55rem !important;
}

.page-home .news-engagement__stat,
.home-public .news-engagement__stat {
    border-radius: 0 !important;
    min-height: auto;
    min-width: auto;
    padding: 0 !important;
    margin: 0;
}

.news-engagement__metrics {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-engagement__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font-weight: 600;
    color: var(--hn-muted, #5f7383);
    background: transparent;
    border: none;
    border-radius: 0;
}

.news-engagement__stat i {
    color: var(--hn-brand-2, #1a7a9c);
    font-size: 0.95em;
}

.news-engagement__stat-label {
    display: none;
}

.news-engagement__action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--hn-line, rgba(15, 77, 112, 0.14));
    background: #fff;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    min-height: 32px;
    cursor: pointer;
    color: var(--hn-ink, #163247);
    font-weight: 600;
    font-size: inherit;
    line-height: 1.2;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.news-engagement__action:hover {
    border-color: rgba(26, 122, 156, 0.35);
    background: #fff;
    transform: none;
}

.news-engagement__action.is-liked {
    color: var(--hn-brand, #0a4d6e);
    border-color: rgba(26, 122, 156, 0.35);
    background: var(--hn-brand-soft, #e8f3f8);
}

.news-engagement__action:disabled {
    opacity: 0.65;
    cursor: wait;
}

.news-engagement__action i {
    font-size: 0.95em;
    color: var(--hn-brand-2, #1a7a9c);
}

.news-engagement__action.is-liked i {
    color: var(--hn-brand, #0a4d6e);
}

.news-engagement__action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    padding: 0;
    background: transparent;
    font-size: 0.92em;
    font-weight: 700;
    color: inherit;
}

.news-engagement--compact .news-engagement__action-text {
    display: none;
}

/* بطاقات الرئيسية — إعجاب أوضح مع نص */
.news-engagement--compact.news-engagement--labeled {
    gap: 0.45rem 0.55rem;
    font-size: 0.82rem;
}

.news-engagement--labeled .news-engagement__stat {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 77, 110, 0.06);
    color: var(--hn-muted, #5f7383);
}

.news-engagement--labeled .news-engagement__action-text {
    display: inline !important;
    font-weight: 700;
    white-space: nowrap;
}

.news-engagement--labeled .news-engagement__action {
    min-height: 36px;
    padding: 0.34rem 0.8rem !important;
    gap: 0.38rem;
    background: linear-gradient(180deg, #fff 0%, #f4f9fc 100%);
    border: 1px solid rgba(10, 77, 110, 0.2);
    box-shadow: 0 2px 8px rgba(6, 36, 54, 0.06);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.news-engagement--labeled .news-engagement__action:hover:not(:disabled) {
    border-color: rgba(26, 122, 156, 0.45);
    box-shadow: 0 4px 14px rgba(10, 77, 110, 0.14);
    transform: translateY(-1px);
}

.news-engagement--labeled .news-engagement__action.is-liked {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0a4d6e 0%, #1a7a9c 100%);
    box-shadow: 0 4px 16px rgba(10, 77, 110, 0.28);
}

.news-engagement--labeled .news-engagement__action.is-liked .news-engagement__icon,
.news-engagement--labeled .news-engagement__action.is-liked .news-engagement__action-count,
.news-engagement--labeled .news-engagement__action.is-liked .news-engagement__action-text {
    color: #fff;
}

.news-engagement--labeled .news-engagement__icon--like {
    transition: transform 0.2s ease;
}

.news-engagement--labeled .news-engagement__action.is-liked .news-engagement__icon--like {
    transform: scale(1.1);
}

.home-public .jia-hl__foot .news-engagement--labeled,
.home-public .jia-latest-card__foot .news-engagement--labeled {
    margin-top: 0;
}

@media (min-width: 768px) {
    .news-engagement--compact .news-engagement__action-text {
        display: none;
    }

    .news-engagement--full .news-engagement__stat-label {
        display: inline;
        font-weight: 500;
        color: var(--hn-muted, #5f7383);
        font-size: 0.9em;
        margin-inline-end: 0.1rem;
    }
}

/* الرئيسية — أخف وأضيق */
.home-public .news-engagement--compact {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
}

.home-public .news-engagement--compact .news-engagement__action {
    flex-shrink: 0;
}

.home-public .jia-hl__foot .news-engagement--compact,
.home-public .jia-latest-card__foot .news-engagement--compact,
.home-public .jia-highlight-card__foot .news-engagement--compact,
.home-public .home-news-card__body .news-engagement--compact {
    margin-top: 0.25rem;
    margin-bottom: 0.1rem;
}

.home-public .jia-featured__actions .news-engagement--compact,
.home-public .jia-featured__body .news-engagement--compact {
    justify-content: flex-start;
    margin-top: 0;
}

@media (max-width: 575px) {
    .news-engagement--compact {
        font-size: 0.74rem;
        gap: 0.35rem;
    }

    .news-engagement__action {
        padding: 0.18rem 0.45rem;
        min-height: 30px;
    }
}

/* --- jia-home-tail.css --- */
/**
 * JIA — ذيل الرئيسية: المزيد + التعريف + الزوار
 */
.jia-more-news {
    padding: 0.35rem 0 0.85rem;
}

.jia-more-news__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 77, 110, 0.22);
    background: linear-gradient(180deg, #fff 0%, #f6fafc 100%);
    color: var(--jia-pub-brand, #0a4d6e) !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 36, 54, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.jia-more-news__btn:hover,
.jia-more-news__btn:focus-visible {
    background: var(--jia-pub-brand, #0a4d6e);
    border-color: var(--jia-pub-brand, #0a4d6e);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(10, 77, 110, 0.2);
}

.jia-more-news__btn:focus-visible {
    outline: 2px solid var(--jia-pub-brand-2, #1a7a9c);
    outline-offset: 3px;
}

.jia-about {
    padding: 0.1rem 0 0.65rem;
}

.jia-about__shell {
    max-width: var(--jia-pub-container, 1180px);
    padding-inline: clamp(0.55rem, 2vw, 0.85rem);
}

.jia-about__card {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(10, 77, 110, 0.11);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(6, 36, 54, 0.07);
    overflow: hidden;
}

.jia-about__card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--jia-pub-brand-deep, #062436),
        var(--jia-pub-brand, #0a4d6e) 45%,
        var(--jia-pub-brand-2, #1a7a9c)
    );
    pointer-events: none;
}

.jia-about__header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.85rem 0.58rem;
    background: linear-gradient(180deg, #fbfdfe 0%, #f6fafc 100%);
    border-bottom: 1px solid rgba(10, 77, 110, 0.07);
}

.jia-about__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--jia-pub-brand, #0a4d6e);
    background: rgba(10, 77, 110, 0.07);
    border: 1px solid rgba(10, 77, 110, 0.1);
}

.jia-about__title {
    margin: 0;
    font-size: clamp(0.9rem, 1.6vw, 1.02rem);
    font-weight: 700;
    color: var(--jia-pub-brand, #0a4d6e);
    line-height: 1.4;
    text-align: right;
    flex: 1 1 auto;
}

.jia-about__body {
    padding: 0.6rem 0.85rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.72;
    color: #3d5366;
    text-align: right;
    background: #fff;
}

.jia-about__body p {
    margin: 0 0 0.45rem;
}

.jia-about__body p:last-child {
    margin-bottom: 0;
}

.jia-about__visitor {
    display: flex;
    justify-content: center;
    padding: 0.9rem 1.1rem 1.05rem;
    background: linear-gradient(180deg, #f8fbfd 0%, #edf4f8 100%);
    border-top: 1px solid rgba(10, 77, 110, 0.1);
}

.jia-about--visitor-only .jia-about__card::before {
    height: 2px;
}

.jia-about--visitor-only .jia-about__visitor {
    border-top: none;
    padding: 0.85rem 1rem;
}

@media (max-width: 575.98px) {
    .jia-about__header,
    .jia-about__body {
        padding-inline: 0.85rem;
    }
}

/* --- jia-home-cards-v2.css --- */
/**
 * JIA Home v2 — عمود متمركز + كاردات (جوال)
 */
.page-home .home-public--v2 {
    --jia-card-radius: 14px;
    --jia-card-line: rgba(10, 77, 110, 0.11);
    --jia-card-shadow: 0 6px 20px rgba(6, 36, 54, 0.06);
    --jia-card-shadow-hover: 0 12px 28px rgba(6, 36, 54, 0.1);
    --jia-home-gutter: clamp(1rem, 4.5vw, 1.25rem);
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

.page-home main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
}

body.page-home {
    background: var(--jia-pub-surface-2, #f5f9fc);
}

/* أقسام بعرض المحتوى — متمركزة (ليس flex-shrink) */
.page-home .home-public--v2 .jia-home-platforms,
.page-home .home-public--v2 .container-fluid.jia-featured-wrap,
.page-home .home-public--v2 .jia-hl,
.page-home .home-public--v2 .jia-highlight,
.page-home .home-public--v2 .jia-more-news,
.page-home .home-public--v2 .jia-about {
    width: 100%;
    max-width: var(--jia-pub-container, 1180px);
    margin-inline: auto;
    padding-inline: var(--jia-home-gutter);
    box-sizing: border-box;
}

/* بانر وشريط الأخبار بعرض الشاشة */
.page-home .home-public--v2 > .jia-home-hero,
.page-home .home-public--v2 .jia-home-hero .jia-home-ticker--overlay {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

.page-home .home-public--v2 .container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

.page-home .jia-featured__card,
.page-home .jia-hl__card,
.page-home .jia-highlight-card {
    border-radius: var(--jia-card-radius);
    border: 1px solid var(--jia-card-line);
    box-shadow: var(--jia-card-shadow);
}

.page-home .jia-featured__card:hover,
.page-home .jia-hl__card:hover,
.page-home .jia-highlight-card:hover,
.page-home .jia-featured__card:focus-within,
.page-home .jia-hl__card:focus-within,
.page-home .jia-highlight-card:focus-within {
    box-shadow: var(--jia-card-shadow-hover);
    border-color: rgba(10, 77, 110, 0.16);
}

.page-home .jia-featured__cta {
    border: 1px solid rgba(10, 77, 110, 0.2);
    box-shadow: 0 2px 8px rgba(10, 77, 110, 0.12);
}

.page-home .jia-more-news__btn {
    border: 1px solid rgba(10, 77, 110, 0.28) !important;
    box-sizing: border-box;
}

.page-home .jia-latest-card__more,
.page-home .jia-highlight-card__more {
    border: 1px solid rgba(26, 122, 156, 0.38) !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    background: #f8fbfd;
}

.page-home .news-engagement__action {
    border: 1px solid rgba(15, 77, 112, 0.16) !important;
    box-sizing: border-box;
}

/* شبكة الخدمات — متوازنة في العمود */
.page-home .jia-home-platforms__grid {
    width: 100%;
    margin-inline: auto;
}

@media (max-width: 639.98px) {
    .page-home .jia-featured .container,
    .page-home .jia-featured {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .page-home .jia-featured__card {
        width: 100%;
        max-width: min(100%, 22.5rem);
        margin-inline: auto;
    }

    .page-home .jia-hl__stage {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .page-home .jia-highlight__grid {
        width: 100%;
        max-width: min(100%, 22.5rem);
        margin-inline: auto;
        justify-items: stretch;
    }

    .page-home .jia-highlight-card {
        width: 100%;
    }

    .page-home .jia-home-platforms__grid {
        justify-items: stretch;
    }

    .page-home .jia-more-news {
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .page-home .jia-highlight__grid {
        max-width: 100%;
        justify-items: stretch;
    }

    .page-home .jia-featured__card,
    .page-home .jia-hl__stage {
        max-width: 100%;
    }
}

/* --- jia-news-card-pro.css --- */
/**
 * JIA — بطاقة أخبار موحّدة (أزرق مؤسسي، بدون ذهب)
 * يُطبَّق مع .jia-news-card على latest و highlight
 */
.page-home .home-public--v3 .jia-section-head__accent,
.page-home .home-public--v3 .jia-home-platforms__accent,
.page-home .home-public--v3 .jia-featured__section-head .jia-section-head__accent {
    background: var(--jia-pub-brand-2, #1a7a9c);
}

.home-public .jia-news-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(10, 77, 110, 0.12);
    box-shadow: 0 5px 18px rgba(6, 36, 54, 0.06);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.home-public .jia-news-card:hover,
.home-public .jia-news-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 36, 54, 0.09);
    border-color: rgba(26, 122, 156, 0.24);
}

.home-public .jia-news-card .jia-latest-card__media,
.home-public .jia-news-card .jia-highlight-card__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: clamp(9.35rem, 21vw, 11.25rem);
    min-height: clamp(9.35rem, 21vw, 11.25rem);
    max-height: clamp(9.35rem, 21vw, 11.25rem);
    aspect-ratio: unset;
}

.home-public .jia-news-card .jia-latest-card__img,
.home-public .jia-news-card .jia-highlight-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    transform: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.home-public .jia-news-card .jia-latest-card__img.is-news-placeholder,
.home-public .jia-news-card .jia-highlight-card__img.is-news-placeholder {
    object-fit: contain;
    object-position: center;
    padding: 0.4rem;
    background: #eef4f8;
}

.home-public .jia-news-card:hover .jia-latest-card__img:not(.is-news-placeholder),
.home-public .jia-news-card:hover .jia-highlight-card__img:not(.is-news-placeholder) {
    transform: scale(1.04);
    opacity: 1;
}

.home-public .jia-news-card .jia-latest-card__panel {
    position: relative;
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(0.9rem, 2.8vw, 1.05rem) clamp(1rem, 3.6vw, 1.2rem) clamp(0.9rem, 2.5vw, 1rem);
    text-align: right;
}

.home-public .jia-news-card .jia-highlight-card__body {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: clamp(0.9rem, 2.8vw, 1.05rem) clamp(1rem, 3.6vw, 1.2rem) clamp(0.9rem, 2.5vw, 1rem);
    text-align: right;
}

.home-public .jia-news-card .jia-latest-card__panel::before,
.home-public .jia-news-card .jia-highlight-card__body::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 3px;
    border-radius: 2px;
    background: var(--jia-pub-brand-2, #1a7a9c);
}

.home-public .jia-news-card .jia-latest-card__date,
.home-public .jia-news-card .jia-highlight-card__date {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.14rem 0.55rem;
    border-radius: 6px;
    background: var(--jia-pub-brand-soft, #e8f3f8);
    color: var(--jia-pub-brand, #0a4d6e);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-public .jia-news-card .jia-highlight-card__date-icon {
    display: none;
}

.home-public .jia-news-card .jia-latest-card__title,
.home-public .jia-news-card .jia-highlight-card__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.12rem, 1.55vw, 1.32rem);
    font-weight: 400;
    line-height: 1.55;
}

.home-public .jia-news-card .jia-latest-card__title a,
.home-public .jia-news-card .jia-highlight-card__title a {
    font-weight: 400;
}

.page-home .home-public--v3 .jia-featured__title,
.page-home .home-public--v3 .jia-featured__title a {
    font-weight: 400;
    font-size: clamp(1.25rem, 2.3vw, 1.58rem);
    line-height: 1.55;
}

.home-public .jia-news-card .jia-latest-card__excerpt {
    margin: 0 0 0.25rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--jia-pub-muted, #5f7383);
    -webkit-line-clamp: 3;
}

.home-public .jia-news-card .jia-latest-card__foot,
.home-public .jia-news-card .jia-highlight-card__foot {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(10, 77, 110, 0.1);
}

.home-public .jia-news-card .jia-latest-card__more,
.home-public .jia-news-card .jia-highlight-card__more {
    padding: 0.28rem 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 77, 110, 0.22);
    background: #fff;
    font-size: 0.86rem;
}

.home-public .jia-news-card .jia-latest-card__more:hover,
.home-public .jia-news-card .jia-latest-card__more:focus-visible,
.home-public .jia-news-card .jia-highlight-card__more:hover,
.home-public .jia-news-card .jia-highlight-card__more:focus-visible {
    background: var(--jia-pub-brand, #0a4d6e);
    border-color: var(--jia-pub-brand, #0a4d6e);
    color: #fff !important;
}

.home-public .jia-highlight {
    --jia-lt-gap: 0.88rem;
    --jia-lt-radius: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
}

.home-public .jia-highlight__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--jia-lt-gap);
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0.25rem 0 0;
    list-style: none;
}

.home-public .jia-highlight__item {
    display: flex;
    min-width: 0;
}

.home-public .jia-highlight__item .jia-news-card {
    width: 100%;
}

.home-public .jia-news-grid--unified {
    --jia-lt-gap: 0.88rem;
    --jia-lt-radius: 16px;
    max-width: 100%;
    width: 100%;
    padding-inline: 10px;
    gap: var(--jia-lt-gap);
}

/* —— تنسيق بطاقات الأخبار (إبراز + أرشيف) —— */
.home-public .jia-news-card {
    border-radius: var(--jia-lt-radius);
    border-color: rgba(10, 77, 110, 0.09);
    box-shadow:
        0 1px 2px rgba(6, 36, 54, 0.04),
        0 10px 28px rgba(6, 36, 54, 0.06);
    transition:
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-public .jia-news-card:hover,
.home-public .jia-news-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(26, 122, 156, 0.22);
    box-shadow:
        0 4px 12px rgba(6, 36, 54, 0.05),
        0 18px 42px rgba(10, 77, 110, 0.11);
}

.home-public .jia-latest-card__media {
    position: relative;
    border-radius: var(--jia-lt-radius) var(--jia-lt-radius) 0 0;
    overflow: hidden;
}

.home-public .jia-latest-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(6, 28, 42, 0) 40%,
        rgba(6, 28, 42, 0.14) 100%
    );
    opacity: 0.75;
    transition: opacity 0.28s ease;
}

.home-public .jia-news-card:hover .jia-latest-card__img {
    opacity: 1;
    transform: scale(1.03);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.home-public .jia-news-card:hover .jia-latest-card__media::after {
    opacity: 0.45;
}

.home-public .jia-latest-card__more {
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(180deg, #fff 0%, #f6fafc 100%);
}

.home-public .jia-latest-card__foot {
    border-top-color: rgba(10, 77, 110, 0.07);
}

@media (max-width: 575.98px) {
    .home-public .jia-highlight {
        padding-inline: 5px;
    }

    .home-public .jia-highlight__grid {
        grid-template-columns: 1fr;
    }

    .home-public .jia-news-grid--unified {
        padding-inline: 5px;
        grid-template-columns: 1fr;
    }

    .home-public .jia-news-card .jia-latest-card__excerpt {
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .home-public .jia-highlight__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-public .jia-news-grid--unified {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-public .jia-news-grid--unified {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .home-public .jia-news-card .jia-latest-card__title {
        font-size: clamp(1.08rem, 1.2vw, 1.2rem);
    }

    .home-public .jia-news-card .jia-latest-card__excerpt {
        font-size: 0.88rem;
        -webkit-line-clamp: 2;
    }
}

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