:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666666;
  --accent: #000000;
  --container: 1100px;
  --radius: 12px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header {
  border-bottom: 1px solid #eee;
  background-color: var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header a {
  color: var(--bg) !important;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
}

.nav-link:hover {
  color: var(--muted) !important;
}

/* تخصيص زر القائمة المنسدلة */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* hero */
.hero {
  background-image: url(image/home.png);
  background-size: cover;
  background-position: center;
  height: 92vh;
  position: relative;
  background-attachment: fixed;
  display: flex;
  justify-content: space-around !important;
}
.hero .hero-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 200px;
  align-items: center;
}
.hero-text {
  text-align: right;
}
.hero-text h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: 0.2px;
  color: var(--bg);
}
.hero-text p {
  color: var(--bg);
  margin: 0 0 16px;
}
.hero-inner h2 {
  color: var(--bg);
  font-weight: 500;
}

/* choose dropdown */

/* hero dropdown */
.section-choose {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  position: relative; /* مهم عشان dropdown يبقى داخل البوكس */
}

/* تعديل عرض dropdown ليكون 100% من البوكس */
.section-choose .dropdown-menu {
  width: 10% !important; /* نص عرض البوكس */
  left: auto !important; /* نتركه تلقائي */
  right: 0 !important; /* يحاذي للجانب الأيمن داخل البوكس */
  text-align: right;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 300px;
  top: 100%;
}

/* تعديل items داخل dropdown */
.section-choose .dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg);
}

.section-choose .dropdown-menu li a img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

/* hover effect */
.section-choose .dropdown-menu li a:hover {
  background-color: #fafafa;
}
/* sections */
.section-about {
  margin-top: 100px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 28px;
  align-items: center;
}
.about h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: 0.2px;
  text-align: right;
}
.about p {
  color: var(--muted);
  margin: 0 0 16px;
  text-align: right;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  filter: grayscale(10%) contrast(95%);
}

.container-goals {
  text-align: right !important;
  margin-top: 20px;
}

.container-goals h2 {
  text-align: right !important;
  font-size: 25px;
}
/* map */
.section-map {
  margin-top: 100px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.2);
  padding-top: 70px;
  position: relative;
  z-index: 1;
  background-color: #f5f5f5;
}
.section-map h2,
p {
  text-align: right !important;
}
.map-frame {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* footer */
.site-footer {
  padding: 22px 0;
  text-align: center;
  color: var(--fg);
  border-top: 1px solid #f5f5f5;
  margin-top: 24px;
  list-style: none;
  text-decoration: none;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

/* responsive */
/* تحسين الهيرو والـ dropdown لتكون متجاوبة */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .section-choose {
    margin-left: 0;
    margin-top: 0;
  }
  .dropdown {
    margin-left: 0;
    width: 100%;
  }
  .dropdown-toggle {
    text-align: center;
    font-size: 16px;
    padding: 12px;
  }
  .dropdown-menu li a {
    justify-content: center;
    font-size: 14px;
  }
}

/* موبايل أصغر */
@media (max-width: 520px) {
  .hero-text h1 {
    font-size: 26px;
  }
  .hero-text p {
    font-size: 14px;
  }
  .dropdown-toggle {
    font-size: 14px;
    padding: 10px;
  }
  .dropdown-menu li a {
    font-size: 13px;
  }
  .section-choose {
    margin-top: 20px;
  }
}

/* box-shadow رقيق لفصل الهيرو عن باقي الصفحة */
.section-choose {
  margin-bottom: 50px;
}

/* الحفاظ على text-align في الهيرو */
.hero-text h1,
.hero-text p {
  color: var(--bg);
}
