/* ====================== Fonts ====================== */
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

/* ====================== Header ====================== */

.header-top {
  background-color: #32353a;
  position: relative;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #c18a32;
}

/* ====================== Logo ====================== */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 70px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,.8));
  transition: transform .3s ease, filter .3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0,0,0,.5);
}

.site-name {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #c18a32;
}

.site-slogan {
  font-size: 12px;
  color: #f9daa9;
}

/* ====================== Menu ====================== */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  color: #fff7e6;
  width: 40px;
  height: 40px;
  background-color: #c18a32;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  margin-left: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li {
  background-color: #ffffff10;
  border-radius: 8px;
  transition: .3s;
}

nav ul li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #fff7e6;
  font-weight: bold;
}

nav ul li:hover,
nav ul li.active {
  background-color: #c18a32;
  transform: translateY(-2px);
}

nav ul li:hover a,
nav ul li.active a {
  color: #fff7e6;
}

/* ====================== Search ====================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-bar input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.search-bar button {
  padding: 8px 12px;
  border: none;
  background-color: #c18a32;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.search-bar button:hover {
  background-color: #b17a25;
  transform: scale(1.05);
}

.search-bar button:active {
  transform: scale(.95);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.2);
}

#search-btn svg {
  width: 20px;
  height: 20px;
  color: #fff7e6;
}

/* ===== القوائم المنسدلة فقط ===== */

.dropdown-menu {
  display: none; /* مخفية افتراضياً */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  min-width: 180px;
  list-style: none;
  padding: 5px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #f57c00;
}

/* ظهور عند hover في الكمبيوتر */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ===== الهاتف ===== */
@media (max-width: 768px) {
  .dropdown-menu {
    position: relative;
    top: 0;
    right: 0;
    box-shadow: none;
  }

  .dropdown-menu.show {
    display: block;
  }
}

/* ====================== Responsive ====================== */
@media screen and (max-width: 768px) {

  .menu-toggle { display: flex; }

  .header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .logo-section {
    margin-bottom: 10px;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav ul li { width: 100%; }

  .search-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
  }

  .search-bar input {
    width: 90%;
    max-width: 320px;
  }
}

/* ====================== Footer ====================== */
footer {
  position: relative;
  background-color: #32353a;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: .5px;
  background-color: #c18a32;
}

.footer-content {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-icons {
  display: flex;
  gap: 10px;
}

.footer-icons img {
  width: 30px;
  height: 30px;
  transition: .3s;
}

.footer-icons img:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}

.footer-text,
footer span {
  color: #fff7e6;
  font-weight: bold;
  white-space: nowrap;
  direction: rtl; /* من اليمين إلى اليسار */
  unicode-bidi: embed; /* لضمان عرض النص العربي بشكل صحيح */
  font-family: 'Cairo', 'Amiri', 'Tajawal', sans-serif; /* خط عربي جميل */
}

.footer-text a {
  color: #c18a32;  /* لون الرابط - ممكن تغيّريه */
  font-weight: normal; /* خط عادي */
  text-decoration: none; /* بدون underline */
  transition: color 0.3s; /* تأثير سلس عند Hover */
}

.footer-text a:hover {
  color: #fff7e6; /* لون عند المرور بالماوس */
  text-decoration: underline; /* اختياري */
}

.footer-text .highlight {
  color: #c18a32; /* اللون اللي تحبي لكلمة SENATUS */
  font-weight: normal; /* خط عادي */
  font-weight: bold;  /* الآن سميكة */
}

footer {
  margin-top: -1px; /* يزيل الفراغ النهائي */
}
.desktop-only { display: inline; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
}
