/* ==========================================================================
   HESPRESS THEME DESIGN SYSTEM (for Roaya TV)
   Exact replicate of Hespress styling, typography, colors, and layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --hp-primary: #06a030;         /* Roeya Signature Emerald Green (from Logo) */
    --hp-primary-dark: #047724;
    --hp-primary-light: #08bd39;
    --hp-accent: #c00000;          /* Hespress / Urgent Red */
    --hp-red: #c00000;
    --hp-red-dark: #990000;
    --hp-bg: #ffffff;              /* Clean white page background matching screenshot */
    --hp-card-bg: #ffffff;
    --hp-text: #111827;
    --hp-text-muted: #6c757d;
    --hp-border: #e5e7eb;
    --hp-border-light: #f1f5f9;
    --hp-font-heading: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
    --hp-font-body: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
    --hp-dark-section: #0a1c12;    /* Deep Forest Green for dark sections */
    --hp-radius: 4px;
    --hp-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --hp-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ─── Global & RTL Base ─────────────────────────────────────────── */
html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--hp-font-body);
    color: var(--hp-text);
    background-color: var(--hp-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--hp-red);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hp-font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--hp-text);
}

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

.container {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ─── Section Headings (Hespress Title Bar) ────────────────────────── */
.title-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--hp-border);
    position: relative;
}

.title-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--hp-red);
}

.lsa-widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-right: 12px;
    color: var(--hp-text);
}

.lsa-widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--hp-red);
    border-radius: 2px;
}

.lsa-widget-title a {
    color: var(--hp-text);
}

.lsa-widget-title a:hover {
    color: var(--hp-red);
}

.title-head .more-link,
.title-head .view-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hp-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.title-head .more-link:hover,
.title-head .view-more:hover {
    color: var(--hp-red-dark);
}

/* ─── TOP UTILITY BAR (Date, Weather, Ticker, Social, Lang) ────────── */
.hespress-top-bar {
    background: var(--hp-bg);
    border-bottom: 1px solid var(--hp-border);
    font-size: 0.8rem;
    color: var(--hp-text-muted);
    padding: 6px 0;
}

.hespress-top-bar .inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--hp-text-muted);
}

.top-date i {
    color: var(--hp-red);
}

.top-weather-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-text-muted);
    cursor: pointer;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    font-weight: 600;
}

.top-weather-btn:hover {
    background: #e5e7eb;
    color: var(--hp-text);
}

.top-markets-snippet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
}

.top-markets-snippet .pill-up {
    color: #15803d;
}

.top-markets-snippet .pill-down {
    color: #b91c1c;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.top-social-links a {
    color: var(--hp-text-muted);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s;
}

.top-social-links a:hover {
    color: #ffffff;
    background: var(--hp-primary);
}

.top-social-links a.social-fb:hover { background: #1877f2; }
.top-social-links a.social-tw:hover { background: #000000; }
.top-social-links a.social-yt:hover { background: #ff0000; }
.top-social-links a.social-ig:hover { background: #e1306c; }
.top-social-links a.social-tk:hover { background: #000000; }

.top-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-right: 1px solid var(--hp-border);
    padding-right: 12px;
    margin-right: 6px;
}

.top-lang-btn {
    border: 1px solid #d1d5db;
    background: var(--hp-card-bg);
    color: var(--hp-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.top-lang-btn.active,
.top-lang-btn:hover {
    background: var(--hp-red);
    color: #ffffff;
    border-color: var(--hp-red);
}

.top-night-btn {
    background: none;
    border: none;
    color: var(--hp-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}

/* ─── BRAND HEADER (Logo & Leaderboard Ad) ────────────────────────── */
.hespress-brand-header {
    background: var(--hp-bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hespress-brand-header .inner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.hp-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-brand-logo .logo-symbol {
    height: 52px;
    width: auto;
}

.hp-brand-logo .logo-typography {
    display: flex;
    flex-direction: column;
}

.hp-brand-logo .logo-title {
    font-family: var(--hp-font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--hp-red);
    line-height: 1;
    letter-spacing: -0.5px;
}

.hp-brand-logo .logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hp-text-muted);
    margin-top: 2px;
}

.hp-header-banner {
    max-width: 728px;
    max-height: 90px;
    display: none;
}

@media (min-width: 992px) {
    .hp-header-banner {
        display: block;
    }
}

.hp-ad-placeholder {
    width: 728px;
    height: 90px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--hp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ─── MAIN STICKY NAVIGATION BAR ─────────────────────────────────── */
.hespress-navbar {
    background: var(--hp-bg);
    border-bottom: 2px solid var(--hp-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hespress-navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-right-side {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
}

.nav-right-side::-webkit-scrollbar {
    display: none;
}

.hp-burger-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--hp-text);
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.hp-burger-btn:hover {
    background: #f3f4f6;
    color: var(--hp-red);
}

.hp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.hp-nav-menu > li {
    position: relative;
}

.hp-nav-menu > li > a {
    display: inline-block;
    padding: 13px 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hp-text);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.hp-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--hp-red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.hp-nav-menu > li > a:hover {
    color: var(--hp-red);
}

.hp-nav-menu > li > a:hover::after,
.hp-nav-menu > li.active > a::after {
    transform: scaleX(1);
}

.hp-nav-menu > li.active > a {
    color: var(--hp-red);
}

.nav-left-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hp-nav-search-wrap {
    position: relative;
}

.hp-search-toggle-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--hp-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hp-search-toggle-btn:hover {
    color: var(--hp-red);
    background: #f3f4f6;
}

.hp-nav-search-form {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    white-space: nowrap;
    z-index: 1030;
}

.hp-nav-search-form.is-open {
    width: 240px;
}

.hp-nav-search-form input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--hp-border);
    border-radius: 20px;
    padding: 0 14px;
    font-size: 0.85rem;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: var(--hp-card-bg);
    color: var(--hp-text);
    direction: rtl;
    text-align: right;
}

/* ─── BREAKING NEWS TICKER (شريط عاجل) ─────────────────────────────── */
.hespress-ticker-bar {
    background: var(--hp-bg);
    border-bottom: 1px solid var(--hp-border);
    height: 42px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hespress-ticker-bar .ticker-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hp-ticker-badge {
    background: var(--hp-red);
    color: #ffffff;
    font-family: var(--hp-font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0 16px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.hp-ticker-pulse-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: hpPulse 1.4s infinite;
}

@keyframes hpPulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

.hp-ticker-track-wrap {
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.hp-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    animation: hpTickerSlide 35s linear infinite;
    white-space: nowrap;
}

.hp-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes hpTickerSlide {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

.hp-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hp-text);
    text-decoration: none;
}

.hp-ticker-item:hover {
    color: var(--hp-red);
}

.hp-ticker-time {
    color: var(--hp-red);
    font-weight: 700;
    font-size: 0.78rem;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ─── SECTION 1: HEADING HERO SECTION ────────────────────────────── */
.heading-section {
    padding: 20px 0 25px;
}

.heading-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.heading-section [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Column 1: Main Lead Carousel (headlines bloc_col) */
.hp-lead-carousel {
    background: var(--hp-card-bg);
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000000;
}

.hp-carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-carousel-main:hover img {
    transform: scale(1.03);
}

.hp-carousel-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0.95) 100%);
    color: #ffffff;
}

.hp-carousel-overlay .cat-badge {
    display: inline-block;
    background: var(--hp-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.hp-carousel-overlay .headline-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hp-carousel-overlay .headline-title:hover {
    color: #fca5a5;
}

.hp-carousel-thumbs-row {
    display: flex;
    border-top: 1px solid var(--hp-border);
    background: #fafafa;
}

.hp-carousel-thumb-item {
    flex: 1;
    padding: 10px 12px;
    border-left: 1px solid var(--hp-border);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hp-text-muted);
    line-height: 1.3;
    transition: all 0.2s;
}

.hp-carousel-thumb-item:last-child {
    border-left: none;
}

.hp-carousel-thumb-item:hover,
.hp-carousel-thumb-item.active {
    background: var(--hp-card-bg);
    color: var(--hp-red);
    border-top: 2px solid var(--hp-red);
    margin-top: -1px;
}

/* Column 2: 24 Heures (24 ساعة) */
.h24-b {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 14px 16px;
    box-shadow: var(--hp-shadow);
    height: 100%;
}

.h24-b .title-head {
    padding-top: 0;
}

.h24-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.h24-list::-webkit-scrollbar {
    width: 4px;
}
.h24-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.h24-list > li {
    border-bottom: 1px dashed var(--hp-border);
    padding: 9px 0;
}

.h24-list > li:last-child {
    border-bottom: none;
}

.h24-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
}

.h24-list .time-label {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--hp-red);
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.h24-list h3 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hp-text);
    margin: 0;
}

.h24-list a:hover h3 {
    color: var(--hp-red);
}

/* Column 3: "مصدر مطلع" & "زاوية حادة" (Editorial Insight Cards) */
.hp-insight-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 14px 16px;
    box-shadow: var(--hp-shadow);
    margin-bottom: 15px;
}

.hp-insight-box:last-child {
    margin-bottom: 0;
}

.hp-insight-box .title-head {
    padding-top: 0;
}

.hp-insight-box .card-excerpt {
    font-size: 0.86rem;
    color: var(--hp-text-muted);
    line-height: 1.6;
    margin: 0;
}

.hp-insight-box h3.card-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.hp-insight-box a:hover h3.card-title {
    color: var(--hp-red);
}

/* ─── SECTION 2: SAWT WA SOURA (صوت وصورة - Hespress TV) ────────── */
.hp-video-section-wrap {
    background: var(--hp-dark-section);
    color: #ffffff;
    padding: 30px 0 35px;
    margin: 25px 0;
}

.hp-video-section-wrap .lsa-widget-title {
    color: #ffffff;
}

.hp-video-section-wrap .lsa-widget-title a {
    color: #ffffff;
}

.hp-video-section-wrap .lsa-widget-title::before {
    background: var(--hp-red);
}

.hp-video-section-wrap .title-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hp-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .hp-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hp-video-grid {
        grid-template-columns: 1fr;
    }
}

.hp-video-card {
    background: #242c44;
    border-radius: var(--hp-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.hp-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hp-video-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
}

.hp-video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hp-video-card:hover .hp-video-thumb-wrap img {
    transform: scale(1.05);
    opacity: 1;
}

.hp-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(192, 0, 0, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hp-video-card:hover .hp-play-icon {
    background: var(--hp-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.hp-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hp-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}

.hp-video-card-body {
    padding: 12px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hp-video-date {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.hp-video-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.hp-video-card:hover .hp-video-card-title {
    color: #f87171;
}

/* ─── SECTION 3: INTERACTIVE (Infographic, Poll, Up/Down) ────────── */
.interactive-section {
    padding: 10px 0 25px;
}

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

@media (max-width: 991px) {
    .interactive-grid {
        grid-template-columns: 1fr;
    }
}

.interactive-card-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 16px;
    box-shadow: var(--hp-shadow);
}

/* Hespress Poll Widget */
.hp-poll-box h3 {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 14px;
    line-height: 1.4;
}

.hp-poll-option {
    margin-bottom: 10px;
}

.hp-poll-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.hp-progress-wrap {
    height: 7px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.hp-progress-bar {
    height: 100%;
    background: var(--hp-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.hp-poll-meta {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--hp-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-poll-vote-btn {
    background: var(--hp-primary);
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.hp-poll-vote-btn:hover {
    background: var(--hp-primary-dark);
}

/* Up/Down Widget (طالع / نازل) */
.updown-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.updown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background: var(--hp-border-light);
    border: 1px solid #f3f4f6;
}

.updown-item.is-up {
    border-right: 3px solid #16a34a;
}

.updown-item.is-down {
    border-right: 3px solid #dc2626;
}

.updown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.updown-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.updown-tag.up-text { color: #16a34a; }
.updown-tag.down-text { color: #dc2626; }

.updown-name {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 2px 0 4px;
    line-height: 1.2;
}

.updown-text {
    font-size: 0.78rem;
    color: var(--hp-text-muted);
    line-height: 1.35;
    margin: 0;
}

/* ─── SECTION 4: SPORTS SECTION (رياضة — EXACT HESPRESS PHOTO 2 OVERLAY STYLE) ─── */
.sports-section-wrap {
    padding: 25px 0 35px;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}

.hp-section-header-bar {
    background: var(--hp-primary);
    border-radius: 3px;
    padding: 10px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-section-header-bar h2 {
    margin: 0;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hp-section-header-bar h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hp-section-header-bar h2 a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* ── Showcase Dynamic Category Slider ── */
.hp-showcase-header-bar {
    justify-content: space-between;
    padding: 6px 14px;
    gap: 12px;
}

.hp-showcase-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.hp-showcase-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.hp-showcase-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    border: none;
    outline: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hp-showcase-tab:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hp-showcase-tab.active {
    background: var(--hp-card-bg);
    color: var(--hp-primary);
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.hp-showcase-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hp-showcase-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.hp-showcase-more-link:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.hp-showcase-arrow-btn {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.hp-showcase-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.hp-showcase-slides-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 4px;
}

.hp-showcase-track {
    display: flex;
    width: 100%;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hp-showcase-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: block;
}

/* 1 Lead (Right in RTL) + 4 Subs (2x2 Grid on Left in RTL) */
.hp-overlay-grid-wrap {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.hp-overlay-lead-col {
    flex: 0 0 calc(50% - 7px);
    max-width: calc(50% - 7px);
    display: flex;
}

.hp-overlay-lead-card {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
    text-decoration: none;
}

.hp-overlay-lead-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.hp-overlay-lead-card:hover img {
    transform: scale(1.03);
}

.hp-overlay-lead-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.05) 75%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    z-index: 2;
}

.hp-overlay-lead-date {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-overlay-lead-title {
    color: #ffffff;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 4 Subs 2x2 Grid */
.hp-overlay-subs-col {
    flex: 0 0 calc(50% - 7px);
    max-width: calc(50% - 7px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.hp-overlay-sub-card {
    position: relative;
    width: 100%;
    min-height: 203px;
    border-radius: 4px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
    text-decoration: none;
}

.hp-overlay-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.hp-overlay-sub-card:hover img {
    transform: scale(1.04);
}

.hp-overlay-sub-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.48) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
    z-index: 2;
}

.hp-overlay-sub-date {
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-overlay-sub-title {
    color: #ffffff;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

@media (max-width: 991px) {
    .hp-overlay-grid-wrap {
        flex-direction: column;
    }
    .hp-overlay-lead-col,
    .hp-overlay-subs-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hp-overlay-lead-card {
        min-height: 320px;
    }
}

@media (max-width: 575px) {
    .hp-overlay-subs-col {
        grid-template-columns: 1fr;
    }
    .hp-overlay-sub-card {
        min-height: 180px;
    }
}

/* ─── SECTION 5: CATEGORY 3-GRID (سياسة، اقتصاد، خارج الحدود — MATCHING BOTTOM OF PHOTO 2) ─── */
.hp-category-3col-wrap,
.category-3col-section {
    padding: 25px 0 35px;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}

.hp-cat-3col-grid,
.cat-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .hp-cat-3col-grid,
    .cat-3col-grid {
        grid-template-columns: 1fr;
    }
}

.hp-cat-col-block,
.cat-col-block {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 16px;
    box-shadow: var(--hp-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-cat-col-header {
    border-bottom: 2px solid var(--hp-primary);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.hp-cat-col-header h2 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
}

.hp-cat-col-header h2 a {
    color: var(--hp-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.hp-cat-col-header h2 a:hover {
    color: var(--hp-text);
}

.hp-cat-lead-card {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    text-decoration: none;
}

.hp-cat-lead-thumb {
    flex: 0 0 42%;
    max-width: 42%;
    aspect-ratio: 16 / 10;
    max-height: 90px;
    overflow: hidden;
    border-radius: 3px;
}

.hp-cat-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hp-cat-lead-card:hover .hp-cat-lead-thumb img {
    transform: scale(1.05);
}

.hp-cat-lead-info {
    flex: 1;
}

.hp-cat-lead-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--hp-text);
    line-height: 1.35;
    margin: 0 0 4px;
    transition: color 0.2s;
}

.hp-cat-lead-card:hover .hp-cat-lead-title {
    color: var(--hp-primary);
}

.hp-cat-lead-excerpt {
    font-size: 0.78rem;
    color: var(--hp-text-muted);
    line-height: 1.4;
    margin: 0;
}

.hp-cat-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--hp-border);
    flex: 1;
}

.hp-cat-sub-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--hp-border-light);
}

.hp-cat-sub-list li:last-child {
    border-bottom: none;
}

.hp-cat-sub-list a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: var(--hp-text);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s;
}

.hp-cat-sub-list a:hover {
    color: var(--hp-primary);
}

.hp-cat-sub-list a i {
    color: var(--hp-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.horizontal-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hp-border-light);
}

.horizontal-post-item:first-child {
    padding-top: 0;
}

.horizontal-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.horizontal-post-thumb {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.horizontal-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-post-content {
    flex-grow: 1;
}

.horizontal-post-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--hp-text);
}

.horizontal-post-item:hover .horizontal-post-title {
    color: var(--hp-red);
}

.horizontal-post-time {
    font-size: 0.72rem;
    color: var(--hp-text-muted);
}

/* Prayer Times & Weather Widget Box */
.meteo-prayer-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 16px;
    box-shadow: var(--hp-shadow);
}

.prayer-table {
    width: 100%;
    margin-bottom: 14px;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: center;
}

.prayer-table th {
    background: #f1f5f9;
    padding: 6px 4px;
    font-weight: 700;
    color: var(--hp-text-muted);
    border: 1px solid var(--hp-border);
}

.prayer-table td {
    padding: 6px 4px;
    font-weight: 600;
    color: var(--hp-red);
    border: 1px solid var(--hp-border);
}

.weather-snippet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
}

.weather-snippet-temp {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hp-text);
}

/* ─── SECTION 6: WRITERS & OPINIONS (كُتّاب وآراء) ────────────────── */
.writers-section-wrap {
    background: var(--hp-border-light);
    padding: 18px 0 28px;
    margin: 8px 0 22px;
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}

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

@media (max-width: 991px) {
    .writers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .writers-grid {
        grid-template-columns: 1fr;
    }
}

.writer-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.writer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-hover);
}

.writer-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--hp-border);
}

.writer-body {
    flex-grow: 1;
}

.writer-article-title {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--hp-text);
}

.writer-card:hover .writer-article-title {
    color: var(--hp-red);
}

.writer-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--hp-primary);
    display: block;
}

/* ─── SECTION 7: MOST POPULAR (الأكثر قراءة / الأكثر مشاهدة / الأكثر تعليقاً) ── */
.popular-section-wrap {
    padding: 15px 0 30px;
}

.popular-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .popular-3col-grid {
        grid-template-columns: 1fr;
    }
}

.popular-col-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 16px;
    box-shadow: var(--hp-shadow);
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--hp-border);
    align-items: center;
}

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

.popular-rank-num {
    font-family: var(--hp-font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--hp-red);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.popular-item-thumb {
    width: 80px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--hp-text);
}

.popular-item:hover .popular-item-title {
    color: var(--hp-red);
}

/* ─── SECTION 8: NEWSLETTER & APP DOWNLOAD ───────────────────────── */
.hespress-after-footer {
    background: var(--hp-dark-section);
    color: #ffffff;
    padding: 35px 0;
    margin-top: 30px;
}

.after-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.newsletter-side {
    flex: 1;
    min-width: 300px;
}

.newsletter-side h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.newsletter-side p {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
    max-width: 480px;
}

.newsletter-input-group input {
    flex-grow: 1;
    height: 42px;
    border: none;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 0.9rem;
    direction: rtl;
    text-align: right;
    outline: none;
}

.newsletter-input-group button {
    background: var(--hp-red);
    color: #ffffff;
    border: none;
    font-family: var(--hp-font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-input-group button:hover {
    background: var(--hp-red-dark);
}

.app-download-side {
    flex: 1;
    min-width: 300px;
}

.app-download-side h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.app-download-side p {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.store-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 6px 14px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.store-badge-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ─── FOOTER (المتوسط والسفلي) ──────────────────────────────────── */
.hespress-main-footer {
    background: #111827;
    color: var(--hp-text-muted);
    padding: 40px 0 20px;
    font-size: 0.86rem;
}

.footer-top-brand {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo-title {
    font-family: var(--hp-font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.footer-social-row a {
    color: var(--hp-text-muted);
    background: #1f2937;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.footer-social-row a:hover {
    color: #ffffff;
    background: var(--hp-red);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 25px 0;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 2px;
    background: var(--hp-red);
}

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

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: var(--hp-text-muted);
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #ffffff;
    padding-right: 4px;
}

.footer-bottom-bar {
    text-align: center;
    padding-top: 20px;
    font-size: 0.78rem;
    color: var(--hp-text-muted);
}

/* ─── ARTICLE DETAIL PAGE (صفحة المقال) ─────────────────────────── */
.hp-article-container {
    padding: 20px 0 40px;
}

/* Fix sidebar overflow — ensure the row clears its children */
.hp-article-container .row {
    align-items: flex-start;
}

/* Sticky sidebar so it stays within the article area */
@media (min-width: 992px) {
    .hp-article-container .col-lg-4 {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #e5e7eb transparent;
        padding-bottom: 20px;
    }
    .hp-article-container .col-lg-4::-webkit-scrollbar {
        width: 3px;
    }
    .hp-article-container .col-lg-4::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 4px;
    }
}

.hp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--hp-text-muted);
    margin-bottom: 14px;
}

.hp-breadcrumb a {
    color: var(--hp-text-muted);
    font-weight: 600;
}

.hp-breadcrumb a:hover {
    color: var(--hp-red);
}

.hp-article-headline {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.35;
    color: var(--hp-text);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hp-article-headline {
        font-size: 1.5rem;
    }
}

.hp-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--hp-border);
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--hp-text-muted);
}

.hp-author-byline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--hp-text);
}

.hp-author-byline img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hespress Action Bar (A+/A-, Print, Share) */
.hp-action-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-action-btn {
    border: 1px solid var(--hp-border);
    background: var(--hp-card-bg);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--hp-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.hp-action-btn:hover {
    background: var(--hp-card-hover);
    color: var(--hp-red);
    border-color: var(--hp-border);
}

.hp-share-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hp-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.88rem;
    transition: opacity 0.2s;
}

.hp-share-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

.hp-share-wa { background: #25d366; }
.hp-share-fb { background: #1877f2; }
.hp-share-tw { background: #000000; }
.hp-share-tg { background: #0088cc; }

.hp-article-featured-img {
    margin: 15px 0 8px;
    border-radius: var(--hp-radius);
    overflow: hidden;
}

.hp-photo-credit {
    font-size: 0.75rem;
    color: var(--hp-text-muted);
    font-style: italic;
    margin-bottom: 20px;
    display: block;
    border-bottom: 1px solid var(--hp-border);
    padding-bottom: 6px;
}

.hp-photo-credit i {
    margin-left: 4px;
}

.hp-article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--hp-text);
    margin-bottom: 30px;
}

.hp-article-body p {
    margin-bottom: 1.35rem;
}

.hp-article-body blockquote {
    background: #f8fafc;
    border-right: 4px solid var(--hp-red);
    padding: 14px 18px;
    margin: 20px 0;
    font-style: italic;
    color: #334155;
    border-radius: 0 4px 4px 0;
}

/* ─── MOBILE OFFCANVAS DRAWER (#menuSidebar) ─────────────────────── */
.hp-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.hp-sidebar-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--hp-bg);
    z-index: 2005;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease, left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.hp-sidebar-drawer.is-open {
    right: 0;
}

/* LTR Support (French, English, Spanish): Drawer slides from Left */
body.ltr .hp-sidebar-drawer,
html[dir="ltr"] .hp-sidebar-drawer,
[dir="ltr"] .hp-sidebar-drawer {
    right: auto;
    left: -320px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

body.ltr .hp-sidebar-drawer.is-open,
html[dir="ltr"] .hp-sidebar-drawer.is-open,
[dir="ltr"] .hp-sidebar-drawer.is-open {
    left: 0;
    right: auto;
}

.hp-drawer-header {
    background: var(--hp-primary);
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-drawer-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.hp-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.hp-drawer-categories {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.hp-drawer-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hp-text);
    border-bottom: 1px solid var(--hp-border);
}

.hp-drawer-categories li a:hover {
    background: #f8fafc;
    color: var(--hp-red);
}

/* ─── NIGHT MODE OVERRIDES ───────────────────────────────────────── */
html.night-mode,
body.night-mode,
.night-mode {
    --hp-bg: #090e1a;
    --hp-card-bg: #131b2e;
    --hp-card-hover: #1a253c;
    --hp-text: #f1f5f9;
    --hp-text-muted: #94a3b8;
    --hp-border: #1e293b;
    --hp-border-light: #28354e;
    --hp-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    --hp-dark-section: #050811;
    background-color: var(--hp-bg) !important;
    color: var(--hp-text) !important;
}

/* ── GLOBAL DARK MODE: Override ALL hardcoded text and background colors ── */
/* This catch-all ensures no hardcoded color leaks through regardless of selector specificity */
.night-mode body,
.night-mode main,
.night-mode section,
.night-mode article,
.night-mode aside,
.night-mode div:not([class*="play-btn"]):not([class*="badge"]):not([class*="green"]) {
    color: inherit;
}

/* Force all text elements to use light color in dark mode */
.night-mode .hp-exact-video-section,
.night-mode .hp-exact-video-section *:not(img):not(.play-btn):not(i[class*="fa"]),
.night-mode .hp-world-news-section,
.night-mode .hp-world-news-section *:not(img),
.night-mode .hp-category-3col-wrap,
.night-mode .hp-category-3col-wrap *:not(img),
.night-mode .sports-section-wrap,
.night-mode .sports-section-wrap *:not(img),
.night-mode .hp-most-read-poll-section,
.night-mode .hp-most-read-poll-section *:not(img),
.night-mode .writers-section-wrap,
.night-mode .writers-section-wrap *:not(img) {
    color: var(--hp-text);
}

/* Specific text that should be muted */
.night-mode .hp-exact-video-section .video-time,
.night-mode .hp-world-time,
.night-mode .hp-rank-meta,
.night-mode .writer-card .writer-position,
.night-mode .writer-card .writer-meta,
.night-mode .hp-cat-col-block .hp-cat-col-excerpt,
.night-mode .hp-cat-col-block time,
.night-mode .hp-cat-col-block .time {
    color: var(--hp-text-muted) !important;
}

/* Section and card backgrounds */
.night-mode .hp-exact-video-section {
    background: var(--hp-bg) !important;
}

.night-mode .hp-exact-video-card {
    background: var(--hp-card-bg) !important;
}

.night-mode .hp-exact-video-card:hover {
    background: var(--hp-card-hover) !important;
}

.night-mode .hp-category-3col-wrap,
.night-mode .category-3col-section {
    background: var(--hp-bg) !important;
}

.night-mode .writers-section-wrap {
    background: #0d1424 !important;
}

.night-mode .writer-card {
    background: var(--hp-card-bg) !important;
    border-color: var(--hp-border) !important;
}

.night-mode .writer-card:hover {
    background: var(--hp-card-hover) !important;
}

/* Smooth transition for theme toggle */
html.night-mode,
html.night-mode body,
html.night-mode .hp-white-navbar,
html.night-mode div,
html.night-mode nav,
html.night-mode section,
html.night-mode header {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

/* Top brand header & moon button */
.night-mode .hp-header-moon-btn {
    color: #facc15 !important;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* White Sub-Navbar in Dark Mode */
.night-mode .hp-white-navbar {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

.night-mode .hp-nav-burger-btn {
    color: #34d399 !important;
}

.night-mode .hp-nav-burger-btn:hover {
    background: #1e293b !important;
}

.night-mode .hp-nav-cat-list > li > a {
    color: #cbd5e1 !important;
}

.night-mode .hp-nav-cat-list > li > a:hover,
.night-mode .hp-nav-cat-list > li.active > a {
    color: #34d399 !important;
    border-bottom-color: #34d399 !important;
}

.night-mode .hp-search-pill-form {
    background: #172033 !important;
    border: 1px solid #28354e !important;
}

.night-mode .hp-search-pill-form:hover {
    background: #1e293b !important;
    border-color: #3b4d6e !important;
}

.night-mode .hp-search-pill-form:focus-within {
    background: #0d1526 !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2) !important;
}

.night-mode .hp-search-pill-form input,
.night-mode .hp-search-pill-form input[type="text"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #f1f5f9 !important;
}

.night-mode .hp-search-pill-form input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.65;
}

.night-mode .hp-search-pill-icon {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
}

.night-mode .hp-search-pill-form:focus-within .hp-search-pill-icon {
    color: #34d399 !important;
}

.night-mode .hp-nav-social-icons a {
    color: #94a3b8 !important;
}

.night-mode .hp-nav-social-icons a:hover {
    color: #34d399 !important;
}

/* News Ticker Bar */
.night-mode .hespress-ticker-bar,
.night-mode .hp-ticker-container,
.night-mode .marquee-wrap,
.night-mode .hp-ticker-bar {
    background: #0d1424 !important;
    border-color: #1e293b !important;
}

.night-mode .hp-ticker-bar a,
.night-mode .marquee-wrap a {
    color: #cbd5e1 !important;
}

.night-mode .hp-ticker-bar a:hover,
.night-mode .marquee-wrap a:hover {
    color: #34d399 !important;
}

/* Hero Section & 24h Column */
.night-mode .hp-exact-hero-section {
    background: #090e1a !important;
}

.night-mode .hp-exact-col-24h {
    background: #131b2e !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.night-mode .hp-24h-header {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

.night-mode .hp-24h-items-list li {
    border-bottom: 1px solid #1e293b !important;
}

.night-mode .hp-24h-items-list li a:hover {
    background: #1a253c !important;
}

.night-mode .hp-24h-title {
    color: #f1f5f9 !important;
}

.night-mode .hp-24h-time {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

.night-mode .hp-exact-col-center {
    background: #131b2e !important;
    border: 1px solid #1e293b !important;
}

.night-mode .hp-slider-headline,
.night-mode .hp-featured-title {
    color: #f8fafc !important;
}

/* Universal Cards & Containers */
.night-mode .horizontal-post-item,
.night-mode .hp-card,
.night-mode .hp-lead-card,
.night-mode .sports-lead-card,
.night-mode .sports-sub-card,
.night-mode .cat-col-block,
.night-mode .writer-card,
.night-mode .interactive-card-box,
.night-mode .popular-col-box,
.night-mode .meteo-prayer-box,
.night-mode .h24-b,
.night-mode .hp-insight-box,
.night-mode .writers-section-wrap,
.night-mode .updown-item,
.night-mode div[style*="background:#fff"],
.night-mode div[style*="background: #fff"],
.night-mode div[style*="background:#ffffff"],
.night-mode div[style*="background: #ffffff"],
.night-mode div[style*="background:white"],
.night-mode div[style*="background: white"] {
    background: #131b2e !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.night-mode h1,
.night-mode h2,
.night-mode h3,
.night-mode h4,
.night-mode h5,
.night-mode h6,
.night-mode .horizontal-post-title,
.night-mode .popular-item-title,
.night-mode .hp-article-headline,
.night-mode .lsa-widget-title,
.night-mode .lsa-widget-title span,
.night-mode .title-head h1,
.night-mode .title-head h2,
.night-mode .title-head h3,
.night-mode .hp-section-title a,
.night-mode .hp-blue-section-title a {
    color: #f8fafc !important;
}

.night-mode p,
.night-mode .horizontal-post-time,
.night-mode .hp-article-excerpt,
.night-mode .post-meta,
.night-mode .time-label,
.night-mode span[style*="color:#6b7280"],
.night-mode span[style*="color: #6b7280"] {
    color: #94a3b8 !important;
}

.night-mode a:hover {
    color: #34d399 !important;
}

/* Article Page, Search & Category Pages */
.night-mode .hp-article-container,
.night-mode .hp-breadcrumb,
.night-mode .hp-comments-area,
.night-mode .hp-comment-box,
.night-mode .hp-author-box,
.night-mode .hp-related-box {
    background: #131b2e !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.night-mode .hp-breadcrumb a {
    color: #94a3b8 !important;
}

.night-mode .hp-article-body,
.night-mode .hp-article-body * {
    color: #e2e8f0 !important;
}

.night-mode .hp-article-body blockquote {
    background: #1e293b !important;
    border-right-color: #34d399 !important;
    border-left-color: #34d399 !important;
    color: #f8fafc !important;
}

.night-mode input[type="text"]:not(.hp-search-pill-form input),
.night-mode input[type="search"]:not(.hp-search-pill-form input),
.night-mode input[type="email"],
.night-mode textarea,
.night-mode select {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

.night-mode input::placeholder,
.night-mode textarea::placeholder {
    color: #64748b !important;
}

/* Sidebar Drawer (Hamburger) */
.night-mode .hp-sidebar-drawer,
.night-mode .drawer-inner,
.night-mode .hp-drawer-wrap {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.night-mode .hp-drawer-header {
    background: #090e1a !important;
    border-bottom: 1px solid #1e293b !important;
}

.night-mode .hp-drawer-close-btn {
    color: #94a3b8 !important;
}

.night-mode .hp-drawer-close-btn:hover {
    color: #ffffff !important;
}

.night-mode .hp-drawer-categories li a {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1e293b !important;
}

.night-mode .hp-drawer-categories li a:hover {
    background: #1a253c !important;
    color: #34d399 !important;
}

/* Footer in Dark Mode */
.night-mode .footer-area,
.night-mode .hp-footer,
.night-mode footer {
    background: #060a12 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

.night-mode .footer-area a,
.night-mode .hp-footer a,
.night-mode footer a {
    color: #cbd5e1 !important;
}

.night-mode .footer-area a:hover,
.night-mode .hp-footer a:hover,
.night-mode footer a:hover {
    color: #34d399 !important;
}

/* ── SECTION BACKGROUNDS (Sports, World News, Most-Read, etc.) ── */
.night-mode .sports-section-wrap,
.night-mode .hp-world-news-section,
.night-mode .hp-most-read-poll-section,
.night-mode .hp-showcase-section,
.night-mode .hp-category-section,
.night-mode .hp-writers-section,
.night-mode .hp-videos-section,
.night-mode .hp-opinion-section {
    background: #090e1a !important;
    border-top-color: #1e293b !important;
}

/* ── CARDS & BLOCKS inside those sections ── */
.night-mode .hp-lead-card,
.night-mode .hp-sub-card,
.night-mode .sports-lead-card,
.night-mode .sports-sub-card,
.night-mode .hp-world-card,
.night-mode .hp-news-card,
.night-mode .hp-insight-card,
.night-mode .hp-insight-box,
.night-mode .hp-cat-col-block,
.night-mode .hp-showcase-card,
.night-mode .hp-video-card,
.night-mode .hp-opinion-card,
.night-mode .hp-writer-card,
.night-mode .writer-card,
.night-mode .hp-most-read-box,
.night-mode .hp-poll-card,
.night-mode .hp-poll-box {
    background: #131b2e !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.night-mode .hp-lead-card:hover,
.night-mode .hp-sub-card:hover,
.night-mode .sports-lead-card:hover,
.night-mode .sports-sub-card:hover,
.night-mode .hp-world-card:hover,
.night-mode .hp-news-card:hover,
.night-mode .hp-insight-card:hover,
.night-mode .hp-showcase-card:hover,
.night-mode .hp-cat-col-block:hover {
    background: #1a253c !important;
    border-color: #2d3f5e !important;
}

/* ── CARD TITLES & EXCERPTS ── */
.night-mode .hp-lead-card .title,
.night-mode .hp-sub-card .title,
.night-mode .sports-lead-card .title,
.night-mode .sports-sub-card .title,
.night-mode .hp-world-card .title,
.night-mode .hp-insight-card .title,
.night-mode .hp-insight-card h3,
.night-mode .hp-cat-col-block .title,
.night-mode .hp-cat-col-block h3,
.night-mode .hp-cat-col-block h4 {
    color: #f8fafc !important;
}

.night-mode .hp-lead-card .excerpt,
.night-mode .hp-sub-card .excerpt,
.night-mode .hp-world-card .excerpt,
.night-mode .hp-insight-card .excerpt,
.night-mode .hp-insight-card p,
.night-mode .hp-cat-col-block .excerpt,
.night-mode .hp-cat-col-block p {
    color: #94a3b8 !important;
}

/* ── SHOWCASE / VIDEO TABS ── */
.night-mode .hp-showcase-tabs,
.night-mode .hp-videos-tabs,
.night-mode .hp-cat-tabs {
    background: #0d1424 !important;
    border-color: #1e293b !important;
}

.night-mode .hp-showcase-tab-btn,
.night-mode .hp-videos-tab-btn,
.night-mode .hp-cat-tab-btn {
    color: #94a3b8 !important;
    border-color: transparent !important;
}

.night-mode .hp-showcase-tab-btn.active,
.night-mode .hp-videos-tab-btn.active,
.night-mode .hp-cat-tab-btn.active {
    background: var(--hp-primary) !important;
    color: #ffffff !important;
    border-color: var(--hp-primary) !important;
}

/* ── MOST READ LIST ITEMS ── */
.night-mode .hp-most-read-item,
.night-mode .most-read-item,
.night-mode .hp-ranked-item {
    background: #131b2e !important;
    border-color: #1e293b !important;
}

.night-mode .hp-most-read-item:hover,
.night-mode .most-read-item:hover,
.night-mode .hp-ranked-item:hover {
    background: #1a253c !important;
}

.night-mode .hp-rank-badge,
.night-mode .most-read-num {
    background: var(--hp-primary) !important;
    color: #ffffff !important;
}

.night-mode .hp-most-read-item .title,
.night-mode .most-read-item .title,
.night-mode .hp-ranked-item .title {
    color: #f8fafc !important;
}

/* ── OPINION POLL ── */
.night-mode .hp-poll-label,
.night-mode .poll-label {
    color: #94a3b8 !important;
}

.night-mode .hp-poll-option,
.night-mode .poll-option {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.night-mode .hp-poll-option:hover,
.night-mode .poll-option:hover {
    background: #1a253c !important;
    border-color: var(--hp-primary) !important;
}

.night-mode .hp-poll-bar,
.night-mode .poll-bar-track {
    background: #1e293b !important;
}

.night-mode .hp-poll-bar-fill,
.night-mode .poll-bar-fill {
    background: var(--hp-primary) !important;
}

/* ── UNIVERSAL SECTION / DIV CATCH-ALL ── */
/* Overrides any remaining hardcoded white backgrounds on section-level elements */
.night-mode section[style*="background:#fff"],
.night-mode section[style*="background: #fff"],
.night-mode section[style*="background:#ffffff"],
.night-mode section[style*="background: #ffffff"],
.night-mode section[style*="background:white"],
.night-mode section[style*="background: white"] {
    background: #090e1a !important;
}

/* ==========================================================================
   HESPRESS EXACT REPLICA - SCREENSHOT ALIGNED SPECIFICATIONS
   ========================================================================== */

/* 1. TOP BRAND EMERALD GREEN HEADER */
.hp-blue-header,
.hp-brand-header {
    background-color: var(--hp-primary);
    background: var(--hp-primary);
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Right Side in RTL: Brand Logo */
.hp-header-right {
    display: flex;
    align-items: center;
}

.hp-main-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    gap: 8px;
}

.hp-brand-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.hp-brand-text {
    font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

body.ltr .hp-brand-text {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.05rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

body.ltr .hp-drawer-title,
body.ltr .footer-logo-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}

@media (max-width: 575px) {
    .hp-brand-text {
        font-size: 1.85rem;
    }
    body.ltr .hp-brand-text {
        font-size: 1.45rem;
    }
    .hp-brand-logo-img {
        height: 36px;
    }
}

/* Left Side in RTL: Tools (Moon + Language Pills) */
.hp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr; /* Moon on far left, followed by EN, FR */
}

.hp-header-moon-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    transition: opacity 0.2s, transform 0.2s;
}

.hp-header-moon-btn:hover {
    opacity: 1;
    transform: rotate(-15deg);
}

/* World Icon Language Dropdown in Header Bar */
.hp-lang-dropdown-wrap {
    position: relative;
    display: inline-block;
    direction: ltr;
}

.hp-header-globe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.hp-header-globe-btn i.fa-globe {
    font-size: 0.95rem;
    color: #ffffff;
}

.hp-header-globe-btn .hp-current-lang-code {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hp-header-globe-btn .hp-globe-chevron {
    font-size: 0.72rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.hp-header-globe-btn:hover,
.hp-lang-dropdown-wrap.is-open .hp-header-globe-btn {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

.hp-header-globe-btn:hover i.fa-globe,
.hp-lang-dropdown-wrap.is-open .hp-header-globe-btn i.fa-globe {
    color: var(--hp-primary);
}

.hp-lang-dropdown-wrap.is-open .hp-globe-chevron {
    transform: rotate(180deg);
}

/* Floating Dropdown Menu */
.hp-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 175px;
    background: var(--hp-card-bg);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 10000;
    animation: hpLangMenuFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .hp-lang-menu {
    left: 0;
    right: auto;
}

[dir="ltr"] .hp-lang-menu {
    right: 0;
    left: auto;
}

.hp-lang-dropdown-wrap.is-open .hp-lang-menu {
    display: block;
}

@keyframes hpLangMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hp-lang-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 6px 10px 4px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-lang-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
}

.hp-lang-item .hp-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.hp-lang-item .hp-lang-name {
    flex: 1;
    white-space: nowrap;
}

.hp-lang-item .hp-lang-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.hp-lang-item .hp-lang-check {
    color: var(--hp-primary);
    font-size: 0.8rem;
}

.hp-lang-item:hover {
    background: #f8fafc;
    color: var(--hp-primary);
}

.hp-lang-item.active {
    background: #eaf8ee;
    color: var(--hp-primary);
    font-weight: 700;
}

.hp-lang-item.active .hp-lang-tag {
    background: var(--hp-primary);
    color: #ffffff;
}

/* Night Mode adaptation */
.night-mode .hp-lang-menu {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.night-mode .hp-lang-menu-title {
    color: #94a3b8;
    border-bottom-color: #334155;
}
.night-mode .hp-lang-item {
    color: #e2e8f0;
}
.night-mode .hp-lang-item:hover {
    background: #334155;
    color: #ffffff;
}
.night-mode .hp-lang-item.active {
    background: rgba(22, 163, 74, 0.25);
    color: #86efac;
}
.night-mode .hp-lang-item .hp-lang-tag {
    background: #334155;
    color: #94a3b8;
}
.night-mode .hp-lang-item.active .hp-lang-tag {
    background: #16a34a;
    color: #ffffff;
}

/* Drawer mobile language buttons */
.hp-drawer-lang-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.hp-drawer-lang-btn:hover,
.hp-drawer-lang-btn.active {
    background: var(--hp-primary);
    color: #ffffff;
    border-color: var(--hp-primary);
}

/* Weather button in the green header bar */
.hp-header-weather-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.92rem;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    font-family: var(--hp-font-body);
}

.hp-header-weather-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.hp-header-weather-btn:active {
    transform: translateY(0);
}

/* 2. WHITE SUB-NAVBAR */
.hp-white-navbar {
    background: var(--hp-bg);
    border-bottom: 1px solid var(--hp-border);
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1025;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hp-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Right Side in RTL: Categories & Drawer */
.hp-nav-right-menu {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hp-nav-right-menu::-webkit-scrollbar {
    display: none;
}

.hp-nav-burger-btn {
    background: none;
    border: none;
    color: var(--hp-primary);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.hp-nav-burger-btn:hover {
    background: #f1f5f9;
}

.hp-nav-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.hp-nav-cat-list > li > a {
    display: inline-block;
    padding: 12px 10px;
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--hp-text);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.hp-nav-cat-list > li > a:hover,
.hp-nav-cat-list > li.active > a {
    color: var(--hp-primary);
}

.hp-nav-cat-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 8px;
    left: 8px;
    height: 3px;
    background: var(--hp-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.hp-nav-cat-list > li > a:hover::after,
.hp-nav-cat-list > li.active > a::after {
    transform: scaleX(1);
}

/* Left Side in RTL: Socials & Search */
.hp-nav-left-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    direction: ltr; /* Socials on far left, Search to their right */
}

.hp-search-pill-form {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 0 10px;
    height: 32px;
    border: 1px solid #e2e8f0;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

body.rtl .hp-search-pill-form {
    direction: rtl;
}

body.ltr .hp-search-pill-form {
    direction: ltr;
}

.hp-search-pill-form:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.hp-search-pill-form:focus-within {
    background: #ffffff;
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 3px rgba(6, 160, 48, 0.15);
}

.hp-search-pill-icon {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--hp-text-muted);
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.hp-search-pill-icon:hover,
.hp-search-pill-form:focus-within .hp-search-pill-icon {
    color: var(--hp-primary);
}

.hp-search-pill-form input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--hp-text);
    padding: 0 2px !important;
    margin: 0 !important;
    height: 100% !important;
    width: 90px;
    font-family: inherit;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

body.rtl .hp-search-pill-form input {
    direction: rtl;
    text-align: right;
}

body.ltr .hp-search-pill-form input {
    direction: ltr;
    text-align: left;
}

.hp-search-pill-form input:focus {
    width: 140px;
}

.hp-search-pill-form input::placeholder {
    color: var(--hp-text-muted);
    opacity: 0.7;
    font-size: 0.8rem;
}

.hp-nav-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-nav-social-icons a {
    color: var(--hp-text);
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.hp-nav-social-icons a:hover {
    color: var(--hp-primary);
    transform: scale(1.1);
}

/* LTR adjustments for Sub-Navbar */
body.ltr .hp-nav-burger-btn {
    margin-right: 8px;
    margin-left: 0;
}

body.ltr .hp-search-pill-form input {
    direction: ltr;
    text-align: left;
}

/* Responsive Sub-Navbar: On tablets & phones, categories are organized in the drawer menu */
@media (max-width: 991px) {
    .hp-nav-cat-list {
        display: none !important;
    }
    .hp-nav-right-menu {
        overflow: visible;
        flex-shrink: 0;
    }
    .hp-nav-burger-btn {
        margin: 0 4px;
        padding: 6px 8px;
    }
}

@media (max-width: 575px) {
    .hp-nav-left-tools {
        gap: 8px;
    }
    .hp-nav-social-icons {
        gap: 7px;
    }
    .hp-nav-social-icons a {
        font-size: 0.88rem;
    }
    .hp-search-pill-form {
        height: 28px;
        padding: 0 8px;
    }
    .hp-search-pill-form input {
        width: 70px;
        font-size: 0.78rem;
    }
    .hp-search-pill-form input:focus {
        width: 105px;
    }
}

@media (max-width: 360px) {
    .hp-nav-social-icons {
        gap: 5px;
    }
    .hp-search-pill-form input {
        width: 55px;
    }
    .hp-search-pill-form input:focus {
        width: 85px;
    }
}

/* 3. HERO 3-COLUMN SECTION (EXACT HESPRESS LAYOUT) */
.hp-exact-hero-section {
    padding: 25px 0 35px;
    background: var(--hp-bg);
}

.hp-exact-hero-section {
    padding: 16px 0 24px;
    background: var(--hp-bg);
}

.hp-exact-hero-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -14px;
    margin-left: -14px;
    align-items: stretch; /* All columns share the exact same height */
}

/* Right Column (24 ساعة) */
.hp-exact-col-24h {
    flex: 0 0 28%;
    max-width: 28%;
    padding: 0 14px;
    order: 1; /* In RTL: right side */
    display: flex;
    flex-direction: column;
}

/* Center Column (Headline + Big Slider) */
.hp-exact-col-center {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 0 14px;
    order: 2; /* Center */
    display: flex;
    flex-direction: column;
}

/* Left Column (مصدر مطلع + زاوية حادة) */
.hp-exact-col-insights {
    flex: 0 0 27%;
    max-width: 27%;
    padding: 0 14px;
    order: 3; /* Left side */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .hp-exact-hero-row {
        align-items: flex-start;
    }
    .hp-exact-col-24h,
    .hp-exact-col-center,
    .hp-exact-col-insights {
        flex: 0 0 100%;
        max-width: 100%;
        order: unset;
        margin-bottom: 25px;
    }
}

.hp-blue-section-title {
    color: var(--hp-primary);
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.hp-blue-section-title a {
    color: var(--hp-primary);
    text-decoration: none;
}

.hp-blue-section-title a:hover {
    color: var(--hp-primary-dark);
}

/* 24 ساعة Header & List with Internal Scrollbar */
.hp-24h-header {
    height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 8px;
}

.hp-24h-items-list {
    list-style: none;
    padding: 0 6px 0 0;
    margin: 0;
    height: 410px;
    max-height: 410px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.hp-24h-items-list::-webkit-scrollbar {
    width: 4px;
}

.hp-24h-items-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.hp-24h-items-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s;
}

.hp-24h-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--hp-primary);
}

.hp-24h-items-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #e2e8f0;
}

.hp-24h-items-list li:last-child {
    border-bottom: none;
}

.hp-24h-items-list li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.hp-24h-time {
    color: var(--hp-primary);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-width: 42px;
    letter-spacing: -0.5px;
}

.hp-24h-title {
    font-size: 0.87rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s;
}

.hp-24h-items-list li a:hover .hp-24h-title {
    color: var(--hp-primary);
}

/* Center Headline with locked height */
.hp-headline-wrapper {
    height: 52px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.hp-center-lead-headline {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hp-text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    text-align: right;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.hp-center-lead-headline:hover {
    color: var(--hp-primary);
}

/* Slider Container with locked height and smooth track */
.hp-center-slider-wrap {
    position: relative;
    width: 100%;
    height: 410px;
    min-height: 410px;
    max-height: 410px;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    direction: ltr; /* Keeps translation coordinates predictable */
}

/* Smooth Gliding Track */
.hp-center-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hp-center-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hp-center-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Guaranteed uniform photo size */
.hp-center-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-center-slide a:hover .hp-center-slider-img {
    transform: scale(1.02);
}

/* Elegant Chevron Arrows matching Photo 2 */
.hp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    width: 38px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    z-index: 5;
    border-radius: 3px;
    backdrop-filter: blur(2px);
}

.hp-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.hp-slider-arrow.arrow-right,
.hp-slider-arrow.next { right: 8px; left: auto; }
.hp-slider-arrow.arrow-left,
.hp-slider-arrow.prev { left: 8px; right: auto; }

/* Modern Dots Pagination */
.hp-slider-dots-row {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    z-index: 5;
}

.hp-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hp-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hp-slider-dot.active {
    background: var(--hp-primary);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 2px #ffffff;
    transform: scale(1.15);
}

/* Left Insights Cards matching Photo 2 */
.hp-insight-card {
    flex: 1;
    background: var(--hp-border-light);
    border: 1px solid #edf2f7;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-insight-card:last-child {
    margin-bottom: 0;
}

.hp-insight-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hp-insight-title {
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--hp-primary);
    display: inline-block;
    width: 100%;
}

.hp-insight-title a {
    color: var(--hp-primary);
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-insight-title a:hover {
    color: var(--hp-primary-dark);
}

.hp-insight-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.hp-insight-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.65;
    margin: 0;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.hp-insight-text:hover {
    color: var(--hp-primary);
}

/* Section Below: صوت وصورة */
.hp-exact-video-section {
    padding: 10px 0 35px;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}

.hp-exact-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 991px) {
    .hp-exact-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hp-exact-video-grid {
        grid-template-columns: 1fr;
    }
}

.hp-exact-video-card {
    background: var(--hp-card-bg);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.hp-exact-video-card .thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.hp-exact-video-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hp-exact-video-card:hover .thumb-wrap img {
    transform: scale(1.04);
}

.hp-exact-video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: rgba(6, 160, 48, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hp-exact-video-card .video-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.4;
    margin: 8px 0 0;
    transition: color 0.2s;
}

.hp-exact-video-card:hover .video-title {
    color: var(--hp-primary);
}

/* ==========================================================================
   SECTION 5: الأكثر قراءة (MOST READ TABS) & استطلاع الرأي (POLL)
   ========================================================================== */
.hp-most-read-poll-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .hp-most-read-poll-grid {
        grid-template-columns: 1fr;
    }
}

.hp-most-read-col,
.hp-poll-col {
    min-width: 0;
    width: 100%;
}

.hp-most-read-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 4px;
    padding: 18px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-most-read-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--hp-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-mr-tabs {
    display: flex;
    gap: 6px;
}

.hp-mr-tab {
    background: var(--hp-border-light);
    border: none;
    color: var(--hp-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-mr-tab:hover {
    background: var(--hp-border);
}

.hp-mr-tab.active {
    background: var(--hp-primary);
    color: #ffffff;
}

.hp-mr-tab-content {
    flex: 1;
}

.hp-ranked-list {
    display: flex;
    flex-direction: column;
    max-height: 460px;
    overflow-y: auto;
    padding-left: 6px;
}

.hp-ranked-list::-webkit-scrollbar {
    width: 5px;
}

.hp-ranked-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.hp-ranked-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.hp-ranked-list::-webkit-scrollbar-thumb:hover {
    background: var(--hp-primary);
}

.hp-ranked-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.hp-ranked-item:last-child {
    border-bottom: none;
}

.hp-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--hp-text-muted);
    font-weight: 900;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
}

.hp-rank-badge.top-one {
    background: var(--hp-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(6, 160, 48, 0.35);
}

.hp-ranked-info {
    flex: 1;
    min-width: 0;
}

.hp-rank-cat {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--hp-primary);
    display: block;
    margin-bottom: 2px;
}

.hp-rank-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.hp-rank-title:hover {
    color: var(--hp-primary);
}

.hp-rank-meta {
    font-size: 0.75rem;
    color: var(--hp-text-muted);
    margin-top: 3px;
    display: block;
}

.hp-rank-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.hp-rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hp-ranked-item:hover .hp-rank-thumb img {
    transform: scale(1.05);
}

/* Hespress Poll Widget */
.hp-poll-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    padding: 18px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hp-poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hp-poll-tag {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--hp-primary);
}

.hp-poll-badge {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.hp-poll-question {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.5;
    margin: 0 0 16px;
}

.hp-poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.hp-poll-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hp-text);
    cursor: pointer;
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    padding: 8px 12px;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.hp-poll-label:hover {
    border-color: var(--hp-primary);
}

.hp-poll-submit-btn {
    width: 100%;
    background: var(--hp-primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.hp-poll-submit-btn:hover {
    background: var(--hp-primary-dark);
}

.hp-poll-result-bar {
    margin-bottom: 12px;
}

.hp-pr-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.hp-pr-track {
    height: 9px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.hp-pr-fill {
    height: 100%;
    background: var(--hp-primary);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.hp-pr-fill.no {
    background: #ef4444;
}

.hp-pr-fill.neutral {
    background: #94a3b8;
}

.hp-poll-footer-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   SECTION 6: تحقيقات ومطولات (IN-DEPTH INVESTIGATIONS GRID)
   ========================================================================== */
.hp-investigations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .hp-investigations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hp-investigations-grid {
        grid-template-columns: 1fr;
    }
}

.hp-investigation-card {
    background: #1e293b;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #334155;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-investigation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.hp-inv-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 185px;
    max-height: 185px;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.hp-inv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.hp-investigation-card:hover .hp-inv-thumb img {
    transform: scale(1.05);
}

.hp-inv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
    pointer-events: none;
}

.hp-inv-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #06a030;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hp-inv-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-inv-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    margin: 0 0 8px;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-investigation-card:hover .hp-inv-title {
    color: #22c55e;
}

.hp-inv-excerpt {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-inv-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #64748b;
    border-top: 1px solid #334155;
    padding-top: 10px;
}

/* ==========================================================================
   SECTION 7: خارج الحدود (WORLD NEWS GRID)
   ========================================================================== */
.hp-world-news-section {
    padding: 25px 0 35px;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}

.hp-most-read-poll-section {
    padding: 25px 0 35px;
    background: var(--hp-bg);
    border-top: 1px solid var(--hp-border);
}

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

@media (max-width: 991px) {
    .hp-world-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hp-world-news-grid {
        grid-template-columns: 1fr;
    }
}

.hp-world-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-world-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hp-world-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 135px;
    max-height: 135px;
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.hp-world-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.hp-world-card:hover .hp-world-thumb img {
    transform: scale(1.05);
}

.hp-world-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-world-time {
    font-size: 0.72rem;
    color: var(--hp-text-muted);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hp-world-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hp-text);
    margin: 0;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-world-card:hover .hp-world-title {
    color: var(--hp-primary);
}

/* ==========================================================================
   UNIVERSAL BOOTSTRAP GRID FALLBACKS (Prevents unstyled full-width blocks)
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
    min-width: 0;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* ==========================================================================
   ARTICLE PAGE ENHANCEMENTS (Audio player, reactions, quote, bottom related)
   ========================================================================== */
/* Audio Listen Bar */
.hp-listen-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    padding: 10px 16px;
    margin: 14px 0 20px;
}

.hp-listen-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hp-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.hp-listen-btn:hover {
    background: var(--hp-primary-dark);
    transform: scale(1.05);
}

.hp-listen-info {
    flex: 1;
}

.hp-listen-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--hp-text);
    display: block;
}

.hp-listen-status {
    font-size: 0.75rem;
    color: var(--hp-text-muted);
}

/* Hespress Editorial Blockquotes */
.hp-article-body blockquote {
    position: relative;
    margin: 25px 0;
    padding: 16px 24px 16px 18px;
    background: var(--hp-border-light);
    border-right: 4px solid var(--hp-primary);
    border-radius: 0 4px 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.7;
    color: var(--hp-text);
    font-style: italic;
}

.hp-article-body blockquote::before {
    content: "❝";
    font-size: 2.2rem;
    color: var(--hp-primary);
    position: absolute;
    top: -5px;
    right: 8px;
    opacity: 0.35;
    line-height: 1;
}

/* Inline Related Box between paragraphs */
.hp-inline-related-box {
    margin: 24px 0;
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-right: 3px solid var(--hp-primary);
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-inline-related-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.hp-inline-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-inline-related-text {
    flex: 1;
}

.hp-inline-related-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--hp-primary);
    display: block;
}

.hp-inline-related-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hp-text);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.hp-inline-related-title:hover {
    color: var(--hp-primary);
}

/* Emoji Reactions Bar */
.hp-reactions-box {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    padding: 18px 20px;
    margin: 30px 0;
    text-align: center;
}

.hp-reactions-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--hp-text);
    margin-bottom: 16px;
}

.hp-reactions-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hp-reaction-btn {
    background: var(--hp-border-light);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    transition: all 0.2s ease;
}

.hp-reaction-btn:hover,
.hp-reaction-btn.voted,
.hp-reaction-btn.active {
    border-color: var(--hp-primary);
    background: rgba(6, 160, 48, 0.12);
    transform: translateY(-2px);
}

.night-mode .hp-reaction-btn {
    background: #1a253c !important;
    border-color: #28354e !important;
    color: #f1f5f9 !important;
}

.night-mode .hp-reaction-btn:hover,
.night-mode .hp-reaction-btn.voted,
.night-mode .hp-reaction-btn.active {
    border-color: #34d399 !important;
    background: rgba(6, 160, 48, 0.35) !important;
}

.night-mode .hp-reaction-name {
    color: #cbd5e1 !important;
}

.night-mode .hp-reaction-count {
    color: #94a3b8 !important;
}

.hp-reaction-emoji {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.hp-reaction-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hp-text-muted);
}

.hp-reaction-count {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Comment Upvote / Downvote */
.hp-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.hp-comment-vote-btn {
    background: var(--hp-border-light);
    border: none;
    color: var(--hp-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.hp-comment-vote-btn:hover,
.hp-comment-vote-btn.voted {
    color: var(--hp-primary);
    background: #dcfce7;
}

.night-mode .hp-comment-vote-btn:hover,
.night-mode .hp-comment-vote-btn.voted {
    color: #34d399 !important;
    background: rgba(13, 92, 58, 0.4) !important;
}

/* Comments Guidelines Notice Box */
.hp-comment-rules-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #1e40af;
    margin-bottom: 16px;
    line-height: 1.5;
}

.night-mode .hp-comment-rules-notice {
    background: #172554 !important;
    border-color: #1e3a8a !important;
    color: #93c5fd !important;
}

/* Bottom Related Grid (4 cols) */
.hp-bottom-related-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid var(--hp-border);
    width: 100%;
}

.hp-bottom-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .hp-bottom-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hp-bottom-related-grid {
        grid-template-columns: 1fr;
    }
}

.hp-bottom-rel-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.hp-bottom-rel-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hp-bottom-rel-thumb {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
}

.hp-bottom-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hp-bottom-rel-card:hover .hp-bottom-rel-thumb img {
    transform: scale(1.05);
}

.hp-bottom-rel-body {
    padding: 12px;
    flex: 1;
}

.hp-bottom-rel-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0 0 6px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}

.hp-bottom-rel-title:hover {
    color: var(--hp-primary);
}

.hp-bottom-rel-time {
    font-size: 0.75rem;
    color: var(--hp-text-muted);
}

/* Accessibility: Respect Reduced Motion Preferences */
@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;
    }
}

/* ==========================================================================
   Roeya / Hespress Clean Pagination Styles
   ========================================================================== */

/* Universal SVG Icon Safety Constraint */
svg.w-5, svg.h-5,
.w-5, .h-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
}

nav[role="navigation"] {
    width: 100%;
    margin: 24px 0 16px;
    padding: 12px 16px;
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-border, #e5e7eb);
    border-radius: 8px;
    box-shadow: var(--hp-shadow, 0 1px 3px rgba(0,0,0,0.06));
    box-sizing: border-box;
}

/* Force pagination SVGs to be crisp and neatly sized */
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    fill: currentColor !important;
}

/* Desktop layout (>= 640px) */
@media (min-width: 640px) {
    nav[role="navigation"] > div:first-child:not(:only-child) {
        display: none !important;
    }
    nav[role="navigation"] > div:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        width: 100% !important;
    }
}

/* Mobile layout (< 640px) */
@media (max-width: 639px) {
    nav[role="navigation"] > div:first-child:not(:only-child) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    nav[role="navigation"] > div:last-child:not(:only-child) {
        display: none !important;
    }
}

/* "Showing X to Y of Z results" summary text */
nav[role="navigation"] p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}
nav[role="navigation"] p span {
    color: #1e293b !important;
    font-weight: 700 !important;
}

/* Pagination buttons container */
nav[role="navigation"] span.rounded-md,
nav[role="navigation"] .shadow-sm {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: none !important;
    border: none !important;
}

[dir="rtl"] nav[role="navigation"] span.rounded-md,
[dir="rtl"] nav[role="navigation"] .shadow-sm {
    flex-direction: row !important;
}

/* Individual pagination buttons / links */
nav[role="navigation"] a,
nav[role="navigation"] span.inline-flex > span,
nav[role="navigation"] > div > a,
nav[role="navigation"] > div > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

nav[role="navigation"] a:hover {
    background: #eaf8ee !important;
    border-color: var(--hp-primary, #0d5c3a) !important;
    color: var(--hp-primary, #0d5c3a) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(13, 92, 58, 0.15) !important;
}

/* Active current page */
nav[role="navigation"] span[aria-current="page"] > span,
nav[role="navigation"] .bg-gray-200 {
    background: var(--hp-primary, #0d5c3a) !important;
    border-color: var(--hp-primary, #0d5c3a) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(13, 92, 58, 0.3) !important;
    cursor: default !important;
}

/* Disabled state */
nav[role="navigation"] span[aria-disabled="true"] > span,
nav[role="navigation"] .cursor-not-allowed {
    color: #cbd5e1 !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    transform: none !important;
}

/* Night Mode Support */
.night-mode nav[role="navigation"] {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
.night-mode nav[role="navigation"] p {
    color: #94a3b8 !important;
}
.night-mode nav[role="navigation"] p span {
    color: #f1f5f9 !important;
}
.night-mode nav[role="navigation"] a,
.night-mode nav[role="navigation"] span.inline-flex > span,
.night-mode nav[role="navigation"] > div > a,
.night-mode nav[role="navigation"] > div > span {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
.night-mode nav[role="navigation"] a:hover {
    background: rgba(13, 92, 58, 0.35) !important;
    border-color: #10b981 !important;
    color: #86efac !important;
}
.night-mode nav[role="navigation"] span[aria-current="page"] > span {
    background: var(--hp-primary, #0d5c3a) !important;
    border-color: var(--hp-primary, #0d5c3a) !important;
    color: #ffffff !important;
}
.night-mode nav[role="navigation"] span[aria-disabled="true"] > span {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #475569 !important;
}


