/*
Theme Name: أصوات - القالب الصحفي المباشر
Version: 2.3.0
Text Domain: aswat-theme
Description: نسخة الهوية البصرية المحدثة - هيدر ممركز بدون بحث، وهيرو سينمائي ببيانات الكاتب والتاريخ
*/

/* ==========================================================================
   1. نظام الألوان والخطوط والأساسيات العامة
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght=400;500;700;800;900&display=swap');

html {
    box-sizing: border-box;
}

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

body {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    background-color: #FDFDFD;
    color: #1A1A1A;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

.container,
.site-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0071BC;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #E5E7EB;
    margin: 40px 0;
}

/* ==========================================================================
   2. نظام المعالجة الصارمة للصور ومنع التمطيط (Anti-Stretching)
   ========================================================================== */
.magazine-thumb-wrapper,
.hero-image,
.card-thumb,
.book-cover {
    overflow: hidden;
    position: relative;
    background: #f7f7f7;
    width: 100%;
    border-radius: 4px;
}

.hero-section {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-image {
    height: 420px;
    border-radius: 6px;
}

.magazine-thumb-wrapper {
    height: 240px;
}

.magazine-thumb-wrapper img,
.card-thumb img,
.book-cover img,
.fact-img-holder img,
.media-img-square img,
.hero-image img,
.hero-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-image img,
.hero-image a img {
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.fact-img-holder,
.media-img-square {
    width: 85px;
    height: 85px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   3. بنية الشبكات والعناوين (Headers Setup) بالقالب
   ========================================================================== */
.block-title,
.aswat-section-header {
    border-right: 5px solid #0071BC;
    padding-right: 15px;
    padding-left: 0;
    font-size: 24px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #111111;
    text-align: right;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text .section-badge,
.hero-text .badge,
.badge-red,
.hero-badge-red {
    display: inline-block;
    background: #0071BC;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.badge-red,
.hero-badge-red {
    font-size: 13px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.hero-text h2 {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.hero-text h2 a {
    color: #111317;
}

.hero-text h2 a:hover {
    color: #0071BC;
}

.hero-excerpt {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

.meta-info,
.hero-text .meta,
.entry-meta-bar {
    font-size: 13px;
    color: #9CA3AF;
    border-top: 1px solid #F3F4F6;
    padding-top: 12px;
}

.entry-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6B7280;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    border-top: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.two-columns-grid,
.aswat-columns-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Paires de sections côte à côte sur desktop, empilées sur mobile */
@media (max-width: 768px) {
    .aswat-columns-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.aswat-modern-grid,
.magazine-grid,
.library-grid,
.aswat-library-flex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* ==========================================================================
   4. الهيدر الشفاف الممركز بالكامل (Centered & Clean Transparent Header)
   ========================================================================== */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 0 10px 0;
    z-index: 999;
}

.site-header .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .site-branding,
.site-branding-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.site-header .custom-logo-img,
.site-branding-centered .custom-logo-img,
.site-branding-centered .custom-logo-link img {
    height: 80px !important;
    width: auto !important;
    display: inline-block !important;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.12));
}

/* صف الملاحة الممركز بعد حذف خانة البحث */
.header-navigation-row {
    display: flex !important;
    justify-content: center !important;
    /* توسيط القائمة تماماً */
    align-items: center !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 15px !important;
    width: 100% !important;
}

.main-navigation {
    display: block !important;
    margin: 0 auto !important;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    /* مسافة متناسقة ومريحة بين العناصر */
    justify-content: center;
}

.main-navigation li {
    font-weight: 700;
    font-size: 16px;
}

/* تغيير اللون من الأسود إلى أزرق داكن مطفي فخم متباين مع التدرج الأبيض */
.main-navigation li a {
    color: #1E293B !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    transition: color 0.25s ease;
}

.main-navigation li a:hover,
.main-navigation ul li a:hover {
    color: #0071BC !important;
}


/* إخفاء تام لأي مخلفات برمجية لخانة البحث */
.header-search,
.header-search .search-form {
    display: none !important;
}

/* ==========================================================================
   5. قسم الهيرو البانورامي التحريري (الأناقة النقية بدون أيقونات وببيانات النشر)
   ========================================================================== */
.aswat-mada-hero-full {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    height: 75vh !important;
    min-height: 560px !important;
    max-height: 700px !important;
    background: #0B0F17;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mada-hero-bg-full {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: absolute !important;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.aswat-mada-hero-full:hover .mada-hero-bg-full {
    transform: scale(1.015);
}

/* طبقة الإضاءة العلوية البيضاء الفاخرة للشعار + التدرج السفلي الداكن للنصوص */
.mada-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.15) 28%, rgba(11, 15, 23, 0.35) 55%, rgba(11, 15, 23, 0.92) 100%) !important;
    z-index: 1;
}

.mada-hero-container {
    height: 100% !important;
    display: flex !important;
    /* دفع المحتوى ليتمركز في الأسفل تماماً بعيداً عن الهيدر العلوي */
    align-items: flex-end !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2;
    /* تقليص المسافة السفلية لإنزال المحتوى كلياً لأسفل الشاشة */
    padding-bottom: 40px !important;
}

.mada-hero-content-center {
    text-align: center !important;
    max-width: 880px !important;
    color: #ffffff !important;
    padding: 0 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* مسافة أمان مريحة ونظيفة بين العناصر الداخلية */
    gap: 12px !important;
}

.mada-hero-badge {
    display: inline-block !important;
    background: #0071BC !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* سطر بيانات النشر التحريري الفخم النقي (بدون أيقونات) */
.mada-hero-meta-clean {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    font-size: 14px !important;
    color: #E5E7EB !important;
    font-weight: 500 !important;
    margin: 5px 0 15px 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.mada-hero-title a {
    color: #ffffff !important;
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6) !important;
    transition: opacity 0.2s ease;
}

.mada-hero-title a:hover {
    opacity: 0.95;
}

.mada-hero-excerpt {
    font-size: 17px !important;
    color: #F3F4F6 !important;
    line-height: 1.75 !important;
    max-width: 760px !important;
    margin: 5px 0 10px 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    font-weight: 400;
}

.mada-hero-meta-clean .hero-author {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.mada-hero-meta-clean {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}


.mada-hero-meta-clean .hero-meta-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* زر اقرأ المزيد الفاخر الدائري باللون الأبيض الكامل */
.mada-hero-content-center .read-more-btn {
    display: inline-block !important;
    padding: 12px 38px !important;
    background-color: #ffffff !important;
    color: #0B0F17 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    text-decoration: none;
}

.mada-hero-content-center .read-more-btn:hover {
    background-color: #0071BC !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.45) !important;
}

/* ==========================================================================
   6. منطقة الملتيميديا والبودكاست والفوتر والمنطقة الزرقاء الممتدة
   ========================================================================== */
.media-dark-zone,
.aswat-dark-media-zone {
    background: #111317;
    padding: 60px 0;
    margin: 60px 0;
    color: #ffffff;
    width: 100%;
}

.block-title.white,
.aswat-section-header.white-line {
    color: #ffffff;
    border-right-color: #ffffff;
}

.aswat-blue-full-section {
    background-color: #0071BC !important;
    padding: 55px 0 !important;
    margin: 50px 0 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.aswat-blue-full-section .aswat-section-header.white-line {
    color: #ffffff !important;
    border-right: 4px solid #ffffff !important;
    padding-right: 12px !important;
    border-bottom: none !important;
}

.aswat-blue-full-section .aswat-section-header.white-line a {
    color: #ffffff !important;
}

.aswat-blue-full-section .fact-txt-holder h4 a,
.aswat-blue-full-section .violation-title,
.aswat-blue-full-section .violation-info-block .violation-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.aswat-blue-full-section .fact-txt-holder h4 a:hover,
.aswat-blue-full-section .violation-title:hover {
    color: #E5E7EB !important;
}

.aswat-blue-full-section .fact-time,
.aswat-blue-full-section .violation-timestamp {
    color: #E5E7EB !important;
    font-size: 12px !important;
    display: inline-block !important;
    margin-top: 5px !important;
}

.fact-magazine-row,
.violations-magazine-list li,
.violation-item-dark {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    transition: background 0.2s ease !important;
}

.fact-magazine-row:hover,
.violations-magazine-list li:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.site-footer {
    background: #111317;
    color: #9CA3AF;
    padding: 50px 0 20px 0;
    width: 100%;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 18px;
    position: relative;
    padding-right: 12px;
    border-right: 3px solid #0071BC;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: #9CA3AF;
    margin: 0;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9CA3AF;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #0071BC;
    padding-right: 4px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin: 40px auto 0;
    max-width: 1320px;
}

.footer-bottom p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

/* ==========================================================================
   7. التدقيق، الانتهاكات والمقالات الممتازة والأرشيف
   ========================================================================== */
.fact-checking-block .cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fact-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.fact-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.fact-card .card-thumb {
    height: 160px;
}

.fact-card h4 {
    font-size: 15px;
    padding: 14px;
    margin: 0;
    line-height: 1.5;
}

.verdict-badge,
.fact-verdict-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 3px;
    color: #fff;
    z-index: 5;
}

.fact-verdict-tag {
    bottom: -6px;
    right: -6px;
    font-size: 10px;
    padding: 3px 8px;
}

.verdict-صحيح,
.fact-verdict-tag.tag-صحيح,
.tag-صحيح {
    background: #15803D;
}

.verdict-مضلل,
.fact-verdict-tag.tag-مضلل,
.tag-مضلل {
    background: #D97706;
}

.verdict-زائف,
.fact-verdict-tag.tag-زائف,
.tag-زائف {
    background: #C1272D;
}

.violations-list,
.violations-magazine-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.violations-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #F3F4F6;
}

.violations-magazine-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.violations-list .v-alert,
.violation-info-block {
    flex-shrink: 0;
}

.violation-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.violations-list a {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    color: #1A1A1A;
}

.violations-list .v-date {
    font-size: 12px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.podcast-player-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 15px;
    transition: border-color 0.2s;
}

.podcast-player-card:hover {
    border-color: #0071BC;
}

.podcast-player-card img,
.podcast-player-card .podcast-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.podcast-player-card h4 {
    color: #1A1A1A;
    font-size: 16px;
    margin: 0;
}

.podcast-info .podcast-trigger {
    font-size: 13px;
    color: #0071BC;
    font-weight: 700;
    margin-top: 5px;
    display: inline-block;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 240px;
}

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

.video-wrapper .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.video-title-under a {
    color: #1A1A1A;
    font-weight: 700;
}

.video-title-under a:hover {
    color: #0071BC;
}

/* ==========================================================================
   Affichage portrait (style Reels) pour les vidéos multimédia
   ========================================================================== */

/* Conteneur portrait 9:16 pour les vignettes vidéo */
.media-thumb-portrait,
.video-wrapper.video-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.media-thumb-portrait img,
.video-wrapper.video-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Grille multimédia adaptée au format portrait (colonnes plus étroites) */
.media-dark-zone .aswat-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.media-dark-zone .aswat-modern-grid .media-archive-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.media-dark-zone .aswat-modern-grid .magazine-meta-box {
    padding: 14px;
    text-align: right;
}

/* Bloc multimédia de l'accueil en format portrait (2 dernières vidéos) */
.multimedia-column .video-portrait-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.multimedia-column .video-portrait-grid .video-portrait-item {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.multimedia-column .video-portrait-grid .video-wrapper.video-portrait {
    border-radius: 8px 8px 0 0;
}

.multimedia-column .video-portrait-grid .video-title-under {
    padding: 10px 12px 14px;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.multimedia-column .video-portrait-grid .video-title-under a {
    color: #fff;
}

@media (max-width: 768px) {
    .media-dark-zone .aswat-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .media-dark-zone .aswat-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.aswat-investigation-wrapper {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.aswat-premium-header {
    margin-bottom: 35px;
}

.aswat-premium-header .entry-title {
    font-size: 36px;
    line-height: 1.4;
    color: #1A1A1A;
    margin: 0 0 18px 0;
}

.aswat-premium-hero-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.entry-content.investigation-body {
    font-size: 17px;
    line-height: 1.9;
    color: #2D2D2D;
}

.entry-content.investigation-body p {
    margin-bottom: 22px;
}

.aswat-custom-footer {
    margin-top: 50px;
}

.aswat-hero-premium {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.hero-premium-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.hero-premium-bg {
    position: absolute;
    inset: 0;
}

.hero-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-premium-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding-bottom: 45px;
    color: #fff;
    z-index: 2;
    padding-right: 20px;
    padding-left: 20px;
}

.hero-title {
    font-size: 34px;
    line-height: 1.4;
    margin: 0 0 15px 0;
    max-width: 800px;
}

.hero-title a {
    color: #fff;
}

.hero-excerpt-text {
    font-size: 16px;
    color: #E5E7EB;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.hero-meta-data {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #D1D5DB;
    font-size: 14px;
}

.main-content-wrapper {
    margin-bottom: 20px;
}

.home-section-block {
    margin-bottom: 50px;
}

.aswat-magazine-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #F3F4F6;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.aswat-magazine-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.aswat-magazine-card .magazine-thumb-wrapper {
    height: 200px;
}

.magazine-body {
    padding: 18px;
}

.magazine-body h4 {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.magazine-meta {
    font-size: 13px;
    color: #9CA3AF;
}

.fact-rows-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fact-txt-holder {
    flex: 1;
    min-width: 0;
}

.fact-txt-holder h4 {
    margin: 0 0 6px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.fact-txt-holder a {
    display: block;
}

.media-column-box .media-magazine-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.media-horizontal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    direction: rtl;
}

.media-horizontal-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #0071BC;
}

.media-horizontal-card .media-img-square {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    flex-shrink: 0;
}

.media-text-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.media-text-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.media-dark-zone .media-text-info h4 a,
.aswat-dark-media-zone .media-text-info h4 a {
    color: #ffffff;
}

.media-dark-zone .media-text-info h4 a:hover,
.aswat-dark-media-zone .media-text-info h4 a:hover {
    color: #0071BC;
}

.media-text-info span {
    font-size: 12px;
    color: #aab1c0;
}

.video-overlay-applied .play-icon-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.archive-header {
    margin-top: 20px;
    margin-bottom: 35px;
}

.archive-header .block-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 15px;
    color: #6B7280;
    margin-top: -15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.magazine-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 35px;
}

.magazine-card:hover {
    transform: translateY(-3px);
}

.magazine-meta-box {
    padding: 15px 5px;
}

.magazine-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.magazine-excerpt {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.aswat-pagination {
    margin: 50px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.aswat-pagination .page-numbers {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    color: #1A1A1A;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.aswat-pagination .page-numbers:hover,
.aswat-pagination .page-numbers.current {
    background: #0071BC;
    color: #ffffff;
    border-color: #0071BC;
}

.no-posts-found {
    text-align: center;
    color: #9CA3AF;
    padding: 60px 0;
}

.media-archive-card {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.media-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 113, 188, 0.9);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.media-archive-card:hover .media-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #111317;
}

.fact-checking-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.fact-check-row-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #F3F4F6;
    align-items: center;
}

.fact-check-row-item .fact-text-holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fact-row-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.fact-row-excerpt {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.violation-card-item {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0;
}

/* ==========================================================================
   8. المكتبة الرقمية وعناصر التحكم التفاعلية
   ========================================================================== */
.library-portrait-card {
    text-align: center;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 6px;
    padding: 20px;
    transition: box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.library-portrait-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.book-cover-container {
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #f7f7f7;
}

.library-portrait-card h4 {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.library-action-btn {
    display: inline-block;
    background: #0071BC;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.library-action-btn:hover {
    background: #005A96;
}

.library-actions-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.lib-btn {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view {
    background: #111317;
    color: #ffffff;
    border: 1px solid #111317;
}

.btn-view:hover {
    background: #0071BC;
    border-color: #0071BC;
}

.btn-download {
    background: transparent;
    color: #111317;
    border: 1px solid #111317;
}

.btn-download:hover {
    background: #111317;
    color: #ffffff;
}

.btn-details {
    background: #F3F4F6;
    color: #374151;
    width: 100%;
}

.single-podcast-player-container {
    text-align: center;
    margin: 30px auto 0;
    width: 100%;
}

.single-podcast-player-container iframe,
.single-podcast-player-container video,
.single-podcast-player-container .wp-video,
.single-podcast-player-container .wp-video-shortcode {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   9. التنسيقات التحريرية العصرية (من نحن / ميثاقنا)
   ========================================================================== */
.static-page-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 25px;
}

.static-page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 25px;
}

.static-page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0071BC;
}

.static-page-title {
    font-size: 42px;
    font-weight: 900;
    color: #111317;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.static-page-subtitle {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
}

.static-body-text {
    font-size: 17px;
    line-height: 1.9;
    color: #2D3748;
}

.static-body-text .lead-text {
    font-size: 21px;
    line-height: 1.8;
    color: #111317;
    font-weight: 700;
    border-right: 5px solid #0071BC;
    padding-right: 25px;
    margin-bottom: 45px;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.vision-box,
.mission-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vision-box:hover,
.mission-box:hover {
    transform: translateY(-3px);
    border-color: #0071BC;
}

.sub-block-title {
    font-size: 20px;
    font-weight: 800;
    color: #111317;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.internal-section-title {
    font-size: 24px;
    font-weight: 900;
    color: #111317;
    margin: 60px 0 30px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E7EB;
}

.internal-section-title::before {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 40px;
    height: 3px;
    background: #0071BC;
}

.charter-sections-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.charter-node {
    background: #ffffff;
    border: 1px solid #F3F4F6;
    border-radius: 6px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
    transition: all 0.25s ease;
}

.charter-node:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    background: #FFFDFD;
}

.charter-node h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111317;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
}

.styled-features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.styled-features-list li {
    position: relative;
    padding-right: 30px;
    font-size: 16.5px;
    color: #374151;
}

.styled-features-list li::before {
    content: "✓";
    color: #0071BC;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    right: 4px;
    top: 1px;
}

.values-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    background: #F9FAFB;
    padding: 20px 25px;
    border-radius: 6px;
    border-right: 4px solid #111317;
}

.value-item:hover {
    border-right-color: #0071BC;
    background: #FFFDFD;
}

.value-item h4 {
    font-size: 17px;
    font-weight: 800;
    color: #111317;
    margin: 0 0 6px;
}

.value-item p {
    margin: 0;
    font-size: 15.5px;
    color: #4B5563;
}

.charter-conclusion {
    background: #111317;
    color: #ffffff;
    padding: 35px 40px;
    border-radius: 6px;
    margin-top: 55px;
    font-size: 17px;
    text-align: center;
    line-height: 1.8;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(17, 19, 23, 0.15);
}

/* ==========================================================================
   10. responsive Mobile & Burger Menu (Correction)
   ========================================================================== */
@media (max-width: 991px) {
    
    /* Configuration du Header sur Mobile */
    .site-header {
        position: relative !important;
        background: #ffffff !important;
        padding: 12px 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .site-header .header-container {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 20px !important;
        position: relative !important;
    }

    /* Ajustement du Logo sur mobile */
    .site-branding,
    .site-branding-centered {
        width: auto !important;
        margin: 0 !important;
    }

    .site-header .custom-logo-img,
    .custom-logo-link img {
        height: 40px !important;
        width: auto !important;
    }

    /* Bouton Burger (Aligné à gauche en RTL) */
    .aswat-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 20px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 10001 !important;
    }

    .aswat-menu-toggle span {
        width: 100% !important;
        height: 3px !important;
        background-color: #111317 !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }

    /* Masquage de la navigation par défaut */
    .main-navigation {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
        padding: 10px 20px 20px 20px !important;
        z-index: 10000 !important;
        border-top: 1px solid #F3F4F6 !important;
    }

    /* Affichage du menu lors du clic (Classe .toggled) */
    .main-navigation.toggled {
        display: block !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .main-navigation li {
        width: 100% !important;
        text-align: right !important;
        border-bottom: 1px solid #F3F4F6 !important;
        padding: 12px 0 !important;
    }

    .main-navigation li a {
        color: #111317 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: block !important;
    }

    .main-navigation li:last-child {
        border-bottom: none !important;
    }

    /* Masquer la recherche sur mobile (la navigation s'affiche via le bouton burger) */
    .header-search {
        display: none !important;
    }
}

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-columns-grid,
    .aswat-columns-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .aswat-modern-grid,
    .magazine-grid,
    .library-grid,
    .aswat-library-flex-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-premium-container {
        height: 380px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-excerpt-text {
        font-size: 14px;
    }


@media screen and (max-width: 768px) {
    .fact-checking-list-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    article.fact-check-row-item {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .fact-check-row-item .fact-img-holder {
        width: 100%;
        height: 220px;
    }

    .fact-check-row-item .fact-text-holder {
        padding: 20px;
        box-sizing: border-box;
    }

    .fact-check-row-item .fact-row-title {
        font-size: 19px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .fact-check-row-item .fact-img-holder .verdict-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 14px;
        padding: 8px 20px;
        border-radius: 30px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
        box-shadow: none;
    }

    .hero-image {
        height: 230px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .hero-excerpt {
        font-size: 14px;
        line-height: 1.6;
    }

    .site-branding {
        margin-bottom: 10px;
    }

    .library-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .aswat-investigation-wrapper {
        margin: 25px auto 50px;
        padding: 0 16px;
    }

    .aswat-premium-header .entry-title {
        font-size: 26px;
    }

    .entry-content.investigation-body {
        font-size: 16px;
    }

    .aswat-modern-grid,
    .magazine-grid,
    .aswat-library-flex-grid,
    .fact-checking-block .cards-list {
        grid-template-columns: 1fr;
    }

    .hero-premium-container {
        height: 300px;
    }

    .hero-title {
        font-size: 21px;
    }

    .hero-excerpt-text {
        display: none;
    }

    .video-wrapper {
        height: 200px;
    }

    .podcast-player-card {
        flex-direction: column;
        text-align: center;
    }

    .static-page-title {
        font-size: 32px;
    }

    .static-body-text .lead-text {
        font-size: 18px;
        padding-right: 15px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .charter-node {
        padding: 20px;
    }

    .charter-node h3 {
        font-size: 18px;
    }

    .mada-hero-title a {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .aswat-premium-header .entry-title {
        font-size: 22px;
    }

    .library-actions-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .lib-btn {
        width: 100%;
        padding: 12px 5px;
    }
}

/* ==========================================================================
   إصلاح تداخل الهيدر الشفاف في الصفحات الداخلية للموقع
   ========================================================================== */

/* استهداف جميع الصفحات ما عدا الصفحة الرئيسية التي تستخدم القالب الخاص */
body:not(.page-template-template-home) #content.site-content {
    padding-top: 180px !important;
    /* مسافة أمان كافية لنزول المحتوى تحت الهيدر الممركز */
}

/* ضبط المسافة في الشاشات الصغيرة والهواتف ليتناسب مع أبعاد الهيدر المستجيب */
@media screen and (max-width: 768px) {
    body:not(.page-template-template-home) #content.site-content {
        padding-top: 130px !important;
    }
}

/* ==========================================================================
   تحديث عناوين الأقسام لتصبح أكثر حيوية وأقل جدية (نمط المجلات العصرية)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@700&display=swap');

.aswat-section-header,
h3.aswat-section-header {
    font-family: 'Aref Ruqaa', 'Tajawal', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0071BC !important;
    /* لون الهوية البصرية الأزرق */
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 35px !important;
    padding-bottom: 10px !important;
    letter-spacing: -0.5px;
}

/* إضافة خط سفلي متموج أو عفوي بدلاً من الخطوط المستقيمة الصارمة */
.aswat-section-header::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 60px !important;
    height: 4px !important;
    background: #0071BC !important;
    border-radius: 20px 4px 20px 4px !important;
    /* زوايا دائرية عفوية تكسر جمود الخط المستقيم */
    opacity: 0.8;
}

/* لمسة جمالية عند تمرير الماوس لو كان العنوان رابطاً */
.aswat-section-header a {
    color: #0071BC !important;
    transition: color 0.3s ease;
}

.aswat-section-header a:hover {
    color: #0a0f18 !important;
}

/* ==========================================================================
   إصلاحات القائمة العلوية والمسافات البينية للأقسام
   ========================================================================== */

/* 1. جعل قائمة التنقل واضحة تماماً في الصفحة الرئيسية فوق الهيرو الشفاف */
.page-template-template-home .site-header.is-transparent .main-navigation ul li a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    font-weight: 700 !important;
    transition: color 0.3s ease;
}

/* تأثير التمرير (Hover) لروابط القائمة باللون الأزرق المشرق للهوية */
.page-template-template-home .site-header.is-transparent .main-navigation ul li a:hover {
    color: #0071BC !important;
}

/* 2. إصلاح التصاق العناوين بالصور في أقسام (دقق معنا) و (ميديا وفيديو) */

/* قسم دقق معنا */
.fact-checking-block .card-body h4,
.fact-checking-block h4 a,
.fact-checking-card h4 {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    display: block !important;
    line-height: 1.4 !important;
}

/* قسم الملتيميديا والفيديو */
.video-corner-block .video-card h4,
.video-corner-block h4 a,
.video-card h4 {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    display: block !important;
    line-height: 1.4 !important;
}

/* زيادة مسافة أمان عامة أسفل حاويات الصور لهذه البطاقات */
.fact-checking-block .magazine-thumb-wrapper,
.video-corner-block .video-wrapper,
.magazine-thumb-wrapper {
    margin-bottom: 12px !important;
}

/* ==========================================================================
   11. حاويات التضمين المتجاوبة للوسائط (فيديو/صوت) - YouTube, Vimeo, SoundCloud, Spotify
   ========================================================================== */
.aswat-responsive-embed {
    position: relative;
    padding-bottom: 56.25%; /* نسبة العرض إلى الارتفاع 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.aswat-responsive-embed iframe,
.aswat-responsive-embed object,
.aswat-responsive-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* مشغلات HTML5 المباشرة */
.aswat-video-player-container video,
.podcast-single-frame audio {
    max-width: 100%;
}

.aswat-video-player-container video {
    border-radius: 8px;
    background: #000;
}