/*
 * theme.css — مرصد المهاجر اليمني
 * سمة: فيراني داكن + ذهبي
 * يُستدعى بعد style.css (Tailwind) في public_header.php
 * =========================================================
 * المتغيرات وإعادة ضبط الألوان
 * الهيدر: الصف الأول + الصف الثاني + القائمة المتنقلة
 * الفوتر
 * السلايدر وبطاقات الأخبار والرأي والتصنيفات
 * مساعدات وتجاوبية
 * =========================================================
 */


/* ═══════════════════════════════════════════════════════
   1. VARIABLES
═══════════════════════════════════════════════════════ */
:root {
    /* — Virani (خمري داكن) — */
    --virani:          #5C1020;
    --virani-dark:     #3D0A15;
    --virani-deeper:   #2A0710;
    --virani-mid:      #7A1A2E;
    --virani-light:    #9C3048;
    --virani-pale:     rgba(92, 16, 32, 0.08);

    /* — Gold — */
    --gold:            #C9A84C;
    --gold-light:      #E8C96A;
    --gold-dark:       #9C7A28;
    --gold-muted:      rgba(201, 168, 76, 0.15);
    --gold-border:     rgba(201, 168, 76, 0.35);

    /* — Neutrals — */
    --black:           #0D0D0D;
    --white:           #FFFFFF;
    --nav-bg:          #F0F0F2;       /* خلفية شريط الروابط */
    --body-bg:         #F5F5F6;
    --border-light:    #E2E2E6;

    /* — Text — */
    --text-dark:       #111111;
    --text-mid:        #444444;
    --text-muted:      #888888;
    --text-on-virani:  rgba(255,255,255,0.90);
    --text-on-virani-dim: rgba(255,255,255,0.55);

    /* — Layout — */
    --container:       1280px;
    --hdr-row1-h:      88px;    /* ارتفاع الصف الأول */
    --hdr-logo-h:      70px;    /* ارتفاع الشعار */
    --hdr-nav-h:       48px;    /* ارتفاع شريط الروابط */
    --hdr-gold-bar:    3px;     /* الخط الذهبي السفلي */

    /* — Radius & Transition — */
    --r:               6px;
    --r-sm:            4px;
    --r-lg:            10px;
    --t:               all 0.22s ease;
    --t-fast:          all 0.14s ease;

    /* — Tailwind compat — */
    --color-royal-green:       var(--virani);
    --color-royal-green-light: var(--virani-mid);
    --color-royal-gold:        var(--gold);
}


/* ═══════════════════════════════════════════════════════
   2. GLOBAL
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--body-bg);
    color: var(--text-dark);
    margin: 0;
    direction: rtl;
}

img { display: block; max-width: 100%; }


/* ═══════════════════════════════════════════════════════
   3. TAILWIND COLOUR OVERRIDES
═══════════════════════════════════════════════════════ */
.text-royal-green               { color: var(--virani)       !important; }
.bg-royal-green                 { background: var(--virani)  !important; }
.border-royal-green             { border-color: var(--virani)!important; }
.hover\:bg-royal-green:hover    { background: var(--virani-dark)  !important; }
.hover\:text-royal-green:hover  { color: var(--virani)       !important; }
.bg-royal-green-light           { background: var(--virani-mid)   !important; }
.text-royal-gold                { color: var(--gold)          !important; }
.bg-royal-gold                  { background: var(--gold)     !important; }
.border-royal-gold              { border-color: var(--gold)   !important; }
.hover\:text-royal-gold:hover   { color: var(--gold)          !important; }
.hover\:bg-royal-gold:hover     { background: var(--gold-light)   !important; }
.focus\:border-royal-green:focus{ border-color: var(--gold)   !important; }
.focus\:ring-royal-green:focus  { --tw-ring-color: var(--gold)!important; }
.social-btn { width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;transition:var(--t); }


/* ═══════════════════════════════════════════════════════
   4. HEADER WRAPPER
   يجعل الهيدر sticky ويحتوي على الصفين
═══════════════════════════════════════════════════════ */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,.30);
}

/* ─── الحاوية المشتركة (centered content) ─────────── */
.hdr-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}


/* ═══════════════════════════════════════════════════════
   5. HEADER ROW 1 — الشعار + البحث
   خلفية فيراني داكن ممتدة بعرض الصفحة
═══════════════════════════════════════════════════════ */
.hdr-row1 {
    background-color: var(--virani-dark);
    width: 100%;
}

.hdr-row1__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--hdr-row1-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── الشعار (يمين) ─────────────────────────────────── */
.hdr-logo {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.hdr-logo__img {
    height: var(--hdr-logo-h);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.hdr-logo__text {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hdr-logo__text em {
    color: var(--gold);
    font-style: normal;
}

/* ── نموذج البحث (يسار) ────────────────────────────── */
.hdr-search {
    flex: 1;
    max-width: 420px;
    /* في RTL: اليسار هو الطرف البعيد عن الشعار */
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: var(--r);
    overflow: hidden;
    transition: var(--t);
}

.hdr-search:focus-within {
    background: rgba(255,255,255,0.16);
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-muted);
}

.hdr-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: var(--white);
    direction: rtl;
}

.hdr-search__input::placeholder {
    color: rgba(255,255,255,0.45);
}

.hdr-search__btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    color: var(--virani-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
}

.hdr-search__btn:hover {
    background: var(--gold-light);
}

.hdr-search__btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* زر هامبرغر (موبايل فقط) */
.hdr-toggle {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--r-sm);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
}

.hdr-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
}

.hdr-toggle svg { width:20px; height:20px; }


/* ═══════════════════════════════════════════════════════
   6. HEADER ROW 2 — شريط الروابط (Navigation)
   خلفية رمادي فاتح ممتدة بعرض الصفحة
═══════════════════════════════════════════════════════ */
.hdr-nav-bar {
    background: var(--nav-bg);
    width: 100%;
    /* لا border هنا — الخط الذهبي بعرض المحتوى فقط عبر __inner */
}

.hdr-nav-bar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--hdr-nav-h);
    display: flex;
    align-items: stretch;
    /* الخط الذهبي بعرض المحتوى (1280px) فقط */
    border-bottom: var(--hdr-gold-bar) solid var(--gold);
}

/* ── رابط عام ──────────────────────────────────────── */
.hdr-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 100%;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: calc(-1 * var(--hdr-gold-bar));
    transition: color 0.18s, border-color 0.18s;
    position: relative;
}

.hdr-nav__link:hover,
.hdr-nav__link.active {
    color: var(--virani);
    border-bottom-color: var(--gold);
}

/* رابط الرئيسية — خاص */
.hdr-nav__link--home {
    background: var(--virani);
    color: var(--white);
    padding: 0 18px;
    border-radius: 0;
    border-bottom-color: transparent;
}

.hdr-nav__link--home:hover {
    background: var(--virani-mid);
    color: var(--white);
    border-bottom-color: transparent;
}


/* ═══════════════════════════════════════════════════════
   7. MOBILE MENU
═══════════════════════════════════════════════════════ */
.mob-menu {
    display: none;
    background: var(--virani-deeper);
    border-top: 2px solid var(--gold);
}

.mob-menu.is-open { display: block; }

.mob-menu__search {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mob-menu__search-form {
    display: flex;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r);
    overflow: hidden;
}

.mob-menu__search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: var(--white);
    direction: rtl;
}

.mob-menu__search-input::placeholder { color: rgba(255,255,255,0.35); }

.mob-menu__search-btn {
    background: var(--gold);
    border: none;
    color: var(--virani-dark);
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--t-fast);
}

.mob-menu__search-btn:hover { background: var(--gold-light); }
.mob-menu__search-btn svg { width:16px; height:16px; }

.mob-menu__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--t-fast);
}

.mob-menu__link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--gold);
    padding-right: 26px;
}

.mob-menu__link--home {
    background: var(--virani);
    color: var(--white);
}

.mob-menu__link--home:hover {
    background: var(--virani-mid);
    color: var(--white);
    padding-right: 26px;
}


/* ═══════════════════════════════════════════════════════
   8. ADS SPACING
═══════════════════════════════════════════════════════ */
.ads-wrap {
    max-width: var(--container);
    margin: 12px auto;
    padding: 0 24px;
}

.ads-row {
    max-width: var(--container);
    margin: 14px auto;
    padding: 0 24px;
}


/* ═══════════════════════════════════════════════════════
   9. FOOTER
   — خلفية فيراني داكن (نفس لون الهيدر تماماً)
   — العناوين: أبيض صريح #FFFFFF
   — الروابط: رمادي فاتح جداً، تحتها خط ذهبي عند التمرير
   — شريط الحقوق: نص أبيض، التطوير رمادي، الشركة ذهبي
═══════════════════════════════════════════════════════ */
.site-footer {
    /* نفس لون خلفية الهيدر الصف الأول تماماً */
    background: var(--virani-dark);
    color: #E0E0E0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--virani-dark), var(--gold), var(--gold-light), var(--virani-dark)
    );
}

.footer-pattern {
    position: absolute;
    inset: 0;
    opacity: .04;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg, var(--gold) 0, var(--gold) 1px,
        transparent 1px, transparent 28px
    );
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px 40px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 40px;
}

.footer-logo-img {
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .95;
    margin-bottom: 18px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.footer-desc {
    /* نص وصفي — أبيض خفيف لقراءة مريحة */
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.footer-social {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.footer-social__link {
    width: 36px;
    height: 36px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    transition: var(--t);
}

.footer-social__link svg { width:15px; height:15px; }

.footer-social__link:hover {
    background: var(--gold);
    color: var(--virani-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,.35);
}

/* عناوين الأعمدة — أبيض صريح */
.footer-col__title {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    margin: 0 0 18px;
    padding-inline-end: 12px;
    border-inline-end: 3px solid var(--gold);
    display: inline-block;
    line-height: 1.5;
}

/* الروابط السريعة */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links__link {
    /* رمادي فاتح جداً */
    color: #DDDDDD;
    text-decoration: none;
    font-size: 13px;
    transition: color .18s, border-color .18s;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.footer-links__link:hover {
    color: #FFFFFF;
    border-bottom-color: var(--gold);
}

/* معلومات الاتصال */
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact__icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* نصوص الاتصال — رمادي فاتح جداً */
.footer-contact__text  { color: #DDDDDD; font-size: 13px; line-height: 1.7; }
.footer-contact__email {
    color: #DDDDDD;
    font-size: 13px;
    text-decoration: none;
    transition: color .18s, border-color .18s;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.footer-contact__email:hover { color: #FFFFFF; border-bottom-color: var(--gold); }

/* النشرة البريدية */
.footer-newsletter-desc { color: #CCCCCC; font-size: 13px; line-height: 1.7; margin: 0 0 15px; }

.newsletter-form-box {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r);
    overflow: hidden;
    transition: var(--t);
}

.newsletter-form-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-muted);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 11px 14px;
    color: #FFFFFF;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    direction: rtl;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.40); }

.newsletter-btn {
    background: var(--gold);
    border: none;
    color: var(--virani-dark);
    padding: 0 16px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--t-fast);
    white-space: nowrap;
}

.newsletter-btn:hover { background: var(--gold-light); }
.newsletter-msg { font-size: 12px; margin-top: 8px; display: none; }
.newsletter-msg.success { color: var(--gold-light); display: block; }
.newsletter-msg.error   { color: #FCA5A5;           display: block; }

/* ── شريط الحقوق السفلي ────────────────────────── */
.footer-bar {
    /* أعمق قليلاً من خلفية الفوتر للفصل البصري */
    background: var(--virani-deeper);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 24px;
}

.footer-bar__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* نص حقوق الملكية — أبيض صريح */
.footer-bar__copy {
    color: #FFFFFF;
    font-size: 12px;
}

.footer-bar__copy a {
    color: #FFFFFF;
    font-weight: 800;
    text-decoration: none;
    margin: 0 4px;
    transition: color .18s;
}

.footer-bar__copy a:hover { color: var(--gold); }

/* نص التطوير — رمادي فاتح */
.footer-bar__credit {
    color: #BBBBBB;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* رابط الشركة المطورة — ذهبي */
.footer-bar__credit strong { color: var(--gold); }

.scroll-top-btn {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--t);
    z-index: 999;
    box-shadow: 0 4px 14px rgba(201,168,76,.40);
    font-size: 14px;
}

.scroll-top-btn:hover { background: var(--gold-light); transform: translateY(-2px); }
.scroll-top-btn.visible { opacity: 1; visibility: visible; }


/* ═══════════════════════════════════════════════════════
   10. HERO SLIDER
═══════════════════════════════════════════════════════ */
.hero-wrap { position: relative; background: #0D0D0D; overflow: hidden; }

.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    user-select: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .75s ease, transform .75s ease;
    transform: scale(1.025);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide__link { display: block; width: 100%; height: 100%; text-decoration: none; }

.hero-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.30) 55%,
        transparent 100%
    );
}

.hero-slide__content {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 30px 36px;
    z-index: 3;
}

.hero-slide__badge {
    display: inline-block;
    background: var(--virani);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: .4px;
    border: 1px solid var(--gold-border);
}

.hero-slide__title {
    color: var(--white);
    font-size: clamp(18px, 2.6vw, 36px);
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    transition: color .3s;
}

.hero-slide__link:hover .hero-slide__title { color: var(--gold-light); }

.hero-slide__summary {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 700px;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,.45);
    border: 1.5px solid var(--gold-border);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
    outline: none;
    -webkit-appearance: none;
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.slider-arrow--prev { right: 16px; }
.slider-arrow--next { left:  16px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.30);
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition: var(--t);
}

.slider-dot.active {
    background: var(--gold);
    width: 22px;
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════
   11. SECTION HEADINGS
═══════════════════════════════════════════════════════ */
.page-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    font-family: 'Tajawal', sans-serif;
}

.section-title__bar {
    width: 4px;
    height: 24px;
    background: var(--gold);
    border-radius: 3px;
    flex-shrink: 0;
}

.section-title--light { color: var(--white); }

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    background: var(--white);
    border: 1.5px solid var(--border-light);
    padding: 5px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}

.section-more:hover { border-color: var(--gold); color: var(--virani); }

.section-more--dark {
    color: var(--gold);
    background: rgba(201,168,76,.08);
    border-color: var(--gold-border);
}

.section-more--dark:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   12. NEWS CARDS (Latest)
═══════════════════════════════════════════════════════ */
.latest-section { padding: 44px 0; background: var(--body-bg); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: var(--t);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    border-color: var(--gold-border);
}

.news-card__img { aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.news-card:hover .news-card__img img { transform: scale(1.05); }

.news-card__body { padding: 15px 17px; display: flex; flex-direction: column; flex: 1; }

.news-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    text-decoration: none;
    transition: color .18s;
}

.news-card__title:hover { color: var(--virani); }

.news-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #F2F2F2;
}

.news-card__date { font-size: 11px; color: var(--text-muted); font-weight: 700; }

.news-card__arrow {
    width: 27px;
    height: 27px;
    background: #F5F5F5;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--t-fast);
    font-size: 11px;
    flex-shrink: 0;
}

.news-card__arrow:hover { background: var(--gold); color: var(--black); }


/* ═══════════════════════════════════════════════════════
   13. OPINION SECTION & CARDS
═══════════════════════════════════════════════════════ */
.opinion-section {
    background: #111;
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.opinion-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #111, var(--gold), var(--gold-light), #111);
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.opinion-card {
    background: #1C1C1C;
    border: 1px solid #2A2A2A;
    border-radius: var(--r-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}

.opinion-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.opinion-card:hover { border-color: #383838; transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.opinion-card:hover::after { transform: scaleX(1); }

.opinion-card__writer { display: flex; align-items: center; gap: 12px; }

.opinion-card__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.opinion-card__photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 900;
    color: var(--black);
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.js-hidden { display: none; }

.opinion-card__writer-name { color: #DDD; font-weight: 800; font-size: 14px; text-decoration: none; display: block; transition: color .18s; }
.opinion-card__writer-name:hover { color: var(--gold); }
.opinion-card__writer-job { color: var(--gold); font-size: 11px; margin-top: 3px; opacity: .85; }

.opinion-card__title {
    color: #DDD;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    flex: 1;
    transition: color .2s;
}

.opinion-card__title:hover { color: var(--gold); }

.opinion-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid #282828;
}

.opinion-card__date { font-size: 11px; color: #555; }

.opinion-card__more {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .18s;
}

.opinion-card__more:hover { gap: 8px; }


/* ═══════════════════════════════════════════════════════
   14. CATEGORY 1
═══════════════════════════════════════════════════════ */
.cat1-section { background: #1A1A1A; padding: 44px 0; }

.cat1-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat1-card { background: #222; border-radius: var(--r-lg); overflow: hidden; border: 1px solid #2E2E2E; transition: var(--t); }
.cat1-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.cat1-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.cat1-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cat1-card:hover .cat1-card__img img { transform: scale(1.05); }
.cat1-card__body { padding: 13px 15px; }
.cat1-card__title { color: #CCC; font-size: 13px; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; display: block; transition: color .18s; }
.cat1-card__title:hover { color: var(--gold); }
.cat1-card__date { margin-top: 9px; font-size: 11px; color: #555; }


/* ═══════════════════════════════════════════════════════
   15. CATEGORY COLUMNS
═══════════════════════════════════════════════════════ */
.catcol-section { background: #F7F7F8; padding: 52px 0; }

.catcol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catcol__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #E8E8E8; }

.catcol__title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 900; color: var(--text-dark); margin: 0; font-family: 'Tajawal', sans-serif; }
.catcol__title-bar { width: 4px; height: 20px; background: var(--gold); border-radius: 3px; flex-shrink: 0; }
.catcol__more { font-size: 11px; font-weight: 700; color: #AAA; text-decoration: none; letter-spacing: .6px; transition: color .18s; }
.catcol__more:hover { color: var(--virani); }

.catcol__featured-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.08); display: block; }
.catcol__featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.catcol__featured-img:hover img { transform: scale(1.04); }

.catcol__featured-title { font-size: 15px; font-weight: 800; color: var(--text-dark); text-decoration: none; line-height: 1.55; display: block; margin-bottom: 16px; transition: color .18s; }
.catcol__featured-title:hover { color: var(--virani); }

.catcol__list { list-style: none; margin: 0; padding: 0; }

.catcol__list-item { display: flex; align-items: flex-start; gap: 9px; padding: 12px 0; border-bottom: 1px dashed #E5E5E5; }
.catcol__list-item:last-child { border-bottom: none; }

.catcol__list-dot { flex-shrink: 0; margin-top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .55; transition: opacity .18s; }
.catcol__list-item:hover .catcol__list-dot { opacity: 1; }

.catcol__list-title { font-size: 13px; font-weight: 700; color: #333; line-height: 1.6; text-decoration: none; transition: color .18s; }
.catcol__list-title:hover { color: var(--virani); }


/* ═══════════════════════════════════════════════════════
   16. HOMEPAGE — index.php
   idx-* prefix لعزل أنماط الصفحة الرئيسية
═══════════════════════════════════════════════════════ */

/* ── مساعدات مشتركة ───────────────────────────────── */
.idx-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    font-family: 'Tajawal', sans-serif;
}

.idx-section-title h2,
.idx-section-title h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.idx-section-title--light { color: var(--white); }

.idx-section-title__bar {
    width: 4px;
    height: 22px;
    background: var(--gold);
    border-radius: 3px;
    flex-shrink: 0;
}

.idx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.idx-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    background: var(--white);
    border: 1.5px solid var(--border-light);
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}

.idx-more-link:hover { border-color: var(--gold); color: var(--virani); }

.idx-more-link--dark {
    color: var(--gold);
    background: rgba(201,168,76,.08);
    border-color: var(--gold-border);
}

.idx-more-link--dark:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}


/* ── [A] القسم الرئيسي: 66% + 34% ───────────────── */
.idx-section-a {
    background: var(--body-bg);
    padding: 20px 0 28px;
}

.idx-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.idx-main-col  { min-width: 0; }
.idx-sidebar-col { min-width: 0; }


/* ── السلايدر (داخل idx-main-col) ────────────────── */
.idx-slider-wrap {
    position: relative;
    background: #111;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 22px;
    /* ارتفاع ثابت يتناسب مع عرض 66% */
    height: 380px;
}

.idx-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
    transform: scale(1.02);
    z-index: 1;
}

.idx-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.idx-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.idx-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.25) 55%,
        transparent 100%
    );
}

.idx-slide__content {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    padding: 20px 24px;
    z-index: 3;
}

.idx-slide__badge {
    display: inline-block;
    background: var(--virani);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
    letter-spacing: .4px;
    border: 1px solid var(--gold-border);
}

.idx-slide__title {
    color: var(--white);
    font-size: clamp(15px, 1.9vw, 26px);
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    transition: color .25s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idx-slide__link:hover .idx-slide__title { color: var(--gold-light); }

.idx-slide__summary {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* أزرار الأسهم */
.idx-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,.50);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
    outline: none;
}

.idx-slide-arrow:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.idx-slide-arrow--prev { right: 12px; }
.idx-slide-arrow--next { left:  12px; }

/* نقاط التنقل */
.idx-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.idx-slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.30);
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: var(--t);
}

.idx-slide-dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 4px;
}


/* ── أحدث التحديثات (تحت السلايدر) ──────────────── */
.idx-updates {
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.idx-updates__head {
    padding: 14px 18px 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 0;
    padding-bottom: 10px;
}

.idx-updates__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.idx-updates__col {
    padding: 8px 0;
}

.idx-updates__col:first-child {
    border-inline-end: 1px solid var(--border-light);
}

/* بطاقة الخبر الأفقية */
.idx-lnews-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #F4F4F4;
    transition: background .15s;
}

.idx-lnews-item:last-child { border-bottom: none; }
.idx-lnews-item:hover { background: #FAFAFA; }

.idx-lnews-item__img {
    flex-shrink: 0;
    width: 90px;
    height: 62px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
}

.idx-lnews-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.idx-lnews-item:hover .idx-lnews-item__img img { transform: scale(1.06); }

.idx-lnews-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.idx-lnews-item__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.55;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.idx-lnews-item__title:hover { color: var(--virani); }

.idx-lnews-item__date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}


/* ── السايدبار (الأنماط الخاصة بـ public_sidebar.php) */
/* الملف يستخدم Tailwind classes مباشرة — لا نستبدلها */
/* نضيف wrapper فقط لضبط المسافات */
.idx-sidebar-col aside {
    position: sticky;
    top: calc(var(--hdr-row1-h) + var(--hdr-nav-h) + 12px);
}


/* ── [B] تصنيف 20 ────────────────────────────────── */
.idx-cat20-section {
    background: var(--white);
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
}

.idx-cat20-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* الخبر الكبير */
.idx-cat20-big { display: flex; flex-direction: column; gap: 0; }

.idx-cat20-big__img-wrap {
    position: relative;
    display: block;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.idx-cat20-big__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    display: block;
}

.idx-cat20-big__img-wrap:hover .idx-cat20-big__img { transform: scale(1.04); }

.idx-cat20-big__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.15) 0%, transparent 60%);
}

.idx-cat20-big__body {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 16px 18px;
}

.idx-cat20-big__title {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color .18s;
}

.idx-cat20-big__title:hover { color: var(--virani); }

.idx-cat20-big__summary {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0 0 10px;
}

.idx-cat20-big__date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* الأخبار الثلاثة اليسارية */
.idx-cat20-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.idx-cat20-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F0F0F0;
    transition: background .15s;
}

.idx-cat20-item:last-child { border-bottom: none; }
.idx-cat20-item:hover { background: #FAFAFA; }

.idx-cat20-item__img-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 82px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
}

.idx-cat20-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}

.idx-cat20-item:hover .idx-cat20-item__img { transform: scale(1.05); }

.idx-cat20-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.idx-cat20-item__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.55;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
}

.idx-cat20-item__title:hover { color: var(--virani); }

.idx-cat20-item__date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}


/* ── [C] أعمدة التصنيفات (9، 11، 23) ─────────────── */
.idx-catcols-section {
    background: var(--body-bg);
    padding: 32px 0 40px;
    border-top: 1px solid var(--border-light);
}

.idx-catcols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.idx-catcol { display: flex; flex-direction: column; gap: 0; }

.idx-catcol__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.idx-catcol .idx-section-title { font-size: 16px; }
.idx-catcol .idx-section-title__bar { height: 20px; }

.idx-catcol__more {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .5px;
    transition: color .15s;
}

.idx-catcol__more:hover { color: var(--virani); }

/* صورة الخبر المميز */
.idx-catcol__feat-img {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.idx-catcol__feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
    display: block;
}

.idx-catcol__feat-img:hover img { transform: scale(1.04); }

.idx-catcol__feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.12) 0%, transparent 60%);
    transition: opacity .25s;
}

.idx-catcol__feat-img:hover .idx-catcol__feat-overlay { opacity: .6; }

/* عنوان الخبر المميز */
.idx-catcol__feat-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.5;
    text-decoration: none;
    padding: 12px 14px 14px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--gold);
    border-bottom: none;
    margin-bottom: 0;
    transition: color .18s;
}

.idx-catcol__feat-title:hover { color: var(--virani); }

/* قائمة الأخبار الأربعة */
.idx-catcol__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    overflow: hidden;
}

.idx-catcol__list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #F2F2F2;
    transition: background .14s;
}

.idx-catcol__list-item:last-child { border-bottom: none; }
.idx-catcol__list-item:hover { background: #FAFAFA; }

.idx-catcol__list-img-wrap {
    flex-shrink: 0;
    width: 66px;
    height: 48px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
}

.idx-catcol__list-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.idx-catcol__list-item:hover .idx-catcol__list-img-wrap img { transform: scale(1.06); }

.idx-catcol__list-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.55;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
    flex: 1;
    min-width: 0;
    align-self: center;
}

.idx-catcol__list-title:hover { color: var(--virani); }


/* ═══════════════════════════════════════════════════════
   17. RESPONSIVE
═══════════════════════════════════════════════════════ */

/* ── Tablet: 768px – 1024px ─────────────────────── */
@media (max-width: 1024px) {
    .hdr-row1__inner,
    .hdr-nav-bar__inner { padding: 0 16px; }
    .hdr-search         { max-width: 320px; }

    .news-grid    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .opinion-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cat1-grid    { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .catcol-grid  { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer__inner{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .page-wrap    { padding: 0 16px; }
    .ads-wrap,
    .ads-row      { padding: 0 16px; }

    /* Homepage idx */
    .idx-main-grid       { grid-template-columns: 1fr 280px; gap: 18px; }
    .idx-cat20-grid      { grid-template-columns: 1fr 300px; gap: 18px; }
    .idx-catcols-grid    { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .idx-slider-wrap     { height: 320px; }
    .idx-updates__grid   { grid-template-columns: 1fr; }
    .idx-updates__col:first-child { border-inline-end: none; border-bottom: 1px solid var(--border-light); }
}

/* ── Mobile: 576px – 767px ───────────────────────── */
@media (max-width: 767px) {
    :root { --hdr-row1-h: 62px; --hdr-logo-h: 48px; }

    .hdr-toggle      { display: flex; }
    .hdr-search      { display: none; }
    .hdr-nav-bar     { display: none; }
    .hdr-row1__inner { padding: 0 14px; gap: 12px; }

    .page-wrap { padding: 0 14px; }
    .ads-wrap, .ads-row { padding: 0 14px; }

    /* Homepage idx — stack vertically */
    .idx-main-grid       { grid-template-columns: 1fr; gap: 16px; }
    .idx-sidebar-col aside { position: static; }
    .idx-slider-wrap     { height: 230px; margin-bottom: 16px; }
    .idx-slide__content  { padding: 14px 14px; }
    .idx-slide__summary  { display: none; }
    .idx-slide__badge    { font-size: 10px; padding: 3px 10px; margin-bottom: 6px; }
    .idx-slide__title    { font-size: clamp(14px, 4vw, 20px); }
    .idx-slide-arrow     { width: 30px; height: 30px; }
    .idx-slide-arrow--prev { right: 8px; }
    .idx-slide-arrow--next { left:  8px; }

    .idx-updates__grid   { grid-template-columns: 1fr; }
    .idx-updates__col:first-child { border-inline-end: none; border-bottom: 1px solid var(--border-light); }

    .idx-cat20-grid      { grid-template-columns: 1fr; gap: 0; }
    .idx-cat20-big__img-wrap { border-radius: var(--r-lg); }
    .idx-cat20-big__body { border-radius: var(--r-lg); border: 1px solid var(--border-light); border-top: none; }
    .idx-cat20-side      { margin-top: 14px; }
    .idx-cat20-item__img-wrap { width: 90px; height: 64px; }

    .idx-catcols-grid    { grid-template-columns: 1fr; gap: 20px; }

    /* General content */
    .hero-slider         { height: 260px; }
    .hero-slide__content { padding: 16px 14px; }
    .hero-slide__summary { display: none; }
    .hero-slide__badge   { font-size: 10px; padding: 3px 10px; margin-bottom: 8px; }
    .hero-slide__title   { font-size: clamp(15px, 4.5vw, 22px); }
    .slider-arrow        { width: 34px; height: 34px; }
    .slider-arrow--prev  { right: 10px; }
    .slider-arrow--next  { left:  10px; }

    .latest-section  { padding: 32px 0; }
    .opinion-section { padding: 36px 0; }
    .cat1-section    { padding: 32px 0; }
    .catcol-section  { padding: 36px 0; }
    .section-head    { margin-bottom: 18px; }
    .section-title   { font-size: 17px; }

    .news-grid    { grid-template-columns: 1fr;            gap: 14px; }
    .opinion-grid { grid-template-columns: 1fr;            gap: 14px; }
    .cat1-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .catcol-grid  { grid-template-columns: 1fr;            gap: 22px; }
    .footer__inner{ grid-template-columns: 1fr;            gap: 24px; }

    .footer__inner      { padding: 36px 16px 28px; }
    .footer-bar         { padding: 12px 16px; }
    .footer-bar__inner  { flex-direction: column; align-items: flex-start; gap: 4px; }
    .scroll-top-btn     { bottom: 16px; left: 16px; }
}

/* ── Small Mobile: ≤ 480px ───────────────────────── */
@media (max-width: 480px) {
    :root { --hdr-row1-h: 58px; --hdr-logo-h: 44px; }

    .hdr-row1__inner { padding: 0 12px; }
    .page-wrap       { padding: 0 12px; }
    .ads-wrap, .ads-row { padding: 0 12px; }

    .idx-slider-wrap     { height: 190px; }
    .idx-slide__title    { font-size: clamp(13px, 3.8vw, 17px); }
    .idx-lnews-item__img { width: 72px; height: 52px; }
    .idx-cat20-item__img-wrap { width: 76px; height: 54px; }
    .idx-catcol__list-img-wrap { width: 54px; height: 40px; }

    .hero-slider         { height: 210px; }
    .hero-slide__title   { font-size: clamp(14px, 4vw, 18px); }
    .slider-arrow        { width: 30px; height: 30px; }

    .cat1-grid       { grid-template-columns: 1fr; gap: 12px; }
    .news-card__body { padding: 12px 13px; }
    .opinion-card    { padding: 16px; }

    .mob-menu__link  { padding: 11px 16px; font-size: 13px; }
    .mob-menu__search{ padding: 10px 12px; }
}

/* ── Very Small: ≤ 360px ─────────────────────────── */
@media (max-width: 360px) {
    :root { --hdr-row1-h: 54px; --hdr-logo-h: 40px; }
    .hero-slider     { height: 180px; }
    .hdr-logo__img   { max-width: 140px; }
}
