/* 🎨 تنسيق عام للموقع مستوحى من شعار HS */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  background-color: #F8F8F8;
  color: #333333;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== الهيدر ===== */
header.main-header {
  background-color: #000000;
  color: #E2C675;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header .logo a {
  color: #E2C675;
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
}

/* ==== شريط التنقل ==== */
/* ===== شريط التنقل ===== */
.navbar {
  background-color: #f4f1ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid #C9A646;
}

/* زر القائمة للجوال */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
}

/* روابط */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: 0.3s;
}

.navbar a:hover {
  color: #C9A646;
}

/* للجوال */
/* ✅ للجوال */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar ul {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background-color: #f4f1ea;
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  .navbar ul.active {
    display: flex !important;
    animation: fadeDown 0.3s ease;
  }

  .navbar li {
    width: 100%;
    text-align: center;
  }
}

/* ✅ لسطح المكتب */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .navbar ul {
    display: flex !important;
    gap: 25px;
    align-items: center;
  }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* تأثير انزلاق ناعم للقائمة */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== المحتوى ===== */
.main-content {
  padding: 40px 0;
}

/* ===== الفوتر ===== */
footer.main-footer {
  background-color: #000000;
  color: #E2C675;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  border-top: 3px solid #C9A646;
}

/* ===== أزرار عامة ===== */
.btn {
  display: inline-block;
  background-color: #C9A646;
  color: #000000;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background-color: #E2C675;
  color: #000000;
}
/* ===== إصلاح حجم الشعار وتناسق القائمة ===== */

/* ✅ تصغير الشعار بشكل فعلي */
.logo img {
  max-height: 34px !important; /* 👈 الحجم المثالي للجوال والكمبيوتر */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ✅ إلغاء أي تأثير من inline style */
.logo a img[style] {
  height: auto !important;
}

/* ✅ توسيط الشعار مع النص */
.logo a {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ✅ تحسين عرض النص بجانب الشعار */
.logo span {
  color: #E2C675;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

/* ✅ إصلاح شكل القائمة في الجوال */
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  list-style-type: none;
}

/* ✅ إخفاء النقاط وتحسين التنسيق عند الفتح */
@media (max-width: 768px) {
  .navbar ul {
    background-color: #f4f1ea;
    border-top: 1px solid #ddd;
  }

  .navbar ul.active li a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
  }

  .navbar ul.active li a:hover {
    background-color: #E2C675;
    color: #000;
  }
}
/* 🟡 تصغير الشعار فعليًا في كل الأجهزة */
.logo img {
  max-height: 30px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* إلغاء أي ستايل مضمّن */
.logo a img[style] {
  height: auto !important;
  max-height: 30px !important;
}

/* تنسيق النص بجانب الشعار */
.logo span {
  font-size: 16px !important;
  line-height: 1 !important;
  color: #E2C675;
}

/* 🔹 تنسيق قائمة الجوال */
.navbar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar ul.active {
  display: flex !important;
  flex-direction: column !important;
  animation: fadeDown 0.3s ease;
}

.navbar ul.active li a {
  padding: 10px !important;
  border-bottom: 1px solid #eee;
  color: #000;
  background: #f4f1ea;
}

.navbar ul.active li a:hover {
  background-color: #E2C675;
  color: #000;
}
/* 🟡 تصغير وتوسيط الشعار بشكل نهائي */
.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo img {
  height: 36px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

.logo span {
  color: #E2C675;
  font-weight: 700;
  font-size: 18px;
}

/* 🟢 تنسيق القائمة للجوال */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: #000;
    cursor: pointer;
  }

  .navbar ul {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #f4f1ea;
    margin: 10px 0 0;
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  .navbar ul.active {
    display: flex !important;
    animation: slideDown 0.3s ease;
  }

  .navbar ul li {
    text-align: center;
  }

  .navbar ul li a {
    display: block;
    padding: 10px;
    color: #000;
  }

  .navbar ul li a:hover {
    background-color: #E2C675;
    color: #000;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-switch {
  font-weight: 600;
  font-size: 14px;
}

.lang-switch a {
  color: #000;
  text-decoration: none;
  margin: 0 3px;
}

.lang-switch a.active {
  color: #C9A646;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}

.lang-switch a {
  text-decoration: none;
  opacity: 0.6;
  transition: 0.2s;
}

.lang-switch a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-switch a.active {
  opacity: 1;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch img {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  opacity: 0.6;
  transition: 0.2s;
}

.lang-switch a.active img,
.lang-switch img:hover {
  opacity: 1;
  transform: scale(1.05);
}
/* دعم RTL / LTR */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* انعكاس العناصر المهمة */
html[dir="ltr"] .navbar,
html[dir="ltr"] .filters-card {
  direction: ltr;
}

html[dir="rtl"] .navbar,
html[dir="rtl"] .filters-card {
  direction: rtl;
}
