/* Al-Watan Global - Unique Stylesheet */
:root {
    --primary: #1E3A8A;
    --secondary: #0284C7;
    --accent: #0369A1;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #0F172A;
    --border: rgba(0, 0, 0, 0.08);
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-heading-ar: 'Noto Naskh Arabic', serif;
    --font-en: 'Merriweather', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

html[lang="ar"] body {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top utility bar */
.top-bar {
    background: #0F172A;
    color: #64748B;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-links a {
    color: #CBD5E1;
    margin-inline-start: 14px;
}
.top-links a:hover {
    color: #FFFFFF;
}

/* Header */
.main-header {
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo-link svg {
    height: 44px;
    width: auto;
    display: block;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.04);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border);
}
.btn-lang:hover {
    background: var(--primary);
    color: #FFF !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

/* Breaking News Ticker */
.breaking-ticker {
    background: var(--primary);
    color: #FFF;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
}
.ticker-badge {
    background: rgba(0,0,0,0.25);
    padding: 8px 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ticker-badge .pulse {
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}
.ticker-content {
    padding: 8px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.ticker-content a {
    color: #FFF;
}

/* Main layout cards */
.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.card-img-wrap {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #E2E8F0;
}
.card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .card-img-wrap img {
    transform: scale(1.05);
}
.card-cat-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--primary);
    color: #FFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-excerpt {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    margin-top: auto;
    font-size: 12px;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UNIQUE LAYOUT STYLES ACCORDING TO THEME */

/* Theme: Diplomatic Global */
.dual-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}
.dual-col {
    background: #FFF;
    border-top: 4px solid #1E3A8A;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Mobile & Tablet Responsive */
@media (max-width: 1024px) {
    .broadcast-grid, .tabloid-grid, .finance-dashboard-grid, .broadsheet-grid, .dual-editorial-grid {
        grid-template-columns: 1fr !important;
    }
    .magazine-masonry {
        column-count: 2 !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .magazine-masonry {
        column-count: 1 !important;
    }
    .hero-story-lead {
        height: 340px !important;
    }
    .hero-story-overlay h1 {
        font-size: 20px !important;
    }
}

/* Modal and Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFF;
    font-size: 32px;
    cursor: pointer;
}

/* Off-canvas mobile drawer */
body.drawer-open {
    overflow: hidden !important;
    touch-action: none !important;
}

.mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 290px !important;
    max-width: 85vw !important;
    background: var(--card-bg, #ffffff) !important;
    color: var(--text, #0f172a) !important;
    z-index: 999999 !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35) !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
    box-sizing: border-box !important;
}

/* RTL (Arabic default) - Pinned to the RIGHT edge */
html[dir="rtl"] .mobile-drawer,
html[lang="ar"] .mobile-drawer,
body[dir="rtl"] .mobile-drawer {
    right: 0 !important;
    left: auto !important;
    transform: translateX(105%) !important;
    visibility: hidden !important;
}

/* LTR (English) - Pinned to the LEFT edge */
html[dir="ltr"] .mobile-drawer,
html[lang="en"] .mobile-drawer,
body[dir="ltr"] .mobile-drawer {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-105%) !important;
    visibility: hidden !important;
}

/* Open State for RTL and LTR */
.mobile-drawer.open,
html[dir="rtl"] .mobile-drawer.open,
html[lang="ar"] .mobile-drawer.open,
html[dir="ltr"] .mobile-drawer.open,
html[lang="en"] .mobile-drawer.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Drawer Backdrop */
.drawer-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    z-index: 999990 !important;
    cursor: pointer !important;
}

.drawer-backdrop.active {
    display: block !important;
}

.mobile-menu-btn {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative !important;
    z-index: 50 !important;
}

.mobile-menu-btn i {
    pointer-events: none !important;
}

/* Authentic Editorial Typography */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .article-title, html[lang="ar"] .card h1, html[lang="ar"] .card h2, html[lang="ar"] .card h3, html[lang="ar"] .card h4 {
    font-family: var(--font-heading-ar) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}
html[lang="ar"] body, html[lang="ar"] p, html[lang="ar"] .article-main-body {
    font-family: var(--font-ar);
}


/* === SINGLE-LINE HEADER & CRISP TYPOGRAPHY ENFORCEMENT === */
.main-header {
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 0 !important;
    gap: 16px !important;
}
.logo-link {
    flex-shrink: 0 !important;
}
.logo-link img, .logo-link svg {
    height: 42px !important;
    width: auto !important;
    display: block !important;
}
.main-nav {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.main-nav ul {
    display: flex !important;
    list-style: none !important;
    gap: 14px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}
.main-nav a {
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 6px 6px !important;
    position: relative !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: color 0.2s ease !important;
}
.header-actions {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.btn-lang {
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
}
.breaking-ticker {
    white-space: nowrap !important;
    overflow: hidden !important;
}
.ticker-content {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ticker-content a {
    white-space: nowrap !important;
}

/* Crisp Editorial Headline Styling */
.card-title, .feed-item h4, .hero-story-overlay h1, .news-card h3 {
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}


/* ============================================================
   MOBILE VIEWPORT TIGHTENING & REFINEMENT ENGINE (<= 991px, <= 768px, <= 480px)
   ============================================================ */

@media (max-width: 991px) {
    .container {
        padding: 0 12px !important;
    }
    
    /* Layout Grids Collapse */
    .article-layout-grid,
    div[style*="grid-template-columns:1fr 320px"],
    div[style*="grid-template-columns: 1fr 320px"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .broadcast-grid, .tabloid-grid, .finance-dashboard-grid, 
    .broadsheet-grid, .dual-editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    .magazine-masonry {
        column-count: 1 !important;
        gap: 12px !important;
    }
    
    aside, .article-sidebar {
        width: 100% !important;
        position: static !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    /* 1. Header & Navigation Tightening */
    .top-bar {
        padding: 4px 0 !important;
        font-size: 11px !important;
    }
    .top-bar-inner {
        gap: 8px !important;
    }
    .top-date {
        font-size: 11px !important;
    }
    .top-links a {
        margin-inline-start: 10px !important;
        font-size: 11px !important;
    }
    
    .main-header {
        padding: 0 !important;
    }
    .header-inner {
        padding: 8px 0 !important;
        gap: 8px !important;
    }
    .logo-link img, .logo-link svg {
        height: 32px !important;
        max-width: 140px !important;
    }
    .main-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 19px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        cursor: pointer !important;
    }
    .btn-lang {
        padding: 4px 10px !important;
        font-size: 11.5px !important;
        border-radius: 14px !important;
    }
    
    /* 2. Breaking News Ticker Tightening */
    .breaking-ticker {
        font-size: 12px !important;
        height: 34px !important;
    }
    .ticker-badge {
        padding: 4px 10px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
    }
    .ticker-content {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    
    /* 3. Containers & Spacing */
    main.container {
        margin-top: 14px !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }
    
    /* 4. News Cards Tightening */
    .news-card {
        border-radius: 8px !important;
        margin-bottom: 10px !important;
    }
    .card-body {
        padding: 10px 12px !important;
    }
    .card-img-wrap {
        padding-top: 50% !important;
    }
    .card-title, .news-card h3, .news-card h2 {
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin-bottom: 5px !important;
    }
    .card-excerpt {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: 2 !important;
    }
    .card-cat-badge {
        font-size: 10px !important;
        padding: 2px 7px !important;
        top: 6px !important;
        inset-inline-start: 6px !important;
        border-radius: 3px !important;
    }
    .card-meta {
        font-size: 11px !important;
        margin-top: 4px !important;
    }
    
    /* 5. Article Details Tightening */
    article, .article-card-wrapper {
        padding: 14px 12px !important;
        border-radius: 8px !important;
    }
    article h1, .article-headline-title {
        font-size: 19px !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    article nav, .article-breadcrumbs {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    article figure {
        margin-bottom: 14px !important;
    }
    article figure img {
        max-height: 220px !important;
        border-radius: 6px !important;
    }
    .article-main-body, .article-main-body p {
        font-size: 15.5px !important;
        line-height: 1.75 !important;
        margin-bottom: 14px !important;
    }
    
    /* Article Meta & Font Resizer Bar */
    div[style*="justify-content:space-between"][style*="border-bottom"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
        font-size: 11.5px !important;
    }
    
    /* Social Share Buttons */
    div[style*="justify-content:space-between"][style*="border-top"],
    div[style*="align-items:center"][style*="border-top"][style*="border-bottom"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        margin: 16px 0 !important;
    }
    div[style*="border-top"][style*="border-bottom"] a {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    /* Recommendations to Read */
    .recommended-reading-block {
        margin: 20px 0 !important;
        padding-top: 14px !important;
    }
    .recommended-reading-block h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    .recommended-reading-block > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* 6. Form Rows & Inputs (Collapsing side-by-side inputs) */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    .form-row-2col {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
    
    form#comment-form, .contact-card-box {
        padding: 14px 12px !important;
        margin-bottom: 20px !important;
    }
    input[type="text"], input[type="email"], select, textarea {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    /* Google reCAPTCHA Box */
    .google-recaptcha-box {
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
    }
    .google-recaptcha-box label {
        font-size: 12px !important;
        gap: 8px !important;
    }
    .google-recaptcha-box input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Comments List */
    .comments-list div, div[style*="border-radius:8px"][style*="padding:16px"] {
        padding: 10px 12px !important;
    }
    .comments-list p {
        font-size: 13px !important;
    }
    
    /* 7. Footer Tightening */
    footer, .site-main-footer {
        padding: 24px 0 14px 0 !important;
        margin-top: 24px !important;
    }
    footer > .container[style*="grid"], .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-bottom: 18px !important;
    }
    footer img {
        height: 32px !important;
        margin-bottom: 8px !important;
    }
    footer p {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }
    footer h4 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    footer ul {
        gap: 6px !important;
        font-size: 13px !important;
    }
    footer a.btn-cta-footer, footer a[style*="padding:8px 16px"], footer a[style*="padding:10px 18px"] {
        padding: 8px 14px !important;
        font-size: 12px !important;
        display: inline-block !important;
    }
    footer div[style*="border-top:1px solid"] {
        padding-top: 12px !important;
        font-size: 11px !important;
    }
    
    /* 8. Off-Canvas Drawer Tightening */
    .mobile-drawer {
        width: 260px !important;
        padding: 16px !important;
    }
    .mobile-drawer strong {
        font-size: 16px !important;
    }
    .mobile-drawer ul {
        gap: 8px !important;
    }
    .mobile-drawer a {
        font-size: 14px !important;
        padding: 4px 0 !important;
    }

    /* 9. Archetype Specific Responsive Refinements */
    .lead-article-media-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .lead-article-media-row img {
        width: 100% !important;
        height: 180px !important;
    }
    .awraaq-dual-grid, .khaleej-grid, .category-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .prayer-times-widget {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    .prayer-item {
        font-size: 11px !important;
    }
    .prayer-item strong {
        display: block !important;
        font-size: 10px !important;
    }
    .royal-decrees-bar, .ai-radar-card {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .royal-decrees-bar h2, .ai-radar-card h2 {
        font-size: 16px !important;
    }
    .royal-decrees-bar .fa-shield-halved, .ai-radar-card .fa-robot {
        display: none !important;
    }
    .investigative-hero-wrap {
        height: 240px !important;
    }
    .investigative-hero-overlay {
        padding: 14px !important;
    }
    .investigative-hero-overlay h1 {
        font-size: 18px !important;
    }
    .maghreb-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        font-size: 12px !important;
    }
    .dual-editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .dual-col {
        padding: 14px 12px !important;
    }
}

@media (max-width: 480px) {
    /* Super-compact adjustments for small smartphones (iPhone SE, Galaxy A series, etc.) */
    .top-links a[href*="rss.php"] {
        display: none !important; /* Hide RSS link in tiny top bar */
    }
    .top-date {
        font-size: 10.5px !important;
    }
    .logo-link img, .logo-link svg {
        height: 28px !important;
        max-width: 120px !important;
    }
    .btn-lang {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    .hero-story-lead {
        height: 240px !important;
    }
    .hero-story-overlay h1 {
        font-size: 16px !important;
    }
    .markets-panel {
        padding: 10px !important;
    }
    .market-ticker-bar {
        font-size: 11px !important;
        gap: 12px !important;
    }
}


/* ========================================================
   Phase 1: Website-Specific Image Branding (HTML/CSS Overlay)
   Lightweight, zero duplication, responsive overlay badge
   ======================================================== */
.brand-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: #000;
}
.brand-image-wrapper .article-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.brand-image-wrapper:hover .article-featured-img {
    transform: scale(1.015);
}
.brand-image-overlay {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    pointer-events: none;
}
[dir="rtl"] .brand-image-overlay {
    right: 16px;
    left: auto;
}
[dir="ltr"] .brand-image-overlay {
    left: 16px;
    right: auto;
}
.brand-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.brand-badge-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
@media (max-width: 640px) {
    .brand-image-overlay {
        bottom: 10px;
    }
    [dir="rtl"] .brand-image-overlay {
        right: 10px;
    }
    [dir="ltr"] .brand-image-overlay {
        left: 10px;
    }
    .brand-badge-pill {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }
    .brand-badge-icon {
        width: 6px;
        height: 6px;
    }
}

.brand-badge-pill {
    background: rgba(30, 58, 138, 0.90);
    color: #F0F9FF;
    border: 1px solid #0284C7;
}
.brand-badge-icon {
    background: #0284C7;
    box-shadow: 0 0 8px #0284C7;
}


/* === VIBRANT EDITORIAL MULTI-COLUMN FOOTER === */
.site-main-footer {
    background: #0B1120 !important;
    color: #64748B !important;
    margin-top: 60px !important;
    padding: 60px 0 0 0 !important;
    border-top: 4px solid var(--primary, #C4122F) !important;
    position: relative !important;
}
.site-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.footer-top-grid {
    display: grid !important;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.5fr !important;
    gap: 36px !important;
    padding-bottom: 45px !important;
}
.footer-brand .footer-logo {
    height: 44px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}
.footer-brand .footer-logo:hover {
    transform: scale(1.03);
}
.footer-slogan {
    font-size: 14.5px;
    line-height: 1.6;
    color: #E2E8F0;
    font-weight: 600;
    margin-bottom: 10px;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748B;
    margin-bottom: 18px;
}
.footer-social-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    margin-bottom: 10px;
    font-weight: 700;
}
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1E293B;
    color: #CBD5E1 !important;
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}
.footer-social-btn:hover {
    transform: translateY(-3px);
    color: #FFFFFF !important;
}
.footer-social-btn.tw:hover { background: #000000; }
.footer-social-btn.fb:hover { background: #1877F2; }
.footer-social-btn.tg:hover { background: #229ED9; }
.footer-social-btn.yt:hover { background: #FF0000; }
.footer-social-btn.wa:hover { background: #25D366; }
.footer-social-btn.li:hover { background: #0A66C2; }
.footer-social-btn.rss:hover { background: #F97316; }

.footer-col-title {
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 28px;
    height: 2px;
    background: var(--primary, #C4122F);
    border-radius: 2px;
}

.footer-cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.footer-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748B !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.footer-cat-link i {
    font-size: 11px;
    color: #64748B;
    transition: color 0.2s, transform 0.2s;
    width: 14px;
}
.footer-cat-link:hover {
    color: #FFFFFF !important;
    transform: translateX(-3px);
}
html[dir="ltr"] .footer-cat-link:hover,
html[lang="en"] .footer-cat-link:hover {
    transform: translateX(3px);
}
.footer-cat-link:hover i {
    color: var(--primary, #C4122F);
}

.footer-trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.footer-trending-item:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
.trending-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
    background: #334155;
}
.trending-rank-1 { background: linear-gradient(135deg, #EF4444, #DC2626); }
.trending-rank-2 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.trending-rank-3 { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.footer-trending-info {
    flex: 1;
    min-width: 0;
}
.footer-trending-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #E2E8F0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.footer-trending-item:hover .footer-trending-title {
    color: #FFFFFF;
}
.footer-trending-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #64748B;
}
.footer-trending-views {
    color: #10B981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pulse-dot-red {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pulse-dot-green {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.footer-quick-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.footer-quick-links a {
    color: #64748B !important;
    text-decoration: none !important;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-quick-links a:hover {
    color: #FFFFFF !important;
}
.footer-badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #CBD5E1;
    background: rgba(30, 41, 59, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-sub-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    gap: 12px;
    font-size: 12.5px;
    color: #64748B;
}
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-publisher-tag {
    color: #64748B;
    font-weight: 600;
}
.footer-live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}
@media (max-width: 640px) {
    .footer-top-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .footer-quick-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-sub-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Central Controller editable social platforms */
.footer-social-btn.ig:hover { background: #E4405F; }
.footer-social-btn.tt:hover { background: #000000; }
.footer-social-btn.th:hover { background: #000000; }
.footer-social-btn.sc:hover { background: #FFFC00; color: #000000; }
.footer-social-btn.web:hover { background: #2563EB; }
.footer-social-btn.rss:hover { background: #F97316; }

/* =========================================================
   Country Identity Badges (الأوسمة الجغرافية الإقليمية)
   ========================================================= */
.card-country-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.88);
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 10 !important;
    line-height: 1.2;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

[dir="rtl"] .card-country-badge,
html[lang="ar"] .card-country-badge {
    right: auto !important;
    left: 10px !important;
}

[dir="ltr"] .card-country-badge,
html[lang="en"] .card-country-badge {
    left: auto !important;
    right: 10px !important;
}

.card-country-badge:hover {
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.98);
}

.card-country-badge .country-flag {
    font-size: 13px;
    line-height: 1;
}

.card-country-badge .country-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Mini Country Badge for small thumbnails */
.card-country-mini-badge {
    position: absolute;
    bottom: 5px;
    inset-inline-end: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(15, 23, 42, 0.92);
    color: #FFFFFF !important;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10 !important;
    line-height: 1;
}

[dir="rtl"] .card-country-mini-badge {
    right: auto !important;
    left: 5px !important;
}

[dir="ltr"] .card-country-mini-badge {
    left: auto !important;
    right: 5px !important;
}

.hero-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.85);
    color: #F8FAFC;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-inline-start: 8px;
    vertical-align: middle;
}

.article-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 768px) {
    .card-country-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        top: 6px !important;
    }
    [dir="rtl"] .card-country-badge {
        left: 6px !important;
    }
    [dir="ltr"] .card-country-badge {
        right: 6px !important;
    }
}


/* PRESS SEO PERFORMANCE FIXES */
.article-featured-img, .brand-image-wrapper .article-featured-img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.article-main-body img { max-width:100%; height:auto; }
.flagship-footer-logo { width:142px; height:32px; object-fit:contain; }
.top-bar .top-links a { min-height:24px; display:inline-flex; align-items:center; padding:3px 4px; }
.flagship-col-title { margin-top:0; }

/* PRESS DARK CONTRAST */
.top-bar .top-date, .top-bar .top-links a { color:#CBD5E1 !important; }
.flagship-copyright, .flagship-bottom-bar, footer .flagship-col-title, footer .flagship-trend-info, footer .flagship-col ul a { color:#CBD5E1 !important; }

/* PRESS FA SUBSET */
@font-face{font-family:"FA Solid Subset";font-style:normal;font-weight:900;font-display:swap;src:url("../fonts/fa-solid-subset.woff2") format("woff2")}
@font-face{font-family:"FA Regular Subset";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/fa-regular-subset.woff2") format("woff2")}
@font-face{font-family:"FA Brands Subset";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/fa-brands-subset.woff2") format("woff2")}
.fa-solid,.fas{font-family:"FA Solid Subset"!important}
.fa-regular,.far{font-family:"FA Regular Subset"!important}
.fa-brands,.fab{font-family:"FA Brands Subset"!important}
.fa-badge-check::before{content:"\f058"}
.fa-shield-check::before{content:"\f3ed"}
.fa-sparkles::before{content:"\e2ca"}