/* Importing Google font - Fira Sans */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Fira Sans', sans-serif;
 }



header {
  position: fixed; /* تثبيت الهيدر */
  top: 0;
  left: 0;
  width: 100%;
 
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7); /* اللون ثابت */
  z-index: 1000;
  border-bottom: 2px solid white; /* خط أبيض أسفل الهيدر */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ظل خفيف */
  transition: background-color 0.3s ease; /* إذا أردت حركة خفيفة للون */
}

body {
  margin-top: 80px; /* لضمان عدم تغطية الهيدر للمحتوى */
}


header .navbar {

  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .menu-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
    justify-content: center; /* لضمان محاذاة العناصر في المنتصف */
}

.navbar .menu-links li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.navbar .menu-links .language-item a {
  display: flex;
  gap: 8px;
  align-items: center;
}

.navbar .menu-links .language-item span {
  font-size: 1.3rem;
}

.navbar .menu-links li a:hover {
  color: #1dbf73;
}

.navbar .menu-links .join-btn a {
  border: 1px solid #fff;
  padding: 8px 15px;
  border-radius: 4px;
}

.navbar .menu-links .join-btn a:hover {
  background: #1dbf73;
  border-color: transparent;
  color: white;
}

/* Hero Section */

.hero-section {
  margin-top: 80px; /* ضمان عدم تغطية الهيدر للصورة */
  min-height: calc(100vh - 80px); /* احتساب ارتفاع الشاشة وطرح الهيدر */
  background-image: url("images/BACKGROUNDS.JPG");
  background-size: cover;
  background-position: top center; /* تغيير موضع الصورة لمنع القطع */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.4); /* إضافة ظل خفيف */
}


/* إضافة تأثير الظل */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* الظل الخفيف */
  z-index: 1; /* التأكد من أن الظل في الخلف */
}  



.menu-links {
    padding-right: 150px;
}

.hero-section .content {
  max-width: 1280px;
  margin: 0 auto ;
  width: 100%;
  position: relative;
  z-index: 2; /* Ensure content stays above the overlay */
  text-align: center;
}

.hero-section .content h2 {
  color: #fff;
  font-size: 2rem;
  max-width: 730px;
  line-height: 40px;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.hero-section .search-form {
  height: 48px;
  display: flex;
  max-width: 630px;
  margin-top: 30px;
}

.hero-section .search-form input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 1rem;
  border-radius: 4px 0 0 4px;
}

.hero-section .search-form button {
  height: 100%;
  width: 60px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #1dbf73;
  color: #fff;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s ease;
}

.hero-section .search-form button:hover {
  background: #19a463;
}

.hero-section .popular-tags {
  display: flex;
  color: #fff;
  gap: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 10px;
}

.hero-section .popular-tags .tags {
  display: flex;
  gap: 15px;
  align-items: center;
  list-style: none;
}

.hero-section .tags li a {
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 4px 12px;
  border-radius: 50px;
  transition: 0.2s ease;
}

.hero-section .tags li a:hover {
  color: #000;
  background: #fff;
}

.navbar #hamburger-btn {
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 1.7rem;
}

.navbar #close-menu-btn {
  position: absolute;
  display: none;
  color: #fff;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 1.7rem;
}

.navbar .logo img {
  max-width: 100px; /* تصغير حجم الشعار */
  height: auto;
  margin-left: 150px; /* جعله على اليسار */
    filter: drop-shadow(0px 0px 5px white);
}

.navbar {
  background-color: #000; /* تعيين الخلفية السوداء */
  width: 100%; /* التأكد من أن عرض الـ navbar كامل */
  height: 100%; /* التأكد من أن ارتفاع الـ navbar يتناسب مع الهيدر */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
 position: relative; /* ضبط الشعار بالنسبة للهيدر */
  top: 0px; /* رفع الشعار بمقدار 10 بيكسل */
padding-left: 15px; /* إضافة padding للداخل من اليسار */
  margin-left: 0; /* يرجّع اللوجو لليسار */
  margin-right: auto; /* يدفع باقي العناصر لليمين */
}


.sections-grid {
  position: relative; /* لجعل التظليل يعمل */
  background-image: url('images/BACKGROUNDS.JPG');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 40px 0;
  padding-top: 0px;
  z-index: 1;
}

.sections-title {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
   position: relative;
  z-index: 2;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-card {
  background: #2a2a2d;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.section-card:hover {
  transform: translateY(-5px);
}

.section-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.section-card p {
  font-size: 1rem;
  opacity: 0.8;
}


.sections-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* ظل خفيف */
  z-index: 0; /* التأكد أن الظل أسفل المحتوى */
}


.sections-grid .sections-title {
  margin-top: -120px; /* نقل العنوان ليصبح أقرب إلى القسم السابق */
}


.ad-container {
    text-align: center;
    margin: 20px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #004085;
    color: #fff;
    
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1dbf73;
}























@media screen and (max-width: 900px) {
  header.show-mobile-menu::before {
    content: "";
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(5px);
  }

  .navbar .menu-links {
    height: 100vh;
    max-width: 300px;
    width: 100%;
    background: #333;
    position: fixed;
    left: -300px;
    top: 0;
    display: block;
    padding: 75px 40px 0;
    transition: left 0.2s ease;
  }

  header.show-mobile-menu .navbar .menu-links {
    left: 0;
  }

  .navbar .menu-links li {
    margin-bottom: 6px;
  }

  .navbar .menu-links li a {
    
    font-size: 1.1rem;
  }

  .navbar .menu-links .join-btn a {
    padding: 0;
  }

  .navbar .menu-links .join-btn a:hover {
    color: #1dbf73;
    background: none;
  }

  .navbar :is(#close-menu-btn, #hamburger-btn) {
    display: block;
  }

  .hero-section {
  
	 padding-bottom: 0; /* إزالة المسافة السفلية الزائدة */
  }

  .hero-section .content {
    text-align: center;
    margin: 0 auto 80px;
  }

  .navbar .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
  }

  .navbar .logo img {
    max-width: 100px;
    height: auto;
	margin-top: 100px;
	margin-left: 75px;
	filter: drop-shadow(0px 0px 5px white);
  }

  .hero-section .content h2 {
    text-align: center;
    font-size: 2rem;
    line-height: 55px;
  }

  .hero-section .search-form {
    display: block;
    margin-top: 10px;
  }

  .hero-section .search-form input {
    border-radius: 4px;
	width: 80%;  /* ضبط العرض */
      
        padding: 10px;
        font-size: 1rem;
        text-align: center;
  }

  .hero-section .search-form button {
    margin-top: 10px;
    border-radius: 4px;
    
	width: 80%;  /* ضبط العرض */
      
        padding: 10px;
       
        text-align: center;
  }

  .hero-section .popular-tags {
    display: none;
  }

}







