/**
 * AW News Grid — Premium editorial news UI (RTL, mixed layout)
 */

.awng {
    --awng-teal: #459a9a;
    --awng-teal-mid: #3d8a8a;
    --awng-teal-deep: #2f6f6f;
    --awng-teal-glow: rgba(69, 154, 154, 0.38);
    --awng-teal-soft: rgba(69, 154, 154, 0.1);
    --awng-slate: #2c3e50;
    --awng-ink: #0f172a;
    --awng-muted: #64748b;
    --awng-line: rgba(15, 23, 42, 0.07);
    --awng-surface: #ffffff;
    --awng-page: #f4f6f8;
    --awng-radius-xl: 26px;
    --awng-radius-lg: 18px;
    --awng-radius-md: 14px;
    --awng-radius-sm: 12px;
    --awng-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --awng-shadow-sm: 0 6px 22px rgba(15, 23, 42, 0.06);
    --awng-shadow-md: 0 14px 40px rgba(15, 23, 42, 0.09);
    --awng-shadow-hero: 0 22px 55px rgba(15, 23, 42, 0.11);
    --awng-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --awng-font: "Almarai", sans-serif;

    width: 100%;
    max-width: none;
    margin: 0 0 2rem;
    padding: clamp(0.65rem, 1.5vw, 1rem);
    box-sizing: border-box;
    font-family: var(--awng-font);
    color: var(--awng-ink);
    /* بدون خلفية/إطار — يظهر لون خلفية الصفحة */
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* [aw_news_grid] يستخدم عرض .awng الأساسي (100% / max-width: none) — بلوك بعرض الصفحة */

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

/* Masthead */
.awng-masthead {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.awng-masthead__accent {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--awng-teal);
}

.awng-masthead__title {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--awng-slate);
}

.awng-masthead__rule {
    height: 1px;
    margin-bottom: 1.15rem;
    background: linear-gradient(to left, var(--awng-teal), transparent);
    opacity: 0.28;
}

/* -------------------------------------------------------------------------
   Filter — sticky glass strip, Linear/Notion-style chips
   ------------------------------------------------------------------------- */
.awng-filter-shell--sticky {
    position: sticky;
    top: 0.5rem;
    z-index: 50;
    margin-bottom: clamp(0.65rem, 1.8vw, 1rem);
    padding: 0.1rem 0;
}

.awng-filter--premium {
    position: relative;
    overflow: hidden;
    border-radius: var(--awng-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
        var(--awng-shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.awng-filter__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0.55rem 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(69, 154, 154, 0.25) transparent;
    mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.awng-filter__track::-webkit-scrollbar {
    height: 3px;
}

.awng-filter__track::-webkit-scrollbar-thumb {
    background: rgba(69, 154, 154, 0.3);
    border-radius: 99px;
}

.awng-filter__chip {
    flex: 0 0 auto;
    appearance: none;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    min-height: 38px;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.35s var(--awng-ease),
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s var(--awng-ease),
        transform 0.22s var(--awng-ease);
    white-space: nowrap;
}

.awng-filter__chip:hover {
    background: #fff;
    border-color: rgba(69, 154, 154, 0.22);
    color: var(--awng-teal-mid);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.awng-filter__chip.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, var(--awng-teal) 0%, #3a8585 100%);
    box-shadow:
        0 6px 20px var(--awng-teal-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.awng-filter__chip.is-active:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* Editorial */
.awng-editorial {
    position: relative;
    min-height: 80px;
}

.awng-editorial.is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    z-index: 4;
    pointer-events: none;
}

.awng-editorial__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    padding-top: 0;
}

.awng-section-divider {
    height: 1px;
    margin: 0.1rem 0;
    background: linear-gradient(to left, transparent, var(--awng-line), transparent);
}

/* -------------------------------------------------------------------------
   Hero — anchored text block, RTL gradient, cinematic
   ------------------------------------------------------------------------- */
.awng-hero {
    margin: 0;
}

.awng-hero__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--awng-radius-xl);
    overflow: hidden;
    background: #0f172a;
    box-shadow:
        var(--awng-shadow-hero),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.55s var(--awng-ease), transform 0.5s var(--awng-ease);
}

.awng-hero__link:hover {
    box-shadow:
        0 28px 64px rgba(15, 23, 42, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.awng-hero__media {
    position: relative;
    aspect-ratio: 2.1 / 1;
    min-height: 260px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .awng-hero__media {
        aspect-ratio: 16 / 10;
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .awng-hero__media {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }
}

.awng-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform 1.05s var(--awng-ease);
}

.awng-hero__link:hover .awng-hero__img {
    transform: scale(1.065);
}

.awng-hero__placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: linear-gradient(150deg, var(--awng-slate) 0%, var(--awng-teal) 100%);
}

/* Stronger overlay on the right (text side in RTL) */
.awng-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to left,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.55) 42%,
        rgba(15, 23, 42, 0.12) 72%,
        rgba(15, 23, 42, 0) 100%
    );
}

.awng-hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* RTL: flex-start على المحور الأفقي = يمين الصفحة (بداية السطر) */
.awng-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.awng-hero__textbox {
    width: 100%;
    max-width: min(72%, 40rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    gap: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1.1rem) clamp(0.85rem, 2.2vw, 1.2rem);
    border-radius: clamp(14px, 2vw, 18px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
    .awng-hero__textbox {
        max-width: 100%;
    }
}

.awng-hero__title {
    margin: 0;
    width: 100%;
    font-size: clamp(1.5rem, 4.2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: -0.045em;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.awng-hero__accent-line {
    display: block;
    align-self: flex-end;
    width: min(72px, 28%);
    height: 3px;
    border-radius: 2px;
    border: none;
    margin: 0;
    margin-top: 0.2rem;
    background: linear-gradient(to left, var(--awng-teal), rgba(69, 154, 154, 0.35));
}

.awng-block--spotlight {
    margin: 0;
}

.awng-hero + .awng-block--spotlight::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
    background: linear-gradient(to left, transparent, rgba(69, 154, 154, 0.2), transparent);
}

.awng-hero + .awng-block--regular::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
    background: linear-gradient(to left, transparent, rgba(69, 154, 154, 0.2), transparent);
}

/* -------------------------------------------------------------------------
   Spotlight row — 1 large + 2 stacked small
   ------------------------------------------------------------------------- */
.awng-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(0.45rem, 1.2vw, 0.65rem);
    align-items: stretch;
}

.awng-spotlight--single {
    grid-template-columns: 1fr;
}

.awng-spotlight__secondary {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vw, 0.7rem);
    min-height: 100%;
}

@media (max-width: 960px) {
    .awng-spotlight {
        grid-template-columns: 1fr;
    }
}

/* Large spotlight card — cinematic overlay (مثل الـ Hero) */
.awng-spot-lg {
    margin: 0;
    height: 100%;
    min-height: 0;
}

.awng-spot-lg__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: clamp(300px, 42vh, 440px);
    text-decoration: none;
    color: inherit;
    background: #0f172a;
    border-radius: var(--awng-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        var(--awng-shadow-md),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: box-shadow 0.45s var(--awng-ease), transform 0.4s var(--awng-ease), border-color 0.3s ease;
}

.awng-spot-lg__link:hover {
    box-shadow:
        0 22px 48px rgba(15, 23, 42, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(69, 154, 154, 0.22);
}

.awng-spot-lg__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 260px;
    overflow: hidden;
    background: var(--awng-page);
}

.awng-spot-lg__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to left,
        rgba(15, 23, 42, 0.94) 0%,
        rgba(15, 23, 42, 0.5) 45%,
        rgba(15, 23, 42, 0.08) 78%,
        rgba(15, 23, 42, 0) 100%
    );
}

.awng-spot-lg__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    padding: clamp(0.65rem, 2vw, 1.1rem);
    pointer-events: none;
}

.awng-spot-lg__content > * {
    pointer-events: auto;
}

.awng-spot-lg__textbox {
    width: 100%;
    max-width: min(92%, 26rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    gap: 0.35rem;
    padding: clamp(0.55rem, 1.5vw, 0.85rem) clamp(0.65rem, 1.8vw, 0.95rem);
    border-radius: clamp(12px, 1.8vw, 16px);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 520px) {
    .awng-spot-lg__textbox {
        max-width: 100%;
    }
}

.awng-spot-lg__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.85s var(--awng-ease);
}

.awng-spot-lg__link:hover .awng-spot-lg__img {
    transform: scale(1.045);
}

.awng-spot-lg__placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(150deg, var(--awng-slate) 0%, var(--awng-teal) 100%);
}

.awng-spot-lg__title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: -0.035em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    transition: color 0.25s ease;
}

.awng-spot-lg__link:hover .awng-spot-lg__title {
    color: rgba(255, 255, 255, 0.98);
}

.awng-spot-lg__excerpt {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.awng-card-foot--overlay {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    justify-content: flex-end;
}

.awng-more--overlay {
    background: rgba(255, 255, 255, 0.95);
    color: var(--awng-teal-mid);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.awng-spot-lg__link:hover .awng-more--overlay {
    filter: brightness(1.02);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

/* تذييل الكارت: الزر نحو اليسار البصرية في RTL (نهاية الصف — flex-end) */
.awng-card-foot {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-top: auto;
    padding-top: 0.4rem;
    width: 100%;
}

.awng-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.38rem 0.9rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, var(--awng-teal), var(--awng-teal-mid));
    box-shadow: 0 2px 10px rgba(69, 154, 154, 0.28);
    white-space: nowrap;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

a:hover .awng-more {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(69, 154, 154, 0.35);
}

.awng-more--compact {
    /* font-size: 0.68rem; */
    /* font-weight: 700; */
    /* padding: 0.26rem 0.62rem; */
    border-radius: 7px;
}

.awng-spot-sm__body .awng-card-foot--sm {
    margin-top: 0.2rem;
    padding-top: 0;
}

.awng-card-foot--compact {
    margin-top: 0.35rem;
    padding-top: 0.15rem;
}

/* كروت جانبية: عرض عمودي (صورة ثم نص) لتفادي فراغ أفقي كبير */
.awng-spot-sm {
    margin: 0;
    flex: 1;
    min-height: 0;
}

.awng-spot-sm__link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    height: auto;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    background: var(--awng-surface);
    border-radius: var(--awng-radius-md);
    border: 1px solid var(--awng-line);
    box-shadow:
        var(--awng-shadow-xs),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    padding: 0.5rem 0.55rem 0.55rem;
    overflow: hidden;
    transition: box-shadow 0.4s var(--awng-ease), transform 0.35s var(--awng-ease), border-color 0.3s ease;
}

.awng-spot-sm__link:hover {
    box-shadow:
        var(--awng-shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    border-color: rgba(69, 154, 154, 0.18);
}

.awng-spot-sm__thumb {
    width: 100%;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--awng-page);
    aspect-ratio: 16 / 9;
    max-height: 118px;
}

.awng-spot-sm__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--awng-ease);
}

.awng-spot-sm__link:hover .awng-spot-sm__img {
    transform: scale(1.05);
}

.awng-spot-sm__placeholder {
    width: 100%;
    height: 100%;
    min-height: 70px;
    background: linear-gradient(140deg, #e5e9ef, var(--awng-teal-soft));
}

.awng-spot-sm__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: right;
    gap: 0.2rem;
    flex: 1 1 auto;
}

.awng-spot-sm__title {
    margin: 0;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.42;
    letter-spacing: -0.03em;
    color: var(--awng-slate);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Regular grid (شبكة 6 كروت + تحميل المزيد)
   ------------------------------------------------------------------------- */
.awng-block--regular {
    margin: 0;
}

/* شبكة الأخبار: نفس إطار/ظل كروت المزادات (.aw-attempt-card) */
.awng-block--regular .awng-reg__link {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.awng-block--regular .awng-reg__link::before {
    display: none;
}

.awng-block--regular .awng-reg__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.awng-block--regular .awng-reg__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem 0.85rem;
    gap: 0;
    min-height: 0;
    background: #ffffff;
}

.awng-block--regular .awng-reg__textblock {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    min-height: 7.35rem;
}

.awng-block--regular .awng-reg__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.38em * 3);
}

.awng-block--regular .awng-reg__excerpt {
    color: #4b5563;
    min-height: calc(1.65em * 2);
}

.awng-block--regular .awng-card-foot--cta {
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 0.65rem;
    margin-bottom: 0;
    border-top: 1px solid #e5e7eb;
}

.awng-block--regular .awng-card-foot--cta .awng-more {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

.awng-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(1rem, 2.5vw, 1.5rem);
    padding-bottom: 0.25rem;
}

.awng-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.62rem 1.35rem;
    font-weight: 750;
    font-size: 0.9rem;
    line-height: 1.2;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, var(--awng-teal), var(--awng-teal-mid));
    box-shadow: 0 4px 18px rgba(69, 154, 154, 0.32);
    transition: filter 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.awng-load-more:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(69, 154, 154, 0.38);
    transform: translateY(-1px);
}

.awng-load-more:disabled,
.awng-load-more.is-busy {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.awng-regular-grid {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1.1rem);
    align-items: stretch;
}

.awng-regular-grid--cols-1 {
    grid-template-columns: 1fr;
}

.awng-regular-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.awng-regular-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.awng-regular-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .awng-regular-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .awng-regular-grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .awng-regular-grid--cols-2,
    .awng-regular-grid--cols-3,
    .awng-regular-grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

.awng-reg {
    margin: 0;
    height: 100%;
}

/* كروت تحريرية: دمج بصري بين الصورة والنص + عمق خفيف */
.awng-reg__link {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    background: var(--awng-surface);
    border-radius: calc(var(--awng-radius-md) + 2px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 16px 42px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        box-shadow 0.5s var(--awng-ease),
        transform 0.45s var(--awng-ease),
        border-color 0.35s ease;
}

.awng-reg__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 2;
}

.awng-reg__link:hover {
    border-color: rgba(69, 154, 154, 0.22);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.06),
        0 22px 50px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(69, 154, 154, 0.08);
    transform: translateY(-6px);
}

.awng-reg__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--awng-page);
}

/* يخفّف القطع بين الصورة والمربع الأبيض (لمسة مجلات) */
.awng-reg__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.35) 28%,
        transparent 62%
    );
    pointer-events: none;
    z-index: 1;
}

/* شبكة الأخبار: تدرج أخف على الصورة لعدم إحساس البهتان (أقرب لكروت المزادات) */
.awng-block--regular .awng-reg__media::after {
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.12) 35%,
        transparent 65%
    );
}

.awng-reg__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--awng-ease);
}

.awng-reg__link:hover .awng-reg__img {
    transform: scale(1.045);
}

.awng-reg__placeholder {
    width: 100%;
    height: 100%;
    min-height: 130px;
    background: linear-gradient(135deg, #eef2f6, var(--awng-teal-soft));
}

.awng-reg__body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.35rem 1rem 1.05rem;
    gap: 0.4rem;
    text-align: right;
    min-height: 8.5rem;
    background: linear-gradient(180deg, #fcfdfe 0%, #ffffff 38%);
}

.awng-reg__textblock {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.awng-reg__head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
}

.awng-reg__accent {
    flex: 0 0 3px;
    width: 3px;
    align-self: stretch;
    min-height: 2.6rem;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--awng-teal) 0%, rgba(69, 154, 154, 0.2) 100%);
    box-shadow: 0 0 12px rgba(69, 154, 154, 0.2);
}

.awng-reg__title {
    flex: 1;
    margin: 0;
    min-width: 0;
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: -0.035em;
    color: var(--awng-slate);
    transition: color 0.3s ease;
}

.awng-reg__link:hover .awng-reg__title {
    color: var(--awng-teal-deep);
}

.awng-reg__excerpt {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--awng-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* «اقرأ المزيد» = نفس أسلوب زر «عرض التفاصيل» في المزادات (.aw-card-button) */
.awng-block--regular .awng-more {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    color: #ffffff;
    background: #3e9799;
    border: 1px solid #3e9799;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.awng-block--regular .awng-reg__link:hover .awng-more {
    background: #2d7a7c;
    border-color: #2d7a7c;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(45, 122, 124, 0.28);
    filter: none;
}

/* -------------------------------------------------------------------------
   Compact list
   ------------------------------------------------------------------------- */
.awng-block--compact {
    margin: 0;
}

.awng-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: var(--awng-radius-md);
    border: 1px solid var(--awng-line);
    background: var(--awng-surface);
    box-shadow:
        var(--awng-shadow-xs),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    overflow: hidden;
}

.awng-compact-list__item {
    border-bottom: 1px solid var(--awng-line);
}

.awng-compact-list__item:last-child {
    border-bottom: none;
}

.awng-compact {
    margin: 0;
}

.awng-compact__link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-height: 0;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.35s var(--awng-ease);
}

.awng-compact__link:hover {
    background: rgba(69, 154, 154, 0.045);
}

.awng-compact__thumb {
    width: 100%;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--awng-page);
    aspect-ratio: 16 / 9;
    max-height: 132px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.awng-compact__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--awng-ease);
}

.awng-compact__link:hover .awng-compact__img {
    transform: scale(1.05);
}

.awng-compact__placeholder {
    width: 100%;
    height: 100%;
    min-height: 76px;
    background: linear-gradient(140deg, #e8ecf1, var(--awng-teal-soft));
}

.awng-compact__body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    justify-content: flex-start;
    gap: 0.25rem;
}

.awng-compact__body .awng-card-foot--compact {
    margin-top: 0.35rem;
}

.awng-compact__title {
    margin: 0;
    width: 100%;
    font-size: clamp(0.95rem, 1.8vw, 1.02rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: var(--awng-slate);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.awng-compact__link:hover .awng-compact__title {
    color: var(--awng-teal-mid);
}

.awng-compact__body .awng-card-foot {
    width: 100%;
}

@media (max-width: 480px) {
    .awng-spot-sm__thumb {
        max-height: 100px;
    }

    .awng-compact__thumb {
        max-height: 112px;
    }
}

.awng-meta-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--awng-muted);
}

.awng-empty {
    margin: 0;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--awng-muted);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   News slider — هوية أوكشن ويك، مواءمة ارتفاع الأعمدة، صورة cover بدون فراغ
   ------------------------------------------------------------------------- */
.awng-slider {
    --awng-slider-navy: #0a2440;
    --awng-slider-teal: #469494;
    --awng-slider-teal-mid: #3d8585;
    --awng-slider-teal-soft: rgba(70, 148, 148, 0.1);
    --awng-slider-teal-glow: rgba(70, 148, 148, 0.22);
    --awng-slider-line: rgba(10, 36, 64, 0.08);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    /* يمنع تمدد شبكة/فليكس تحت RTL أوسع من العرض ويقصّ أي بقايا بكسل */
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.awng-slider__masthead {
    margin-bottom: 0.35rem;
}

.awng-slider__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 32%);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: stretch;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.awng-slider__loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    font-family: var(--awng-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--awng-slider-navy);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    transition:
        opacity 0.4s var(--awng-ease),
        visibility 0.4s var(--awng-ease);
}

.awng-slider__loading-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.awng-slider__loading-text::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(70, 148, 148, 0.25);
    border-top-color: var(--awng-slider-teal-mid);
    border-radius: 50%;
    animation: awng-slider-spin 0.7s linear infinite;
}

.awng-slider--layout-ready .awng-slider__loading {
    opacity: 0;
    visibility: hidden;
}

@keyframes awng-slider-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .awng-slider__loading {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .awng-slider__loading-text::before {
        animation: none;
        border-color: var(--awng-slider-teal-mid);
    }
}

.awng-slider__layout--solo {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 901px) {
    .awng-slider__main-col {
        display: flex;
        flex-direction: column;
        min-height: 0;
        min-width: 0;
        max-width: 100%;
        align-self: stretch;
    }

    /* نفس ارتفاع القائمة: البطاقة تمتد والصورة تملأ المساحة (object-fit: cover) */
    .awng-slider__hero-stack {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .awng-slider__hero-stack > .awng-slider__viewport {
        flex: 1 1 auto;
        min-height: 0;
    }

    .awng-slider__hero-stack > .awng-slider__chrome-row {
        flex: 1 1 auto;
        min-height: 0;
    }

    .awng-slider__rail {
        height: 100%;
        min-height: 0;
        align-self: stretch;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .awng-slider__layout {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .awng-slider__main-col {
        order: 1;
        min-width: 0;
        max-width: 100%;
    }

    .awng-slider__rail {
        order: 2;
        min-width: 0;
        max-width: 100%;
    }
}

/* بطاقة رئيسية */
.awng-slider__hero-stack {
    border-radius: var(--awng-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--awng-slider-line);
    box-shadow: 0 8px 30px rgba(10, 36, 64, 0.04);
    min-width: 0;
    max-width: 100%;
}

.awng-slider__chrome-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: clamp(0.35rem, 1.2vw, 0.55rem);
    padding: 0.45rem;
    background: #f2f5f8;
    border-bottom: 1px solid var(--awng-slider-line);
}

.awng-slider__hero-stack > .awng-slider__chrome-row:first-child {
    border-radius: var(--awng-radius-lg) var(--awng-radius-lg) 0 0;
}

@media (max-width: 600px) {
    .awng-slider__chrome-row {
        grid-template-columns: 1fr;
        padding: 0;
        border: none;
        background: transparent;
    }

    .awng-slider__btn {
        display: none;
    }
}

.awng-slider__chrome-row .awng-slider__viewport {
    border-radius: var(--awng-radius-md);
    height: 100%;
    min-height: 0;
}

.awng-slider__viewport {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #eceff3;
    outline: none;
    /* عرض مستقر للشرائح قبل تشغيل JS (يقلل القفزة عند التحميل) */
    container-type: inline-size;
    container-name: awng-sl-vp;
}

/* بدون أزرار: أول عنصر هو المشاهد — زوايا علوية للبطاقة */
.awng-slider__hero-stack > .awng-slider__viewport:first-child {
    border-radius: var(--awng-radius-lg) var(--awng-radius-lg) 0 0;
}

.awng-slider__viewport:focus-visible {
    box-shadow: inset 0 0 0 2px var(--awng-slider-teal);
}

.awng-slider__viewport::-webkit-scrollbar {
    display: none;
}

.awng-slider__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 100%;
    min-height: 100%;
}

.awng-slider__pane {
    flex-shrink: 0;
    scroll-snap-align: start;
    margin: 0;
    width: auto;
    height: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

@supports (width: 100cqw) {
    .awng-slider__pane {
        flex: 0 0 100cqw;
        width: 100cqw;
        min-width: 100cqw;
        max-width: 100cqw;
    }
}

.awng-slider__pane-link {
    display: block;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
}

/* موبايل: نسبة ثابتة — ديسكتوب مع تمديد: ارتفاع يملأ المشاهد */
.awng-slider__pane-fig {
    margin: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe4ea;
}

@media (min-width: 901px) {
    .awng-slider__layout .awng-slider__pane-link {
        display: flex;
        flex-direction: column;
    }

    .awng-slider__layout .awng-slider__pane-fig {
        flex: 1 1 auto;
        min-height: 180px;
        height: auto;
        aspect-ratio: auto;
    }
}

@media (max-width: 900px) {
    .awng-slider__track {
        height: auto;
        min-height: 0;
    }

    .awng-slider__pane {
        height: auto;
        align-self: auto;
    }

    .awng-slider__pane-link {
        display: block;
        height: auto;
        min-height: 0;
    }
}

.awng-slider__pane-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.75s var(--awng-ease);
    background: var(--awng-slider-navy);
}

.awng-slider__pane-link:hover .awng-slider__pane-img {
    transform: scale(1.02);
}

.awng-slider__pane-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--awng-slider-navy) 0%, var(--awng-slider-teal-mid) 100%);
}

.awng-slider__btn {
    flex-shrink: 0;
    align-self: center;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(10, 36, 64, 0.1);
    border-radius: 11px;
    background: #fff;
    color: var(--awng-slider-teal-mid);
    cursor: pointer;
    box-shadow: var(--awng-shadow-xs);
    transition:
        background 0.25s ease,
        color 0.2s ease,
        box-shadow 0.3s var(--awng-ease),
        transform 0.2s var(--awng-ease),
        opacity 0.2s ease;
}

.awng-slider__btn:hover:not(:disabled) {
    background: #fff;
    box-shadow: var(--awng-shadow-sm);
    transform: translateY(-1px);
    color: var(--awng-slider-teal);
}

.awng-slider__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.awng-slider__btn-icon {
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

/* شريط سفلي — جزء واحد من البطاقة */
.awng-slider__foot {
    margin: 0;
    flex-shrink: 0;
}

.awng-slider__foot-panel {
    position: relative;
    background: #fff;
    border-top: 1px solid var(--awng-slider-line);
    border-radius: 0 0 var(--awng-radius-lg) var(--awng-radius-lg);
    padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
}

.awng-slider__foot-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 1.5rem);
    direction: rtl;
}

.awng-slider__foot-inner--single {
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .awng-slider__foot-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .awng-slider__pager {
        align-self: center;
    }
}

.awng-slider__title-stack {
    position: relative;
    min-width: 0;
    text-align: right;
    flex: 1;
}

@media (max-width: 640px) {
    .awng-slider__title-stack {
        width: 100%;
    }
}

.awng-slider__title-pane[hidden] {
    display: none !important;
}

.awng-slider__foot-title {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.14rem);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -0.025em;
    color: var(--awng-slider-navy);
}

.awng-slider__foot-title a {
    color: inherit;
    text-decoration: none;
    display: inline;
    transition: color 0.2s ease;
    box-decoration-break: clone;
}

.awng-slider__foot-title a:hover {
    color: var(--awng-slider-teal-mid);
}

/* ترقيم — شريط زجاجي + دوائر بإطار مزدوج */
.awng-slider__pager {
    flex-shrink: 0;
}

.awng-slider__nums {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
    border: 1px solid rgba(10, 36, 64, 0.07);
    box-shadow:
        0 4px 18px rgba(10, 36, 64, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.awng-slider__nums[hidden] {
    display: none !important;
}

.awng-slider__num {
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--awng-slider-navy);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    cursor: pointer;
    line-height: 1;
    transition:
        color 0.3s var(--awng-ease),
        transform 0.35s var(--awng-ease),
        box-shadow 0.35s var(--awng-ease);
    box-shadow:
        0 1px 2px rgba(10, 36, 64, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(10, 36, 64, 0.08);
}

.awng-slider__num:hover {
    color: var(--awng-slider-teal-mid);
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(10, 36, 64, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(70, 148, 148, 0.22);
}

.awng-slider__num.is-active {
    color: #fff;
    background: linear-gradient(155deg, #4fa3a3 0%, var(--awng-slider-teal-mid) 48%, #2d7373 100%);
    transform: scale(1.08);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 0 0 5px rgba(70, 148, 148, 0.28),
        0 8px 26px var(--awng-slider-teal-glow),
        0 2px 8px rgba(10, 36, 64, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

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

    .awng-slider__num:hover,
    .awng-slider__num.is-active {
        transform: none;
    }
}

.awng-slider__rail {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(70, 148, 148, 0.35) transparent;
    padding-inline-start: 2px;
    padding-inline-end: 2px;
    padding-block: 2px;
}

@media (max-width: 900px) {
    .awng-slider__rail {
        max-height: min(50vh, 400px);
    }
}

.awng-slider__rail-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0.65rem;
    border: 1px solid var(--awng-slider-line);
    border-radius: var(--awng-radius-md);
    background: #fff;
    text-align: right;
    direction: rtl;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: all 0.3s var(--awng-ease);
    box-shadow: 0 2px 8px rgba(10, 36, 64, 0.02);
}

a.awng-slider__rail-item--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.awng-slider__rail-item:last-child {
    margin-bottom: 0;
}

.awng-slider__rail-item:hover {
    background: #f8fafc;
    border-color: rgba(70, 148, 148, 0.2);
    box-shadow: 0 4px 12px rgba(10, 36, 64, 0.04);
    transform: translateY(-1px);
}

.awng-slider__rail-item:focus-visible {
    outline: 2px solid var(--awng-slider-teal);
    outline-offset: 2px;
    z-index: 1;
}

.awng-slider__rail-item.is-active {
    background: #fff;
    border-color: var(--awng-slider-teal);
    box-shadow: 0 4px 16px rgba(70, 148, 148, 0.12);
}

.awng-slider__rail-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--awng-page);
    box-shadow: inset 0 0 0 1px rgba(10, 36, 64, 0.06);
}

.awng-slider__rail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.awng-slider__rail-ph {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 76px;
    background: linear-gradient(140deg, #e8eef2, var(--awng-slider-teal-soft));
}

.awng-slider__rail-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.awng-slider__rail-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--awng-slider-navy);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.awng-slider__rail-item.is-active .awng-slider__rail-title {
    color: var(--awng-slider-teal-mid);
}

@media (prefers-reduced-motion: reduce) {
    .awng-slider__pane-img {
        transition: none;
    }

    .awng-slider__pane-link:hover .awng-slider__pane-img {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Pinned mini grid — [aw_pinned_news]
   ------------------------------------------------------------------------- */
.awng.awng--pinned-mini {
    padding: 0;
    max-width: none;
    width: 100%;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.awng--pinned-mini {
    margin-bottom: 1.5rem;
}

.awng-pinned-grid {
    display: grid;
    align-items: stretch;
    gap: clamp(0.65rem, 1.5vw, 1rem);
    width: 100%;
}

.awng-pinned-grid .awng-compact {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.awng-pinned-grid .awng-compact__link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.awng-pinned-grid .awng-compact__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.awng-pinned-grid .awng-compact__body .awng-card-foot--compact {
    margin-top: auto;
}

.awng-pinned-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.awng-pinned-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.awng-pinned-grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .awng-pinned-grid--5,
    .awng-pinned-grid--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .awng-pinned-grid--4,
    .awng-pinned-grid--5,
    .awng-pinned-grid--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .awng-pinned-grid--4,
    .awng-pinned-grid--5,
    .awng-pinned-grid--6 {
        grid-template-columns: 1fr;
    }
}

.awng-compact--pinned-slot .awng-compact__thumb {
    position: relative;
}

/* إطار موحّد لكل كروت الشبكة المثبتة؛ المثبت يبرز بإطار ذهبي غامق */
.awng-pinned-grid .awng-compact__link {
    border-radius: var(--awng-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.11);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    background: var(--awng-surface);
}

.awng-pinned-grid .awng-compact__link:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.awng-pinned-grid .awng-compact.is-pinned .awng-compact__link {
    border: 2px solid #e5910c;
    box-shadow:
        0 2px 14px rgba(229, 145, 12, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.awng-pinned-grid .awng-compact.is-pinned .awng-compact__link:hover {
    border-color: #c97d0a;
    box-shadow: 0 4px 18px rgba(229, 145, 12, 0.28);
}

.awng-pinned-grid .awng-compact__title {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* -------------------------------------------------------------------------
   Category tabs — [aw_news_category_tabs]
   ------------------------------------------------------------------------- */
/* يملأ عرض الحاوية الأب دون max-width يضيّق البلوك؛ بدون padding إضافي من .awng */
.awng.awng-cat-tabs {
    padding: 0;
    max-width: none;
    width: 100%;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.awng-cat-tabs {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--awng-radius-md);
    background: var(--awng-surface);
    box-shadow:
        var(--awng-shadow-xs),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    font-family: var(--awng-font);
    color: var(--awng-ink);
}

.awng-cat-tabs__bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.awng-cat-tabs__tab {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    appearance: none;
    margin: 0;
    min-height: 52px;
    padding: 0.65rem 1.1rem;
    white-space: nowrap;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--awng-slate);
    background: transparent;
    border: none;
    border-inline-end: 1px solid rgba(15, 23, 42, 0.07);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition:
        background 0.3s var(--awng-ease),
        color 0.25s ease,
        box-shadow 0.3s var(--awng-ease),
        transform 0.2s var(--awng-ease);
}

.awng-cat-tabs__tab:last-child {
    border-inline-end: none;
}

.awng-cat-tabs__tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.72);
    color: var(--awng-teal-mid);
}

.awng-cat-tabs__tab.is-active {
    color: #fff;
    z-index: 1;
    background: linear-gradient(
        165deg,
        var(--awng-teal) 0%,
        var(--awng-teal-mid) 48%,
        var(--awng-teal-deep) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 20px rgba(69, 154, 154, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.awng-cat-tabs__tab.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

@media (max-width: 480px) {
    .awng-cat-tabs__tab {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        min-height: 48px;
        text-align: center;
    }
}

.awng-cat-tabs__panels {
    background: var(--awng-surface);
}

.awng-cat-tabs__panel {
    padding: 0;
}

.awng-cat-tabs__panel[hidden] {
    display: none !important;
}

.awng-cat-tabs__empty {
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--awng-muted);
    font-size: 0.9rem;
}

/*
 * عمودان: تعبئة عمودية (زي «الأكثر قراءة») — العمود الأيمن 1…n ثم العمود الأيسر…
 * في RTL: أول عمود بصرياً يمين = 1،2،3… ثم يسار.
 */
.awng-cat-tabs__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--awng-cat-rows, 4), auto);
    grid-auto-flow: column;
    gap: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.awng-cat-tabs__item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    text-decoration: none;
    color: inherit;
    border: none;
    background: var(--awng-surface);
    transition: background 0.2s ease;
}

.awng-cat-tabs__item:hover {
    background: rgba(69, 154, 154, 0.06);
}

.awng-cat-tabs__num {
    flex: 0 0 auto;
    min-width: 1.35rem;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--awng-teal);
    padding-top: 0.2rem;
}

.awng-cat-tabs__thumb {
    flex: 0 0 auto;
    width: 88px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--awng-page);
    aspect-ratio: 16 / 10;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.awng-cat-tabs__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.awng-cat-tabs__ph {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 52px;
    background: linear-gradient(140deg, #e8eef2, var(--awng-teal-soft));
}

.awng-cat-tabs__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: right;
}

.awng-cat-tabs__title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--awng-slate);
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.awng-cat-tabs__item:hover .awng-cat-tabs__title {
    color: var(--awng-teal-mid);
}

@media (max-width: 480px) {
    .awng-cat-tabs__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}

.awng-pin-badge {
    position: absolute;
    top: 0.45rem;
    inset-inline-end: 0.45rem;
    z-index: 2;
    max-width: calc(100% - 0.9rem);
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    background: #e5910c;
    box-shadow:
        0 3px 12px rgba(229, 145, 12, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    pointer-events: none;
    text-align: center;
}

