:root {
  --primary: #020946;
  --secondary: #097703;
  --white: #fff;
  --black: #000;
}

html, body {
  overflow-y: auto;
  height: auto;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  margin: 0;
  background: #f6f7fb;
  color: var(--black);
  overflow-x: hidden;
}

/* =========================
   🏙️ HERO (Desktop Default)
========================= */
.hero {
  position: relative;
  background: url('https://i.imgur.com/isnmL9c.png') center/cover no-repeat; /* ✅ صورة الكمبيوتر */
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero * {
  position: relative;
  z-index: 1;
}

/* 🔹 الشعار + الإدارة */
.hero-top {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.hero-logo {
  height: 80px;
  width: auto;
}

.hero-admin {
  color: var(--white);
  text-decoration: none;
  font-size: 30px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.hero-admin:hover {
  color: var(--secondary);
}

/* 🔸 نص البنر */
.hero-content {
  margin-top: 60px;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-content button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
}

/* 🔍 البحث */
.search-container {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 8px;
}

.search-container input {
  border: none;
  outline: none;
  padding: 8px 10px;
  width: 250px;
  font-size: 15px;
}

.search-container button {
  background: #001b5b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.search-container button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================
   📱 HERO (Mobile)
========================= */
@media (max-width: 768px) {
  .hero {
    background: url('https://i.imgur.com/F1pGvTg.png') center/cover no-repeat; /* ✅ صورة الجوال */
    height: 100vh;   /* fallback */
    height: 100svh;  /* أفضل للجوال الحديث */
  }

  .hero-top {
    width: 92%;
    margin-top: 16px;
  }

  .hero-logo {
    height: 56px;
  }

  .hero-admin {
    font-size: 22px;
  }

  .hero-content {
    margin-top: 28px;
    padding: 0 12px;
  }

  .hero-content h1 {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
  }

  .search-container {
    width: 92%;
    margin-top: 16px;
    padding: 8px;
    gap: 6px;
  }

  .search-container input {
    width: 100%;
    font-size: 14px;
  }

  .search-container button {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* =========================
   👤 Dropdown
========================= */
.user-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.user-btn:hover {
  color: #00ffaa;
}

.dropdown {
  position: absolute;
  top: 15px;
  left: 25px;
  right: auto;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  padding: 10px 0;
  min-width: 190px;
  text-align: right;
  z-index: 999;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.dropdown-menu a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 15px;
  transition: 0.2s;
}

.dropdown-menu a i {
  margin-left: 8px;
  color: #0055aa;
}

.dropdown-menu a:hover {
  background: #f3f3f3;
}

.dropdown.active .dropdown-menu {
  display: block;
}

/* =========================
   🧠 About + Footer (كما هي)
========================= */
.about {
  padding: 60px 20px;
  text-align: center;
  background: #002b7a;
}

.about h2 {
  color: #002b7a !important;
}

.about p {
  max-width: 800px;
  margin: auto;
  font-size: 17px;
  line-height: 1.8;
}

footer {
  background: #fff;
  text-align: center;
  padding: 30px 0 25px;
}

.footer-divider {
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, rgba(2,9,70,0.8), rgba(9,119,3,0.8), rgba(2,9,70,0.8));
  margin: 20px auto 25px;
  border-radius: 10px;
}

footer .social-icons a {
  color: #000;
  font-size: 22px;
  margin: 0 8px;
  transition: transform .3s ease, color .3s ease;
}

footer .social-icons a:hover {
  color: var(--secondary);
  transform: scale(1.2);
}

footer .dev-team {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}
