.header {
    display: flex;
    padding: 3px 8px;
    background-color: rgb(0 0 0 / 83%);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    justify-content: space-between;
}
.logo {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.header-icons {
  font-size: 2em;
}

.header-icons i {
  margin: 0 10px; 
  color: #fff; 
}

        .search-box {
            display: none;
            position: absolute;
            top: 70px;
            left: 0;
            background-color: rgb(136 201 255 / 81%);
            border: 1px solid #000dff;
            padding: 10px;
            box-shadow: 0 2px 5px #ff0000;
            flex-direction: row;
            align-items: center;
        }

        .search-box input[type="text"] {
            width: 200px;
            padding: 5px;
            border: 1px solid #03f;
            margin-left: 5px;
            font-family: 'Cairo', sans-serif;
        }

        .search-box button {
            padding: 5px 10px;
            border: none;
            background-color: #ff0000;
            color: white;
            cursor: pointer;
            font-family: 'Cairo', sans-serif;
        }
html, body {
  height: 100%;
  margin: 0;
  width: 100%; 
  font-family: 'Cairo', sans-serif;
}
a {
    text-decoration: none;
} 
.swiper-container {
  max-width: 100vw;
  height: 100%;
  overflow: hidden; 
 background-image: linear-gradient(to right, #6452ff, #42c9ff, #ba00ff);
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-content h2 {
   font-size: 2em;
    margin-bottom: 0.5em;
    background-color: rgb(0 4 255 / 50%);
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 15px 0px 10px 0px;
}

.slide-content p {
  font-size: 1.2em;
  margin-bottom: 1em;
  background-color: rgba(0, 0, 0, 0.5); 
  border: 1px solid #000; 
  padding: 5px;
  border-radius: 10px; 
}

.slide-content a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
      background-color: #d0b419;
}

.slide-content a:hover {
  background-color: #fff;
  color: #000;
}
/* تأثيرات الظهور للعنوان والوصف والزر */
@keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.slide-content h2,
.slide-content p,
.slide-content a {
   display: inline-block;
  padding: 5px 10px; /* ضبط الحشو حسب الحاجة */
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-name: fadeInUp;
}

.slide-content h2 {
  animation-delay: 0.3s;
}

.slide-content p {
  animation-delay: 0.5s;
}

.slide-content a {
  animation-delay: 0.1s;
}
/*article*/
.containerarticle {
    width: 80%;
    margin: auto;
    margin-top: 80px;
}
@media (max-width: 768px) {
    .containerarticle {
        width: 95%; 
    }
}
.Title-text {
    font-size: 23px;
    display: flex;
    justify-content: center;
}

.article {
    border-bottom: 1px solid #bfcfff;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.featured-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.featured-image img {
    width: 350px;
    height: 250px;
    border-radius: 5px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery img {
   width: 350px;
    height: 250px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    margin: 5px;
}

.gallery img:hover {
    transform: scale(1.02);
}

.author-info, .category-info {
    background: #e2e2e2;
    padding: 5px;
    margin-top: 10px;
    border-radius: 5px;
    display: inline-block;
}

.tag {
    background: #8ca5bd;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 14px;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 600px) {
    .gallery {
       width: 100%;
    }
}
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    background-color: #acddff;
    border-radius: 5px;
    padding: 5px;
}
.Tags-mgal {
    margin-top: 30px;
    background-color: #e3e3e3;
    border-radius: 5px;
    padding: 5px;
}
.author-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.author-category p {
    margin: 0 10px 0 0; 
}

.share-view-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.share-view-icons .fa-eye {
     margin-left: 10px;
}

.share-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.share-button:hover {
    background-color: #0056b3;
}
/*categories*/
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-bottom: 30px;
}

.category-box {
    border: 1px solid #777dff;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: #fffffd;
    flex: 0 0 230px; 
    margin-bottom: 10px; 
}

.category-box h3 {
    color: #002bff;
    margin-bottom: 1px;
    margin-top: 2px;
}

.category-box img {
    width: 100%;
    height: 130px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Media Queries */
@media (max-width: 1024px) {
    .category-box {
        flex: 0 0 calc(33% - 10px); 
    }
}

@media (max-width: 768px) {
    .category-box {
        flex: 0 0 calc(50% - 10px); 
    }
}
/*about_us*/
.about_us-title {
margin: 0;
background-color: #00000070;
border-radius: 5px;
}
p {
margin: 0;
}
.container {
    display: flex;
      flex-wrap: wrap;
    padding: 5px;
}
.title-description, .features {
  padding: 5px;
}
.title-description {
  flex: 1 1 100%; 
}
.features {
  flex: 1 1 100%; 
}
.feature {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.feature-icon {
  margin-right: 10px;
}
@media (min-width: 768px) {
  .title-description, .features {
    flex: 1; 
  }
}
/*member*/
.member-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; 
  padding: 20px 0;
}
.member-container::-webkit-scrollbar {
  display: none; 
}
.member-card {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 38%);
    border-radius: 10px;
    overflow: hidden;
}
.member-image img {
  width: 100%; 
  height: 140px; 
  display: block; 
}
.member-name,
.member-role {
  padding:1px;
  text-align: center; 
}
.member-name {
  color: #120d83;
}
.member-role {
  color: #30b413;
  font-size: 0.6em;
}
.team-title {
    font-size: 2em;
    text-align: center;
    color: #ebaa00;
    font-weight: bold;
}
/*articles-peg*/
.articles-peg {
   padding: 5px;
   box-sizing: border-box; 
}

.articles-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px;
    justify-content: center;
}
.article {
    background: #eaf6ff;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
        flex: 1 1 calc(25% - 20px); 
    max-width: calc(25% - 20px); 
}

.article img {
    width: 100%;
    height: 180px;
    border-radius: 5px;
}

.article h1 {
    margin: 5px 0;
}
.article p{
font-size: small; 
}
.article-title {
    font-size: 1.4em;
}

@media (max-width: 1200px) {
    .article {
      flex: 1 1 calc(50% - 10px);  
      max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .article {
     flex: 1 1 calc(100% - 5px);   
     max-width: calc(100% - 5px);
    }
}

@media (max-width: 480px) {
    .article {
     flex: 1 1 calc(100% - 5px);   
      max-width: calc(100% - 5px);
    }
}

/*my-subcategories*/
.my-tetle {
    text-align: center;
    color: #333;
    margin-top: 80px; 
}
.my-subcategories-container {
    overflow-x: auto;
    white-space: nowrap;
    margin: 5px; 
}
.my-subcategory-item {
    display: inline-block;
    vertical-align: top;
     min-width: 175px;
     height: 150px;
    margin-right: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
}
.my-subcategories-scroll {
    direction: rtl; 
    overflow-x: auto; 
   height: 175px;
}
.my-subcategory-item img {
    width: 100%;
    height: 100px;
    display: block;
}
.my-subcategory-item h3 {
    text-align: center;
    margin: 10px;
}

/*my-mcharka*/
.sidebar {
    position: fixed;
    left: 0;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar a,
.sidebar .share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgb(255 255 255);
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.sidebar a.phone {
    background-color: #34b7f1;
}

.sidebar a.snapchat {
    background-color: #fffc00;
    color: black;
}

.sidebar a.instagram {
    background-color: #e1306c;
}

.sidebar a.twitter {
    background-color: #1da1f2;
}

.sidebar a.tiktok {
    background-color: #010101;
}

.sidebar a.facebook {
    background-color: #3b5998;
}

.sidebar .share {
    background-color: #007bff; 
}

.sidebar a:hover,
.sidebar .share:hover {
    background-color: #128c7e;
}
    .view-more {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 5px;
    }

    .view-more .btn {
        display: inline-block;
        background-color: #007BFF; 
        color: #fff; 
        padding: 10px 20px; 
        font-size: 16px; 
        border-radius: 5px; 
        text-decoration: none; 
        transition: background-color 0.3s ease; 
    }

    .view-more .btn:hover {
        background-color: #0056b3; 
    }
    


.search-results-grid {
    display: flex;
    gap: 5px;
    justify-content: center;
}

/* 4 أعمدة على أجهزة الكمبيوتر */
.search-result-item {
    flex: 1 1 calc(25% - 5px); 
    max-width: calc(25% - 5px); 
}

/* 2 أعمدة على الهواتف المحمولة */
@media (max-width: 768px) {
    .search-result-item {
        flex: 1 1 calc(50% - 5px); 
        max-width: calc(50% - 5px); 
    }
}
.search-result-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
}
.search-result-item:hover {
    transform: scale(1.05);
}

.search-result-item img {
    max-width: 100%;
    height: 150px;
    border-radius: 8px;
}

.search-result-item h2 {
font-size: 16px;
    color: #0005ff;
    margin-top: 0;
}
  
  
  
