/*
Theme Name: Kadence Child
Template: kadence
Description: Custom child theme for emirates24.net - الإمارات 24
Version: 1.0.0
Text Domain: kadence-child
*/

/* =============================================================================
   1. CSS VARIABLES — "UAE Red & Rich Black"
   ============================================================================= */
:root {
    /* Primary reds */
    --em24-primary: #CE1126;
    --em24-primary-dark: #A00D1E;
    --em24-primary-light: #E0334A;
    --em24-primary-ultra: #6B0915;
    --em24-primary-bg: #FDE8EB;

    /* Secondary rich black */
    --em24-secondary: #1A1A2E;
    --em24-secondary-dark: #101020;
    --em24-secondary-light: #2A2A44;

    /* Accent gold */
    --em24-accent: #C5A04A;
    --em24-accent-dark: #A8872E;
    --em24-accent-light: #D4B86A;

    /* Surfaces */
    --em24-white: #FFFFFF;
    --em24-surface: #F8F9FA;
    --em24-surface-gray: #F8F9FA;
    --em24-surface-dark: #1A1A2E;
    --em24-surface-mid: #2A2A44;

    /* Text */
    --em24-text: #1A1A2E;
    --em24-text-heading: #0F1218;
    --em24-text-secondary: #3D4450;
    --em24-text-muted: #6B7280;
    --em24-text-inverse: #FFFFFF;

    /* Semantic */
    --em24-breaking: #CE1126;
    --em24-border: #E5E7EB;
    --em24-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
    --em24-radius: 8px;
    --em24-container: 1200px;
    --em24-gap: 20px;
    --em24-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font scale */
    --em24-fs-xs: 0.75rem;
    --em24-fs-sm: 0.8125rem;
    --em24-fs-base: 0.9375rem;
    --em24-fs-md: 1rem;
    --em24-fs-lg: 1.125rem;
    --em24-fs-xl: 1.3125rem;
    --em24-fs-2xl: 1.625rem;
    --em24-fs-3xl: 2rem;
    --em24-fs-4xl: 2.5rem;

    /* Category colors */
    --em24-cat-local: #CE1126;
    --em24-cat-international: #2C5F8A;
    --em24-cat-saudi: #006C35;
    --em24-cat-economy: #8B6914;
    --em24-cat-sports: #B84A00;
    --em24-cat-technology: #3B2E8A;
    --em24-cat-tourism: #0E7C7B;
    --em24-cat-mix: #8B4C70;
    --em24-cat-entertainment: #C2553A;
}


/* =============================================================================
   1b. DARK MODE OVERRIDES
   ============================================================================= */
[data-theme="dark"] {
    --em24-secondary: #0F1724;
    --em24-white: #1A2332;
    --em24-surface: #151E2D;
    --em24-surface-gray: #151E2D;
    --em24-surface-dark: #1E2A3A;
    --em24-text: #E5E7EB;
    --em24-text-heading: #F3F4F6;
    --em24-text-secondary: #D1D5DB;
    --em24-text-muted: #9CA3AF;
    --em24-border: #2D3748;
}

/* Dark mode: global text */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] label { color: #E5E7EB; }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 { color: #F3F4F6; }
[data-theme="dark"] a { color: #93C5FD; }
[data-theme="dark"] a:hover { color: #BFDBFE; }

/* Dark mode: cards */
[data-theme="dark"] .em24-card { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-card__title,
[data-theme="dark"] .em24-card__title a,
[data-theme="dark"] .em24-card h3,
[data-theme="dark"] .em24-card h3 a,
[data-theme="dark"] .em24-card h4,
[data-theme="dark"] .em24-card h4 a { color: #F3F4F6 !important; }
[data-theme="dark"] .em24-card__excerpt,
[data-theme="dark"] .em24-card__meta,
[data-theme="dark"] .em24-card time { color: #9CA3AF; }

/* Dark mode: header logo white */
[data-theme="dark"] .em24-header__logo img { filter: brightness(0) invert(1); opacity: 0.95; }

/* Dark mode: navbar */
[data-theme="dark"] .em24-navbar,
[data-theme="dark"] .em24-header { background: #0D1520; }
[data-theme="dark"] .em24-header__nav a { color: #E5E7EB !important; }
[data-theme="dark"] .em24-header__nav a:hover { color: var(--em24-accent) !important; }

/* Dark mode: topbar */
[data-theme="dark"] .em24-topbar { background: #080E18; }
[data-theme="dark"] .em24-topbar * { color: rgba(255,255,255,0.9) !important; }

/* Dark mode: ticker */
[data-theme="dark"] .em24-ticker a,
[data-theme="dark"] .em24-ticker__track a,
[data-theme="dark"] .em24-ticker span { color: #E5E7EB !important; }

/* Dark mode: mega menu */
[data-theme="dark"] .em24-mega-menu { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-mega-menu a { color: #E5E7EB !important; }
[data-theme="dark"] .em24-mega-menu a:hover { color: var(--em24-accent) !important; }

/* Dark mode: section headers */
[data-theme="dark"] .em24-section-header__title { color: #F3F4F6; }
[data-theme="dark"] .em24-section-header__more { color: #93C5FD; }

/* Dark mode: category strip */
[data-theme="dark"] .em24-cat-column { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-cat-column__title { color: #F3F4F6; }
[data-theme="dark"] .em24-cat-column a { color: #D1D5DB; }
[data-theme="dark"] .em24-cat-column li { color: #D1D5DB; }

/* Dark mode: tabs */
[data-theme="dark"] .em24-tabs__btn { color: #9CA3AF; }
[data-theme="dark"] .em24-tabs__btn.active { color: #F3F4F6; }

/* Dark mode: split section */
[data-theme="dark"] .em24-split a { color: #D1D5DB; }
[data-theme="dark"] .em24-split h3,
[data-theme="dark"] .em24-split h4 { color: #F3F4F6; }

/* Dark mode: ribbon / editor picks */
[data-theme="dark"] .em24-ribbon__card { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-ribbon__card h4,
[data-theme="dark"] .em24-ribbon__card a { color: #E5E7EB !important; }
[data-theme="dark"] .em24-ribbon__card time { color: #9CA3AF; }

/* Dark mode: latest grid */
[data-theme="dark"] .em24-latest__card { background: #1A2332; }
[data-theme="dark"] .em24-latest__card h3 a { color: #F3F4F6; }
[data-theme="dark"] .em24-latest__card p { color: #9CA3AF; }

/* Dark mode: stories */
[data-theme="dark"] .em24-stories__card { border-color: #2D3748; }

/* Dark mode: single post */
[data-theme="dark"] .em24-single__content h1 { color: #F3F4F6; }
[data-theme="dark"] .em24-single__body,
[data-theme="dark"] .em24-single__body p { color: #D1D5DB; }
[data-theme="dark"] .em24-single__meta { color: #9CA3AF; }
[data-theme="dark"] .em24-single__tags a { color: #93C5FD; background: #1E2A3A; }

/* Dark mode: sidebar */
[data-theme="dark"] .em24-sidebar__widget { background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-sidebar a { color: #D1D5DB; }
[data-theme="dark"] .em24-sidebar__widget-title { color: #F3F4F6; }

/* Dark mode: breadcrumb */
[data-theme="dark"] .em24-breadcrumb { background: #151E2D; border-color: #2D3748; }
[data-theme="dark"] .em24-breadcrumb a { color: #93C5FD; }
[data-theme="dark"] .em24-breadcrumb span { color: #9CA3AF; }

/* Dark mode: archive */
[data-theme="dark"] .em24-archive__header { background: #0D1520; }
[data-theme="dark"] .em24-archive__grid .em24-card { background: #1A2332; }

/* Dark mode: footer */
[data-theme="dark"] .em24-footer { background: #080E18; }
[data-theme="dark"] .em24-footer__copyright { background: #050A10; }

/* Dark mode: search overlay */
[data-theme="dark"] .em24-search-overlay__input { background: #1A2332; color: #E5E7EB; border-color: #2D3748; }

/* Dark mode: mobile menu */
[data-theme="dark"] .em24-mobile-menu { background: #0F1724; }
[data-theme="dark"] .em24-mobile-menu a { color: #E5E7EB !important; }

/* Dark mode: newsletter */
[data-theme="dark"] .em24-newsletter input { background: #1A2332; color: #E5E7EB; border-color: #2D3748; }

/* Dark mode: pagination */
[data-theme="dark"] .em24-archive__pagination a { color: #D1D5DB; background: #1A2332; border-color: #2D3748; }
[data-theme="dark"] .em24-archive__pagination .current { background: var(--em24-primary); color: #fff; }

/* Dark mode: hero slider arrows */
[data-theme="dark"] .em24-hero__arrow { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .em24-hero__arrow:hover { background: rgba(255,255,255,0.3); }

/* Dark mode: fix all white-on-dark text (--em24-white becomes dark in dark mode) */
[data-theme="dark"] .em24-hero__title a,
[data-theme="dark"] .em24-hero__overlay *,
[data-theme="dark"] .em24-topbar,
[data-theme="dark"] .em24-topbar *,
[data-theme="dark"] .em24-header__nav a,
[data-theme="dark"] .em24-navbar *,
[data-theme="dark"] .em24-footer *,
[data-theme="dark"] .em24-footer__col h4,
[data-theme="dark"] .em24-footer__col a,
[data-theme="dark"] .em24-footer__col li,
[data-theme="dark"] .em24-footer__about p,
[data-theme="dark"] .em24-footer__copyright,
[data-theme="dark"] .em24-whatsapp-cta,
[data-theme="dark"] .em24-whatsapp-cta *,
[data-theme="dark"] .em24-newsletter *,
[data-theme="dark"] .em24-archive__header *,
[data-theme="dark"] .em24-stories__card *,
[data-theme="dark"] .em24-split__featured-title,
[data-theme="dark"] .em24-split__featured-title a { color: #E5E7EB !important; }

[data-theme="dark"] .em24-footer__col h4,
[data-theme="dark"] .em24-footer__about-logo + p,
[data-theme="dark"] .em24-hero__title a,
[data-theme="dark"] .em24-newsletter h3 { color: #FFFFFF !important; }

/* FAB menu (bottom-right, mobile + desktop) */
.em24-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 990;
    display: flex;
    gap: 8px;
    align-items: center;
}
.em24-fab__btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid var(--em24-border) !important;
    background: #FFFFFF !important;
    color: var(--em24-text) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    transition: var(--em24-transition);
    text-decoration: none !important;
    padding: 0 !important;
    min-width: auto !important;
}
.em24-fab__btn:hover {
    background: var(--em24-primary) !important;
    color: #fff !important;
    border-color: var(--em24-primary) !important;
}
.em24-fab__btn:hover svg { stroke: #fff; }
.em24-fab__btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* Dark mode: FAB buttons */
[data-theme="dark"] .em24-fab__btn { background: #1A2332; border-color: #2D3748; color: #E5E7EB; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Dark mode: load more button */
[data-theme="dark"] .em24-latest__more { border-color: var(--em24-primary); }

/* Dark mode: images - subtle brightness reduction */
[data-theme="dark"] img { filter: brightness(0.9); }
[data-theme="dark"] .em24-header__logo img { filter: brightness(0) invert(1) !important; opacity: 0.95; }
[data-theme="dark"] .em24-footer__about-logo img { filter: brightness(0) invert(1) !important; }

/* Dark mode: social icons in footer */
[data-theme="dark"] .em24-footer__social a { color: #E5E7EB !important; border-color: #2D3748; }
[data-theme="dark"] .em24-footer__social svg { fill: #E5E7EB; }


/* =============================================================================
   1c. UAE FLAG STRIPE
   ============================================================================= */
.em24-flag-stripe {
    height: 4px;
    background: linear-gradient(to left, #CE1126 25%, #009739 25%, #009739 50%, #FFFFFF 50%, #FFFFFF 75%, #000000 75%);
    position: relative;
    z-index: 1002;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--em24-fs-base);
    line-height: 1.7;
    color: var(--em24-text);
    background-color: var(--em24-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--em24-text-heading);
}

h1 { font-size: var(--em24-fs-4xl); }
h2 { font-size: var(--em24-fs-3xl); }
h3 { font-size: var(--em24-fs-2xl); }
h4 { font-size: var(--em24-fs-xl); }
h5 { font-size: var(--em24-fs-lg); }
h6 { font-size: var(--em24-fs-md); }

/* Links */
a {
    color: var(--em24-primary);
    text-decoration: none;
    transition: color var(--em24-transition);
}

a:hover {
    color: var(--em24-primary-light);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--em24-radius);
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons base */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Container */
.em24-container {
    max-width: var(--em24-container);
    margin: 0 auto;
    padding: 0 var(--em24-gap);
}


/* =============================================================================
   3. HIDE KADENCE DEFAULT
   ============================================================================= */

/* Hide the default Kadence blog loop on homepage and static pages */
body.home .site-main,
body.page .site-main {
    display: none !important;
}

/* Hide Kadence page title hero on static pages (we render our own) */
body.page .entry-hero {
    display: none !important;
}

body.page .hero-container {
    display: none !important;
}

/* Hide the default Kadence site header — we render our own */
.site-header {
    display: none !important;
}


/* =============================================================================
   4. HEADER TIER 1 — TOP BAR (.em24-topbar)
   ============================================================================= */
.em24-topbar {
    height: 36px;
    background: linear-gradient(135deg, var(--em24-secondary-dark), var(--em24-secondary));
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.em24-topbar .em24-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* =============================================================================
   4b. INFO BAR — Date / Hijri / Weather / Dark Mode (.em24-infobar)
   ============================================================================= */
.em24-infobar {
    background: var(--em24-surface);
    border-bottom: 1px solid var(--em24-border);
    padding: 8px 0;
    font-size: var(--em24-fs-sm);
    color: var(--em24-text);
}

.em24-infobar__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
}

.em24-infobar__dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.em24-infobar__hijri,
.em24-infobar__gregorian {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--em24-text);
    font-weight: 500;
}

.em24-infobar__hijri svg,
.em24-infobar__gregorian svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.em24-infobar__sep {
    color: var(--em24-text-muted);
    opacity: 0.4;
}

.em24-infobar__weather {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--em24-primary);
    font-weight: 600;
    margin-right: auto;
}

.em24-infobar__weather svg {
    color: var(--em24-accent);
}

.em24-infobar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dark mode toggle */
.em24-dark-toggle {
    background: var(--em24-secondary);
    border: none;
    border-radius: 20px;
    width: auto;
    height: 32px;
    padding: 0 12px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--em24-transition);
    flex-shrink: 0;
    font-size: var(--em24-fs-xs);
    font-family: inherit;
}

.em24-dark-toggle:hover {
    background: var(--em24-primary);
}

.em24-dark-toggle svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
    fill: none;
}

/* Sun shown by default, moon hidden; swap in dark mode */
.em24-dark-toggle__sun { display: block; }
.em24-dark-toggle__moon { display: none; }
.em24-dark-toggle__label-light { display: inline; }
.em24-dark-toggle__label-dark { display: none; }
[data-theme="dark"] .em24-dark-toggle__sun { display: none; }
[data-theme="dark"] .em24-dark-toggle__moon { display: block; }
[data-theme="dark"] .em24-dark-toggle__label-light { display: none; }
[data-theme="dark"] .em24-dark-toggle__label-dark { display: inline; }
[data-theme="dark"] .em24-dark-toggle { background: #2D3748; }

/* Dark mode infobar */
[data-theme="dark"] .em24-infobar { background: #111D33; border-color: #2D3748; }
[data-theme="dark"] .em24-infobar__hijri,
[data-theme="dark"] .em24-infobar__gregorian { color: #D1D5DB; }
[data-theme="dark"] .em24-infobar__weather { color: var(--em24-accent); }
[data-theme="dark"] .em24-dark-toggle { border-color: #2D3748; color: #9CA3AF; }

/* Breaking news ticker */
.em24-ticker {
    overflow: hidden;
    flex: 1;
    margin-right: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.em24-ticker__label {
    background-color: var(--em24-breaking);
    color: var(--em24-white);
    padding: 4px 12px;
    font-weight: 700;
    font-size: var(--em24-fs-sm);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.em24-ticker__label::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 6px solid var(--em24-breaking);
}

.em24-ticker__wrap {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

#em24-ticker-track {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    will-change: transform;
}

.em24-ticker__item {
    color: var(--em24-white);
    padding: 0 24px;
    font-size: var(--em24-fs-sm);
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
}

.em24-ticker__item a {
    color: var(--em24-white);
    text-decoration: none;
}

.em24-ticker__item a:hover {
    text-decoration: underline;
}


/* =============================================================================
   5. HEADER TIER 2 — MAIN HEADER (.em24-header)
   ============================================================================= */
.em24-header {
    height: 72px;
    background: var(--em24-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--em24-primary);
    transition: box-shadow var(--em24-transition);
}

.em24-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.em24-header .em24-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.em24-header__logo {
    flex-shrink: 0;
}

.em24-header__logo img {
    height: 60px;
    width: auto;
    transition: transform var(--em24-transition);
}

.em24-header__logo img:hover {
    transform: scale(1.03);
}

/* Navigation */
.em24-header__nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.em24-header__nav-item {
    position: static;
    height: 100%;
}

.em24-header__nav a {
    padding: 0 14px;
    height: 72px;
    line-height: 72px;
    font-size: var(--em24-fs-base);
    font-weight: 500;
    color: var(--em24-text);
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color var(--em24-transition), background-color var(--em24-transition);
    white-space: nowrap;
}

.em24-header__nav a:hover,
.em24-header__nav a.active {
    color: var(--em24-primary);
    background-color: var(--em24-primary-bg);
}

.em24-header__nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--em24-primary);
    transition: width var(--em24-transition);
}

.em24-header__nav a:hover::after,
.em24-header__nav a.active::after {
    width: 100%;
}

/* Search button */
.em24-header__search {
    width: 44px;
    height: 44px;
    background-color: var(--em24-surface-gray);
    color: var(--em24-text-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--em24-fs-lg);
    transition: background-color var(--em24-transition), color var(--em24-transition);
    margin-right: 12px;
    flex-shrink: 0;
}

.em24-header__search:hover {
    background-color: var(--em24-primary);
    color: var(--em24-white);
}


/* =============================================================================
   6. MEGA MENU (.em24-mega)
   ============================================================================= */
.em24-mega {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: calc(100vw - 48px);
    max-width: var(--em24-container);
    background: var(--em24-white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 24px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-top: 2px solid var(--em24-primary);
    border-radius: 0 0 var(--em24-radius) var(--em24-radius);
}

.em24-header__nav-item:hover .em24-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.em24-mega__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.em24-mega__featured {
    aspect-ratio: 16 / 9;
    border-radius: var(--em24-radius);
    overflow: hidden;
    position: relative;
}

.em24-mega__featured img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.em24-mega__featured-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--em24-white);
    padding: 16px;
    font-size: var(--em24-fs-lg);
    font-weight: 600;
    line-height: 1.4;
}

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

.em24-mega__list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--em24-border);
}

.em24-mega__list li:last-child {
    border-bottom: none;
}

.em24-mega__list li a {
    font-size: var(--em24-fs-base);
    color: var(--em24-text);
    transition: color var(--em24-transition);
    display: block;
    line-height: 1.5;
}

.em24-mega__list li a:hover {
    color: var(--em24-primary);
}

/* -----------------------------------------------------------------------------
   "أخرى" full mega — 5 secondary desks as columns (heading + featured card + list)
   -------------------------------------------------------------------------- */
.em24-header__nav-item--more > .em24-header__nav-link--more {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.em24-more-caret { transition: transform 0.25s ease; flex-shrink: 0; }
.em24-header__nav-item--more:hover .em24-more-caret,
.em24-header__nav-item--more:focus-within .em24-more-caret { transform: rotate(180deg); }
.em24-header__nav-item--more:focus-within .em24-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.em24-mega--more .em24-mega__inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: start;
}
.em24-mega__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.em24-mega__col-head {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--col-color, var(--em24-primary));
    padding-bottom: 6px;
    border-bottom: 2px solid var(--col-color, var(--em24-primary));
}
.em24-mega__col-icon { display: inline-flex; color: var(--col-color, var(--em24-primary)); }
.em24-mega__col-icon svg { width: 16px; height: 16px; }
.em24-mega__col-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em24-mega__col-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    background: var(--em24-surface-gray, #f3f4f6);
}
.em24-mega__col-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; display: block; }
.em24-mega__col-card-img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; max-width: none; }
.em24-mega__col-card-title {
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--em24-text-heading, #111827);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.em24-mega__col-card:hover .em24-mega__col-card-title { color: var(--em24-primary); }
.em24-mega__col-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.em24-mega__col-list li { padding: 0; border: none; }
.em24-mega__col-list li a {
    text-decoration: none;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--em24-text, #374151);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.em24-mega__col-list li a:hover { color: var(--col-color, var(--em24-primary)); }
.em24-mega__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--em24-primary-bg, #f3f4f6) 0%, var(--em24-surface-gray, #e5e7eb) 100%);
}
[data-theme="dark"] .em24-mega__col-list li a { color: #CBD5E1; }
[data-theme="dark"] .em24-mega__col-card { background: #1E2A3A; }
[data-theme="dark"] .em24-mega__ph { background: linear-gradient(135deg, #1E2A3A 0%, #0F1724 100%); }


/* =============================================================================
   7. SECTION HEADER (.em24-section-header)
   ============================================================================= */
.em24-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--em24-border);
}

.em24-section-header__title {
    font-size: var(--em24-fs-xl);
    font-weight: 700;
    color: var(--em24-text-heading);
    position: relative;
    padding-right: 14px;
    margin: 0;
}

.em24-section-header__title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--em24-primary);
    border-radius: 2px;
}

.em24-section-header__link {
    font-size: var(--em24-fs-sm);
    color: var(--em24-primary);
    font-weight: 500;
    transition: text-decoration var(--em24-transition);
}

.em24-section-header__link:hover {
    text-decoration: underline;
}

/* Inverse variant for dark sections */
.em24-section-header--inverse .em24-section-header__title {
    color: var(--em24-white);
}

.em24-section-header--inverse .em24-section-header__title::before {
    background-color: var(--em24-accent);
}

.em24-section-header--inverse .em24-section-header__link {
    color: rgba(255, 255, 255, 0.7);
}

.em24-section-header--inverse .em24-section-header__link:hover {
    color: var(--em24-white);
}

.em24-section-header--inverse {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}


/* =============================================================================
   8. HOMEPAGE BLOCK 1 — HERO SLIDER + SIDE LIST (.em24-hero)
   ============================================================================= */
.em24-hero {
    background: var(--em24-white);
    padding: 32px 0;
}

.em24-hero__grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: var(--em24-gap);
}

/* Slider */
.em24-hero__slider {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--em24-radius);
    overflow: hidden;
}

.em24-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.em24-hero__slide.active {
    opacity: 1;
    z-index: 1;
}

.em24-hero__slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Slider overlay */
.em24-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.em24-hero__cat {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Category-specific badge colors */
.em24-cat-badge--local { background-color: var(--em24-cat-local); }
.em24-cat-badge--international { background-color: var(--em24-cat-international); }
.em24-cat-badge--saudi { background-color: var(--em24-cat-saudi); }
.em24-cat-badge--economy { background-color: var(--em24-cat-economy); }
.em24-cat-badge--sports { background-color: var(--em24-cat-sports); }
.em24-cat-badge--technology { background-color: var(--em24-cat-technology); }
.em24-cat-badge--tourism { background-color: var(--em24-cat-tourism); }
.em24-cat-badge--mix { background-color: var(--em24-cat-mix); }
.em24-cat-badge--entertainment { background-color: var(--em24-cat-entertainment); }

.em24-hero__title {
    font-size: var(--em24-fs-3xl);
    font-weight: 700;
    color: var(--em24-white);
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.em24-hero__title a {
    color: #FFFFFF;
}

.em24-hero__title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.em24-hero__meta {
    margin-top: 8px;
    font-size: var(--em24-fs-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* Slider dots */
.em24-hero__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.em24-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--em24-transition);
    border: none;
    padding: 0;
}

.em24-hero__dot.active {
    background: var(--em24-white);
    width: 24px;
    border-radius: 5px;
}

/* Slider arrows */
.em24-hero__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.em24-hero__arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--em24-text);
    pointer-events: auto;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--em24-fs-xl);
    transition: all var(--em24-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em24-hero__arrow:hover {
    background: var(--em24-primary);
    color: var(--em24-white);
}

/* Sidebar list */
.em24-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.em24-hero__sidebar-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
    padding: 12px;
    background: var(--em24-surface-gray);
    border-radius: var(--em24-radius);
    transition: box-shadow var(--em24-transition);
    align-items: center;
}

.em24-hero__sidebar-item:hover {
    box-shadow: var(--em24-shadow);
}

.em24-hero__sidebar-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    order: 2;
}

.em24-hero__sidebar-text {
    order: 1;
}

.em24-hero__sidebar-cat {
    display: inline-block;
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-primary);
    margin-bottom: 4px;
}

.em24-hero__sidebar-title {
    font-size: var(--em24-fs-base);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.em24-hero__sidebar-title a {
    color: var(--em24-text-heading);
}

.em24-hero__sidebar-title a:hover {
    color: var(--em24-primary);
}

.em24-hero__sidebar-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 4px;
}


/* =============================================================================
   9. HOMEPAGE BLOCK 2 — FOUR-CATEGORY STRIP (.em24-categories-strip)
   ============================================================================= */
.em24-categories-strip {
    background: var(--em24-surface-gray);
    padding: 48px 0;
}

.em24-categories-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--em24-gap);
}

/* Category column card */
.em24-cat-column {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    box-shadow: var(--em24-shadow);
}

.em24-cat-column__header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 2px solid transparent;
}

.em24-cat-column__header-link {
    font-size: var(--em24-fs-xs);
    color: var(--em24-primary);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.em24-cat-column__header-link:hover {
    text-decoration: underline;
}

/* Per-category header border colors */
.em24-cat-column--local .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-local);
}

.em24-cat-column--world .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-international);
}

.em24-cat-column--saudi .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-saudi);
}

.em24-cat-column--economy .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-economy);
}

.em24-cat-column--sports .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-sports);
}

.em24-cat-column--tech .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-technology);
}

.em24-cat-column--tourism .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-tourism);
}

.em24-cat-column--variety .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-mix);
}

.em24-cat-column--arts .em24-cat-column__header {
    border-bottom-color: var(--em24-cat-entertainment);
}

.em24-cat-column__header-icon {
    font-size: var(--em24-fs-lg);
    flex-shrink: 0;
}

.em24-cat-column__header-title {
    font-size: var(--em24-fs-md);
    font-weight: 700;
    color: var(--em24-text-heading);
    margin: 0;
}

/* Category column hero image */
.em24-cat-column__hero {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, var(--em24-primary-dark), var(--em24-primary));
}

.em24-cat-column__hero img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-cat-column__hero:hover img {
    transform: scale(1.05);
}

.em24-cat-column__hero-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--em24-white);
    font-size: var(--em24-fs-base);
    font-weight: 600;
    line-height: 1.4;
}

.em24-cat-column__hero-title a {
    color: var(--em24-white);
}

.em24-cat-column__hero-title a:hover {
    opacity: 0.9;
}

/* Category column list */
.em24-cat-column__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em24-cat-column__list li {
    padding: 10px 18px;
    border-bottom: 1px solid var(--em24-border);
    font-size: var(--em24-fs-sm);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

.em24-cat-column__list li:last-child {
    border-bottom: none;
}

.em24-cat-column__list li::before {
    content: "\25C2";
    color: var(--em24-primary);
    flex-shrink: 0;
    line-height: 1.5;
}

.em24-cat-column__list li a {
    color: var(--em24-text);
    transition: color var(--em24-transition);
    line-height: 1.5;
}

.em24-cat-column__list li a:hover {
    color: var(--em24-primary);
}


/* =============================================================================
   10. HOMEPAGE BLOCK 3 — TABBED SWITCHER (.em24-tabs)
   ============================================================================= */
.em24-tabs {
    background: var(--em24-white);
    padding: 48px 0;
}

.em24-tabs__nav {
    display: flex;
    gap: 0;
    background: var(--em24-surface-gray);
    border-radius: var(--em24-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.em24-tabs__btn {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: var(--em24-fs-base);
    font-weight: 500;
    color: var(--em24-text-secondary);
    cursor: pointer;
    transition: all var(--em24-transition);
    border-bottom: 3px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.em24-tabs__btn.active {
    color: var(--em24-primary);
    background: var(--em24-white);
    border-bottom-color: var(--em24-primary);
    font-weight: 700;
}

.em24-tabs__btn:hover:not(.active) {
    background: rgba(206, 17, 38, 0.05);
    color: var(--em24-primary);
}

.em24-tabs__panel {
    display: none;
}

.em24-tabs__panel.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--em24-gap);
}

/* Tab cards */
.em24-tabs__card {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    border: 1px solid var(--em24-border);
    transition: box-shadow var(--em24-transition), border-color var(--em24-transition);
}

.em24-tabs__card:hover {
    box-shadow: var(--em24-shadow);
    border-color: var(--em24-primary-light);
}

.em24-tabs__card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-tabs__card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-tabs__card:hover .em24-tabs__card-img img {
    transform: scale(1.05);
}

.em24-tabs__card-body {
    padding: 16px;
}

.em24-tabs__card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

/* Tab card category-specific text colors */
.em24-tabs__card-cat--local { color: var(--em24-cat-local); }
.em24-tabs__card-cat--world { color: var(--em24-cat-international); }
.em24-tabs__card-cat--saudi { color: var(--em24-cat-saudi); }
.em24-tabs__card-cat--economy { color: var(--em24-cat-economy); }
.em24-tabs__card-cat--sports { color: var(--em24-cat-sports); }
.em24-tabs__card-cat--tech { color: var(--em24-cat-technology); }
.em24-tabs__card-cat--tourism { color: var(--em24-cat-tourism); }
.em24-tabs__card-cat--variety { color: var(--em24-cat-mix); }
.em24-tabs__card-cat--arts { color: var(--em24-cat-entertainment); }

.em24-tabs__card-title {
    font-size: var(--em24-fs-md);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-tabs__card-title a {
    color: var(--em24-text-heading);
}

.em24-tabs__card-title a:hover {
    color: var(--em24-primary);
}

.em24-tabs__card-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 8px;
    display: block;
}


/* =============================================================================
   11. HOMEPAGE BLOCK 4 — SPORTS + ECONOMY SPLIT (.em24-split)
   ============================================================================= */
.em24-split {
    background: var(--em24-surface-gray);
    padding: 48px 0;
}

.em24-split__grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 24px;
}

/* Sports main side */
.em24-split__main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Reuse tab card styles for split cards */
.em24-split__card {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    border: 1px solid var(--em24-border);
    transition: box-shadow var(--em24-transition), border-color var(--em24-transition);
}

.em24-split__card:hover {
    box-shadow: var(--em24-shadow);
    border-color: var(--em24-primary-light);
}

.em24-split__card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-split__card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-split__card:hover .em24-split__card-img img {
    transform: scale(1.05);
}

.em24-split__card-body {
    padding: 14px;
}

.em24-split__card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    color: var(--em24-cat-sports);
}

.em24-split__card-title {
    font-size: var(--em24-fs-base);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-split__card-title a {
    color: var(--em24-text-heading);
}

.em24-split__card-title a:hover {
    color: var(--em24-primary);
}

.em24-split__card-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 6px;
    display: block;
}

/* Economy sidebar */
.em24-split__sidebar-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--em24-border);
    align-items: center;
}

.em24-split__sidebar-item:last-child {
    border-bottom: none;
}

.em24-split__sidebar-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.em24-split__sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.em24-split__sidebar-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-cat-economy);
}

.em24-split__sidebar-title {
    font-size: var(--em24-fs-sm);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.em24-split__sidebar-title a {
    color: var(--em24-text-heading);
}

.em24-split__sidebar-title a:hover {
    color: var(--em24-primary);
}

.em24-split__sidebar-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
}


/* =============================================================================
   12. HOMEPAGE BLOCK 5 — VISUAL STORIES (.em24-stories)
   ============================================================================= */
.em24-stories {
    background: var(--em24-white);
    padding: 48px 0;
}

.em24-stories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--em24-gap);
}

.em24-story {
    aspect-ratio: 4 / 5;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.em24-story img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    border-radius: 0;
}

.em24-story:hover img {
    transform: scale(1.08);
}

.em24-story__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.em24-story__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-white);
    z-index: 2;
}

.em24-story__title {
    font-size: var(--em24-fs-lg);
    font-weight: 700;
    color: var(--em24-white);
    line-height: 1.4;
    margin: 0;
}

.em24-story__title a {
    color: var(--em24-white);
}

.em24-story__title a:hover {
    opacity: 0.9;
}

.em24-story__date {
    font-size: var(--em24-fs-xs);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 6px;
}


/* =============================================================================
   13. HOMEPAGE BLOCK 6 — EDITOR'S PICKS RIBBON (.em24-ribbon)
   ============================================================================= */
.em24-ribbon {
    background: var(--em24-surface-dark);
    padding: 48px 0;
}

.em24-ribbon__scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.em24-ribbon__scroll::-webkit-scrollbar {
    height: 4px;
}

.em24-ribbon__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.em24-ribbon__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.em24-ribbon__scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.em24-ribbon__card {
    min-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--em24-surface-mid);
    border-radius: var(--em24-radius);
    overflow: hidden;
    transition: transform var(--em24-transition);
    border-top: 2px solid var(--em24-accent);
}

.em24-ribbon__card:hover {
    transform: translateY(-4px);
}

.em24-ribbon__card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-ribbon__card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.em24-ribbon__card-body {
    padding: 14px;
}

.em24-ribbon__card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-bottom: 6px;
    display: block;
}

.em24-ribbon__card-title {
    font-size: var(--em24-fs-sm);
    font-weight: 600;
    color: var(--em24-white);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.em24-ribbon__card-title a {
    color: var(--em24-white);
}

.em24-ribbon__card-title a:hover {
    color: var(--em24-accent);
}

.em24-ribbon__card-date {
    font-size: var(--em24-fs-xs);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    display: block;
}


/* =============================================================================
   14. HOMEPAGE BLOCK 7 — LATEST NEWS GRID (.em24-latest)
   ============================================================================= */
.em24-latest {
    background: var(--em24-white);
    padding: 48px 0 64px;
}

.em24-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--em24-gap);
}

/* Latest cards — slightly larger than tab cards */
.em24-latest__card {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    border: 1px solid var(--em24-border);
    transition: box-shadow var(--em24-transition), border-color var(--em24-transition);
}

.em24-latest__card:hover {
    box-shadow: var(--em24-shadow);
    border-color: var(--em24-primary-light);
}

.em24-latest__card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-latest__card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-latest__card:hover .em24-latest__card-img img {
    transform: scale(1.05);
}

.em24-latest__card-body {
    padding: 18px;
}

.em24-latest__card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.em24-latest__card-cat--local { color: var(--em24-cat-local); }
.em24-latest__card-cat--world { color: var(--em24-cat-international); }
.em24-latest__card-cat--saudi { color: var(--em24-cat-saudi); }
.em24-latest__card-cat--economy { color: var(--em24-cat-economy); }
.em24-latest__card-cat--sports { color: var(--em24-cat-sports); }
.em24-latest__card-cat--tech { color: var(--em24-cat-technology); }
.em24-latest__card-cat--tourism { color: var(--em24-cat-tourism); }
.em24-latest__card-cat--variety { color: var(--em24-cat-mix); }
.em24-latest__card-cat--arts { color: var(--em24-cat-entertainment); }

.em24-latest__card-title {
    font-size: var(--em24-fs-lg);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-latest__card-title a {
    color: var(--em24-text-heading);
}

.em24-latest__card-title a:hover {
    color: var(--em24-primary);
}

.em24-latest__card-excerpt {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-secondary);
    line-height: 1.6;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-latest__card-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 10px;
    display: block;
}

/* Load more button */
.em24-latest__more {
    display: block;
    width: fit-content;
    margin: 32px auto 0;
    padding: 14px 40px;
    background: var(--em24-primary);
    color: var(--em24-white);
    border-radius: var(--em24-radius);
    font-size: var(--em24-fs-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--em24-transition);
    font-family: inherit;
}

.em24-latest__more:hover {
    background: var(--em24-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(206, 17, 38, 0.3);
}


/* =============================================================================
   15. SINGLE POST — BREADCRUMB (.em24-breadcrumb)
   ============================================================================= */
.em24-breadcrumb {
    background: var(--em24-surface-gray);
    padding: 12px 0;
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-muted);
}

.em24-breadcrumb a {
    color: var(--em24-text-secondary);
    transition: color var(--em24-transition);
}

.em24-breadcrumb a:hover {
    color: var(--em24-primary);
}

.em24-breadcrumb__sep {
    margin: 0 8px;
    color: var(--em24-text-muted);
}

.em24-breadcrumb__current {
    color: var(--em24-text-muted);
    font-weight: 500;
}


/* =============================================================================
   16. SINGLE POST — MAIN LAYOUT (.em24-single)
   ============================================================================= */
.em24-single__grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 32px;
    padding: 40px 0;
}

/* Article badge */
.em24-single__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-white);
    margin-bottom: 12px;
}

/* Article title */
.em24-single h1 {
    font-size: var(--em24-fs-3xl);
    font-weight: 700;
    color: var(--em24-text-heading);
    line-height: 1.35;
    margin: 0 0 16px;
}

/* Article meta */
.em24-single__meta {
    display: flex;
    gap: 16px;
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-muted);
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--em24-border);
    flex-wrap: wrap;
}

.em24-single__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.em24-single__meta-item svg,
.em24-single__meta-item i {
    font-size: var(--em24-fs-base);
    opacity: 0.7;
}

/* Share buttons */
.em24-single__share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.em24-single__share .em24-single__share-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    transition: transform var(--em24-transition), opacity var(--em24-transition);
    font-size: var(--em24-fs-base);
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none !important;
    line-height: 1;
}

.em24-single__share .em24-single__share-btn svg {
    width: 18px;
    height: 18px;
    fill: #FFFFFF;
    color: #FFFFFF;
    stroke: #FFFFFF;
    flex-shrink: 0;
}

.em24-single__share .em24-single__share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.em24-single__share .em24-single__share-btn--twitter { background-color: #1A1A1A !important; }
.em24-single__share .em24-single__share-btn--facebook { background-color: #1877F2 !important; }
.em24-single__share .em24-single__share-btn--whatsapp { background-color: #25D366 !important; }
.em24-single__share .em24-single__share-btn--telegram { background-color: #0088cc !important; }
.em24-single__share .em24-single__share-btn--copy { background-color: #6B7280 !important; cursor: pointer; }

/* Mobile share bar (bottom fixed on single posts) */
.em24-mobile-share {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--em24-white);
    border-top: 1px solid var(--em24-border);
    padding: 8px 0;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.em24-mobile-share .em24-mobile-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    text-decoration: none;
    transition: var(--em24-transition);
}
.em24-mobile-share .em24-mobile-share__btn svg { width: 20px; height: 20px; fill: #fff; }
.em24-mobile-share .em24-mobile-share__btn--twitter { background: #1A1A1A; }
.em24-mobile-share .em24-mobile-share__btn--facebook { background: #1877F2; }
.em24-mobile-share .em24-mobile-share__btn--whatsapp { background: #25D366; }
.em24-mobile-share .em24-mobile-share__btn--telegram { background: #0088cc; }
.em24-mobile-share .em24-mobile-share__btn--copy { background: #6B7280; cursor: pointer; }
@media (max-width: 767px) {
    .em24-mobile-share { display: flex; }
}

/* Hide Kadence built-in social share buttons */
.kt_simple_share_container,
.kt_share_beforecontent,
.kt_share_aftercontent,
.kadence-simple-share-wrap,
.kadence-simple-share,
.entry-content .kadence-simple-share-wrap,
.single .kt_simple_share_container {
    display: none !important;
}

/* Hide any Kadence Pro floating/fixed elements */
.kadence-related-content-wrap,
.kadence-slider-wrap,
#kadence-related-posts,
.kt-related-content,
.kadence-slide-in-wrapper,
.kadence-cookie-notice,
#mobile-drawer,
.popup-drawer,
.drawer-overlay,
.site-header-item-navgation-popup-toggle {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Featured image */
.em24-single__featured {
    aspect-ratio: 3 / 2;
    border-radius: var(--em24-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.em24-single__featured img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Article body */
.em24-single__body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--em24-text);
}

.em24-single__body p {
    margin-bottom: 1.2em;
}

.em24-single__body h2 {
    font-size: var(--em24-fs-2xl);
    margin: 1.5em 0 0.75em;
    font-weight: 700;
    color: var(--em24-text-heading);
}

.em24-single__body h3 {
    font-size: var(--em24-fs-xl);
    margin: 1.5em 0 0.75em;
    font-weight: 700;
    color: var(--em24-text-heading);
}

.em24-single__body h4 {
    font-size: var(--em24-fs-lg);
    margin: 1.5em 0 0.75em;
    font-weight: 700;
    color: var(--em24-text-heading);
}

.em24-single__body blockquote {
    border-right: 4px solid var(--em24-primary);
    border-left: none;
    background: var(--em24-primary-bg);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--em24-radius) var(--em24-radius) 0;
    font-style: italic;
    color: var(--em24-text-secondary);
}

.em24-single__body blockquote p:last-child {
    margin-bottom: 0;
}

.em24-single__body img {
    border-radius: var(--em24-radius);
    margin: 20px 0;
}

.em24-single__body ul,
.em24-single__body ol {
    margin: 1em 0;
    padding-right: 24px;
    list-style-position: inside;
}

.em24-single__body ul {
    list-style-type: disc;
}

.em24-single__body ol {
    list-style-type: decimal;
}

.em24-single__body li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.em24-single__body a {
    color: var(--em24-primary);
    text-decoration: underline;
    text-decoration-color: rgba(206, 17, 38, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--em24-transition);
}

.em24-single__body a:hover {
    text-decoration-color: var(--em24-primary);
}

.em24-single__body figure {
    margin: 24px 0;
}

.em24-single__body figcaption {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-muted);
    text-align: center;
    margin-top: 8px;
}

.em24-single__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.em24-single__body th,
.em24-single__body td {
    padding: 10px 14px;
    border: 1px solid var(--em24-border);
    text-align: right;
}

.em24-single__body th {
    background: var(--em24-surface-gray);
    font-weight: 700;
}

/* After-content Kadence Element */
.em24-single__after-content {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--em24-surface-gray);
    border-radius: var(--em24-radius);
    border-right: 4px solid var(--em24-primary);
    font-size: var(--em24-fs-base);
    line-height: 1.75;
    color: var(--em24-text-secondary);
}

.em24-single__after-content p:last-child {
    margin-bottom: 0;
}

.em24-single__after-content a {
    color: var(--em24-primary);
    font-weight: 600;
}

.em24-single__after-content a:hover {
    text-decoration: underline;
}

/* Tags */
.em24-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--em24-border);
}

.em24-single__tags-label {
    font-size: var(--em24-fs-sm);
    font-weight: 700;
    color: var(--em24-text-heading);
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.em24-single__tags a {
    padding: 6px 14px;
    background: var(--em24-surface-gray);
    color: var(--em24-text-secondary);
    border-radius: 20px;
    font-size: var(--em24-fs-xs);
    transition: all var(--em24-transition);
    display: inline-block;
}

.em24-single__tags a:hover {
    background: var(--em24-primary);
    color: var(--em24-white);
}

/* Related posts */
.em24-single__related {
    margin-top: 48px;
}

.em24-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.em24-single__related-card {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    border: 1px solid var(--em24-border);
    transition: box-shadow var(--em24-transition), border-color var(--em24-transition);
}

.em24-single__related-card:hover {
    box-shadow: var(--em24-shadow);
    border-color: var(--em24-primary-light);
}

.em24-single__related-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-single__related-card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-single__related-card:hover .em24-single__related-card-img img {
    transform: scale(1.05);
}

.em24-single__related-card-body {
    padding: 14px;
}

.em24-single__related-card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-primary);
    margin-bottom: 6px;
    display: block;
}

.em24-single__related-card-title {
    font-size: var(--em24-fs-base);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-single__related-card-title a {
    color: var(--em24-text-heading);
}

.em24-single__related-card-title a:hover {
    color: var(--em24-primary);
}

.em24-single__related-card-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 6px;
    display: block;
}


/* =============================================================================
   17. SIDEBAR (.em24-sidebar)
   ============================================================================= */
.em24-sidebar__widget {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    border: 1px solid var(--em24-border);
    overflow: hidden;
    margin-bottom: 20px;
}

.em24-sidebar__widget-header {
    padding: 14px 18px;
    background: var(--em24-primary);
    color: var(--em24-white);
    font-size: var(--em24-fs-md);
    font-weight: 700;
}

.em24-sidebar__widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: sidebar-counter;
}

.em24-sidebar__widget-list li {
    padding: 12px 18px;
    border-bottom: 1px solid var(--em24-border);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    counter-increment: sidebar-counter;
}

.em24-sidebar__widget-list li:last-child {
    border-bottom: none;
}

.em24-sidebar__widget-list li::before {
    content: counter(sidebar-counter);
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--em24-primary-bg);
    color: var(--em24-primary);
    border-radius: 50%;
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    flex-shrink: 0;
}

.em24-sidebar__widget-list li a {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text);
    font-weight: 500;
    line-height: 1.5;
    transition: color var(--em24-transition);
}

.em24-sidebar__widget-list li a:hover {
    color: var(--em24-primary);
}

/* Sidebar ad placeholder */
.em24-sidebar__ad {
    background: var(--em24-surface-gray);
    border-radius: var(--em24-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.em24-sidebar__ad img {
    max-width: 100%;
    height: auto;
    border-radius: var(--em24-radius);
}


/* =============================================================================
   18. CATEGORY / ARCHIVE PAGE (.em24-archive)
   ============================================================================= */
.em24-archive__header {
    height: 140px;
    background: linear-gradient(135deg, var(--em24-primary-ultra), var(--em24-primary-dark));
    display: flex;
    align-items: center;
}

.em24-archive__header h1 {
    font-size: var(--em24-fs-3xl);
    color: var(--em24-white);
    font-weight: 700;
    margin: 0;
}

.em24-archive__header span {
    font-size: var(--em24-fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 12px;
}

.em24-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--em24-gap);
    padding: 40px 0;
}

/* Archive cards — reuse latest card styles */
.em24-archive__card {
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    border: 1px solid var(--em24-border);
    transition: box-shadow var(--em24-transition), border-color var(--em24-transition);
}

.em24-archive__card:hover {
    box-shadow: var(--em24-shadow);
    border-color: var(--em24-primary-light);
}

.em24-archive__card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.em24-archive__card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform var(--em24-transition);
    border-radius: 0;
}

.em24-archive__card:hover .em24-archive__card-img img {
    transform: scale(1.05);
}

.em24-archive__card-body {
    padding: 18px;
}

.em24-archive__card-cat {
    font-size: var(--em24-fs-xs);
    font-weight: 700;
    color: var(--em24-primary);
    margin-bottom: 8px;
    display: block;
}

.em24-archive__card-title {
    font-size: var(--em24-fs-lg);
    font-weight: 600;
    color: var(--em24-text-heading);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-archive__card-title a {
    color: var(--em24-text-heading);
}

.em24-archive__card-title a:hover {
    color: var(--em24-primary);
}

.em24-archive__card-excerpt {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-secondary);
    line-height: 1.6;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-archive__card-date {
    font-size: var(--em24-fs-xs);
    color: var(--em24-text-muted);
    margin-top: 10px;
    display: block;
}

/* Pagination */
.em24-archive__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    padding-bottom: 48px;
}

.em24-archive__pagination a,
.em24-archive__pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--em24-radius);
    font-size: var(--em24-fs-sm);
    font-weight: 600;
    transition: all var(--em24-transition);
    text-decoration: none;
}

.em24-archive__pagination a {
    background: var(--em24-surface-gray);
    color: var(--em24-text);
}

.em24-archive__pagination a:hover {
    background: var(--em24-primary);
    color: var(--em24-white);
}

.em24-archive__pagination .current {
    background: var(--em24-primary);
    color: var(--em24-white);
}

.em24-archive__pagination .dots {
    background: transparent;
    color: var(--em24-text-muted);
}


/* =============================================================================
   19. FOOTER CTA BAND (.em24-footer-cta)
   ============================================================================= */
.em24-footer-cta {
    background: linear-gradient(135deg, var(--em24-primary), var(--em24-primary-light));
    padding: 48px 0;
    position: relative;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
}

.em24-footer-cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 16px;
}

.em24-footer-cta h3 {
    font-size: var(--em24-fs-2xl);
    color: var(--em24-white);
    font-weight: 700;
    margin-bottom: 12px;
}

.em24-footer-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-size: var(--em24-fs-base);
    line-height: 1.6;
}

.em24-footer-cta__form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.em24-footer-cta__input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--em24-radius);
    border: none;
    font-size: var(--em24-fs-base);
    font-family: inherit;
    outline: none;
}

.em24-footer-cta__input::placeholder {
    color: var(--em24-text-muted);
}

.em24-footer-cta__btn {
    padding: 12px 28px;
    background: var(--em24-accent);
    color: var(--em24-white);
    border: none;
    border-radius: var(--em24-radius);
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--em24-transition);
    font-family: inherit;
    font-size: var(--em24-fs-base);
    white-space: nowrap;
}

.em24-footer-cta__btn:hover {
    background: var(--em24-accent-dark);
}


/* =============================================================================
   19b. STATIC PAGES (.em24-page)
   ============================================================================= */
.em24-page {
    padding: 40px 0 60px;
    background: var(--em24-surface);
    min-height: 50vh;
}

.em24-page__content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    box-shadow: var(--em24-shadow);
    padding: 40px 48px;
}

.em24-page__content h1 {
    font-size: var(--em24-fs-3xl);
    font-weight: 700;
    color: var(--em24-text-heading);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--em24-primary);
    line-height: 1.4;
}

.em24-page__body {
    font-size: var(--em24-fs-md);
    line-height: 2;
    color: var(--em24-text-secondary);
}

.em24-page__body p {
    margin-bottom: 16px;
}

.em24-page__body strong {
    display: block;
    font-size: var(--em24-fs-lg);
    font-weight: 700;
    color: var(--em24-text-heading);
    margin-top: 28px;
    margin-bottom: 8px;
    padding-right: 14px;
    border-right: 3px solid var(--em24-primary);
}

.em24-page__body a {
    color: var(--em24-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--em24-transition);
}

.em24-page__body a:hover {
    text-decoration-color: var(--em24-primary);
}

.em24-page__body ul,
.em24-page__body ol {
    padding-right: 24px;
    margin-bottom: 16px;
}

.em24-page__body li {
    margin-bottom: 8px;
}

.em24-page__body h2 {
    font-size: var(--em24-fs-xl);
    font-weight: 700;
    color: var(--em24-text-heading);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-right: 14px;
    border-right: 3px solid var(--em24-primary);
}

.em24-page__body h3 {
    font-size: var(--em24-fs-lg);
    font-weight: 700;
    color: var(--em24-text-heading);
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Page styles — mobile */
@media (max-width: 767px) {
    .em24-page {
        padding: 20px 0 40px;
    }

    .em24-page__content {
        padding: 24px 20px;
        border-radius: 0;
    }

    .em24-page__content h1 {
        font-size: var(--em24-fs-2xl);
    }
}

/* =============================================================================
   20. FOOTER (.em24-footer)
   ============================================================================= */
.em24-footer {
    background: var(--em24-surface-dark);
    padding: 48px 0 24px;
    color: rgba(255, 255, 255, 0.7);
}

.em24-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.em24-footer__col h4 {
    font-size: var(--em24-fs-md);
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* About column */
.em24-footer__about-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.em24-footer__about-text {
    font-size: var(--em24-fs-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.em24-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.em24-footer__social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--em24-transition);
    font-size: var(--em24-fs-base);
}

.em24-footer__social a:hover {
    background: var(--em24-primary);
    color: var(--em24-white);
}

/* Footer links */
.em24-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em24-footer__links li {
    padding: 6px 0;
}

.em24-footer__links a {
    font-size: var(--em24-fs-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--em24-transition);
}

.em24-footer__links a:hover {
    color: var(--em24-white);
}

/* Copyright bar */
.em24-footer__copyright {
    background: var(--em24-secondary-dark);
    padding: 16px 0;
    text-align: center;
    font-size: var(--em24-fs-xs);
    color: rgba(255, 255, 255, 0.5);
}

.em24-footer__copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.em24-footer__copyright a:hover {
    color: var(--em24-white);
}


/* =============================================================================
   21. MOBILE SLIDE-IN DRAWER (.em24-mobile-menu)
   ============================================================================= */

/* Backdrop */
.em24-mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.em24-mobile-menu__backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.em24-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    z-index: 1050;
    background: var(--em24-white);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.em24-mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

/* Header */
.em24-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--em24-border);
    flex-shrink: 0;
}

.em24-mobile-menu__header-title {
    font-size: var(--em24-fs-lg);
    font-weight: 700;
    color: var(--em24-text-heading);
}

.em24-mobile-menu__close {
    width: 36px;
    height: 36px;
    background: var(--em24-surface-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--em24-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--em24-transition);
}

.em24-mobile-menu__close:hover {
    background: var(--em24-border);
}

/* Search bar */
.em24-mobile-menu__search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--em24-border);
    flex-shrink: 0;
}

.em24-mobile-menu__search-form {
    display: flex;
    background: var(--em24-surface-gray);
    border-radius: var(--em24-radius);
    overflow: hidden;
}

.em24-mobile-menu__search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: var(--em24-fs-base);
    font-family: inherit;
    color: var(--em24-text);
    outline: none;
    direction: rtl;
    min-width: 0;
}

.em24-mobile-menu__search-input::placeholder {
    color: var(--em24-text-muted);
}

.em24-mobile-menu__search-btn {
    width: 44px;
    flex-shrink: 0;
    border: none;
    background: var(--em24-primary);
    color: var(--em24-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--em24-transition);
}

.em24-mobile-menu__search-btn:hover {
    background: var(--em24-primary-dark);
}

/* Category list */
.em24-mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.em24-mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    min-height: 52px;
    text-decoration: none;
    color: var(--em24-text);
    transition: background-color var(--em24-transition);
}

.em24-mobile-menu__item:active,
.em24-mobile-menu__item:hover {
    background: var(--em24-surface-gray);
}

.em24-mobile-menu__item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--em24-white);
    flex-shrink: 0;
}

/* Category-specific icon backgrounds */
.em24-mobile-menu__item--local .em24-mobile-menu__item-icon { background-color: var(--em24-cat-local); }
.em24-mobile-menu__item--world .em24-mobile-menu__item-icon { background-color: var(--em24-cat-international); }
.em24-mobile-menu__item--saudi .em24-mobile-menu__item-icon { background-color: var(--em24-cat-saudi); }
.em24-mobile-menu__item--economy .em24-mobile-menu__item-icon { background-color: var(--em24-cat-economy); }
.em24-mobile-menu__item--sports .em24-mobile-menu__item-icon { background-color: var(--em24-cat-sports); }
.em24-mobile-menu__item--tech .em24-mobile-menu__item-icon { background-color: var(--em24-cat-technology); }
.em24-mobile-menu__item--tourism .em24-mobile-menu__item-icon { background-color: var(--em24-cat-tourism); }
.em24-mobile-menu__item--variety .em24-mobile-menu__item-icon { background-color: var(--em24-cat-mix); }
.em24-mobile-menu__item--arts .em24-mobile-menu__item-icon { background-color: var(--em24-cat-entertainment); }

.em24-mobile-menu__item-label {
    flex: 1;
    font-size: var(--em24-fs-base);
    font-weight: 600;
    color: var(--em24-text-heading);
}

.em24-mobile-menu__item-arrow {
    color: var(--em24-text-muted);
    flex-shrink: 0;
}

/* Footer */
.em24-mobile-menu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--em24-border);
    flex-shrink: 0;
}

.em24-mobile-menu__home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--em24-primary);
    font-size: var(--em24-fs-sm);
    font-weight: 600;
    text-decoration: none;
}

.em24-mobile-menu__home:hover {
    color: var(--em24-primary-dark);
}

.em24-mobile-menu__social {
    display: flex;
    gap: 16px;
}

.em24-mobile-menu__social a {
    color: var(--em24-text-muted);
    display: flex;
    align-items: center;
    transition: color var(--em24-transition);
}

.em24-mobile-menu__social a:hover {
    color: var(--em24-primary);
}


/* =============================================================================
   23. SEARCH OVERLAY (.em24-search-overlay)
   ============================================================================= */
.em24-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.em24-search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.em24-search-overlay__inner {
    width: 90%;
    max-width: 600px;
    padding: 24px;
    position: relative;
}

.em24-search-overlay__form {
    display: flex;
    background: var(--em24-white);
    border-radius: var(--em24-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.em24-search-overlay__input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: var(--em24-fs-lg);
    font-family: inherit;
    outline: none;
    direction: rtl;
}

.em24-search-overlay__input::placeholder {
    color: var(--em24-text-muted);
}

.em24-search-overlay__btn {
    padding: 16px 24px;
    background: var(--em24-primary);
    color: var(--em24-white);
    border: none;
    cursor: pointer;
    font-size: var(--em24-fs-lg);
    transition: background-color var(--em24-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em24-search-overlay__btn:hover {
    background: var(--em24-primary-dark);
}

.em24-search-overlay__close {
    position: absolute;
    top: -40px;
    left: 0;
    color: var(--em24-white);
    font-size: var(--em24-fs-2xl);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: opacity var(--em24-transition);
}

.em24-search-overlay__close:hover {
    opacity: 0.7;
}


/* =============================================================================
   24. SCROLL REVEAL ANIMATIONS
   ============================================================================= */
/* Reveal: only hidden when JS is confirmed ready (prevents blank page if JS delayed) */
.js-ready .em24-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .em24-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid children */
.js-ready .em24-reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.js-ready .em24-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.js-ready .em24-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.js-ready .em24-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.js-ready .em24-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.js-ready .em24-reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }
.js-ready .em24-reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.25s; }

.js-ready .em24-reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   25. HAMBURGER ANIMATION (.em24-header__hamburger)
   ============================================================================= */
.em24-header__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.em24-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--em24-text);
    position: absolute;
    left: 9px;
    transition: all var(--em24-transition);
}

.em24-header__hamburger span:nth-child(1) {
    top: 12px;
}

.em24-header__hamburger span:nth-child(2) {
    top: 19px;
}

.em24-header__hamburger span:nth-child(3) {
    top: 26px;
}

.em24-header__hamburger.open span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.em24-header__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.em24-header__hamburger.open span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}


/* =============================================================================
   27. UTILITY CLASSES
   ============================================================================= */

/* Screen reader only */
.em24-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Text alignment */
.em24-text-center {
    text-align: center;
}

.em24-text-right {
    text-align: right;
}

.em24-text-left {
    text-align: left;
}

/* Display */
.em24-d-none {
    display: none;
}

.em24-d-block {
    display: block;
}

.em24-d-flex {
    display: flex;
}

/* Skeleton loading animation */
.em24-skeleton {
    background: linear-gradient(90deg, var(--em24-surface-gray) 25%, #e8eced 50%, var(--em24-surface-gray) 75%);
    background-size: 200% 100%;
    animation: em24-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--em24-radius);
}

@keyframes em24-skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Truncation */
.em24-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.em24-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em24-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =============================================================================
   28. ENGLISH / LTR OVERRIDES
   ============================================================================= */
html[lang="en"] body,
body.em24-en {
    direction: ltr;
}

html[lang="en"] .em24-section-header__title,
body.em24-en .em24-section-header__title {
    padding-right: 0;
    padding-left: 14px;
}

html[lang="en"] .em24-section-header__title::before,
body.em24-en .em24-section-header__title::before {
    right: auto;
    left: 0;
}

html[lang="en"] .em24-single__body blockquote,
body.em24-en .em24-single__body blockquote {
    border-right: none;
    border-left: 4px solid var(--em24-primary);
    border-radius: var(--em24-radius) 0 0 var(--em24-radius);
}

html[lang="en"] .em24-cat-column__list li::before,
body.em24-en .em24-cat-column__list li::before {
    content: "\25B8";
}

html[lang="en"] .em24-ticker,
body.em24-en .em24-ticker {
    margin-right: 0;
    margin-left: 20px;
}

html[lang="en"] .em24-header__search,
body.em24-en .em24-header__search {
    margin-right: 0;
    margin-left: 12px;
}

html[lang="en"] .em24-single__body ul,
html[lang="en"] .em24-single__body ol,
body.em24-en .em24-single__body ul,
body.em24-en .em24-single__body ol {
    padding-right: 0;
    padding-left: 24px;
}

html[lang="en"] .em24-single__body th,
html[lang="en"] .em24-single__body td,
body.em24-en .em24-single__body th,
body.em24-en .em24-single__body td {
    text-align: left;
}


/* =============================================================================
   29. RESPONSIVE — LARGE TABLETS & SMALL DESKTOPS (max-width: 1199px)
   ============================================================================= */
@media (max-width: 1199px) {
    .em24-container {
        padding: 0 24px;
    }

    .em24-mega {
        width: calc(100vw - 48px);
        padding: 20px;
    }

    .em24-header__nav a {
        padding: 0 10px;
        font-size: var(--em24-fs-sm);
    }

    .em24-hero__title {
        font-size: var(--em24-fs-2xl);
    }

    .em24-split__grid {
        gap: 20px;
    }

    .em24-footer__grid {
        gap: 24px;
    }
}


/* =============================================================================
   30. RESPONSIVE — TABLETS (max-width: 991px)
   ============================================================================= */
@media (max-width: 991px) {
    /* Header navigation -> hamburger */
    .em24-header__nav {
        display: none;
    }

    /* Search button hidden — search is in the mobile menu drawer */
    .em24-header__search {
        display: none;
    }

    .em24-header__hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mega menu hidden on tablet */
    .em24-mega {
        display: none;
    }

    /* Hero */
    .em24-hero__grid {
        grid-template-columns: 1fr;
    }

    .em24-hero__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Categories strip */
    .em24-categories-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tabs */
    .em24-tabs__panel.active {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Split */
    .em24-split__grid {
        grid-template-columns: 1fr;
    }

    .em24-split__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .em24-split__sidebar-item {
        border-bottom: none;
        background: var(--em24-white);
        padding: 12px;
        border-radius: var(--em24-radius);
        border: 1px solid var(--em24-border);
    }

    /* Stories */
    .em24-stories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single post */
    .em24-single__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .em24-sidebar {
        order: 2;
    }

    /* Archive */
    .em24-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .em24-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .em24-footer__col {
        text-align: center;
    }

    .em24-footer__col--quick-links {
        display: none;
    }

    .em24-footer__social {
        justify-content: center;
    }

    .em24-footer__about-logo {
        display: flex;
        justify-content: center;
    }

    .em24-footer__links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .em24-footer__links li {
        padding: 4px 8px;
    }
}


/* =============================================================================
   31. RESPONSIVE — MOBILE (max-width: 767px)
   ============================================================================= */
@media (max-width: 767px) {
    /* Header */
    .em24-header {
        height: 56px;
    }

    .em24-header .em24-container {
        height: 56px;
    }

    .em24-header__logo img {
        height: 42px;
    }

    .em24-header__nav a {
        height: 56px;
        line-height: 56px;
    }

    .em24-header__nav a::after {
        bottom: 0;
    }

    /* Top bar */
    .em24-topbar__date {
        display: none;
    }

    .em24-ticker {
        margin-right: 0;
    }

    /* Infobar: compact on mobile */
    .em24-infobar__inner {
        gap: 8px;
    }

    .em24-infobar__hijri,
    .em24-infobar__sep {
        display: none;
    }

    .em24-infobar__dates {
        flex-shrink: 1;
        min-width: 0;
    }

    .em24-dark-toggle__label-light,
    .em24-dark-toggle__label-dark {
        display: none !important;
    }

    .em24-dark-toggle {
        padding: 0 8px;
        width: 36px;
        height: 28px;
    }

    /* Hero */
    .em24-hero {
        padding: 20px 0;
    }

    .em24-hero__title {
        font-size: var(--em24-fs-2xl);
    }

    .em24-hero__overlay {
        padding: 24px 16px 16px;
    }

    .em24-hero__sidebar {
        grid-template-columns: 1fr;
    }

    /* Section headers */
    .em24-section-header {
        margin-bottom: 16px;
    }

    .em24-section-header__title {
        font-size: var(--em24-fs-lg);
    }

    /* Tabs navigation scrollable */
    .em24-tabs__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--em24-radius);
    }

    .em24-tabs__btn {
        flex: none;
        padding: 10px 16px;
        font-size: var(--em24-fs-sm);
    }

    .em24-tabs__panel.active {
        grid-template-columns: 1fr;
    }

    /* Split */
    .em24-split__main-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .em24-split__sidebar {
        grid-template-columns: 1fr;
    }

    /* Stories */
    .em24-stories__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Latest */
    .em24-latest__grid {
        grid-template-columns: 1fr;
    }

    /* Ribbon */
    .em24-ribbon__card {
        min-width: 180px;
    }

    /* Single post */
    .em24-single h1 {
        font-size: var(--em24-fs-2xl);
    }

    .em24-single__meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .em24-single__related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .em24-single__body {
        font-size: 16px;
    }

    /* Archive */
    .em24-archive__grid {
        grid-template-columns: 1fr;
    }

    .em24-archive__header {
        height: 100px;
    }

    .em24-archive__header h1 {
        font-size: var(--em24-fs-2xl);
    }

    /* Footer CTA */
    .em24-footer-cta {
        padding: 40px 0 32px;
    }

    .em24-footer-cta__form {
        flex-direction: column;
    }

    .em24-footer-cta__btn {
        width: 100%;
        text-align: center;
    }

    .em24-footer-cta h3 {
        font-size: var(--em24-fs-xl);
    }

    /* Reduce section paddings */
    .em24-categories-strip,
    .em24-tabs,
    .em24-split,
    .em24-stories,
    .em24-ribbon,
    .em24-latest {
        padding: 32px 0;
    }

    /* Footer */
    .em24-footer {
        padding: 32px 0 16px;
    }

    .em24-footer__copyright {
        padding: 12px 0;
    }
}


/* =============================================================================
   32. RESPONSIVE — SMALL MOBILE (max-width: 575px)
   ============================================================================= */
@media (max-width: 575px) {
    .em24-container {
        padding: 0 16px;
    }

    /* Categories strip */
    .em24-categories-strip__grid {
        grid-template-columns: 1fr;
    }

    /* Split */
    .em24-split__main-grid {
        grid-template-columns: 1fr;
    }

    /* Hero sidebar items stack */
    .em24-hero__sidebar-item {
        grid-template-columns: 1fr;
    }

    .em24-hero__sidebar-item img {
        width: 100%;
        height: 160px;
        order: 1;
    }

    .em24-hero__sidebar-text {
        order: 2;
    }

    /* Stories taller on small screens */
    .em24-stories__grid {
        gap: 12px;
    }

    .em24-story__title {
        font-size: var(--em24-fs-base);
    }

    /* Ribbon */
    .em24-ribbon__card {
        min-width: 160px;
    }

    /* Reduce gaps */
    .em24-hero__grid,
    .em24-categories-strip__grid,
    .em24-latest__grid,
    .em24-archive__grid {
        gap: 12px;
    }

    /* Single post adjustments */
    .em24-single__grid {
        padding: 24px 0;
        gap: 20px;
    }

    .em24-single h1 {
        font-size: var(--em24-fs-xl);
    }

    .em24-single__share-btn {
        width: 32px;
        height: 32px;
        font-size: var(--em24-fs-sm);
    }

    .em24-single__body blockquote {
        padding: 14px 16px;
        margin: 16px 0;
    }

    .em24-single__tags a {
        padding: 4px 10px;
    }

    /* Archive header */
    .em24-archive__header {
        height: 80px;
    }

    .em24-archive__header h1 {
        font-size: var(--em24-fs-xl);
    }

    .em24-archive__pagination a,
    .em24-archive__pagination span {
        width: 34px;
        height: 34px;
        font-size: var(--em24-fs-xs);
    }

    /* Footer */
    .em24-footer__about-text {
        font-size: var(--em24-fs-xs);
    }

    .em24-footer-cta {
        clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%);
    }

    /* Mobile menu drawer — wider on small screens */
    .em24-mobile-menu {
        width: 90%;
    }

    /* All sections reduced padding */
    .em24-categories-strip,
    .em24-tabs,
    .em24-split,
    .em24-stories,
    .em24-ribbon,
    .em24-latest {
        padding: 24px 0;
    }

    .em24-footer {
        padding: 24px 0 12px;
    }

    /* Topbar */
    .em24-topbar {
        height: 32px;
    }

    .em24-ticker__label {
        padding: 2px 8px;
        font-size: var(--em24-fs-xs);
    }

    .em24-ticker__item {
        padding: 0 16px;
        font-size: var(--em24-fs-xs);
    }
}


/* =============================================================================
   33. PRINT STYLES
   ============================================================================= */
@media print {
    .em24-topbar,
    .em24-header,
    .em24-footer-cta,
    .em24-footer,
    .em24-footer__copyright,
    .em24-mobile-menu,
    .em24-search-overlay,
    .em24-single__share,
    .em24-sidebar,
    .em24-single__related,
    .em24-hero__arrows,
    .em24-hero__dots {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .em24-single__grid {
        grid-template-columns: 1fr;
    }

    .em24-single__body {
        font-size: 12pt;
    }

    .em24-single__body a {
        color: #000;
        text-decoration: underline;
    }

    .em24-single__body img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
}


/* =============================================================================
   34. ACCESSIBILITY — FOCUS STYLES
   ============================================================================= */
*:focus-visible {
    outline: 2px solid var(--em24-primary);
    outline-offset: 2px;
}

/* Skip link */
.em24-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--em24-primary);
    color: var(--em24-white);
    padding: 12px 24px;
    border-radius: 0 0 var(--em24-radius) var(--em24-radius);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s ease;
}

.em24-skip-link:focus {
    top: 0;
    color: var(--em24-white);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js-ready .em24-reveal {
        opacity: 1;
        transform: none;
    }

    .js-ready .em24-reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
}


/* =============================================================================
   35. KADENCE & WORDPRESS OVERRIDES
   ============================================================================= */

/* Override Kadence default max-width */
.site-container {
    max-width: 100%;
    padding: 0;
}

/* Override Kadence footer */
.site-footer {
    display: none !important;
}

/* Override Kadence inner content */
.site-main .entry-content {
    max-width: 100%;
}

/* WP Block alignment */
.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.alignwide {
    max-width: var(--em24-container);
    margin-left: auto;
    margin-right: auto;
}

/* Override WP admin bar offset */
body.admin-bar .em24-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .em24-header {
        top: 46px;
    }
}

/* Hide Kadence Elements — we use our own blocks */
body.home .entry-content > .wp-block-kadence-rowlayout {
    display: none;
}

/* WP Rocket lazy load placeholder */
img[data-lazy-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazyloaded {
    opacity: 1;
}

/* Rank Math breadcrumb override — if used instead of custom breadcrumb */
.rank-math-breadcrumb {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-muted);
    padding: 12px 0;
}

.rank-math-breadcrumb a {
    color: var(--em24-text-secondary);
}

.rank-math-breadcrumb a:hover {
    color: var(--em24-primary);
}

/* WP image captions */
.wp-caption {
    max-width: 100%;
    margin: 20px 0;
}

.wp-caption-text {
    font-size: var(--em24-fs-sm);
    color: var(--em24-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* WP gallery */
.wp-block-gallery {
    margin: 24px 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Gravatar in comments */
.avatar {
    border-radius: 50%;
}

/* Override any inherited Kadence font */
body,
.site,
.entry-content,
.widget {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* =============================================================================
   R1 OVERLAY FLATTENING — titles moved off images (no text-on-image)
   ============================================================================= */
.em24-mega__featured, .em24-cat-column__hero, .em24-story, .em24-hero__slide {
    display: flex !important;
    flex-direction: column !important;
    aspect-ratio: auto !important;
    background: var(--em24-white, #fff) !important;
    height: auto !important;
}
.em24-mega__featured > img, .em24-cat-column__hero > img, .em24-story > img, .em24-hero__slide > img {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}
.em24-hero__slider { aspect-ratio: auto !important; height: auto !important; min-height: 540px; }
.em24-mega__featured-title, .em24-hero__overlay, .em24-cat-column__hero-title, .em24-story__overlay {
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    padding: 0.85rem 1rem 1rem !important;
    color: var(--em24-text-heading, #111827) !important;
}
.em24-hero__title, .em24-story__title {
    color: var(--em24-text-heading, #111827) !important;
    text-shadow: none !important;
}
.em24-hero__title a, .em24-story__title a, .em24-cat-column__hero-title a, .em24-mega__featured-title a {
    color: var(--em24-text-heading, #111827) !important;
}
.em24-hero__meta, .em24-story__date {
    color: var(--em24-text-muted, #6B7280) !important;
}
.em24-hero__cat, .em24-story__cat {
    position: absolute !important;
    top: 12px !important;
    inset-inline-start: 12px !important;
    z-index: 2 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* === HOMEPAGE 3:2 (1200x800) IMAGE FIX — added 2026-07-09 — delete this block to revert === */
/* Forces every homepage post-featured-image container to a 3:2 box so the baked-in
   logo watermark (top) and headline (bottom) of the 1200x800 source are never cropped.
   Scoped to body.home so single/archive/search pages are untouched. Appended last so it
   wins over the earlier "R1 OVERLAY FLATTENING" block (which set these to 16/9 !important). */

/* 1. Hero slider box — slides are position:absolute, so the box needs a height source;
      aspect-ratio supplies it. Neutralize the R1 min-height:540px so 3:2 governs. */
body.home .em24-hero__slider {
    aspect-ratio: 3 / 2 !important; display: block !important;
    height: auto !important;
    min-height: 0 !important;
}
body.home .em24-hero__slide {
    position: absolute !important;
    inset: 0 !important;
}
body.home .em24-hero__slide img,
body.home .em24-hero__slide > img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}

/* 2. Hero sidebar thumbnails (fixed 100x70 desktop / full-width 160px @575px) */
body.home .em24-hero__sidebar-item img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}

/* 3. Category-column hero image (R1-flattened wrapper -> ratio lives on the img) */
body.home .em24-cat-column__hero img,
body.home .em24-cat-column__hero > img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}

/* 4. Tabs cards (wrapper holds the ratio; img fills it) */
body.home .em24-tabs__card-img {
    aspect-ratio: 3 / 2 !important; display: block !important;
    height: auto !important;
    min-height: 0 !important;
}
body.home .em24-tabs__card-img img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 5. Split main (sports) cards (wrapper holds the ratio) */
body.home .em24-split__card-img {
    aspect-ratio: 3 / 2 !important; display: block !important;
    height: auto !important;
    min-height: 0 !important;
}
body.home .em24-split__card-img img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 6. Split economy sidebar thumbnails (fixed 80x60) */
body.home .em24-split__sidebar-item img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}

/* 7. Visual stories (R1-flattened wrapper -> ratio on the img; base was 4/5) */
body.home .em24-story img,
body.home .em24-story > img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}

/* 8. Editor's-picks ribbon cards (div wrapper holds the ratio) */
body.home .em24-ribbon__card-img {
    aspect-ratio: 3 / 2 !important; display: block !important;
    height: auto !important;
    min-height: 0 !important;
}
body.home .em24-ribbon__card-img img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 9. Latest-news grid cards (wrapper holds the ratio) */
body.home .em24-latest__card-img {
    aspect-ratio: 3 / 2 !important; display: block !important;
    height: auto !important;
    min-height: 0 !important;
}
body.home .em24-latest__card-img img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 10. Mega-menu featured image (header on every page; body.home scope reshapes it on the
       homepage only — R1-flattened wrapper so the ratio lives on the img) */
body.home .em24-mega__featured img,
body.home .em24-mega__featured > img {
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important; display: block !important;
}
/* === END HOMEPAGE 3:2 IMAGE FIX === */

/* =============================================
   FOOTER v2 (2026-09-25) — Emirates-airline style
   Logo red #D53D5D, IBM Plex Sans Arabic inherited from body.
   ============================================= */
.em24-ft { background: #2B2B2E; color: #D4D4DA; font-family: inherit; padding-top: 46px; }
.em24-ft a { color: inherit; text-decoration: none; }
.em24-ft ul { list-style: none; margin: 0; padding: 0; }
.em24-ft h4 { margin: 0 0 14px; font-size: 1.125rem; font-weight: 700; color: #FFFFFF; line-height: 1.4; }

.em24-ft__groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.em24-ft__group li { margin: 0 0 7px; }
.em24-ft__group a { font-size: 0.9375rem; color: #C9C9D1; transition: color .2s; }
.em24-ft__group a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 5px; }

.em24-ft__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 34px 0 38px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.em24-ft__block p { margin: 0 0 16px; font-size: 0.9375rem; color: #B9B9C2; line-height: 1.7; }
.em24-ft__mail { display: block; margin-bottom: 14px; font-size: 1rem; font-weight: 600; color: #FFFFFF !important; text-align: right; unicode-bidi: isolate; }
.em24-ft__mail:hover { color: #F07A92 !important; }
.em24-ft__btn { display: inline-block; padding: 9px 22px; border: 1.5px solid #FFFFFF; border-radius: 3px; font-size: 0.875rem; font-weight: 700; color: #FFFFFF !important; transition: background .2s, color .2s; }
.em24-ft__btn:hover { background: #FFFFFF; color: #2B2B2E !important; }
.em24-ft__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 16px; background: #000000; border: 1px solid #6B6B72; border-radius: 8px; color: #FFFFFF !important; transition: border-color .2s; }
.em24-ft__badge svg { color: #25D366; flex: none; }
.em24-ft__badge span { display: flex; flex-direction: column; font-size: 1.125rem; font-weight: 700; line-height: 1.15; }
.em24-ft__badge small { font-size: 0.6875rem; font-weight: 400; color: #D4D4DA; }
.em24-ft__badge:hover { border-color: #FFFFFF; }
.em24-ft__social { display: flex; flex-wrap: wrap; gap: 8px; }
.em24-ft__social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #000000; border-radius: 4px; color: #FFFFFF !important; transition: background .2s; }
.em24-ft__social a:hover { background: #D53D5D; }

.em24-ft__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 26px; }
.em24-ft__legal { padding-bottom: 22px; }
.em24-ft__legal ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.em24-ft__legal a { font-size: 0.875rem; color: #C9C9D1; }
.em24-ft__legal a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 5px; }
.em24-ft__legal p { margin: 0; font-size: 0.8125rem; font-weight: 700; color: #FFFFFF; }
.em24-ft__tile { flex: none; display: flex; align-items: center; justify-content: center; width: 200px; height: 118px; background: #D53D5D; padding: 20px; }
.em24-ft__tile img { width: 100%; height: auto; display: block; }

[data-theme="dark"] .em24-ft { background: #0E131C; }
[data-theme="dark"] .em24-ft h4, [data-theme="dark"] .em24-ft__legal p { color: #FFFFFF !important; }

@media (max-width: 1024px) {
    .em24-ft__groups { grid-template-columns: repeat(2, 1fr); }
    .em24-ft__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .em24-ft { padding-top: 32px; }
    .em24-ft__groups { gap: 22px 16px; padding-bottom: 24px; }
    .em24-ft h4 { font-size: 1.0625rem; margin-bottom: 10px; }
    .em24-ft__group a { font-size: 0.9375rem; display: inline-block; padding: 3px 0; }
    .em24-ft__row { grid-template-columns: 1fr; gap: 26px; padding: 26px 0; }
    .em24-ft__social a { width: 44px; height: 44px; }
    .em24-ft__bottom { flex-direction: column-reverse; align-items: stretch; gap: 0; padding-top: 0; }
    .em24-ft__tile { width: auto; height: 96px; margin: 0 -20px; padding: 18px; }
    .em24-ft__tile img { width: 170px; }
    .em24-ft__legal { padding: 22px 0 90px; }
}

/* =============================================
   HEADER v2 (2026-09-25) — editorial masthead + charcoal bar + breaking rail
   Overrides the old tiered header (topbar/infobar/72px bar). Logo red #D53D5D, charcoal #2B2B2E.
   ============================================= */

/* UAE flag rail: red hoist band + green/white/black */
.em24-flag-stripe { height: 5px; background: linear-gradient(to left, #D53D5D 0 18%, #00843D 18% 45.3%, #FFFFFF 45.3% 72.6%, #1B1B1B 72.6% 100%); box-shadow: inset 0 -1px 0 rgba(0,0,0,.06); }

/* ---------- Masthead ---------- */
.em24-header.em24-mast { position: relative; top: auto; height: auto; background: #FFFFFF; border-bottom: 0; box-shadow: none; z-index: 1001; }
.em24-mast__inner { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; height: auto !important; padding-top: 18px; padding-bottom: 18px; }
.em24-mast__logo { display: block; line-height: 0; }
.em24-header .em24-mast__logo img { height: 92px; width: auto; }
.em24-mast__edition { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.em24-mast__tag { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: #2B2B2E; }
.em24-mast__tag i { width: 10px; height: 10px; background: #D53D5D; display: inline-block; }
.em24-mast__tag b { color: #D53D5D; font-weight: 700; }
.em24-mast__date { position: relative; font-size: .9375rem; font-weight: 500; color: #3D3D45; padding: 6px 22px 0; border-top: 1px solid #E4E4EA; }
.em24-mast__date em { font-style: normal; color: #8A8A94; margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid #D8D8DF; }
.em24-mast__tools { display: flex; align-items: center; gap: 10px; }
.em24-mast__weather { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 56px; padding: 0 12px; border: 1.5px solid #2B2B2E; line-height: 1.1; }
.em24-mast__weather small { font-size: .6875rem; color: #6B6B75; font-weight: 600; }
.em24-mast__weather strong { font-size: 1.25rem; font-weight: 700; color: #2B2B2E; direction: ltr; }
.em24-mast__btn { width: 56px !important; height: 56px !important; border-radius: 0 !important; border: 1.5px solid #2B2B2E !important; background: #FFFFFF !important; color: #2B2B2E !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.em24-mast__btn:hover { background: #2B2B2E !important; color: #FFFFFF !important; }
.em24-mast__btn.em24-header__hamburger { display: none !important; flex-direction: column; gap: 5px; }
.em24-mast__btn.em24-header__hamburger span { width: 22px; height: 2px; background: currentColor; display: block; margin: 0; }
.em24-dark-toggle.em24-mast__btn svg { width: 18px; height: 18px; stroke: currentColor !important; }
.em24-mast__date bdi, .em24-mast__date em { unicode-bidi: isolate; display: inline-block; }

/* ---------- Sticky nav bar ---------- */
.em24-bar { position: sticky; top: 0; z-index: 1000; background: #2B2B2E; }
.em24-bar__inner { display: flex; align-items: stretch; height: 54px; }
.em24-bar__mini { display: flex; align-items: center; justify-content: center; background: #D53D5D; width: 0; overflow: hidden; opacity: 0; transition: width .25s ease, opacity .25s ease, padding .25s ease; flex: none; }
.em24-bar__mini img { height: 30px; width: auto; }
.em24-bar--stuck .em24-bar__mini { width: 118px; opacity: 1; padding: 0 12px; margin-inline-end: 6px; }
.em24-bar--stuck { box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.em24-header__nav.em24-bar__nav { flex: 1; display: flex; align-items: stretch; height: 54px; gap: 0; min-width: 0; }
.em24-bar__nav .em24-header__nav-item { height: 54px; display: flex; }
.em24-bar__nav .em24-header__nav-item > a,
.em24-bar__nav a.em24-header__nav-link { height: 54px !important; line-height: 54px !important; padding: 0 16px !important; font-size: .96875rem !important; font-weight: 600 !important; color: #F2F2F5 !important; background: transparent !important; display: inline-flex; align-items: center; gap: 4px; transition: background .18s, color .18s; }
.em24-bar__nav .em24-header__nav-item > a::after { display: none !important; }
.em24-bar__nav .em24-header__nav-item:hover > a,
.em24-bar__nav .em24-header__nav-item:focus-within > a { background: #3A3A3F !important; color: #FFFFFF !important; }
.em24-bar__nav .em24-header__nav-item > a.active { background: #D53D5D !important; color: #FFFFFF !important; }
.em24-bar__search { width: 54px !important; height: 54px !important; border-radius: 0 !important; margin: 0 !important; background: #D53D5D !important; color: #FFFFFF !important; flex: none; }
.em24-bar__search:hover { background: #B8263F !important; }

/* megas hang from the 54px bar */
.em24-bar .em24-mega { top: 54px; border-top: 3px solid #D53D5D; border-radius: 0; }

/* ---------- Breaking-news rail ---------- */
.em24-rail { background: #F4F4F6; border-bottom: 1px solid #E4E4EA; }
.em24-rail__inner { display: flex; align-items: center; height: 46px; }
.em24-rail .em24-ticker { display: flex; align-items: center; width: 100%; height: 46px; gap: 0; background: none; padding: 0; overflow: hidden; }
.em24-rail .em24-ticker__label { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; background: #2B2B2E; color: #FFFFFF !important; font-weight: 700; font-size: .9375rem; border-radius: 0; flex: none; clip-path: none; }
.em24-rail .em24-ticker__label::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -14px; right: auto; height: 46px; width: 14px; margin: 0; z-index: 2; background: #2B2B2E; clip-path: polygon(100% 0, 0 50%, 100% 100%); transform: none; animation: none; border: 0; border-radius: 0; }
.em24-rail .em24-ticker__label i { width: 9px; height: 9px; background: #D53D5D; display: inline-block; animation: em24-rail-pulse 1.4s ease-in-out infinite; }
@keyframes em24-rail-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.em24-rail .em24-ticker__wrap { flex: 1; overflow: hidden; height: 46px; display: flex; align-items: center; padding-inline-start: 24px; mask-image: linear-gradient(to left, #000 88%, transparent); -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); }
.em24-rail .em24-ticker__track { display: flex; align-items: center; white-space: nowrap; }
.em24-rail .em24-ticker__item { position: relative; display: inline-flex; align-items: center; padding: 0 22px; font-size: .9375rem; font-weight: 500; color: #1F1F24 !important; white-space: nowrap; }
.em24-rail .em24-ticker__item::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: #D53D5D; }
.em24-rail .em24-ticker__item:hover { color: #D53D5D !important; }
@media (prefers-reduced-motion: reduce) { .em24-rail .em24-ticker__label i { animation: none; } }

/* ---------- Dark mode ---------- */
[data-theme="dark"] .em24-header.em24-mast { background: #0F141C; }
[data-theme="dark"] .em24-mast__tag, [data-theme="dark"] .em24-mast__date { color: #E5E7EB; }
[data-theme="dark"] .em24-mast__date { border-color: #2D3748; }
[data-theme="dark"] .em24-mast__weather, [data-theme="dark"] .em24-mast__btn { border-color: #3A4556 !important; background: transparent !important; color: #E5E7EB !important; }
[data-theme="dark"] .em24-mast__weather strong { color: #FFFFFF; }
[data-theme="dark"] .em24-bar { background: #1A1F29; }
[data-theme="dark"] .em24-rail { background: #121821; border-color: #2D3748; }
[data-theme="dark"] .em24-rail .em24-ticker__item { color: #E5E7EB !important; }
[data-theme="dark"] .em24-rail .em24-ticker__label, [data-theme="dark"] .em24-rail .em24-ticker__label::after { background: #D53D5D; }
[data-theme="dark"] .em24-header__logo img { filter: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .em24-bar__nav .em24-header__nav-item > a { padding: 0 11px !important; font-size: .90625rem !important; }
    .em24-mast__inner { gap: 20px; }
    .em24-header .em24-mast__logo img { height: 80px; }
}
@media (max-width: 991px) {
    .em24-mast__inner { grid-template-columns: auto 1fr; padding-top: 12px; padding-bottom: 12px; }
    .em24-mast__edition { display: none; }
    .em24-mast__tools { justify-self: end; gap: 8px; }
    .em24-header .em24-mast__logo img { height: 64px; }
    .em24-mast__btn.em24-header__hamburger { display: inline-flex !important; }
    .em24-mast__weather, .em24-mast__btn { height: 46px !important; }
    .em24-mast__btn { width: 46px !important; }
    .em24-mast__weather { min-width: 52px; height: 46px; }
    /* bar becomes a swipeable category strip; megas off */
    .em24-bar__inner { height: 46px; padding-left: 0; padding-right: 0; }
    .em24-header__nav.em24-bar__nav { display: flex !important; overflow-x: auto; scrollbar-width: none; height: 46px; }
    .em24-header__nav.em24-bar__nav::-webkit-scrollbar { display: none; }
    .em24-bar__nav .em24-header__nav-item { height: 46px; flex: none; }
    .em24-bar__nav .em24-header__nav-item > a { height: 46px !important; line-height: 46px !important; padding: 0 14px !important; font-size: .875rem !important; }
    .em24-bar__nav .em24-header__nav-item--more, .em24-bar .em24-mega { display: none !important; }
    .em24-bar__search, .em24-bar__mini { display: none !important; }
}
@media (max-width: 575px) {
    .em24-header .em24-mast__logo img { height: 54px; }
    .em24-mast__weather { display: none; }
    .em24-rail__inner { padding-left: 0; padding-right: 0; }
    .em24-rail .em24-ticker__label { padding: 0 12px; font-size: .875rem; }
    .em24-rail .em24-ticker__item { font-size: .875rem; }
}

/* sticky fix: overflow-x:hidden on html+body turns body into a scroll container and kills position:sticky */
html, body { overflow-x: clip !important; }
@supports not (overflow-x: clip) { html { overflow-x: visible !important; } }
.em24-rail .em24-ticker__track:empty::before { content: "تابع آخر المستجدات لحظة بلحظة"; font-size: .9375rem; color: #8A8A94; padding: 0 22px; }
[data-theme="dark"] .em24-rail .em24-ticker__track:empty::before { color: #9CA3AF; }

/* logged-in admin bar: the old sticky-header offset must not nudge the (non-sticky) masthead; offset the sticky bar instead */
body.admin-bar .em24-header.em24-mast { top: auto !important; }
body.admin-bar .em24-bar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .em24-bar { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .em24-bar { top: 0; } }

/* align the عاجل tile under the الرئيسية tile: same start edge, same width */
.em24-rail .em24-ticker { margin: 0 !important; }
.em24-bar__nav a.em24-bar__home { width: 92px; justify-content: center; padding: 0 !important; }
.em24-rail .em24-ticker__label { width: 92px; justify-content: center; padding: 0 !important; }
@media (max-width: 991px) { .em24-bar__nav a.em24-bar__home { width: auto; padding: 0 14px !important; } .em24-rail .em24-ticker__label { width: 84px; } }

/* dark-mode logo swap (EMIRATES wordmark in white) */
.em24-header .em24-mast__logo img.em24-mast__logo-dark { display: none; }
[data-theme="dark"] .em24-header .em24-mast__logo img.em24-mast__logo-light { display: none; }
[data-theme="dark"] .em24-header .em24-mast__logo img.em24-mast__logo-dark { display: block; filter: none !important; opacity: 1 !important; }
