/*
Theme Name: TSA
Theme URI: https://example.com/
Author: Ultra digital
Description: Thème WordPress optimisé pour WPBakery, en français, sans RTL. Développé par Ultra digital.
Version: 1.0
*/
.tsa-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
      background: white;
}
.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
 
}




body {
  overflow-x: hidden;
}

@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body.admin-bar .mobile-menu-overlay.active .mobile-menu-content {
  right: 0 !important;
  margin-top: 47px !important;
}



   .tsa-header {
    background-color: #AA0F1A;
    color: white;
    font-family: 'Lato', sans-serif;
    height: 195px;
    display: flex;
    flex-direction: column;
  }
  .tsa-top {
    width: 1128px;
    height: 51px;
    margin: 48px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tsa-logo img { height: 50px; }
  .tsa-links {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .tsa-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }
  .tsa-nav {
    width: 1128px;
    height: 24px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tsa-menu ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .tsa-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
  }
  .tsa-icons {
    display: flex;
    gap: 12px;
  }
  .tsa-icons img {
    height: 20px;
    cursor: pointer;
  }
  
  
    .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
    }

    .mobile-menu-toggle span {
      display: block;
      width: 25px;
      height: 3px;
      background-color: #fff;
      margin: 5px 0;
      transition: 0.3s;
    }

    .mobile-header {
      display: none;
      background-color: #AA0F1A;
      padding: 15px 20px;
      justify-content: space-between;
      align-items: center;
    }

    .mobile-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .mobile-logo img {
      height: 30px;
      width: auto;
    }

    .mobile-right {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .mobile-contact {
      color: #fff;
      font-size: 14px;
      text-decoration: none;
    }

    .mobile-search-icon {
      width: 24px;
      height: 24px;
      cursor: pointer;
    }

    .mobile-search-icon img {
      width: 100%;
      height: 100%;
      filter: brightness(0) invert(1);
    }

    .mobile-menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    .mobile-menu-content {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100%;
      background-color: #fff;
      transition: right 0.3s ease;
      z-index: 1000;
      overflow-y: auto;
    }

    .mobile-menu-overlay.active {
      display: block;
    }

    .mobile-menu-overlay.active .mobile-menu-content {
      right: 0;
    }

    .mobile-menu-header {
      background-color: #aa0f1a;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .mobile-menu-header .mobile-logo img {
      height: 25px;
      width: auto;
     
    }

    .mobile-menu-close {
      background: none;
      border: none;
      color: #fff;
      font-size: 28px;
      cursor: pointer;
      padding: 0;
      line-height: 1;
    }



    .mobile-menu-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .mobile-menu-nav ul li {
      border-bottom: 1px solid #eee;
    }

    .mobile-menu-nav ul li a {
      display: block;
      padding: 15px 0;
      text-decoration: none;
      color: #333;
      font-size: 16px;
    }

    .mobile-menu-links {
      padding: 20px;
      border-top: 1px solid #eee;
    }

    .mobile-menu-links a {
      display: block;
      padding: 10px 0;
      text-decoration: none;
      color: #C8102E;
      font-size: 14px;
    }

    @media (max-width: 768px) {
      .tsa-header { display: none; }
      .mobile-header { display: flex; }
      .mobile-menu-toggle { display: block; }
      
      
      
      
      
    }
    
    
    
    
    
    
    .figma-card-container {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}
.figma-card-image {
  width: 552px;
  height: 368px;
  overflow: hidden;
}
.figma-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figma-card-content {
  width: 552px;
  background: #fff;
}
.figma-card-title a {
  color: #000;
  text-decoration: none;
  font-weight: 900;
  font-size: 40px;
}

.figma-card-title a {

  font-size: 40px;
}

.figma-card-excerpt {
  color: #6F6F6F;
  font-size: 18px;
}
.figma-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ✅ Slider2 Card */
.slider2-card-container {
  width: 100%;
  max-width: 1126px;
  margin: 34px auto 45px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: 'Lato', sans-serif;
}
.slider2-card-title a {
  color: #000;
  text-decoration: none;
  font-weight: 900;
  font-size: 32px;
}
.slider2-card-meta {
  font-size: 15px;
  color: #6F6F6F;
}

/* ✅ Slider3 Card */
.slider3-wrapper {
  width: 1128px;
  display: flex;
  gap: 22px;
}
.slider3-card {
  width: 360px;
  display: flex;
  flex-direction: column;
}
.slider3-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.slider3-title a {
  color: #000;
  text-decoration: none;
  font-weight: 900;
  font-size: 24px;
}
.slider3-meta {
  font-size: 15px;
  color: #6F6F6F;
}
   
   
   body.admin-bar .mobile-menu-overlay.active .mobile-menu-content {
  right: 0 !important;
  top: 32px !important;
}















.mobile-menu-nav ul li {
  text-align: center;
  background-color: #f4f4f4;
}
.mobile-menu-nav ul li:nth-child(even) {
  background-color: #ffffff;
}
.mobile-menu-nav ul li a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 700;
      font-family: 'Lato';
}

.mobile-menu-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu-links ul li {
  text-align: center;
  background-color: #f4f4f4;
}
.mobile-menu-links ul li:nth-child(even) {
  background-color: #ffffff;
}
.mobile-menu-links ul li a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}
.mobile-menu-links ul li:last-child a {
  color: #C8102E;
}
.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 10px;
  border-top: 1px solid #ddd;
}
.mobile-menu-social a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%);
}






body {
  background-color: #f5f5f5; /* مثال لون رمادي فاتح */
}


.site-body-wrapper {
    background-color: #fff !important;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
    transition: opacity ease-in 0.2s;
    background: #9c9c9c12;
     margin: 0px;
     
}

.figma-card-container {
  width: 100%;
  max-width: 1128px;
  margin: 0px auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}
.figma-card-image {
  width: 552px;
  height: 368px;
  overflow: hidden;
  flex-shrink: 0;
}
.figma-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figma-card-content {
    font-family: 'Lato', sans-serif;
    width: 552px;
    height: 370px;
    display: flex
;
    flex-direction: column;
    overflow: hidden;
    background-color: #FFFFFF;
    padding: 0px 0px;
    box-sizing: border-box;
}
.figma-card-red-line {
  width: 75px;
  height: 5px;
  background: #BA141B;
}
.figma-card-text {
  margin-top: 24px;
}
.figma-card-title {
  width:450px;
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 24px 0;
  line-height: 1.2;
}
.figma-card-title a {
  color: inherit;
  text-decoration: none;
}
.figma-card-excerpt {
  width: 450px;
  color: #6F6F6F;
  font-size: 20px;
  margin: 0;
  line-height: 1.5;
}
.figma-card-spacer {
  flex-grow: 1;
}
.figma-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.figma-card-category-date {
  color: #BA141B;
  font-weight: bold;
  font-size: 15px;
}
.figma-card-separator {
  color: #6f6f6f;
  margin: 0 10px;
}
.figma-card-date {
  color: #6F6F6F;
  font-size: 15px;
  font-weight: 400;
}
.figma-card-share {
  width: 34px;
  height: 34px;
}

/* موبايل الصغير جداً ~359px */
@media (max-width: 360px){
  .figma-card-title a{
    font-size: 27px !important;
    line-height: 1.25;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px){
  .article-excerpt{
    font-size: 18px !important;
  }
}


@media (min-width: 1024px) {
  .figma-card-title {
    width: 480px !important;
  }
}


@media (max-width: 768px) {
  .figma-card-container {
    flex-direction: column;
    margin: 20px auto;
    padding: 0;
    gap: 16px;
    align-items: stretch;
  }
  .figma-card-image {
    width: 100%;
    height: 252px;
    order: 2;
  }
  .figma-card-content {
    width: 100%;
    height: auto;
    order: 1;
  }
  .figma-card-red-line {
    display: none;
  }
  .figma-card-text {
    margin-top: 0;
  }
  .figma-card-title {
    font-size: 24px;
    margin: 0 0 16px 0;
  }
  .figma-card-excerpt {
    width: 100%;
    font-size: 18px;
    margin-bottom: 24px;
  }
  .figma-card-spacer {
    display: none;
  }
  .figma-card-meta {
    justify-content: space-between;
    margin-bottom: 0;
  }
  .figma-card-category-date {
    font-size: 15px;
  }
  .figma-card-share {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .figma-card-container {
    padding: 0 24px;
    gap: 20px;
  }
  .figma-card-image {
    width: 45%;
    height: 300px;
  }
  .figma-card-content {
    width: 50%;
    height: 300px;
  }
  .figma-card-title {
    font-size: 28px;
  }
  .figma-card-excerpt {
    width: 100%;
  }
}


.slider2-card-container {
  width: 100%;
  max-width: 1126px;
  height: 220px;
  margin: 34px auto 45px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  font-family: 'Lato', sans-serif;
}

.slider2-card-sidebar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 74px;
  background-color: <?php echo esc_attr($bar_color); ?>;
  z-index: 2;
}

.slider2-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 32px;
}

.slider2-card-title-wrapper {
  flex: 1;
}

.slider2-card-title {
  height: 147px;
  font-size: 35px;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.slider2-card-title a {
  color: inherit;
  text-decoration: none;
}

.slider2-card-excerpt-wrapper {
  flex: 1;
}

.slider2-card-excerpt {
  height: 147px;
  color: #6F6F6F;
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
}

.slider2-card-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
  z-index: 0;
}

.slider2-card-meta {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: #fff;
  padding: 0 12px;
  font-size: 15px;
  color: #6F6F6F;
  z-index: 1;
  white-space: nowrap;
}

.slider2-card-category {
  color: <?php echo esc_attr($bar_color); ?>;
  font-weight: bold;
}

.slider2-card-separator {
  margin: 0 8px;
}

@media (max-width: 768px) {
  .slider2-card-container {
width: calc(100% - 0px); /* ✅ خصم 10px من كل جانب */
    height: auto;
    margin: 24px auto; /* ✅ 10px يمين ويسار + 24px فوق وتحت */
    border: 1px solid #ddd;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .slider2-card-sidebar {
    position: absolute;
    width: 75px;
    height: 5px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    margin-top: -2.5px;
    z-index: 2;
  }

  .slider2-card-content {
    flex-direction: column;
    padding: 24px 15px 30px 15px;
    gap: 16px;
    align-items: flex-start;
  }

  .slider2-card-title-wrapper,
  .slider2-card-excerpt-wrapper {
    width: 100%;
    flex: none;
  }

  .slider2-card-title {
    height: auto;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    text-align: center;
  }
  
  .slider2-card-title a {

  font-size: 24px;
}
  
  

  .slider2-card-excerpt {
    height: auto;
    font-size: 18px;
    line-height: 1.5;
    display: block;
    text-align: center;
    color: #6F6F6F;
  }

  .slider2-card-bottom-line {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 0;
  }

  .slider2-card-meta {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 4px 16px;
    font-size: 15px;
    background: #fff;
    display: flex;
    justify-content: center;
    white-space: nowrap;
    z-index: 1;
  }

  .slider2-card-separator {
    margin: 0 6px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slider2-card-container {
    width: calc(100% - 48px);
    margin: 32px 24px;
  }

  .slider2-card-content {
    padding: 0 32px;
    gap: 24px;
  }

  .slider2-card-title {
    font-size: 28px;
  }

  .slider2-card-excerpt {
    font-size: 16px;
  }
}

.ads {
  
  margin: auto;
 
}

.block-1128 {
  max-width: 1128px;
  margin-left: auto;
  margin-right: auto;
}

.slider3-wrapper {
  width: 1128px;
  display: flex;
  font-family: 'Lato', sans-serif;
  gap: 22px;

}

.slider3-card {
height: 411px;
  width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
      margin-bottom: 7px;
}

.slider3-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.slider3-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider3-title h2 {
 
  font-weight: 900;
 
  line-height: 1.3;
}



.slider3-meta {
  font-size: 15px;
  color: #6F6F6F;
}

.slider3-meta .category {
  color: #BA141B;
  font-weight: bold;
}

.slider3-meta .separator {
  margin: 0 8px;
}

@media (max-width: 768px) {
  .slider3-wrapper {
  flex-direction: column;
    width: 100% ; /* ✅ عرض 100% ناقص 20px لإعطاء 10px يمين ويسار */
    margin: 0 0px;           /* ✅ إضافة 10px هامش يمين ويسار */
    padding: 0px;
    gap: 0px;
    
 
  }

  .slider3-card {
    width: 100%;
    justify-content: unset;
      border: 1px solid #ddd; /* الإطار */
  padding: 16px;          /* الفراغ بين الإطار والمحتوى */
  box-sizing: border-box; /* للتأكد أن الإطار لا يزيد الحجم الكلي */
  }
}



.most-read-container {
  max-width: 1128px;
  margin: 0px auto;
}

.most-read-title {
  font-size: 25px;
  font-weight: 900;
  color: #ba151c;
  margin: 0px 0px 50px;
  font-family: 'Lato', sans-serif;
  text-align: left;
}

.most-read-cards {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}

.most-read-card {
  flex: 1;
  min-width: 220px;
  border: 1px solid #ddd;
  padding: 40px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  position: relative;
}

.most-read-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 32px;
    font-weight: 900;
    color: #ba151c;
    background: #fff;
    padding: 0 8px;
}

.most-read-card-title {
 font-size: 20px;
    font-weight: 900;
    color: #474747;
}

.most-read-card-title a {
  color: #474747;
  text-decoration: none;
}

@media (max-width: 768px) {
  .most-read-container {
    margin: 24px 0px;
    width: 100% ;
  }

  .most-read-title {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 900;
  }

  .most-read-cards {
    flex-direction: column;
    gap: 16px;
  }

  .most-read-card {
    min-width: 100%;
    border: 1px solid #ddd;
    padding: 20px 10px;
    border-radius: 8px;
    position: relative;
  }

  .most-read-number {
    position: static;
    transform: none;
    display: inline-block;
    margin-right: 16px;
    font-size: 32px;
    padding: 0;
    vertical-align: middle;
    font-weight: 900;
  }

  .most-read-card-content {
    display: flex;
    align-items: center;
  }

  .most-read-card-title {
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
  }
}

.card-black-container {
  width: 100%;
  max-width: 1128px;
  margin: 48px auto;
  display: flex;
  gap: 0;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.card-black-image {
  width: 552px;
  height: 368px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-black-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-black-content {
  font-family: 'Lato', sans-serif;
  width: 576px;
  height: 368px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 0 24px;
  box-sizing: border-box;
}

.card-black-red-line {
  width: 75px;
  height: 5px;
  background: #BA141B;
  margin-top: 20px;
}

.card-black-text {
  margin-top: 24px;
}

.card-black-title {
  width: 100%;
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.card-black-title a {
  color: #fff;
  text-decoration: none;
}

.card-black-excerpt {
  width: 500px;
  color: #ccc;
  font-size: 20px;
  margin: 0;
  line-height: 1.5;
}

.card-black-spacer {
  flex-grow: 1;
}

.card-black-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.card-black-category-date {
  color: #fff !important;
  font-weight: 400;
  font-size: 15px;
}

@media (max-width: 768px) {
  .card-black-category {
    color: #ffffff !important;
  }
}



.card-black-separator {
  color: #fff;
  margin: 0 10px;
}

.card-black-date {
  color: #ccc;
}

.card-black-share {
  width: 34px;
  height: 34px;
  filter: invert(1);
}

/* Styles pour mobile */
@media (max-width: 768px) {
  .card-black-container {
    flex-direction: column;
    margin: 24px 0px;
    padding: 0 0px;
    gap: 0;
  }
  
  .card-black-image {
    width: 100%;
    height: 252px;
    order: 2;
  }
  
  .card-black-content {
    width: 100%;
    height: auto;
    order: 1;
    padding: 24px 20px;
  }
  
  .card-black-red-line {
    display: none;
  }
  
  .card-black-text {
    margin-top: 0;
  }
  
  .card-black-title {
    font-size: 32px;
    margin: 0 0 16px 0;
    text-align: left;
  }
  
  .card-black-excerpt {
    width: 100%;
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .card-black-spacer {
    display: none;
  }
  
  .card-black-meta {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  

  .card-black-share {
    width: 24px;
    height: 24px;
  }
}

/* Styles pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .card-black-container {
    padding: 0 24px;
  }
  
  .card-black-image {
    width: 45%;
    height: 300px;
  }
  
  .card-black-content {
    width: 55%;
    height: 300px;
  }
  
  .card-black-title {
    font-size: 32px;
  }
  
  .card-black-excerpt {
    width: 100%;
  }
}

.diasporas-container {
  border: 1px solid #ddd;
  font-family: 'Lato', sans-serif;
  width: 744px;
  height: 1133px;
  margin-top: 0px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.diasporas-red-line {
  width: 60px;
  height: 6px;
  background: #BA141B;
  margin: 0 auto;
}

.diasporas-title {
text-align: center;
    padding: 16px 0 16px;
    font-weight: 900;
    font-size: 25px;
    color: #BA141B;
}

.diasporas-featured-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.diasporas-featured-content {
  padding: 26px 48px 16px 48px;
}

.diasporas-featured-title {
  font-size: 35px;
  color: #BA141B;
  font-weight: 900;
  margin: 0 0 30px 0;
}

.diasporas-featured-title a {
  text-decoration: none;
  color: #BA141B;
}

.diasporas-meta {
  font-size: 15px;
  color: #6F6F6F;
  margin-bottom: 16px;
}

.diasporas-category {
  color: #ba151c !important;
  font-weight: bold;
}

.diasporas-separator {
  margin: 0 8px;
}

.diasporas-list {
  padding: 30px 48px 0px 48px;
  width: 744px;
  height: 413px;
}

.diasporas-list-item {
  display: flex;
  align-items: baseline ;
  margin-bottom: 25px;
  
}

.diasporas-list-icon {
  width: 30px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.diasporas-list-dot {
  width: 6px;
  height: 6px;
  background: #BA141B;
  border-radius: 50%;
}

.diasporas-list-title {
  font-size: 24px;
  color: #111;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.4;
  padding: 0px 0px 10px 15px;
}

/* Styles pour mobile */
@media (max-width: 768px) {
  .diasporas-container {
   width: 300px;
    height: auto;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 16px 0px;
    overflow: visible;
  }
  
  .diasporas-red-line {
    width: 50px;
    height: 4px;
    
  }
  
  .diasporas-title {
    font-size: 24px;
    padding: 16px 0 16px;
    text-align: center;
  }
  
  .diasporas-featured-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
  
  .diasporas-featured-content {
    padding: 16px 20px;
  }
  
  .diasporas-featured-title {
    font-size: 24px;
    margin: 0 0 30px 0;
    line-height: 1.3;
  }
  
  .diasporas-meta {
    font-size: 15px !important;
    margin-bottom: 20px;
  }
  
  .diasporas-list {
    padding: 0 20px 20px 20px;
    width: 100%;
    height: auto;
  }
  

  
  .diasporas-list-icon {
    width: 24px;
    height: 16px;
    margin-right: 12px;
  }
  
  .diasporas-list-dot {
    width: 5px;
    height: 5px;
  }
  
  .diasporas-list-title {
    font-size: 20px;
    line-height: 1.4;
    padding: 0;
    flex: 1;
  }
}

/* Styles pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .diasporas-container {
    width: 100%;
    max-width: 744px;
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
    .diasporas-list {
        padding: 0 20px 20px 20px;
      
        height: auto;
    }
}

@media (max-width: 768px) {
    .diasporas-container {
        width: calc(100% - 00px);
        height: auto;
        max-width: 100%;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin: 16px 0px;
        overflow: visible;
    }
}


@media (max-width: 768px) {
    .news247-widget.is-home .news247-articles-container {
        width: 320px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .news247-widget.is-home .news247-article {
        width: 235px;
    }
}





.news247-widget {
  font-family: 'Lato', sans-serif;
  max-width: 360px;
  border: 1px solid #ddd;
  background: #fff;
  position: relative;

}

.news247-red-line {
  width: 60px;
  height: 6px;
  background: #BA141B;
  margin: 0 auto 0px auto;
}

.news247-title-wrapper {
  text-align: center;
  
}

.news247-title {
 color: #BA141B;
    font-weight: 900;
    font-size: 25px !important;
    margin: 0;
    padding: 16px 0 16px;
}

.news247-articles-container {
  display: block;
}

.news247-article {
  padding: 12px 24px;
}

.news247-article:nth-child(odd) {
  background: #F6F6F6;
}

.news247-article:nth-child(even) {
  background: #FFFFFF;
}

.news247-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 6px;
}

.news247-article-title {
  font-size: 24px !important;
  font-weight: 900;
  color: #111;
  line-height: 1.4;
}

.news247-article-title a {
  color: inherit;
  text-decoration: none;
}

/* Styles pour mobile uniquement dans la page d'accueil */
@media (max-width: 768px) {
  body.home .news247-widget {
    max-width: 100%;
    margin: 16px 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  
  body.home .news247-red-line {
    width: 50px;
    height: 4px;
    margin-top: 12px;
  }
  
  body.home .news247-articles-container {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 16px 16px;
    gap: 16px;
  }
  
  /* Masquer la barre de défilement mais garder la fonctionnalité */
  body.home .news247-articles-container::-webkit-scrollbar {
    display: none;
  }
  
  body.home .news247-article {
    min-width: calc(85% - 16px);
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff !important;
    flex-shrink: 0;
  }
  
  body.home .news247-article:last-child {
    margin-right: 0;
  }
  
  body.home .news247-date {
    font-size: 13px;
    margin-bottom: 8px;
  }
}




/* Styles pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .news247-widget {
    max-width: 400px;
  }
}


.video-widget-container {
  width: 100%;
  max-width: 1128px;
  height: 361px;
  margin: 15px auto;
  font-family: 'Lato', sans-serif;
}

.video-widget-title {
  font-family: 'Lato';
  color: #BA141B;
  font-weight: 900;
  font-size: 25px;
  margin-bottom: 12px;
}

.video-widget-content {
  width: 100%;
  height: 316px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  box-sizing: border-box;
}

.video-widget-text {
  flex: 1;
  padding-right: 24px;
}

.video-widget-heading {
  font-size: 35px;
  font-weight: 900;
  margin: 0 0 16px 0;
  line-height: 1.4;
  width: 483px;
  height: 172px;
}

.video-widget-heading a {
  color: #fff;
  text-decoration: none;
}

.video-widget-meta {
  font-size: 15px;
  color: #ccc;
}

.video-widget-meta-separator {
  margin: 0 8px;
}

.video-widget-image-wrapper {
  position: relative;
  width: 434px;
  height: 244px;
  flex-shrink: 0;
}

.video-widget-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.video-widget-thumbnail {
  width: 434px;
  height: 244px;
  object-fit: cover;
}

.video-widget-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
}

/* Styles pour mobile */
@media (max-width: 768px) {
.video-widget-container {
  width: 100%;
  height: auto;
  margin: 24px 0;
  padding: 0px;
  box-sizing: border-box;
}
  
  .video-widget-title {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: left;
  }
  
  .video-widget-content {
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 24px 16px;
    align-items: flex-start;
  }
  
  .video-widget-text {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .video-widget-heading {
    font-size: 24px;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .video-widget-meta {
    font-size: 15px;
    margin-bottom: 0;
      color: #ffffff !important;
  }
  
  a.video-widget-category {
      font-size: 15px;
     color: #ffffff !important;
}
  
  .video-widget-image-wrapper {
    width: 100%;
    height: 200px;
    margin-top: 0;
  }
  
  .video-widget-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .video-widget-play-icon {
    width: 50px;
    height: 50px;
  }
}

/* Styles pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .video-widget-container {
    width: calc(100% - 48px);
    margin: 32px 24px;
  }
  
  .video-widget-content {
    padding: 32px;
  }
  
  .video-widget-heading {
    font-size: 28px;
    width: 100%;
  }
  
  .video-widget-image-wrapper {
    width: 350px;
    height: 200px;
  }
  
  .video-widget-thumbnail {
    width: 350px;
    height: 200px;
  }
}


.mini-video-card-container {
  width: 360px;
  height: 380px;
  border: 1px solid #ddd;
  margin: 0px auto;
  position: relative;
  font-family: 'Lato', sans-serif;
  background: #fff;
}

.mini-video-play-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.mini-video-play-icon img {
  width: 32px;
  height: 32px;
}

.mini-video-text-container {
  width: 360px;
  height: 110px;
  padding: 16px;
  box-sizing: border-box;
}

.mini-video-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px 0;
  line-height: 1.4;
  padding-top: 16px;
}

.mini-video-title a {
 color: #474747 !important;
  text-decoration: none;
}

.mini-video-image-container {
  padding: 0px 16px 0px 16px;
  width: 100%;
  height: 184px;
  overflow: hidden;
}

.mini-video-thumbnail {
 
  height: 184px;
  object-fit: cover;
  display: block;
}

.mini-video-meta {
  height: 48px;
  padding: 16px 16px 16px 16px;
  font-size: 15px;
  color: #6F6F6F;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.mini-video-category {
 color: #BA141B !important;
  font-weight: bold;
}

/* ✅ تعديل الموبايل */
@media (max-width: 768px) {
  .mini-video-card-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 15px;
  }

  .mini-video-text-container,
  .mini-video-image-container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .mini-video-thumbnail {
    width: 100%;
    height: auto;
  }

  .mini-video-title {
    font-size: 20px;
  }

  .mini-video-meta {
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* Styles pour tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .mini-video-card-container {
    margin: 24px auto;
  }
}


    .photos-widget-container {
      width: 100%;
      max-width: 1128px;
      height: 420px;
      margin: 48px auto;
      font-family: 'Lato', sans-serif;
    }

    .photos-widget-title {
      font-family: 'Lato';
      color: #BA141B;
      font-weight: 900;
      font-size: 25px;
      margin-bottom: 12px;
    }

    .photos-widget-content {
      width: 100%;
      height: 420px;
      background: #000;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 48px;
      box-sizing: border-box;
    }

    .photos-widget-text {
      flex: 1;
      padding-right: 24px;
    }

    .photos-widget-heading {
      font-size: 35px;
      font-weight: 900;
      margin: 0 0 16px 0;
      line-height: 1.4;
      width: 483px;
      height: auto;
    }

    .photos-widget-heading a {
      color: #fff;
      text-decoration: none;
    }

    .photos-widget-meta {
      font-size: 14px;
      color: #ccc;
    }

    .photos-widget-meta-separator {
      margin: 0 8px;
    }

    .photos-widget-image-wrapper {
      position: relative;
      width: 521px;
      height: 347px;
      flex-shrink: 0;
    }

    .photos-widget-image-link {
      display: block;
      width: 100%;
      height: 100%;
      position: relative;
    }

    .photos-widget-thumbnail {
      width: 521px;
      height: 347px;
      object-fit: cover;
    }

    .photos-widget-photo-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 48px;
      height: 48px;
    }







.mini-photo-card-container {
  width: 360px;
  height: 380px;
  border: 1px solid #ddd;
  margin: 45px auto 10px;
  position: relative;
  font-family: 'Lato', sans-serif;
  background: #fff;
}

.mini-photo-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.mini-photo-icon img {
  width: 32px;
  height: 32px;
}

.mini-photo-text-container {
  width: 360px;
  height: 110px;
  padding: 16px;
  box-sizing: border-box;
}

.mini-photo-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px 0;
  line-height: 1.4;
  padding-top: 16px;
  color: #474747;
}

.mini-photo-title a {
  color: #474747;
  text-decoration: none;
}

.mini-photo-image-container {
  padding: 0px 16px 0px 16px;
  width: 360px;
  height: 184px;
  overflow: hidden;
}

.mini-photo-thumbnail {
  
  height: 184px;
  object-fit: cover;
  display: block;
}

.mini-photo-meta {
  height: 48px;
  padding: 16px 16px 16px 16px;
  font-size: 15px;
  color: #6F6F6F;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.mini-photo-category {
      color: #BA141B !important;
  font-weight: bold;
}

@media (max-width: 768px) {
  .mini-photo-card-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 15px;
  }

  .mini-photo-text-container,
  .mini-photo-image-container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .mini-photo-thumbnail {
    width: 100%;
    height: auto;
  }



  .mini-photo-meta {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mini-photo-card-container {
    margin: 24px auto;
  }
}





.category-title-wrapper {
  text-align: center;
  margin: 40px 0 30px;
  position: relative;
}

.category-title-line {
  width: 60px;
  height: 4px;
  background-color: #b60000; /* اللون الأحمر */
  margin: 0 auto 10px;
}

/* شارة القسم أعلى المقال */
.article-category .cat-name,
.article-category .cat-name:visited,   /* بعد الزيارة */
.article-category .cat-name:focus,
.article-category .cat-name:hover,
.article-category .cat-name:active {
  color: #BA141B;       /* الأحمر المعتمد */
  text-decoration: none;
  font-weight: bold;
}


@media (max-width: 768px) {
    .article-category .cat-name {
        font-weight: bold;
        color: #BA141B;
        font-size: 15px;
    }
}



.single-article {
    max-width: 1128px;
    margin: auto;
    padding: 32px 16px;
    direction: ltr;
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    line-height: 1.6;
}

@media (max-width: 768px) {
  .single-article {
    padding: 20px 0px;
        font-size: 18px;
    line-height: 28px;
  }
}




.single-article a {

  font-weight: 400;
}

/* فقط الروابط داخل نصّ المقال */
.single-article .article-content a {
  text-decoration: underline;   
      color: black;/* السطر تحت الرابط */
}

/* الأيقونة بين قوسين بعد الرابط */
.single-article .article-content a::after {
        color: black;
  content: " [↗]";
  font-size: 0.85em;
  margin-left: 2px;
                       /* نفس لونك الحالي */
  vertical-align: baseline;
}

/* استثناء: لا تضيف الأيقونة على الروابط التي هي صور (إن وُجدت) */
.single-article .article-content a img + * ,
.single-article .article-content a:has(img)::after { content: none; }

/* استثناء شائع: لا تضيف الأيقونة على الـblockquote cite إن استُخدم */
.single-article .article-content blockquote cite a::after { content: none; }



/* السهم للروابط داخل نصّ المقال */
.single-article .article-content a {
  text-decoration: underline;
}
.single-article .article-content a::after {
  content: " [↗]";
  font-size: 0.85em;
  margin-left: 2px;

  vertical-align: baseline;
}

/* 🚫 استثناء: لا تضيف السهم في A lire aussi */
.single-article .article-content .a-lire-box a::after,
.single-article .article-content .a-lire-link::after {
  content: none !important;
}

/* (اختياري) استثناء الروابط التي هي صور */
.single-article .article-content a:has(img)::after { content: none; }











.article-category {
  color: #BA141B;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: left;
}

.article-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    font-family: 'Lato';
    line-height: 1.3;
}

.article-excerpt {
    font-size: 20px;
    color: #000000;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  margin-bottom: 20px;
}

.author-img img {
  width: 40px;
  height: 40px;
  
  object-fit: cover;
}

.author-meta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #6F6F6F;
}

.author-name {
    text-decoration: none;
    font-weight: bold;
    color: #6F6F6F;
    font-size: 15px;
}

.meta-separator {
  font-size: 18px;
  color: #888;
}

.post-date {
    font-weight: bold;
    color: #6F6F6F;
    font-size: 15px;
}



.article-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
}

.article-image img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.sidebar-ad {
  width: 350px;
  flex-shrink: 0;
}

.sidebar-ad img {
  width: 100%;
  display: block;
}


.article-featured-image {
  margin-bottom: 24px;
  text-align: center;
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.image-caption {
font-size: 15px;
    color: #919191;
   
    font-family: 'Lato', sans-serif;
    text-align: left;
}

@media (max-width: 768px) {
  .image-caption {
    padding: 0px 16px;
  }
}


.article-bar {
     display: flex
;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #6F6F6F;
    font-weight: 700;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icons a {
  display: inline-block;

}

.social-icons img {
  width: 30px;
  height: 30px;
}


.highlight-box {
  background-color: #d6e8fc;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.highlight-item {
    display: flex
;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #000;
    line-height: 1.5;
    font-weight: 400;
}


@media (max-width: 768px) {
  .highlight-item {

    font-size: 16px;
   
  }
}


.highlight-item img {
  margin-top: 4px;
  flex-shrink: 0;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.google-news-follow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #666;
}

.google-news-follow img {
  display: inline-block;
  height: 24px;
}

.a-lire-box {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 16px 0;
  margin: 24px 0;
     font-size: 20px;

}


.a-lire-link {
    font-weight: 400 !important;
}
.a-lire-label {
  font-weight: 400;
  color: #BA141B;
  margin-right: 6px;
}

.a-lire-link {
  text-decoration: none;
  color: #000 !important;
}

.a-lire-link:hover {
  text-decoration: underline;
}


.single-article blockquote {
  position: relative;
  width: 550px;
  height: 250px;
  padding: 20px 24px;
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 40px auto;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #000;
  line-height: 1.5;
  box-sizing: border-box;
}

.single-article blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: #BA141B;
}


.post-tags {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 16px 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  margin-top: 32px;
  text-align: left;
}

.tag-link {
  display: inline-block;
  margin: 0 12px;
  font-size: 16px;
  color: #555;
  text-decoration: none;
}

.tag-link .tag-icon {
  color: #BA141B;
  font-weight: bold;
  margin-right: 4px;
}


.tsa-box-title {
    position: relative;
    border: 1px solid #ddd;
    padding: 30px 16px 20px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    margin: 30px auto 0px;
    width: 350px !important;
    box-sizing: border-box;
}

.tsa-box-bar {
  position: absolute;
  top: -3px; /* يتحكم في تموضعه داخل الحد العلوي */
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  background-color: #BA141B;
  z-index: 1;
}

.tsa-box-heading {
  font-size: 24px;
  font-weight: 900;
  color: #BA141B;
  margin: 0;
}

@media (max-width: 768px) {
  .article-body {
    flex-direction: column;
  }

  .sidebar-ad {
    width: 100%;
    margin-top: 32px;
  }

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

  .article-meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .article-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }


  .article-bar {
    margin-bottom: 5px;
            display: none !important;
  }



  .google-news-follow img {
    width: 100px;
  }

  .highlight-box {
    padding: 12px 16px;
  }

  .tsa-box-title {
    padding: 24px 12px;
  }

  .tsa-box-heading {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .meta-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
  }

  .meta-cat a {
    font-size: 14px;
    font-weight: bold;
    color: #BA141B;
    text-decoration: none;
  }

  .meta-date {
    font-size: 13px;
    color: #666;
  }

  .meta-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000;
  }

  .meta-author .author-img img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
  }

  .meta-share a {
    margin-left: 12px;
  }

  .meta-share img {
    width: 20px;
    height: 20px;
  }
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media(max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  .article-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  

  .article-category .cat-name {
    font-weight: bold;
    color: #BA141B;
    font-size: 15px;
  }

  .article-category .post-date {
    font-size: 13px;
    color: #666;
  }

@media (max-width: 768px) {
    .article-category .post-date {
        font-size: 15px;
        color: #666;
        font-weight: 400;
    }
}




  .author-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
   padding-bottom: 25px;
  }

  .author-mobile .author-left {
    display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        color: #6F6F6F;
        font-weight: 700;
  }

  .author-mobile .social-icons {
    display: flex;
    gap: 10px;
  }
}

/* اجعل الصورة لا تتجاوز عرض الموبايل */
@media (max-width: 768px) {
  .article-featured-image,
  .article-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    margin: 0 auto;
  }

  .main-content,
  .article-body {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
}


@media (max-width: 768px) {
  .single-article blockquote {
    width: 100% !important;
    height: auto !important;
    padding: 20px;
    font-size: 20px;
    margin: 24px 0;
  }
  
.google-news-follow {
    display: none;
}
  
  
}

@media (max-width: 768px) {
  .article-follow-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    gap: 8px;
  }

  .article-follow-bar .google-news-left,
  .article-follow-bar .reading-time-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
  }

  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

a:visited {
  color: inherit;
}

a:hover {
  
  color: #BA141B; /* مثال لون عند hover */
}

a {
  text-decoration: none;
}

.figma-card-category-date a {
  text-decoration: none;
  color: #ba151c;
}

 
.figma-card-share-container {
  position: relative;
  display: inline-block;
}
.figma-card-share-options {
  display: none;
  position: absolute;
  bottom: 30px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 9999;
}
.figma-card-share-options a img {
  width: 24px;
  height: auto;
  display: block;
  margin: 5px 0;
}


.ad-970x250 .ad-block-content {
  padding: 20px;
}

.ad-300x600 .ad-block-content {
  padding: 30px;
}

.ad-300x250 .ad-block-content {
  padding: 10px;
}

.ad-728x90 .ad-block-content {
  padding: 5px;
}




.tsa-header {
  background-color: #ba151c;
  color: white;
  font-family: 'Lato', sans-serif;
}

.tsa-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.tsa-logo img {
  height: 50px;
}

.tsa-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tsa-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
   font-weight: 700;
}

.tsa-links img {
 height: 28px !important;
}

.tsa-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;


}

.tsa-menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsa-menu li a {
  color: white;
  text-decoration: none;
      font-weight: 600;
    font-size: 20px;
}

.tsa-icons {
  display: flex;
  gap: 12px;
}

.tsa-icons img {
  height: 20px;
  cursor: pointer;
}

.tsa-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.tsa-header {
  background-color: #AA0F1A;
  color: white;
  font-family: 'Lato', sans-serif;
  height: 195px;
  display: flex;
  flex-direction: column;
}


.tsa-header-spacer {
  height: 51px; /* الفراغ العلوي */
  flex-shrink: 0;
}

.tsa-top {
  width: 1128px;
  height: 51px;
  margin: 48px auto 48px auto; /* ✅ الفراغ العلوي فقط */
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.tsa-nav {
 width: 1128px;
  height: 24px;
  margin: 0px auto 0 auto; /* ✅ الفراغ العلوي فقط */
  display: flex;
  justify-content: space-between;
  align-items: center;
}



@media (max-width: 768px) {
  .tsa-header {
    display: none;
  }
}



.ad-centered { display:flex; justify-content:center; margin:20px 0; text-align:center; }
.ad-300x250 img { max-width:300px; height:auto; }



.diasporas-list-icon img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
.diasporas-list-icon {
  margin: 0;
}


a.card-black-category {
    color: white;
}

a.video-widget-category {
    color: white;
}

/* ================= Footer Styles ================ */

.tsa-footer {
  margin-top: 50px;
  font-family: 'Lato', sans-serif;
}

/* 1. Divider */
.footer-divider {
  height: 1px;
  background-color: #ddd;
  width: 100%;
}

/* 2. Gray Section */
.footer-gray-section {
  background-color: #f5f5f5;
  padding: 30px 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-menu-main {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu-main li a {
  color: #514545;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.footer-menu-main li a:hover {
  color: #666;
}

/* 3. White Section */
.footer-white-section {
  background-color: #fff;
  padding: 30px 0 20px;
}
.footer-menu-secondary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu-secondary li a {
  color: #C8102E !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.footer-menu-secondary li a:hover {
  color: #8B0000;
}

/* Social Icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 30px;

}
.footer-social a img {
  width: 24px;
  height: 24px;
  display: block;
  margin-left: 40px;
}
.footer-social a:hover img {
  opacity: 0.8;
}

/* 4. Red Bottom Section */
.footer-red-section {
  background-color: #AA0F1A;
  padding: 20px 0;
}
.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-logo {
  height: 30px;
  width: auto;
}
.footer-bottom-content p {
  color: #fff;
  margin: 0;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-menu-main,
  .footer-menu-secondary {
    flex-direction: row;
    gap: 15px;
  }
  .footer-social {
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
  }
}


@media (max-width: 768px) {
  .footer-menu-main ul,
  .footer-menu-secondary ul {
    flex-direction: column;
    gap: 15px;
  }

  .footer-social { flex-wrap: wrap; gap: 10px; }

  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
  }

  .site-body-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

/* ======== Footer Styles (update only media query) ======== */
@media (max-width: 768px) {
  /* 1) القائمة الرئيسية تبقى أفقية مع التفاف تلقائي */
  .footer-menu-main ul {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* 2) القائمة الثانوية (الروابط الحمراء) تبقى أفقية مع التفاف تلقائي */
  .footer-menu-secondary ul {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* 3) أيقونات التواصل تبقى أفقية */
  .footer-social {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* 4) الشعار والحقوق ينتقلان لأسفل بشكل عمودي */
  .footer-bottom-content {
    flex-direction: column !important;
    gap: 10px !important;
  }
.footer-menu-main li a {

  font-size: 16px;

}

.footer-social a img {
    width: 24px;
    height: 24px;
    display: block;
    margin-left: 15px;
}




}




/* ===== Blockquote (card + red bar) ===== */
.single-article .article-content blockquote,
.single-article .article-body blockquote,
.entry-content blockquote,
.wp-block-quote {
  position: relative !important;
  margin: 24px 0 !important;
  padding: 20px 24px 20px 44px !important; /* فراغ لليسار للشريط */
  border: 1px solid #e9e9e9 !important;
  background: #fff !important;
  border-radius: 6px !important;
  line-height: 1.7 !important;
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 700 !important; /* نص سميك مثل المعاينة */
  box-shadow: none !important;
}

/* إزالة هوامش الفقرات داخل الاقتباس */
.single-article .article-content blockquote p,
.single-article .article-body blockquote p,
.entry-content blockquote p,
.wp-block-quote p {
  margin: 0 !important;
}

/* الشريط الأحمر العمودي */
.single-article .article-content blockquote::before,
.single-article .article-body blockquote::before,
.entry-content blockquote::before,
.wp-block-quote::before {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  top: 14px !important;
  bottom: 14px !important;
  width: 4px !important;
  background: #c51c1c !important;
  border-radius: 2px !important;
}

/* RTL: الشريط يمين */
[dir="rtl"] .single-article .article-content blockquote,
[dir="rtl"] .single-article .article-body blockquote,
[dir="rtl"] .entry-content blockquote,
[dir="rtl"] .wp-block-quote {
  padding: 20px 44px 20px 24px !important;
  text-align: right !important;
}
[dir="rtl"] .single-article .article-content blockquote::before,
[dir="rtl"] .single-article .article-body blockquote::before,
[dir="rtl"] .entry-content blockquote::before,
[dir="rtl"] .wp-block-quote::before {
  left: auto !important;
  right: 16px !important;
}

/* موبايل */
@media (max-width: 768px) {
  .single-article .article-content blockquote,
  .single-article .article-body blockquote,
  .entry-content blockquote,
  .wp-block-quote {
    font-size: 16px !important;
    padding: 16px 20px 16px 40px !important;
  }
  [dir="rtl"] .single-article .article-content blockquote,
  [dir="rtl"] .single-article .article-body blockquote,
  [dir="rtl"] .entry-content blockquote,
  [dir="rtl"] .wp-block-quote {
    padding: 16px 40px 16px 20px !important;
  }
}



/* إخفاء السايدبار (عمود جانبي) في الآيباد فقط */
@media (max-width:1150px) and (min-width:750px) {
  /* إذا كان السايدبار هو العمود الثاني داخل wp-block-columns */
  .wp-block-columns > .wp-block-column:last-child {
    display: none !important;
  }
}




/* ✅ صور المقال + الصورة البارزة */
.single-article .article-featured-image,
.single-article .article-featured-image img,
.single-article .article-content img,
.single-article .article-content figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
}

/* ✅ بلوك صورة غوتنبرغ */
.single-article .article-content .wp-block-image,
.single-article .article-content figure.wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0;
}

/* ✅ كابتشن قديم يخرج بعرض ثابت */
.single-article .article-content .wp-caption {
  width: auto !important;
  max-width: 100% !important;
}
.single-article .article-content .wp-caption img {
  width: 100% !important;
  height: auto !important;
}

/* ✅ محاذاة الصور في الشاشات الصغيرة (إلغاء float) */
@media (max-width: 768px) {
  .single-article .article-content .alignleft,
  .single-article .article-content .alignright,
  .single-article .article-content .aligncenter,
  .single-article .article-content .wp-block-image.is-resized {
    float: none !important;
    margin: 0 auto 1rem !important;
    display: block;
    text-align: center;
  }
}

/* ✅ صور alignfull/alignwide لا تتجاوز العرض على الموبايل */
@media (max-width: 768px) {
  .single-article .article-content .alignfull,
  .single-article .article-content .alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
  }
}

/* ✅ iframes / video داخل المقال */
.single-article .article-content iframe,
.single-article .article-content embed,
.single-article .article-content video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* ✅ منع سكرول أفقي لو كان هناك عنصر شاذ */
.single-article,
.single-article .article-content {
  overflow-x: hidden;
}

/* ✅ إعلانات 300x250 لا تخرج خارج الإطار */
.ad-300x250,
.sidebar-ad img {
  max-width: 100%;
  height: auto;
}
.ad-centered { display: flex; justify-content: center; }




/* ✅ إطار للكابتشن أسفل الصورة */
.single-article .article-content .wp-caption-text,
.single-article .article-content figure.wp-block-image figcaption,
.single-article .article-featured-image .image-caption {
  display: block;
  margin-top: 0px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fafafa;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* ✅ تأكد أن الحاوية لا تفرض عرضًا ثابتًا يسبب خروج المحتوى */
.single-article .article-content .wp-caption,
.single-article .article-content figure.wp-block-image,
.single-article .article-featured-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0;
}

/* اختياري: إزالة أي عرض ثابت قد يضيفه المحرّر القديم */
.single-article .article-content .wp-caption {
  width: auto !important;
}



/* ✅ تأمين الحاوية والصورة */
.card-black-container{position:relative;max-width:100%;overflow:hidden}
.card-black-image img{display:block;width:100%;height:auto;object-fit:cover}

/* ✅ منع مشاكل الـflex مع النص */
.card-black-content{display:flex;flex-direction:column;gap:8px}
.card-black-text{min-width:0} /* مهم جدًا داخل flex */

/* ✅ عنوان يلفّ ولا يخرج */
.card-black-title{margin:0;max-width:100%}
.card-black-title a{
  display:block;
  max-width:100%;
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;    /* يلفّ أي كلمة طويلة */
  word-break:break-word;     /* باك أب للمتصفحات القديمة */
  hyphens:auto;              /* يضيف شرطات تلقائية عند الحاجة */
  text-decoration:none;
}

/* ✅ تحسينات الموبايل */
@media (max-width: 767px){
  .card-black-container{width:100% !important}
  .card-black-content{padding:12px}
  .card-black-title a{font-size:24px}      /* كما طلبت: العنوان 28px في الموبايل */
  .card-black-excerpt{font-size:16px}
}

/* ✅ خيار إضافي: قصّ العنوان بعد 3 أسطر لمنع أي تجاوز بصري */
@supports (-webkit-line-clamp: 3){
  @media (max-width: 767px){
    .card-black-title a{
      display:-webkit-box;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:3;  /* عدّلها 2/3/4 حسب رغبتك */
      overflow:hidden;
    }
  }
}








