﻿body {
  margin: 0 !important;
  font-family: "Cairo", sans-serif !important;
  background-color: #f4f9f5 !important;
}

/* ====== شريط العنوان الأساسي ====== */
.top-banner {
  width: 100%;
  max-width: 1312px;
  height: 80px;
  margin: 42px auto 0 auto;
  border-radius: 40px;
  background-color: #25652c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

/* ====== الشعار ====== */
.logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5.27%;
}

html[dir="ltr"] .logo {
  margin-left: 0;
  margin-right: 5.27%;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ====== زر ☰ Toggle ====== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ====== القسم الذي يحتوي القائمة + الأزرار ====== */
.nav-content {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* ====== قائمة الروابط ====== */
.menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  padding: 10px 0;
}

.menu-items a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
}

.menu-items a:hover {
  background-color: white;
  color: #25652c;
}

/* ====== قسم تسجيل الدخول + اللغة ====== */
.auth-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.login-btn {
  width: 122px;
  height: 48px;
  border-radius: 40px;
  border: 1px solid #ffffff;
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-btn {
  width: 122px;
  height: 48px;
  background-color: white;
  color: #25652c;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  border: none;
  border-radius: 40px;
  cursor: pointer;
}

/* ===== زر اللغة المتكامل مع قائمة منسدلة ===== */
.language-dropdown {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 38px;
  padding: 4px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
}

.language-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background-color: white;
}

.dropdown-arrow {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: white;
}

/* القائمة المنسدلة */
.language-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background-color: #fffef5;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: none;
  min-width: 140px;
  z-index: 10;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s;
}

.lang-option:hover {
  background-color: #f0f0f0;
}

.lang-option img {
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 6px;
  object-fit: cover;
}

/* العنصر النشط */
.lang-option.active {
  background-color: #fbe28f;
}

/* إظهار القائمة عند النقر */
.language-menu.show {
  display: block;
}
/* زر القائمة (الهامبرغر) - يظهر فقط في الشاشات الصغيرة */
.hamburger {
  display: none;
  background: none;
  color: white;
  border: none;
}

.dropdown-menu {
  background-color: #25652c;
}

/* إعدادات خاصة بالشاشات الصغيرة */
@media (max-width: 1400px) {
  .top-banner {
    margin: 0;
    border-radius: 0 0 40px 40px;
    max-width: 100%;
  }

  .expand {
    border-radius: 0px;
    border-bottom: solid 1px white;
  }

  .dropdown-menu a:hover {
    background-color: white;
    color: #25652c;
  }

  /* إظهار زر الهامبرغر */
  .hamburger {
    display: block;
  }

  /* القائمة الجانبية (تظهر عند الضغط على زر الهامبرغر) */
  .nav-content {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #25652c;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 999;
    border-radius: 0 0 40px 40px;
    gap: 0;
    font-size: 18px;
    font-weight: 600;
  }

  /* إظهار القائمة عند إضافة الكلاس show */
  .nav-content.show {
    display: flex;
  }

  /* الروابط داخل القائمة */
  .menu-items {
    flex-direction: column;
    width: 100%;
    gap: 0;
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
  }

  .menu-items a {
    font-size: 18px;
    width: 100%;
    border-bottom: solid 1px white;
    padding: 20px 0;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .dropdown-mobile {
    width: 100%;
    text-align: center;
    border-bottom: solid white 1px;
    padding-bottom: 10px;
  }

  .dropdown-mobile a {
    border: none;
  }
  /* أزرار تسجيل الدخول وتغيير اللغة */
  .auth-section {
    gap: 12px;
    width: 100%;
    flex-direction: column;
  }

  .login-btn,
  .signup-btn {
    border: none;
    border-bottom: solid white 1px !important;
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    color: white;
    font-size: 18px;
    text-decoration: none;
  }

  .login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  direction: rtl;
}

.dropdown-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.dropdown-list {
  display: none;
  position: absolute;
  right: 0;
  background-color: #25652c;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1000;
  flex-direction: column;
  text-align: right;
}

.dropdown-list a {
  padding: 10px 16px;
  text-decoration: none;
  color: white;
  border-bottom: none;
}

.dropdown-list a:hover {
  background-color: white;
  color: #25652c;
}

.dropdown-list.show {
  display: flex;
  border-bottom: solid 1px white;
  padding-bottom: 16px;
}

.dropdown-button.show {
  border-bottom: none;
}

@media (max-width: 1400px) {
  .custom-dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-button {
    width: 100%;
    border-bottom: 1px solid white;
    font-size: 18px;
    padding: 16px 0;
  }

  .dropdown-list {
    width: 100%;
    position: relative;
    background-color: #25652c;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .dropdown-list a {
    padding: 12px;
    border: none;
    text-align: center;
  }
}

/*footer style*/
.custom-footer {
  background-image: url("/images/footer.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: white;
  padding: 210px 60px 10px 88px;
  font-family: "Cairo", sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-left {
  flex: 1;
  min-width: 274px;
}

.footer-heading {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 56px;
  width: 278px;
  text-wrap: wrap;
  font-stretch: expanded;
}

.social-icons {
  display: flex;
  width: 274px;
  justify-content: space-around;
  margin-bottom: 20px;
  margin-top: 20px;
}

.social-icons img {
  width: 35px;
  height: 35px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-content: center;
  border: 1px solid white;
  border-radius: 40px;
  padding: 4px;
}

.social-icons iconify-icon {
  color: white;
}

.subscribe-box p {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.subscribe-box form {
  display: flex;
  border-radius: 30px;
  overflow: hidden;
  background-color: white;
  width: 278px;
  height: 40px;
}

.subscribe-box input {
  border: none;
  padding: 12px 16px;
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: #333;
}

.subscribe-box button {
  display: flex;
  align-items: center;
  background-color: #f7a531;
  border: none;
  color: white;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  width: 81px;
  border-radius: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex: 2;
    flex-wrap: wrap;
    min-width: 300px;
    padding-top: 60px;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid white;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-logo {
    padding-top: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-logo img {
  width: 129px;
  height: 129px;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #ddd;
  margin-top: 1%;
}

/* نخفي الصورة بشكل افتراضي */
.footer-heading-img {
  display: none;
  max-width: 278px; /* أو حسب حجم الصورة */
  height: auto;
}

/* عندما تكون اللغة عربية: نخفي النص العادي ونظهر الصورة */
:lang(ar) .footer-heading {
  display: none;
}

:lang(ar) .footer-heading-img {
  display: block;
}

/* عندما ليست اللغة عربية: نظهر النص ونخفي الصورة */
:not(:lang(ar)) .footer-heading {
  display: block;
}

:not(:lang(ar)) .footer-heading-img {
  display: none;
}

@media (max-width: 1400px) {
    .custom-footer {
        height: fit-content;
        background-position: bottom center;
    }
}
