    body {
        margin: 0;
        padding: 0;
        font-family: "Cairo", sans-serif;
        /* direction: rtl; */
        background: #f5f6f8;
    }
/* ======= الشريط العلوي ======= */
header{
      direction: rtl;
}
.topbar {
  background-color: #1D8387;
  color: #fff;
  padding: 8px 0;
}

.topbar .container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.social-icons {
  margin: 0 138px;
}

.social-icons a {
  color: white;
  margin-left: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ffcc00;
}

/* ======= الهيدر ======= */
.header-nav {
  background-color: #1D8387;
  border-bottom: 3px solid #009385;
}

.header-nav .container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
/* =======  للموبايل الهيدر ======= */
.nav-mobile{
  display: none;
}
.header-nav-mobile {
  display: none;
  background-color: #1D8387;
  border-bottom: 3px solid #009385;
}

.header-nav-mobile .container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.logo img {
height: 119px;
    width: 192px;
}
.logo{
display: flex;
}
.cheif{
    margin-top: 58px;
    font-size: 16px;
    font-weight: 900;
      display: flex;
    flex-direction: column;
  }
.banner img {
  height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* ======= القائمة ======= */
nav {
  background-color: #1D8387;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 10px 0; */
  /* flex-direction: row-reverse; */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
      /* flex-direction: row-reverse; */
}

nav ul li a {
  color: white;
  text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

/* زر القائمة في الموبايل */
.m-menu-btn {
    top: 15px;
    right: 15px;
    background: #009da0;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999999;
}

/* القائمة الجانبية */
.m-sidebar {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    overflow-y: auto;
    padding-top: 60px;
    z-index: 999998;
    transition: right 0.3s ease;
}

/* روابط القائمة */
.m-sidebar a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}
.m-sidebar a:hover {
    background: #009da0;
    color: #fff;
}

/* عنوان "المزيد" */
.m-more-title {
    padding: 10px 20px;
    background: #f5f5f5;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #ddd;
}

/* التظليل */
.m-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 999997;
    display: none;
}

/* فتح القائمة */
.m-sidebar.open {
    right: 0;
}
.m-overlay.show {
    display: block;
}
  @media (max-width:720px){
.m-sidebar.open {
    right: 0;
}
  }


/* ======= المحتوى والإعلانات ======= */
.content {
  display: flex;
  gap: 20px;
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
}

section {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* ======= السلايدر الجمالي ======= */
.slider-wrapper {
  display: flex;
  gap: 15px;
  width: 100%;
  height: 400px;
  position: relative;
}

.slider {
  flex: 3;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
}


.slide {
  width: 100%;
  opacity: 0;
  display: none;
  transition: opacity 1s ease-in-out;
  pointer-events: none; /* ← مهم جداً */
}
.slide.active {
  display: block;
  opacity: 1;
  pointer-events: auto; /* ← مهم جداً */
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 18px;
  padding: 10px;
  text-align: center;
  border-radius: 0 0 15px 15px;
}
.post-title-a{
color:white;
  text-decoration:none;
  font-size:20px;
  font-weight:bolder;
}
.post-title-black{
  color:black;
  text-decoration:none;
  font-size:16px;
  font-weight:bolder;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 5;
}

.arrow:hover {
  background: rgba(0,0,0,0.6);
}

.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #fff;
  width: 25px;
  border-radius: 8px;
}

/* الصور الجانبية */
.side-images {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main {
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
}

.sidebar {
  /* flex: 1; */
  position: relative;
  min-width: 130px;
}

.adBox {
  width: 130px;
  height: 600px;
  /* background: linear-gradient(180deg, #fff6b0, #ffe36b); */
  /* border: 1px solid #ccc; */
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* عند الالتصاق */
.sticky {

  position: fixed !important;
  top: 10px; /* هامش صغير من الأعلى */
  z-index: 100;
  width: 130px !important; /* يمنع التمدد العرضي */
}


 /* Main News Section */
        .news-section {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 0;
        }

        .main-news {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            margin-bottom: 30px;
            position: relative;
        }

        .main-news-image {
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
        }
        .main-news-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}


        .main-news-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
            padding: 40px;
            color: white;
        }

        .main-news-title {
            font-size: 32px;
            line-height: 1.5;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .main-news-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 14px;
            color: rgba(255,255,255,0.9);
        }

        .main-news-meta i {
            margin-left: 5px;
        }

        /* News Grid */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .news-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }

        .news-card-image {
            width: 100%;
            height: 150px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .news-card-image img{
           height:100%;
           width:100%;
                }

        .news-card-content {
            padding: 20px;
        }

        .news-card-title {
            font-size: 16px;
            color: #333;
            line-height: 1.6;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .news-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #999;
            font-size: 13px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }

        .news-card-meta i {
            margin-left: 5px;
        }
.section-title {
  position: relative;
  font-weight: 600;
  font-size: 18px;
  color: #01202c;
  display: inline-block;
  padding: 10px 30px 10px 10px;
  /* background: #fff; */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  width: 90%;
}

.section-title::after {
  content: "✔";
  color: #01aaad;
  position: absolute;
  right: 8px;
  top: 10px;
  font-size: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: #01aaad;
}
.hero-post-slider{
display: flex;
    justify-content: space-around;
}
.side-images{
width: 20%;
}
.main-news{
width: 79%;
}
.item img {
    width: 100px;
    height: 75px;
    border-radius: 5px;
    object-fit: cover;
}
/* ======= الفوتر ======= */
footer {
  /* background: #222; */
  /* color: #fff; */
  text-align: center;
  /* padding: 60px 0; */
  /* margin-top: 50px; */
}

/* mobile */
@media (max-width:720px){
  header{
    display: none;
  }
  .logo img {
height: 75px;
    width: 100px;
}

.cheif{
    margin-top: 38px;
    font-size: 14px;
    font-weight: 700;
      display: flex;
    flex-direction: column;
  }
  .content{
    display: flex;
    flex-direction: column;
  }
  .sidebar{
    display: none;
  }
  .section{
    display: flex;
    flex-direction: column;
  }
  .slider-wrapper{
    flex-direction: column;
  }
 .side-images{
  display: none;
 }
 .main-news{
  width: 100%;
 }
 .news-grid {
  display: flex;
  flex-direction: column;
 }
 .news-card-image {
    height: 251px;
 }
 nav{
  display: none;
 }
   .container-mobile{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
  }
  .container-mobile .menu-toggle{
    margin-right: 0;
  }
  .header-nav-mobile {
  display: flex;

}
.nav-mobile{
  display: flex;
      flex-direction: column;
}
}

/* mobile end */


/* article page */
.article-page{
    display: flex;
    justify-content: space-between;
    margin: 30px;
    flex-direction: row-reverse;
  }
  .mainarticle-message{
  display:flex;
  flex-direction: column;
  /* margin: 0 2px; */
  background-color: #fffc;
    width:73%;
  }
  .messages{
  background-color: gray;
  }
  .main-article{
    width: 80%;
    direction: rtl;
    font-size:17px;
    margin: 0 50px;
  }
  .title-related{
text-align:center;
  }
  .post_writter_article{
  display:flex;
  font-size: 25px;
  font-weight: 900;
  margin-bottom:10px;
  }
  .pinged {
  margin-right:10px;
  color:red;
  }
  .main-article h1{
  font-size: 24px;
  font-weight:bold;
  text-align:center;
  color:#cb0000;
  }
  /*.main-article img{*/
  /*    width: 75%;*/
  /*    height:450px;*/
  /*   margin-right:10%;*/
  /*   margin-top:10px;*/
  /*   margin-bottom:10px;*/
  /*}*/
  .main-article p{
    /* width: 100%; */
  margin: 7px 45px;
  font-size: 18px;
  font-family: 'Garamond', 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', 'Times New Roman', serif;
    
  }
  .main-article  img{
    width: 100%;
    margin: 20px 0;
  }
  .related-psts-h3{
    text-align: center;
    background-color: #34AD54;
    color:white;
  }
  .MsoNormal{
  font-family:HacenLinerScreenBd;
  }
  .main-article p.MsoNormal img{
  width:90%;
  }
  .main-article .about-us p{
    font-size: 22px;
    
    }
    .awa-author{
    display: flex;
    justify-content: space-between;
    background: aliceblue;
    margin: 15px 5px;
     flex-direction:column;
    }
    .writter-post{
    display: flex;
    flex-direction: column;
    margin: 30px 5px;
    }
    .writter-post img{
    width:100px;
    height:100px;
    margin:auto;
    }
    .writter-post p{
      margin:2px auto;
      }
    .writter-content{
    display: flex;
    direction: rtl;
    flex-direction: column;
    margin: auto 5px;
  }
    .writter-content a{
    text-decoration: none;
    color: #143181;
    font-size: 17px;
    font-weight: 600;
    }
  .related-posts-under{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
     }
     .article-related-under{
    
        display: flex;
        flex-direction: column;
        width: 33%;
        margin: 5px auto;
      
     }
     .article-related-under img{
        width:95%;
        height: 250px;
        margin-bottom: 5px;
     }
     .article-related-under p{
        text-align: right;
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
        color: black;
        width:95%;
        margin-bottom: 5px;
  
     }
          .article-related-under .btn-article{
        text-align: right;
  
  
     }
  .related-posts{
  width: 20%;
  /* margin-right :0 20px; */
  background-color: #fffc;
  }
  
  .article-related{
    display: flex;
    margin:20px 0;
  }
  .article-related img{
    width: 50%;
    height: 90px;
    margin: 0 5px;
  }
  .article-related p{
    text-align:right;
    font-size:20px;
    
  }
  .article-related a{
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color:black;
  text-align: right;
  }
  .popular-posts{
    width: 25%;
    /* margin-right: 10px; */
    background-color: #fffc;
  
  }
  .popular-posts img{
    width:100%;
    height:200px;
  }
  .popular-posts .ads-content img{
    width:100%;
    height:auto;
  }
  .article-popular{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 5px 3px;
  }
  .article-popular img{
    /*width:100%;*/
    /*height:150px;*/
  }
  .article-popular p{
    width: 100%;
    text-align: center;
    }
    .article-popular a{
      text-decoration: none;
      font-size: 17px;
      font-weight: 600;
      color:black;
      text-align: right;
      }
  .line-article{
    height: 100px repeat ;
       margin: 0 10px;
    width: 1px;
       background:#34AD54
  }
 .main-catSection{
    display: flex;
    margin: 50px 0;
    }
.content-pagination{
                background:white;
            }
            .cat-content{
              display: flex;
              width: 80%;
              flex-wrap: wrap;
              justify-content: space-between;
              margin: auto;
                  flex-direction: row-reverse;

              }
              .cat-data{
              display: flex;
              flex-direction: column;
              width: 31%;
              margin: 5px auto;
                      direction:rtl;

              }
    .cat-data a{
             text-align:right;
      font-size:18px;
              }
             .cat-content .line-after{
               
    background: red;
    width: 2px;
    /* height: auto; */
    /* margin: -1px 5px; */
                }
              .cat-data img{
              width:95%;
              height: 250px;
              margin-bottom: 5px;
              }
              .cat-data form{
              text-align: right;
              font-size: 17px;
              font-weight: 600;
              text-decoration: none;
              color: black;
              width:95%;
              margin-bottom: 5px;

              }
              .cat-data span{
              text-align: right;
              width:95%;
              font-size: 14px;
              }
              .paginate{
                display: flex;
                 flex-direction: row-reverse;
                 margin: 10px 100px;
                 justify-content: center;
                 background-color: #4f4f4f;
                 height: 30px;
            }
             .paginate a{
            color:white;
            }
            

  .overlayOne {
  display: none;
  position: absolute;
  z-index: 1;
  }

            .overlay {
              height: 100%;
              width: 100%;
              display: none;
              position: fixed;
              z-index: 1;
              top: 0;
              left: 0;
              background-color: rgb(0, 0, 0);
              background-color: rgba(0, 0, 0, 0.9);
          } 
            /* The content */
            .overlay-contentOne {
              display: flex;
              flex-direction: column;
              text-align: center;
            
            }
.overlay-content form{
  display:flex;
  flex-direction:column;
}
.overlay-content input{
padding:40px 0;
  text-align:right;
}
            
            /* Close button */
            .overlayOne .closebtnOne {
              position: absolute;
              /*top: 10px;*/
              /*right: 45px;*/
              font-size: 60px;
              cursor: pointer;
              color: red;
            }
            
            .overlayOne .closebtnOne:hover {
              color: #ccc;
            }
            
            button.openBtn{
                border:none;
            }
            .fa-search {
                padding: 5px 5px;
                background-color: none;
                font-size: 17px;
                color: #cb0000;
                margin-left:1px;
                    font-family: "fontawesome" ;

            }
.search-result{
  text-align:right;
}
          
            /* Style the submit button */
            .overlayOne button {
              float: left;
              
              /*width: 20%;*/
              /*padding: 15px;*/
              background: #ddd;
              font-size: 14px;
              border: none;
              cursor: pointer;
            }
            
            .overlayOne button:hover {
              background: #bbb;
            }
            #result{
              background-color: #ccc;
              text-align: center;
              margin: auto;
              height: 700px;
            
            }
            

  .social-share{
  display: flex;
  justify-content: space-between;
  box-sizing:content-box;
  margin-left:7%;
  margin-top:15px;
  }

  .social-share span{
  font-size: 16px;
  font-weight: 600;
  }
/* END ARTICLE   */
/* categories */
.main-catSection{
    display: flex;
    margin: 50px 0;
    }
    .archive{
    width:15%;
    text-align: center;
            background: white;
  
    }
    .archive p{
    color: black;
    }
     .archive a{
    color: black;
    }
    .section-archive{
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    flex-direction: column;
    }
    .section-archive figure{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    }
    .section-archive figure p{
    margin-left: 100px;
    }
  .edit-ad-contact{
  margin: auto 82px;
  }
  .edit-ad-contact a{
  color: #fff;
  margin-left: 7px;
  font-size: 17px;
  font-weight: 600;
  }
  .arabic-date{
  margin:auto 5px;
  font-size: 17px;
  font-weight: 600;
  color:black;
  }
  .content-pagination{
    background:white;
  }
  .cat-content{
  display: flex;
  /* width: 80%; */
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px auto;
  flex-direction: row-reverse;
  
  }
  .cat-data{
  display: flex;
  flex-direction: column;
  width: 31%;
  margin: 5px auto;
          direction:rtl;
  
  }
  .cat-data a{
  /* text-align:right; */
  font-size:22px;
  /* direction: ltr; */
  margin: 5px 3px;
  color:black;
  font-weight: bold;
  
  }
  .cat-content .line-after{
   
  background:#34AD54;
  width: 2px;
  /* height: auto; */
  /* margin: -1px 5px; */
    }
  .cat-data img{
  width:99%;
  height: 215px;
  max-height: 215px;
  min-height: 215px;

  margin-bottom: 5px;
  }
  .cat-data form{
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: black;
  width:95%;
  margin-bottom: 5px;
  
  }
  .cat-data span{
  text-align: right;
  width:95%;
  font-size: 14px;
  }
  .paginate{
    display: flex;
     flex-direction: row-reverse;
     margin: 10px 100px;
     justify-content: center;
     background-color: #4f4f4f;
     height: 30px;
  }
  .paginate a{
  color:white;
  }
  
  @media (max-width:720px){
.cat-content {
        flex-direction: column;

}
    .cat-data {
    width: 100%;

}
/* article page */
.article-page{

    flex-direction: column;
  margin: 10px 0;
  }
    .mainarticle-message {

    width: 100%;
}
    .related-posts-under {
    flex-direction: column;
}
    .article-related-under
 {

     width: 100%; 
}
        .article-related-under a{
       text-align:center;
          text-decoration:none;
    }
    .popular-posts {
    width: 100%; 

}
.article-popular {
 
    width: 100%; 
 
}
}