/* ===================================================================
   ملف التنسيقات المخصصة - معدل لاستخدام متغيرات الألوان
   =================================================================== */

/* ملاحظة: هذه المتغيرات المحلية سترث قيمها من المتغيرات الرئيسية :root
   التي يتم إنشاؤها ديناميكياً من ملف functions.php */
:root {
    --ebs-primary: var(--theme-primary);
    --ebs-primary-dark: var(--theme-primary);
    --ebs-dark: var(--theme-text-dark);
    --ebs-light: var(--theme-background);
    --ebs-grey: var(--theme-text-light);
    --ebs-radius: 12px;
    --ebs-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.ebs-main-container { direction: rtl; font-family: 'Cairo', sans-serif; max-width: 800px; margin: 20px auto; }
.ebs-nav-container { display: flex; justify-content: space-between; align-items: center; background: var(--theme-content-bg); padding: 10px; border-radius: var(--ebs-radius); box-shadow: var(--ebs-shadow); margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.ebs-nav-dates { display: flex; gap: 5px; flex-grow: 1;}
.ebs-nav-btn { text-decoration: none; color: var(--ebs-dark); background: var(--ebs-light); padding: 8px 15px; border-radius: 8px; font-weight: 600; transition: all 0.3s; border: 1px solid #dde4e8; white-space: nowrap; cursor: pointer; }
.ebs-nav-btn:hover, .ebs-nav-btn.active { background: var(--ebs-primary); color: #fff; border-color: var(--ebs-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4); }
.ebs-nav-filter, .ebs-datepicker-wrapper { flex-grow: 1; min-width: 180px; }
#ebs-datepicker, #ebs-league-filter { width: 100%; box-sizing: border-box; }
.ebs-main-heading { text-align: center; color: var(--theme-text-dark); font-size: 26px; font-weight: 700; margin-bottom: 25px; }
.ebs-league { background-color: var(--theme-content-bg); border-radius: var(--ebs-radius); margin-bottom: 25px; box-shadow: var(--ebs-shadow); overflow: hidden; }
.ebs-league-header { background: linear-gradient(135deg, #f5f7fa, #eef2f7); padding: 12px 18px; display: flex; align-items: center; border-bottom: 1px solid #e9edf2; }
.ebs-league-header img { width: 28px; height: 28px; margin-left: 12px; } .ebs-league-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--theme-text-dark); }
.ebs-match { display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: 100%; text-decoration:8 none; color: inherit; padding: 15px 18px; transition: background-color 0.2s; border-bottom: 1px solid #f0f2f5;} .ebs-match:last-child { border-bottom: none; }
.ebs-match:hover { background-color: var(--theme-background); }
.ebs-match-link-wrapper { display: contents; }
.ebs-match-time { font-size: 16px; color: var(--theme-text-dark); font-weight: 700; min-width: 65px; text-align: center; }
.match-status {color:var(--ebs-grey); font-size:12px; display: block; font-weight: 400;}
.ebs-match-teams { display: flex; align-items: center; justify-content: center; flex-grow: 1; }
.ebs-team { display: flex; align-items: center; flex: 1; } .ebs-team.home { justify-content: flex-end; }
.ebs-team .ebs-team-link { display: flex; align-items: center; text-decoration: none; color: inherit; }
.ebs-team span { margin: 0 12px; font-size: 16px; font-weight: 500; color: var(--theme-text-dark); } .ebs-team img { width: 24px; height: 24px; }
.ebs-score { font-size: 22px; font-weight: bold; margin: 0 20px; background: var(--ebs-dark); color: #fff; padding: 4px 12px; border-radius: 8px; line-height: 1.4; white-space: nowrap; text-decoration: none;}
.ebs-details a { display: flex; align-items: center; color: var(--ebs-primary); font-weight: 600; text-decoration: none; } .ebs-details svg { fill: currentColor; width: 20px; height: 20px; transition: transform 0.2s; } .ebs-details a:hover svg { transform: translateX(-5px); }
.ebs-message { text-align: center; background: #fff3f3; color: #c0392b; border: 1px solid #f5c6cb; padding: 20px; border-radius: 8px; }
.ebs-message.info { background-color: #eef7ff; color: #2980b9; border-color: #a9d7f8; }
.ebs-back-btn { margin-bottom: 20px; display: inline-block; }
.ebs-scoreboard { display: flex; justify-content: space-between; align-items: center; background: var(--theme-accent); color: #fff; padding: 20px; border-radius: var(--ebs-radius); margin-bottom: 25px; }
.ebs-scoreboard-team { flex: 1; text-align: center; } .ebs-scoreboard-team img { width: 60px; height: 60px; margin:0 auto; } .ebs-scoreboard-team h3 { margin: 0; font-size: 18px; }
.ebs-scoreboard-middle { text-align: center; } .ebs-scoreboard-score { font-size: 42px; font-weight: 700; margin-bottom: 5px; }
.ebs-scoreboard-penalties { font-size: 14px; font-weight: 600; }
.ebs-scoreboard-status { font-size: 14px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 6px; margin-bottom: 10px; display: inline-block;}
.ebs-scoreboard-datetime { font-size: 12px; color: var(--ebs-light); }
.ebs-details-section { background: var(--theme-content-bg); padding: 20px; border-radius: var(--ebs-radius); box-shadow: var(--ebs-shadow); margin-bottom: 20px; }
.ebs-details-section h4 { margin-top: 0; border-bottom: 2px solid var(--ebs-primary); padding-bottom: 10px; margin-bottom: 15px; font-size: 20px; }
.ebs-general-info { display: flex; flex-wrap: wrap; gap: 15px; color: var(--theme-text-light); }
.ebs-general-info span { display: flex; align-items: center; } .ebs-general-info .ebs-info-icon { width: 16px; height: 16px; margin-left: 8px; }
.ebs-channels-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ebs-stat-row { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; margin-bottom: 10px; }
.ebs-stat-value { font-weight: bold; text-align: center; } .ebs-stat-label { text-align: center; padding: 0 10px; }
.ebs-stat-bar-container { grid-column: 1 / -1; width: 100%; background: var(--ebs-light); height: 8px; border-radius: 4px; display:flex; margin-top: 4px; direction: ltr; }
.ebs-stat-bar { background: var(--ebs-primary); height: 100%; border-radius: 4px; }
.ebs-lineups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ebs-lineup-team h5 { font-size: 16px; margin-bottom: 10px; } .ebs-lineup-team h5 small { font-weight: 400; color: var(--ebs-grey); }
.ebs-lineup-team ol { list-style: none; padding: 0; margin-top: 10px; } .ebs-lineup-team li { padding: 4px 0; border-bottom: 1px solid var(--ebs-light); font-size: 14px;}
.ebs-lineup-team li span { display: inline-block; width: 25px; text-align: center; font-weight: 700; color: var(--ebs-primary); margin-left: 5px;}
.ebs-lineup-team a { text-decoration: none; color: var(--ebs-dark); } .ebs-lineup-team a:hover { color: var(--ebs-primary); }
.player-events { font-size: 12px; margin-right: 5px; }
.ebs-standings-widget { overflow-x: auto; }
.ebs-standings-table { width: 100%; border-collapse: collapse; margin-top: 15px; } .ebs-standings-table th, .ebs-standings-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid #eee; white-space: nowrap; }
.ebs-standings-table th { background: var(--ebs-light); font-weight: 600; color: var(--ebs-dark); }
.ebs-standings-table .ebs-standings-team-logo {  display: inherit; width: 24px; height: 24px; vertical-align: middle; margin-left: 8px; }
.ebs-standings-table td.team-cell { text-align: right; font-weight: 500; }
.ebs-horizontal-widget { background: var(--theme-content-bg); padding: 10px; border-radius: var(--ebs-radius); overflow: hidden; box-shadow: var(--ebs-shadow); }
.ebs-horizontal-scroller { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 15px; }
.ebs-horizontal-match { text-decoration: none; color: var(--ebs-dark); display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--ebs-light); border-radius: 8px; flex-shrink: 0; }
.ebs-hm-team { display: flex; flex-direction: column; align-items: center; gap: 5px; } .ebs-hm-team img { width: 32px; height: 32px; } .ebs-hm-team span { font-size: 12px; font-weight: 600; }
.ebs-hm-score { text-align: center; } .ebs-hm-score .score { font-size: 18px; font-weight: 700; } .ebs-hm-score .time { font-size: 16px; font-weight: 700; color: var(--ebs-primary); } .ebs-hm-score .status { font-size: 10px; color: var(--ebs-grey); display: block; }
.ebs-vertical-widget { background: var(--theme-content-bg); padding: 10px; border-radius: var(--ebs-radius); box-shadow: var(--ebs-shadow); }
.ebs-vertical-match { text-decoration: none; color: var(--ebs-dark); display: grid; grid-template-columns: auto 1fr auto 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--ebs-light); }
.ebs-vertical-match:last-of-type { border: none; }
.ebs-vertical-match img { width: 24px; height: 24px; } .ebs-vertical-match .team-name { font-weight: 600; font-size: 14px; } .ebs-vertical-match .score { font-weight: 700; } .ebs-vertical-match .time { font-size: 12px; color: var(--ebs-grey); justify-self: end; }
.ebs-vertical-footer { text-align: center; padding-top: 10px; } .ebs-vertical-footer a { background: var(--ebs-primary); color: #fff; padding: 8px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.ebs-team-header, .ebs-player-header { display: flex; gap: 20px; background: var(--theme-accent); color: #fff; padding: 20px; border-radius: var(--ebs-radius); margin-bottom: 25px; align-items: center; }
.ebs-team-header-logo { width: 100px; height: 100px; }
.ebs-player-image img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(244, 67, 54, 0); }
.ebs-team-header-info h1, .ebs-player-details h1 { margin: 0 0 10px; color: var(--ebs-primary); }
.ebs-team-header-info p { margin: 5px 0; }
.ebs-player-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.info-item strong { color: var(--ebs-primary);padding-left: 10px; }
.ebs-squad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.ebs-squad-player { text-decoration: none; color: var(--ebs-dark); background: var(--ebs-light); padding: 10px; border-radius: 8px; text-align: center; transition: all 0.2s; }
.ebs-squad-player:hover { transform: translateY(-3px); box-shadow: var(--ebs-shadow); }
.ebs-squad-player img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 5px; }
.ebs-squad-player .name { display: block; font-weight: 600; }
.ebs-squad-player .position { display: block; font-size: 12px; color: var(--ebs-grey); }
.ebs-transfers-table table { width: 100%; border-collapse: collapse; }
.ebs-transfers-table th, .ebs-transfers-table td { padding: 10px; text-align: center; border-bottom: 1px solid var(--ebs-light); }
.ebs-transfers-table th { background: var(--ebs-light); }


.ebs-h2h-list { display: flex; flex-direction: column; gap: 15px; }
        .ebs-h2h-match { background: var(--ebs-light); padding: 10px; border-radius: 8px; text-decoration: none; color: inherit; display: block; }
        .ebs-h2h-date { font-size: 12px; color: var(--ebs-grey); margin-bottom: 5px; text-align: center; }
        .ebs-h2h-details { display: flex; justify-content: space-between; align-items: center; }
        .ebs-h2h-team { display: flex; align-items: center; gap: 8px; flex: 1; }
        .ebs-h2h-team:first-of-type { justify-content: flex-end; }
        .ebs-h2h-logo { width: 24px; height: 24px; }
        .ebs-h2h-score { font-weight: 700; font-size: 18px; margin: 0 15px; }
@media (max-width: 600px) { .ebs-lineups-grid {grid-template-columns: 1fr;} .ebs-scoreboard {flex-direction: column; gap: 15px;} .ebs-team span {font-size: 14px;} .ebs-nav-dates, .ebs-nav-filter {width: 100%;} }
.posts-block-wrap { display: grid; gap: 20px;margin-bottom: 36px;   border-bottom: 1px solid #ddd;   padding-bottom: 27px; }
.layout-grid-2-cols {grid-template-columns: repeat(2, 1fr);margin-bottom: 36px;border-bottom: 1px solid #ddd;padding-bottom: 27px;}
.layout-grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.layout-list { grid-template-columns: 1fr; }
.layout-video { grid-template-columns: repeat(2, 1fr); }
.layout-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.post-item-list, .post-item-featured-side { display: flex; gap: 15px; align-items: flex-start; }
.post-thumbnail img {
  height: 180px;
}


/* ==============================================
   تنسيقات ودجة أحدث الأخبار (كاروسيل) - نسخة مصححة
   ============================================== */

.sidebar-widget .news-carousel-content {
    height: 330px;
    overflow: hidden;
    position: relative;
    padding: 15px;
}
.sidebar-widget .news-carousel-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sidebar-widget .news-carousel-item {
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    display: none;
}
.sidebar-widget .news-carousel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-widget .news-carousel-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    position: relative;
    padding-right: 18px;
}
.sidebar-widget .news-carousel-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--theme-primary);
    border-radius: 50%;
}
.sidebar-widget .news-carousel-meta {
    font-size: 12px;
    color: var(--theme-text-light);
}
.sidebar-widget .news-carousel-meta a {
    text-decoration: none;
    color: var(--theme-accent);
}
.sidebar-widget .news-carousel-meta a:hover {
    text-decoration: underline;
}
.sidebar-widget .news-carousel-controls {
    padding: 15px;
    display: flex;
    justify-content: center;
    background-color: var(--theme-background);
    border-top: 1px solid #eee;
}
.sidebar-widget .news-carousel-dots {
    display: flex;
    gap: 8px;
}
.sidebar-widget .news-carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}
.sidebar-widget .news-carousel-dot.active {
    background-color: var(--theme-primary);
    transform: scale(1.2);
}
.news-carousel-item {
  padding: 0px 0px !important;
  border-bottom: 1px dashed #eee;
  transition: all 0.2s;
}
.posts-block-wrap.layout-video {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 36px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 27px;
}

/* ==============================================
   إصلاح نهائي للسايدبار اللاصق (Desktop)
   ============================================== */

@media (min-width: 769px) {
    .main-content-wrapper {
        align-items: flex-start;
    }
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
    }
}

/* ==============================================
   تنسيقات أزرار التحكم في السلايدر الرئيسي
   ============================================== */

.featured-slider .slider-nav {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.featured-slider .slider-arrow {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s;
}
.featured-slider:hover .slider-arrow {
    opacity: 1;
}
.featured-slider .slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.featured-slider .slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.featured-slider .slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.featured-slider .slider-dot.active,
.featured-slider .slider-dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

/* ==============================================
   تنسيقات الإضافات الجديدة في الهيدر
   ============================================== */

.header-top-extras {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-right: 20px;
}
.header-country-flags {
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-country-flags a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease;
}
.header-country-flags a:hover {
    transform: scale(1.2);
}
.header-country-flags img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border: 1px solid #fff;
}
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 25px;
    border-right: 1px solid #e0e0e0;
}
.header-social-icons a {
    color: var(--theme-text-light);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.header-social-icons a:hover {
    color: var(--theme-accent);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .header-top-extras {
        display: none;
    }
}
.header-top > .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}
.header-search {
    flex-grow: 1;
    min-width: 100px;
}
.header-logo,
.header-top-extras,
.header-live-match,
.header-top .header-calendar-nav,
.header-actions {
    flex-shrink: 0;
}
.post-item-list .post-thumbnail img, .post-item-featured-side .post-thumbnail img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
.post-item-video .post-thumbnail { position: relative; }
.post-item-video .play-icon-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.post-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 10px 0 0; }
.post-item-list .post-title, .post-item-featured-side .post-title { margin: 0; font-size: 14px; }
.post-excerpt { font-size: 14px; color: var(--theme-accent); }
.header-controls-wrapper { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.mobile-menu-toggle { display: none; }
.match-nav-link i { display: none; }
@media (max-width: 768px) {
    .main-nav { display: none; width: 100%; background: var(--theme-content-bg); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .main-nav .main-menu { flex-direction: column; }
    .main-nav .main-menu li { border-bottom: 1px solid #f0f0f0; }
    .header-controls-wrapper { margin-left: 0; }
    .match-nav { display: flex; gap: 10px; }
    .match-nav-link span { display: none; }
    .match-nav-link i { display: block; font-size: 16px; color: var(--theme-primary); }
    .match-nav-link { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; }
    .mobile-menu-toggle { display: block; background: var(--theme-primary); border: none; color: #fff; width: 40px; height: 40px; border-radius: 8px; font-size: 18px; cursor: pointer; }
    .logo { flex-shrink: 0; margin-right: auto; }
    .layout-grid-2-cols, .layout-grid-3-cols, .layout-video, .layout-featured { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .footer-widgets { display: none; }
}

.archive-load-more-btn {
  background-color: var(--theme-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

#load-more-btn {
  background-color: var(--theme-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
/* ==============================================
   تنسيقات شريط المباريات
   ============================================== */

.live-matches-bar {
    background-color: var(--theme-accent);
    padding: 16px 0;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
}
.live-matches-bar .container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.live-matches-bar-shortcode {
    flex-grow: 1;
    overflow-x: auto;
    direction: ltr;
}
.live-matches-bar-shortcode::-webkit-scrollbar {
    height: 3px;
    background-color: #f5f5f5;
}
.live-matches-bar-shortcode::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.live-matches-bar-shortcode {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}
.live-matches-bar .ebs-horizontal-scroller {
    direction: rtl;
    display: flex;
    gap: 12px;
    padding: 4px 2px;
}
.live-matches-bar .ebs-horizontal-match {
    flex: 0 0 240px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    background-color: var(--theme-content-bg);
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: var(--theme-text-dark);
}
.live-matches-bar .ebs-horizontal-match:hover {
    border-color: #d1d1d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.live-matches-bar .ebs-hm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.live-matches-bar .ebs-hm-team img {
    width: 36px;
    height: 36px;
}
.live-matches-bar .ebs-hm-team span {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-dark);
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
}
.live-matches-bar .ebs-hm-score {
    text-align: center;
    align-self: flex-start;
    margin-top: 10px;
}
.live-matches-bar .ebs-hm-score .score {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: -1px;
}
.live-matches-bar .ebs-hm-score .time {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
}
.live-matches-bar .ebs-hm-score .status {
    font-size: 10px;
    font-weight: 600;
    color: var(--theme-text-light);
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
}
.view-all-matches-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background-color: var(--theme-content-bg);
    color: var(--theme-text-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid #ddd;
}
.view-all-matches-btn:hover {
    background-color: var(--theme-text-dark);
    color: var(--theme-content-bg);
    border-color: var(--theme-text-dark);
}

.mobile-header-calendar { display: none ; }
.container { max-width: 960px !important; }
.ebs-standings-widget h3 { display: none !important; }
ul.navbar-language { position: relative; width: 100%; display: flex !important; margin-top: 7px; margin-bottom: -5px; }
.navbar-language li { display: flex; position: relative; width: 100%; }
.navbar-language img { width: 20px; height: auto; display: inline-block; margin-left: 10px; }
.new-main-header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 15px 0; }

/* ==============================================
   تنسيق أزرار تحميل التطبيقات في الفوتر
   ============================================== */

.footer-app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.app-btn {
    display: flex;
    align-items: center;
    background-color: var(--theme-accent);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    min-width: 160px;
    justify-content: center;
}
.app-btn:hover {
    background-color: var(--theme-primary);
    transform: translateY(-2px);
}
.app-btn i {
    font-size: 24px;
    margin-left: 12px;
}
.app-btn .app-btn-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.app-btn .app-btn-content small {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.7;
}
.app-btn .app-btn-content span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}
.under-header-ad-container {
    padding: 20px 0;
    text-align: center;
    background-color: var(--theme-background);
    line-height: 0;
}
.under-header-ad-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 768px) {
    .under-header-ad-container {
        display: none;
    }
}
.header-logo { grid-column: 1 / 2; }
.header-logo img { max-height: 100%;max-width: 65%; }
.header-search { grid-column: 3 / 3; }
.search-form { position: relative; }
.search-field { width: 100%; background-color: #f5f5f5; border: 1px solid #eee; border-radius: 50px; padding: 10px 45px 10px 20px; }
.search-submit { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); background: var(--theme-primary); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.header-live-match { grid-column: 4 / 4; }
.header-live-match a { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--theme-text-dark); }
.live-indicator { width: 10px; height: 10px; background-color: #f44336; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); } }
.header-actions { display: none; }
.primary-menu-container { background-color: var(--theme-primary); box-shadow: 0 2px 4px rgba(32, 32, 32, 0.45); }
.primary-menu-container .container { display: flex; justify-content: space-between; align-items: center; }
.header-calendar-nav { list-style: none; display: flex; margin: 0; padding: 5px; background: var(--theme-accent); color: #fff; border-radius: 10px; }
.header-calendar-nav li a { padding: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.header-calendar-nav li.is-active a { color: var(--theme-primary); background: #fff; border-radius: 10px; padding: 3px 15px 3px 15px; }
.main-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.main-menu > li > a { display: block; padding: 15px 20px; font-weight: 700; color: #fff; text-decoration: none; }
.main-menu > li > a > hover { color: var(--theme-primary); }

.live-matches-bar { padding: 10px 0; background-color: var(--theme-accent); color: #fff; }
.mobile-sticky-nav { display: none; background-color: var(--theme-content-bg); box-shadow: 0 -2px 5px rgba(0,0,0,0.1); position: fixed; bottom: 0; left: 0; width: 100%; z-index: 998; transition: transform 0.3s ease-in-out; transform: translateY(100%); }
.mobile-sticky-nav.is-sticky { transform: translateY(0); }
.mobile-sticky-menu { display: flex; justify-content: space-around; list-style: none; margin: 0; padding: 0; }
.mobile-sticky-menu > li > a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; font-size: 12px; color: var(--theme-text-light); text-decoration: none; }
.mobile-sticky-menu > li.current-menu-item > a { color: #ffffff; }
@media (max-width: 768px) {
    .new-main-header { position: sticky; top: 0; z-index: 9999; background: var(--theme-content-bg); box-shadow: 0 2px 6px rgba(0,0,0,0.1); width: 100%; }
}
@media (max-width: 768px) {
    .header-logo img { max-height: 49% !important; max-width: 50%; }
    .header-top .container { display: flex; align-items: center; justify-content: space-between; padding: 5px 15px; }
    .header-logo { flex: 1; }
    .header-actions { flex: 0; display: block; }
    .mobile-menu-toggle { font-size: 28px; color: var(--theme-primary); background: none; border: none; cursor: pointer; display: inline-block; }
    .header-search{ display: none; }
}
@media (max-width: 768px) {
    #primary-menu-container { display: none; background: var(--theme-content-bg); box-shadow: 0 2px 6px rgba(0,0,0,0.15); position: absolute; top: 60px; width: 100%; left: 0; z-index: 9998; }
    #primary-menu-container .main-menu { flex-direction: column; padding: 10px 0; }
    #primary-menu-container .main-menu li { padding: 8px 20px; }
    #primary-menu-container .main-menu li a { color: var(--theme-accent); font-weight: bold; }
}
@media (max-width: 768px) {
    .mobile-sticky-nav { position: sticky; bottom: 0; left: 0; width: 100%; background-color: var(--theme-content-bg); border-top: 1px solid #ddd; box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1); z-index: 9999; overflow-x: auto; display: contents; }
    .mobile-sticky-menu { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: var(--theme-primary); margin: 0; padding: 8px 0; list-style: none; }
    .mobile-sticky-menu::-webkit-scrollbar { display: none; }
    .mobile-sticky-menu li { flex: 0 0 auto; text-align: center; padding: 0 8px; }
    .mobile-sticky-menu li a { display: inline-block; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 12px; white-space: nowrap; transition: color 0.3s ease; }
    .mobile-sticky-menu li a:hover,
    .mobile-sticky-menu li.is-active > a { color: #fff; }
    .header-live-match-mobile a { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--theme-text-dark); }
    .ebs-details { display: none; }
    .live-matches-bar { display:none; }
    @media (max-width: 768px) {
        .header-top .header-logo,
        .header-top .header-actions { flex: 0 0 auto; }
        .mobile-header-calendar { flex-grow: 1; justify-content: center; }
        .mobile-header-calendar .calendar-link { padding: 6px 10px; font-size: 12px; }
    }
}


/* ==============================================
   CSS للميجا منيو بتصميم احترافي مطابق للمثال (V5)
   ============================================== */

/* --- 1. إعدادات الحاوية الرئيسية للقائمة --- */
#primary-menu-container {
    position: relative;
}

.main-menu > li.menu-item-has-children {
    position: static; /* مهم جداً لجعل القائمة تمتد بعرض الشاشة */
}

/* --- 2. تصميم حاوية الميجا منيو الشفافة (الخلفية) --- */
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #f0f0f0;
    padding: 25px 0; /* مساحة داخلية علوية وسفلية */
    
    /* التحكم بالظهور والإخفاء مع حركة ناعمة */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
    z-index: 999;
}

/* --- 3. إظهار الميجا منيو عند مرور الماوس --- */
.main-menu > li.has-mega-menu:hover > .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 4. تصميم شبكة الأعمدة الداخلية --- */
.mega-menu-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* استخدام Flexbox لمحاذاة الأعمدة */
    gap: 20px;
}

.mega-menu-column {
    list-style: none;
    flex: 1; /* جعل الأعمدة تأخذ مساحة متساوية */
    padding: 0 15px; /* مسافة داخلية لكل عمود */
    min-width: 200px; /* أقل عرض للعمود */
}

/* --- 5. تصميم عناوين الأعمدة والروابط (مطابق للمثال) --- */

/* عنوان العمود */
.mega-menu-column > h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    /* استخدام لون التمييز من لوحة التحكم للخط السفلي */
    border-bottom: 2px solid var(--theme-accent, #FF5722);
}
.mega-menu-column > h4 a {
    font-size: 16px;
    font-weight: 700;
    /* استخدام لون النصوص الداكن من لوحة التحكم */
    color: var(--theme-text-dark, #333);
    text-decoration: none;
    transition: color 0.2s;
}
.mega-menu-column > h4 a:hover {
    color: var(--theme-accent, #FF5722);
}

/* قائمة الروابط */
.mega-menu-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-sub-list li {
    margin-bottom: 8px; /* مسافة بين الروابط */
}
.mega-menu-sub-list li a {
    display: block;
    font-size: 14px;
    /* استخدام لون النصوص الثانوي من لوحة التحكم */
    color: var(--theme-text-light, #666);
    padding: 5px 0;
    transition: all 0.2s ease;
}
.mega-menu-sub-list li a:hover {
    /* تطبيق تأثير المرور المطابق للمثال */
    color: var(--theme-accent, #FF5722);
    padding-right: 8px;
}

/* --- 6. التعامل مع القوائم المنسدلة العادية (للتوافق) --- */
.main-menu > li.menu-item-has-children:not(.has-mega-menu) {
    position: relative;
}
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 230px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
    z-index: 1001;
}
.main-menu > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--theme-text-dark);
}
.main-menu .sub-menu a:hover {
    background-color: var(--theme-background);
    color: var(--theme-accent);
}

/* --- 7. إخفاء الميجا منيو على الهاتف والاعتماد على القائمة العادية --- */
@media (max-width: 768px) {
    .mega-menu-wrapper {
        display: none !important;
    }
}

/* ==============================================
   CSS إضافي لدعم القوائم المتداخلة (المستوى الثالث)
   ============================================== */

/* إعطاء مساحة للعنصر الأب الذي يحتوي قائمة فرعية */
.mega-menu-sub-list > .menu-item-has-children {
    position: relative;
    padding-bottom: 5px;
}

/* إضافة سهم صغير بجانب العنصر الذي يحتوي قائمة فرعية */
.mega-menu-sub-list > .menu-item-has-children > a::after {
    content: '\f104'; /* أيقونة سهم لليسار */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    float: left;
    margin-top: 4px;
    transition: transform 0.2s;
}

/* تدوير السهم عند فتح القائمة الفرعية (اختياري) */
.mega-menu-sub-list > .menu-item-has-children:hover > a::after {
    transform: rotate(-90deg);
}

/* تصميم القائمة الفرعية من المستوى الثالث */
.nested-submenu {
    list-style: none;
    padding: 8px 15px 8px 0; /* مسافة بادئة لليمين للتمييز */
    margin-top: 5px;
    background-color: var(--theme-background, #f5f5f5);
    border-radius: 4px;
    
    /* إخفاء القائمة افتراضياً */
    display: none;
}

/* إظهار القائمة الفرعية عند مرور الماوس فوق العنصر الأب */
.mega-menu-sub-list > .menu-item-has-children:hover > .nested-submenu {
    display: block;
}

.nested-submenu li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
}

/* =======================================================
   تصميم احترافي وجذاب لقائمة الهاتف (V3 - The Final Mobile Design)
   ======================================================= */

@media (max-width: 768px) {

    /* --- 1. تصميم حاوية القائمة الرئيسية --- */
    #primary-menu-container {
        /* عند الفتح، تأخذ 100% من ارتفاع الشاشة */
        height: 100%;
        overflow-y: auto; /* السماح بالتمرير إذا كانت القائمة طويلة */
    }
    #primary-menu-container.open .main-menu {
        padding: 10px 0;
        text-align: right;
    }

    /* --- 2. تصميم عناصر القائمة الرئيسية (li) --- */
    .main-menu li {
        position: relative;
        display: flex; /* يسمح بترتيب الرابط والزر جنباً إلى جنب */
        flex-wrap: wrap; /* يسمح للقائمة الفرعية بالنزول لسطر جديد */
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }

    /* --- 3. تصميم الروابط (a) --- */
    .main-menu li a {
        padding: 14px 20px;
        font-weight: 700;
        font-size: 15px;
        color: var(--theme-text-dark, #333);
        flex-grow: 1; /* جعل الرابط يأخذ كل المساحة المتاحة */
        transition: color 0.2s, background-color 0.2s;
    }
    .main-menu li a:hover {
        color: var(--theme-accent, #FF5722);
        background-color: #f9f9f9;
    }

    /* --- 4. تصميم زر فتح القائمة الفرعية (الأيقونة) --- */
    .submenu-toggle {
        /* فصل الزر عن الرابط */
        flex-shrink: 0; 
        width: 60px; /* مساحة ضغط مريحة */
        height: 50px;
        border: none;
        background: transparent;
        border-right: 1px solid #f0f0f0;
        color: var(--theme-text-light, #888);
        cursor: pointer;
        transition: color 0.2s, background-color 0.2s;
        order: -1; /* وضع الزر على اليسار (في تصميم RTL) */
    }
    .submenu-toggle:hover {
        background-color: var(--theme-accent, #FF5722);
        color: #fff;
    }
    .submenu-toggle i {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    /* تدوير السهم عند فتح القائمة */
    .submenu-toggle.is-open i {
        transform: rotate(180deg);
    }
    
    /* --- 5. تصميم القوائم الفرعية (مخفية افتراضياً) --- */
    .main-menu .sub-menu, .main-menu .mega-menu-wrapper {
        display: none;
        width: 100%;
        flex-basis: 100%; /* جعلها تأخذ عرضاً كاملاً */
        background-color: #f7f7f7;
        box-shadow: inset 0 5px 10px -10px #000;
    }
    
    /* تنسيق القائمة الفرعية العادية */
    .main-menu .sub-menu li a {
        padding-right: 35px;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #eee;
    }
    .main-menu .sub-menu li:last-child a {
        border-bottom: none;
    }
    .main-menu .sub-menu .sub-menu li a {
        padding-right: 50px; /* مسافة بادئة أكبر للمستوى الثالث */
        background-color: #f0f0f0;
    }

    /* --- 6. تنسيق الميجا منيو على الهاتف --- */
    .mega-menu-wrapper {
        padding: 10px 0 !important;
        background-color: #f7f7f7 !important;
        box-shadow: none !important;
    }
    .mega-menu-grid {
        display: block !important;
    }
    .mega-menu-column {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    /* عنوان العمود */
    .mega-menu-column > h4 {
        margin: 0;
        padding: 12px 20px;
        background-color: #e9e9e9;
    }
    .mega-menu-column > h4 a {
        font-size: 14px;
        font-weight: 700;
        color: var(--theme-text-dark);
        padding: 0;
    }
    .mega-menu-column > h4 a:hover {
        background: none;
        color: var(--theme-accent);
    }
    /* قائمة الروابط تحت العمود */
    .mega-menu-sub-list li a {
        padding-right: 35px;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #eee;
    }
    .mega-menu-sub-list li:last-child a {
        border-bottom: none;
    }
    
    .mobile-menu-container {
        display: flex;
    }
}

.mobile-menu-container {
        display: none;
    }

/* ==============================================
   إصلاح #1: إخفاء زر السهم على نسخة الحاسوب
   ============================================== */
@media (min-width: 769px) {
    .main-menu .submenu-toggle {
        display: none !important;
    }
}

/* =======================================================
   التحكم في ظهور وإخفاء قوائم الحاسوب والهاتف
   ======================================================= */

/* --- 1. الإعدادات الافتراضية (للحاسوب) --- */
/* إظهار قائمة الحاسوب بشكل افتراضي */
.desktop-menu-container {
    display: block;
}
/* إخفاء قائمة الهاتف بشكل افتراضي */
.mobile-menu-container {
    display: none;
}
/* إخفاء زر فتح قائمة الهاتف على الحاسوب */
.mobile-menu-toggle {
    display: none;
}


/* --- 2. الإعدادات عند عرض الموقع على الهاتف (شاشات بعرض 768px أو أقل) --- */
@media (max-width: 768px) {
    /* إخفاء قائمة الحاسوب */
    .desktop-menu-container {
        display: none;
    }
    /* إظهار قائمة الهاتف */
    .mobile-menu-container {
        display: block;
    }
    /* إظهار زر فتح قائمة الهاتف */
    .mobile-menu-toggle {
        display: block;
    }
}

/* إصلاح ظهور أيقونات التنقل في السلايدر */
.featured-slider .slider-nav,
.featured-slider .slider-dots {
    z-index: 3;
}


/* ==============================================
   تنسيقات بلوك الأخبار المميزة (تصميم جديد)
   ============================================== */
.featured-news-section {
    background-color: var(--theme-primary, #4a1816);
    background-image: linear-gradient(135deg, var(--theme-primary, #4a1816) 0%, var(--theme-accent, #99514f) 100%);
    color: #fff;
    padding: 30px;
    border-radius: var(--ebs-radius, 12px);
    margin: 40px 0;
}

.featured-news-section .section-title-container {
    display: flex;
    align-items: center; /* تضمن المحاذاة العمودية الصحيحة */
    gap: 15px; /* زيادة المسافة قليلاً */
    margin-bottom: 25px;
    border-right: 4px solid #fff;
    padding-right: 15px;
}

.featured-news-section h2 {
  color: #fff;
}

.section-title-icon {
    height: 32px; /* تحديد ارتفاع ثابت */
    width: 32px;  /* تحديد عرض ثابت */
    object-fit: contain;
    flex-shrink: 0; /* منع الأيقونة من الانكماش */
}

.featured-news-section .section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    padding: 0; /* إزالة أي حشوات موروثة */
    border: none;
    /* إلغاء تفعيل الخط العمودي الموروث من التصميم الأصلي */
    position: static; 
}

/* قاعدة جديدة لإخفاء الخط العمودي الموروث */
.featured-news-section .section-title::before {
    display: none !important;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas:
        "main-post secondary-posts"
        "main-post secondary-posts";
}

.featured-main-post {
    grid-area: main-post;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-main-post > a {
    display: block;
    width: 100%;
    height: 100%;
}
.featured-main-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.featured-main-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.featured-main-post .post-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.featured-main-post .post-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.featured-main-post .post-excerpt {
    font-size: 14px;
    color: #eee;
    line-height: 1.6;
}

.featured-secondary-posts {
    grid-area: secondary-posts;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.featured-secondary-post {
    display: flex;
    flex-direction: column;
}
.featured-secondary-post .post-thumbnail {
    display: block;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.featured-secondary-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-secondary-post .post-title {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}
.featured-secondary-post .post-title a {
    color: #fff;
    text-decoration: none;
}
.featured-secondary-post .post-title a:hover {
    text-decoration: underline;
}

/* التجاوب مع الأجهزة */
@media (max-width: 900px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main-post"
            "secondary-posts";
    }
    .featured-main-post {
        height: 350px;
    }
}

@media (max-width: 500px) {
    .featured-secondary-posts {
        grid-template-columns: 1fr;
    }
}


/* ==============================================
   تنسيقات التصاميم الجديدة لودجة البلوكات
   ============================================== */

/* --- 1. تصميم المجلة (Showcase Grid) --- */
.showcase-grid-wrapper {
display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 27px;
  margin-bottom: 36px;
}
.showcase-main-post {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.showcase-main-post .post-thumbnail {
    display: block;
    margin-bottom: 15px;
}
.showcase-main-post .post-thumbnail img {
    border-radius: 8px;
    height: auto;
}
.showcase-main-post .post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.showcase-main-post .post-excerpt {
    font-size: 15px;
    color: var(--theme-accent);
}

.showcase-secondary-grid {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}
.showcase-secondary-post .post-thumbnail {
    display: block;
    margin-bottom: 10px;
}
.showcase-secondary-post .post-thumbnail img {
    border-radius: 6px;
    height: 120px;
    width: 100%;
    object-fit: cover;
}
.showcase-secondary-post .post-title {
    font-size: 14px;
    font-weight: 600;
}

/* --- 2. تصميم الشبكة المتراكبة (Overlay Grid) --- */
.posts-block-wrap.layout-overlay-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.post-item-overlay-grid {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 250px;
}
.post-item-overlay-grid > a {
    display: block;
    width: 100%;
    height: 100%;
}
.post-item-overlay-grid .post-thumbnail {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.post-item-overlay-grid .post-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-item-overlay-grid:hover .post-thumbnail img {
    transform: scale(1.05);
}
.post-item-overlay-grid .post-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 2;
}
.post-item-overlay-grid .post-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* --- تجاوب التصاميم الجديدة مع الأجهزة --- */
@media (max-width: 768px) {
    .showcase-grid-wrapper {
        grid-template-columns: 1fr; /* عرض كل شيء في عمود واحد */
    }
    .showcase-main-post,
    .showcase-secondary-grid {
        grid-column: auto;
        grid-row: auto;
    }
    .showcase-main-post .post-title {
        font-size: 20px;
    }
}

/* ==============================================
   تصميم المجلة الاحترافي - نسخة مصححة ونهائية
   ============================================== */

.category-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 20px;
}

/* --- تصميم البطاقة (Card) بشكل عام --- */
.main-featured-post,
.secondary-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #f0f0f0; /* لون خلفية احتياطي أثناء تحميل الصورة */
}

.main-featured-post > a,
.secondary-post > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.main-featured-post .post-thumbnail,
.secondary-post .post-thumbnail {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.main-featured-post:hover .post-thumbnail,
.secondary-post:hover .post-thumbnail {
    transform: scale(1.05);
}

.main-featured-post .post-thumbnail img,
.secondary-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* هذا هو السطر الأهم لملء الصورة للحاوية */
}

/* --- تصميم المقال الرئيسي الكبير --- */
.main-featured-post {
    width: 100%;
    height: 450px; /* تحديد ارتفاع ثابت لضمان ملء المساحة */
}

/* --- تصميم شبكة المقالات الثانوية --- */
.secondary-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}
.secondary-post {
    height: 250px; /* تحديد ارتفاع ثابت للبطاقات الصغيرة */
}


/* --- تصميم المحتوى المتراكب (Overlay) --- */
.post-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* دفع كل المحتوى للأسفل */
    align-items: flex-start; /* محاذاة كل المحتوى للبداية (اليمين في RTL) */
    text-align: right;
}

.main-featured-post .post-content-overlay {
    padding: 30px;
}

.post-details {
    color: #fff;
    width: 100%;
}

.post-title {
    color: #3a3a3a;
    margin: 10px 0 10px 0; /* إزالة الهوامش الافتراضية */
}
.main-featured-post .post-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 8px; /* مسافة بين العنوان والتاريخ */
   color:#ffffff;
    
    
}
.secondary-post .post-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px; /* مسافة بين العنوان والتاريخ */
    color:#ffffff;
    
}

/* تنسيق تفاصيل التاريخ والوقت في البطاقات (باستخدام كلاس مخصص) */
.card-meta {
    margin-top: 8px;
    font-size: 13px; /* تكبير الخط قليلاً */
    color: #ddd;
    opacity: 0.9;
    font-weight: 500;
    justify-content: right;
}
.card-meta .fa-clock {
    margin-left: 5px; /* المسافة بين أيقونة الساعة والنص */
}

/* --- تصميم شارة التصنيف --- */
.post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--theme-accent, #FF5722);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
}

/* --- التجاوب مع الشاشات --- */
@media (max-width: 768px) {
    .main-featured-post {
        height: 350px;
    }
    .main-featured-post .post-title {
        font-size: 22px;
    }
    .secondary-posts-grid {
        grid-template-columns: 1fr;
    }
    .secondary-post {
        height: 220px;
    }
}

/* تصميم زر تحميل المزيد */
#load-more-btn {
    background-color: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#load-more-btn:hover {
    background-color: var(--theme-accent);
    transform: translateY(-2px);
}

/* =======================================================
   التصميم الموحد والنهائي لصفحة المقال
   ======================================================= */

/* --- الهيكل العام --- */
.single-post-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    padding: 25px 0;
}
.kora-article-card, .kora-related-posts, .comments-area {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

/* --- المقال --- */
.kora-article-title { font-size: 30px; font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.kora-article-image { margin: 20px 0; }
.kora-article-image img { border-radius: 6px; }
.kora-article-meta-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; margin-bottom: 25px; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
}
.kora-meta-right a { background: var(--theme-primary, #4a1816); color: #fff; padding: 8px 18px; border-radius: 4px; font-weight: 700; }
.kora-meta-left { display: flex; gap: 20px; font-size: 14px; color: #555; }
.kora-article-content { font-size: 17px; line-height: 1.9; text-align: justify; }
.kora-article-footer { margin-top: 25px; padding-top: 25px; border-top: 1px dashed #ddd; }
.kora-article-tags { margin-bottom: 20px; }
.kora-article-share { display: flex; align-items: center; gap: 15px; }
.kora-article-share .share-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.share-btn.facebook { background: #1877F2; } .share-btn.twitter { background: #1DA1F2; } .share-btn.whatsapp { background: #25D366; }

.kora-article-tags .tags-title { font-weight: 700; }
.kora-article-tags a { background: #f1f3f5; color: #495057; padding: 6px 12px; border-radius: 4px; font-size: 13px; margin: 3px; display: inline-block; }

/* --- المقالات ذات الصلة --- */
.kora-related-posts .kora-section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.kora-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kora-related-card { position: relative; height: 180px; border-radius: 8px; overflow: hidden; background-color: #f0f0f0; }
.kora-related-card a { display: block; width: 100%; height: 100%; }
.kora-card-thumbnail, .kora-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kora-related-card:hover .kora-card-thumbnail { transform: scale(1.05); transition: transform 0.3s ease; }
.kora-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: #fff; }
.kora-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }


/* --- التعليقات --- */
.comments-area { border-top: 3px solid var(--theme-primary); }
.comments-area .comment-form-comment textarea { height: 120px; }

/* --- التجاوب --- */
@media (max-width: 992px) {
    .single-post-container { grid-template-columns: 1fr; }
    .kora-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .kora-article-meta-bar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .kora-related-grid { grid-template-columns: 1fr; }
}

/* =======================================================
   إصلاحات وتكملة تصميم صفحة المقال
   ======================================================= */

/* --- 1. إصلاح شريط التفاصيل (المؤلف والتاريخ والتصنيف) --- */
.kora-article-meta-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap; /* للسماح بالالتفاف على الشاشات الصغيرة */
    gap: 15px;
}
.kora-meta-right a {
    background: var(--theme-accent) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* --- 2. إصلاح وإظهار أيقونات المشاركة --- */
.kora-article-share .share-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #fff !important;
}
.share-btn.facebook { background: #1877F2 !important; }
.share-btn.twitter { background: #1DA1F2 !important; }
.share-btn.whatsapp { background: #25D366 !important; }

/* --- 4. طھطµظ…ظٹظ… ظ‚ط³ظ… ط§ظ„طھط¹ظ„ظٹظ‚ط§طھ ط¨ط§ظ„ظƒط§ظ…ظ„ (ظ…ظ‡ظ… ط¬ط¯ط§ظ‹) --- */
.comments-area-wrapper {
    padding: 25px !important;
    background: #f8f9fa !important;
    border: none !important;
}
.comments-area-wrapper .comments-header-section {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #dee2e6 !important;
}
.comments-area-wrapper .comments-title {
    font-size: 22px !important;
    font-weight: 800 !important;
}
.comments-area-wrapper .comments-disclaimer {
    display: flex
;
    background: var(--theme-primary);
    color: #fff;
    padding: 10px;
}
.comments-area-wrapper .comment-list {
    list-style: none !important;
    padding: 0 !important;
}
.comments-area-wrapper .comment-body-card {
    display: flex !important;
    gap: 15px !important;
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}
.comments-area-wrapper .comment-header {
    margin-bottom: 10px !important;
}
.comments-area-wrapper .comment-author-info .fn a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--theme-primary) !important;
}
.comments-area-wrapper .comment-content p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}
.comments-area-wrapper .comment-reply-action {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* --- 5. طھطµظ…ظٹظ… ظ†ظ…ظˆط°ط¬ ط¥ط±ط³ط§ظ„ ط§ظ„طھط¹ظ„ظٹظ‚ --- */
.comments-area-wrapper .comment-form {
    margin-top: 30px !important;
}
.comments-area-wrapper .comment-reply-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}
.comments-area-wrapper .comment-form-author,
.comments-area-wrapper .comment-form-comment {
    margin-bottom: 20px !important;
}
.comments-area-wrapper .comment-form label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
}
.comments-area-wrapper .comment-form input[type="text"],
.comments-area-wrapper .comment-form textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background: #fff !important;
}
.comments-area-wrapper .form-submit {
    margin: 0 !important;
    padding: 0 !important;
}
.comments-area-wrapper .form-submit .submit {
    background-color: var(--theme-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
} cursor: pointer;
}

.footer-widget ul li a {
  color: #fff !important;
}

.footer-widget p {
  color: #fff !important;
}

.footer-widget span {
  color: #fff !important;
}

/* --- تنسيقات صفحة التبويبات المخصصة --- */

.tabs-container {
    margin: 30px 0;
}

/* شريط التنقل */
.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto; /* للسماح بالتمرير على الهاتف */
}

.tabs-nav li {
    margin: 0;
    padding: 0;
}

.tabs-nav li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--theme-text-dark, #333);
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    white-space: nowrap; /* لمنع كسر النص */
    transition: all 0.2s ease-in-out;
}

.tabs-nav li a:hover {
    background-color: #e9e9e9;
}

.tabs-nav li.active a {
    background-color: #fff;
    color: var(--theme-accent, #FF5722);
    border-bottom: 1px solid #fff;
    position: relative;
    z-index: 2;
}

/* محتوى التبويبات */
.tabs-content {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    border-radius: 0 5px 5px 5px;
}

.tab-pane {
    display: none; /* يتم إظهاره عبر JS */
}

.tab-pane.active {
    display: block;
}

/* تنسيق الأخبار داخل التبويب */
.news-tab-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}




/* تنسيق حاوية وزر "تحميل المزيد" */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.tabs-load-more-btn {
    background-color: var(--theme-accent, #FF5722);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.tabs-load-more-btn:hover {
    background-color: var(--theme-primary, #4a1816);
    transform: translateY(-2px);
}

.tabs-load-more-btn.loading {
    cursor: not-allowed;
    background-color: #ccc;
}

.archives-load-more-btn {
    background-color: var(--theme-accent, #FF5722);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.archives-load-more-btn:hover {
    background-color: var(--theme-primary, #4a1816);
    transform: translateY(-2px);
}

.archives-load-more-btn.loading {
    cursor: not-allowed;
    background-color: #ccc;
}




/* ==============================================
   تصميم سلايدر الفيديوهات الاحترافي
   ============================================== */
.video-carousel-section {
background-color: var(--theme-primary, #4a1816);
  margin-bottom: 20px;
  position: relative;
  background-image: linear-gradient(135deg, var(--theme-primary, #4a1816) 0%, var(--theme-accent, #99514f) 100%);
  padding: 10px;
  border-radius: 10px;
}

.video-carousel-section .section-header h2 {
  color: #fff !important;
}

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

.video-carousel-section .section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-text-dark, #333);
    border-right: 4px solid var(--theme-primary, #4a1816);
    padding-right: 15px;
    margin: 0;
}

.video-carousel-section .carousel-navigation {
    display: flex;
    gap: 10px;
}

/* -- Swiper Container -- */
.video-swiper-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide overflow to make arrows visible */
    padding: 5px; /* Add some padding to avoid shadows being cut */
}

/* -- Slide Design -- */
.swiper-slide {
    text-align: right;
    font-size: 18px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.video-slide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-slide-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #e9e9e9;
}

.video-slide-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-slide-link:hover .play-icon-overlay {
    opacity: 1;
}

.play-icon-overlay i {
    color: #fff;
    font-size: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    transition: transform 0.2s ease;
}
.video-slide-link:hover .play-icon-overlay i {
    transform: scale(1.1);
}


.video-slide-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 15px;
    margin: 0;
    line-height: 1.4;
    color: #333;
    /* Ensure title has max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    min-height: 42px; /* 15px * 1.4 * 2 lines */
}

/* -- Carousel Navigation Arrows -- */
.swiper-button-next, .swiper-button-prev {
    position: static; /* Remove absolute positioning */
    margin-top: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
    transition: background-color 0.2s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--theme-primary, #4a1816);
}

.swiper-button-next:hover::after, .swiper-button-prev:hover::after {
    color: #fff;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 900;
    color: var(--theme-primary, #4a1816);
    transition: color 0.2s;
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ... (Keep the rest of your custom2.css here) ... */


/* بنية قسم السلايدر الرئيسي */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start; /* مهم جدا للـ sticky */
}

.featured-slider {
    flex: 1;
    min-width: 0; /* مهم للسماح بالتقلص */
}

/* --- هنا تنسيق السايدبار الجديد بجانب السلايدر --- */
.slider-sidebar {
    width: 300px;
    flex-shrink: 0; /* يمنع السايدبار من التقلص */
}

/* جعله ستيكي على الشاشات الكبيرة فقط */
@media (min-width: 993px) {
    .slider-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px; /* يمكنك تغيير هذه القيمة لتناسب ارتفاع الهيدر لديك */
    }
}

/* إخفاء السايدبار بجانب السلايدر على الشاشات الصغيرة وتركه يظهر كبلوك عادي */
@media (max-width: 992px) {
    .slider-sidebar {
        width: 100%;
        margin-top: 20px;
    }
}


/* بنية المحتوى الرئيسي والسايدبار الرئيسي */
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    align-items: flex-start; /* مهم جدا للـ sticky */
}
.main-column {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* جعل السايدبار الرئيسي ستيكي */
@media (min-width: 993px) {
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 992px) {
    .main-column, .sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ... (Keep all existing CSS code) ... */

/* ==============================================
   بنية الجزء العلوي من الصفحة الرئيسية
   ============================================== */
.home-top-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start; /* مهم جدا للـ sticky */
}

.home-top-main-column {
    flex: 1;
    min-width: 0; /* مهم للسماح بالتقلص */
    display: flex;
    flex-direction: column;
    gap: 20px; /* مسافة بين السلايدر والبلوكات التي تحته */
}

.hero-slider-section .featured-slider {
    min-height: 400px; /* للمحافظة على ارتفاع السلايدر */
}

/* تنسيق منطقة البلوكات الجديدة */
.home-content-under-slider-area {
    width: 100%;
}

/* --- تنسيق السايدبار بجانب السلايدر --- */
.slider-sidebar {
    width: 300px;
    flex-shrink: 0; /* يمنع السايدبار من التقلص */
}

/* جعله ستيكي على الشاشات الكبيرة فقط */
@media (min-width: 993px) {
    .slider-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
    }
}

/* على الشاشات الصغيرة، اجعل السايدبار تحت المحتوى */
@media (max-width: 992px) {
    .slider-sidebar {
        width: 100%;
        order: 3; /* يجعله يظهر آخر شيء في الجزء العلوي */
    }
}

.main-menu > li > a > hover { color: var(--theme-primary) !important; }



/* ... (Rest of your custom2.css code) ... */


/* ---- تصميم قسم التعليقات الجديد المستوحى من الصورة ---- */

/* 1. الحاوية العامة للتعليقات */
.comments-area-wrapper {
    background-color: #f7f7f7; /* لون الخلفية الرمادي الفاتح */
    padding: 25px 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* 2. تصميم كارت التعليق الواحد */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body-card {
    background-color: #ffffff; /* خلفية بيضاء للكارت */
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* ظل ناعم */
    padding: 0;
    margin-bottom: 25px;
    overflow: hidden; /* لإخفاء أي شيء يخرج عن الإطار المنحني */
    position: relative;
}

/* 3. الشريط الملون في أعلى الكارت */
.comment-top-border {
    height: 4px;
    background-color: var(--theme-primary) !important; /* اللون الأزرق/البنفسجي من الصورة */
    width: 100%;
}

/* 4. المنطقة الرئيسية داخل الكارت */
.comment-main-area {
    display: flex;
    padding: 20px;
    gap: 15px;
}

.comment-author-avatar img {
    border-radius: 50%; /* جعل صورة الكاتب دائرية */
    width: 48px;
    height: 48px;
}

.comment-main-content {
    flex: 1; /* جعل هذا العنصر يأخذ باقي المساحة */
}

/* 5. ترويسة التعليق (الاسم والتاريخ) */
.comment-header {
    margin-bottom: 10px;
}

.comment-author-info .fn {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.comment-metadata {
    font-size: 13px;
    color: #888;
    margin-right: 10px; /* في العربية margin-right */
}

/* 6. نص التعليق */
.comment-content {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 7. تذييل التعليق (أزرار الإعجاب والرد) */
.comment-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    flex-wrap: wrap; /* للسماح بالانتقال لسطر جديد على الشاشات الصغيرة */
    gap: 15px;
}

.comment-like-dislike-wrapper, .comment-reply-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-like-btn, .comment-reply-action a {
    background: none;
    border: none;
    cursor: pointer;
    color: #667;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    transition: color 0.2s;
}

.comment-like-btn:hover, .comment-reply-action a:hover {
    color: #4a5a94; /* تغيير اللون عند مرور الماوس */
}

.comment-like-btn i, .comment-reply-action a i {
    margin-left: 5px; /* في العربية margin-left */
}

.like-feedback {
    font-size: 12px;
}

/* تعديل بسيط لزر الرد ليتناسق */
.comment-reply-action a {
    text-decoration: none;
}

/* تصميم جديد لدائرة الرقم التسلسلي للمعلق */
.comment-author-avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    
    /* خصائص جديدة لتوسيط الرقم وتلوينه */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-primary) !important; /* نفس لون الشريط العلوي */
    color: #ffffff; /* لون أبيض للرقم */
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* ---- نهاية كود التصميم ---- */


/* ===================================================================
   Sticky & Side Ads Styles
   =================================================================== */

/* --- Sticky Footer Ad --- */
.kora-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: none; /* Hidden by default, shown by JS */
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.kora-sticky-ad-content {
    text-align: center;
}
.kora-ad-close-btn {
    position: absolute;
    top: -25px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* --- Side Ads --- */
.kora-side-ad {
    position: fixed;
    top: 213px; /* Adjust as needed */
    width: 160px; /* Adjust to your ad width */
    z-index: 9999;
}
.kora-side-ad-right {
    right: 70px;
}
.kora-side-ad-left {
    left: 70px;
}

/* --- Hide ads on smaller screens --- */
@media (max-width: 1300px) { /* Adjust this breakpoint as needed */
    .kora-sticky-ad,
    .kora-side-ad {
        display: none !important;
    }
}