/* ==================== TOP BAR ==================== */
.top-bar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.top-bar {
  background-color: #c5962d;
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 40px;
  text-align: center;
  width: 93%;
}


/* ==================== TOP BAR MOBILE ==================== */
@media (max-width: 768px) {
  .top-bar {
    font-size: 13px !important; /* smaller text */
    padding: 8px 0 !important; /* less height */
    width: 96% !important; /* slightly narrower */
    margin: 0 auto !important; /* center align */
    border-radius: 20px !important;
  }

  .top-bar-wrapper {
    margin-top: 10px; /* reduce gap at top */
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 12px !important;
    padding: 6px 0 !important;
    width: 95% !important;
  }
}


/* ==================== MAIN HEADER ==================== */
.header {
  background: #445A5F;
  border-radius: 40px;
  margin: 20px;
  padding: 20px 40px;
  color: #fff;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
  transition: all 0.3s ease;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== LOGO ==================== */
.logo img {
  height: 65px;
  width: auto;
}


/* ==================== NAV + LANGUAGE SWITCHER ==================== */
.nav-switcher {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Main navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

.nav a:hover {
  color: #c3922e;
}

/* Language switcher (no bullets, no underline) */
.language-switcher-language-interface {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.language-switcher-language-interface li {
  list-style-type: none !important;
}

.language-switcher-language-interface a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  transition: color 0.3s ease;
}

.language-switcher-language-interface a:hover {
  color: #c3922e !important;
}

/* ==================== MOBILE TOGGLE ==================== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

/* ==================== MOBILE MENU OVERLAY ==================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 10px;
  overflow-y: auto;
}

/* Overlay header (close button + logo) */
.overlay-header {
  width: 100%;
  display: flex;
  justify-content: space-between; /* X on left, logo on right */
  align-items: center;
  padding: 10px 20px;
}

.overlay-logo img {
  height: 45px;
}

/* Close (X) button */
.close-btn {
  background: none;
  border: none;
  color: #445A5F;
  font-size: 28px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

/* ==================== MENU CONTENT ==================== */
.overlay-nav {
  margin-top: 50px;
  width: 100%;
}

.overlay-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-nav ul li {
  margin: 1px 0;
}

.overlay-nav a {
  color: #445A5F;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 10px; /* better tap area */
  font-weight: 500;
  display: inline-block;
  transition: color 0.3s ease;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

.overlay-nav a:hover {
  color: #c3922e;
}

/* ==================== LANGUAGE SWITCHER IN OVERLAY ==================== */
.mobile-lang-holder {
  margin-top: 30px;
}

.mobile-lang-holder a {
  color: #000;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

.mobile-lang-holder a:hover {
  color: #c3922e;
}

/* ==================== PAGE TITLE ==================== */
.page-title {
  text-align: center;
  padding: 50px 0 20px;
}

.page-title h1 {
  font-size: 48px;
  color: #fff;
  font-weight: 700;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

@media (max-width: 767px) {
  .page-title h1 {
    font-size: 34px;
  }
}

/* ==================== RESPONSIVE ==================== */
/* MOBILE & TABLET */
@media (max-width: 1024px) {
  .nav-switcher {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .logo img {
    height: 55px;
  }

  .header {
    border-radius: 30px;
    padding: 15px 25px;
  }

  /* Keep logo + toggle on same line */
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==================== SMALL DEVICES ==================== */
@media (max-width: 480px) {
  .overlay-logo img {
    height: 35px;
  }

  .close-btn {
    font-size: 24px;
  }
}

/* ==================== DESKTOP SITE VIEW ON MOBILE ==================== */
@media (min-width: 1025px) and (max-device-width: 1024px) {
  .nav-switcher {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header {
    border-radius: 40px;
    padding: 20px 40px;
  }
}



/* ==================== INTERNAL PAGE LOGO MOBILE ==================== */
@media (max-width: 768px) {
  .logo img {
    max-height: 40px !important; /* smaller logo */
    margin-top: 10px !important; /* less spacing */
    margin-right: 10px !important; /* adjust right margin */
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 30px !important; /* even smaller on very small screens */
  }
}

/* ==================== DESKTOP FIX ==================== */
@media (min-width: 1025px) {
  /* Hide mobile menu and back button only on true large desktop screens */
  .back-btn {
    display: none;
  }

  .mobile-menu-overlay {
    display: none;
  }
}

/* ==================== STICKY HEADER: Final RTL/LTR Responsive ==================== */

#sticky-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  background: #445A5F !important; /* same dark as main header */
  color: #fff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 12000 !important;
  transform: translateY(-120%) !important; /* hidden above */
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.26s ease, opacity 0.22s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* visible */
#sticky-header.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ========== Layout ========== */
#sticky-header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 36px;
  box-sizing: border-box;
}

/* default (LTR): logo left, nav right */
#sticky-header .logo { order: 1; display:flex; align-items:center; margin-right:auto; }
#sticky-header .nav-switcher { order: 2; display:flex; align-items:center; gap: 30px; }
#sticky-header .mobile-toggle { order: 0; display:none; }

/* RTL: order — logo right, nav left, hamburger on the right side */
html[dir="rtl"] #sticky-header .header-top { flex-direction: row; }
html[dir="rtl"] #sticky-header .logo { margin-left:auto; margin-right:0; }
html[dir="rtl"] #sticky-header .nav-switcher { flex-direction: row; }

/* logo size */
#sticky-header .logo img {
  height: 54px;
  width: auto;
  display: block;
}

/* nav & switcher colors */
#sticky-header .nav a,
#sticky-header .language-switcher-language-url a,
#sticky-header .language-switcher-language-interface a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}
#sticky-header .nav a:hover,
#sticky-header .language-switcher-language-url a:hover,
#sticky-header .language-switcher-language-interface a:hover {
  color: #c3922e !important; /* golden hover */
}

/* ========== MOBILE ========== */
@media (max-width: 1024px) {
  #sticky-header .nav-switcher {
    display: none !important;
  }

  /* show hamburger */
  #sticky-header .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 6px;
  }

  /* flex spacing */
  #sticky-header .header-top {
    height: 58px;
    padding: 8px 18px;
  }

  #sticky-header .logo img {
    height: 42px;
  }
}

/* ========== MOBILE MENU OVERLAY ========== */
#mobileMenu,
#mobile-menu,
.mobile-menu-overlay,
.mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #f7f7f7 !important;
  z-index: 12100 !important;
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 20px 20px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: opacity .18s ease, transform .18s ease !important;
  pointer-events: none !important;
}

/* open state */
#mobileMenu.open,
#mobile-menu.open,
.mobile-menu-overlay.open,
.mobile-menu.open {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* overlay header layout */
#mobileMenu .overlay-header,
#mobile-menu .overlay-header,
.mobile-menu-overlay .overlay-header,
.mobile-menu .overlay-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

/* menu items */
#mobileMenu nav ul,
#mobile-menu nav ul,
.mobile-menu-overlay nav ul,
.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

#mobileMenu nav a,
#mobile-menu nav a,
.mobile-menu-overlay nav a,
.mobile-menu nav a {
  color: #445A5F;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-block;
}

/* Drupal admin toolbar offset */
body.toolbar-horizontal #sticky-header {
  top: 39px !important;
}

#sticky-header .mobile-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

#sticky-header .mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #fff; /* white bars */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When mobile menu is open (hamburger → X) */
.mobile-menu.open + #sticky-header .mobile-toggle span:nth-child(1),
#sticky-header.active .mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.open + #sticky-header .mobile-toggle span:nth-child(2),
#sticky-header.active .mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.open + #sticky-header .mobile-toggle span:nth-child(3),
#sticky-header.active .mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  /* LTR: logo left, hamburger right */
  html[dir="ltr"] #sticky-header .header-top {
    flex-direction: row-reverse;
  }
  html[dir="ltr"] #sticky-header .logo {
    margin-right: auto;
    margin-left: 0;
  }
  html[dir="ltr"] #sticky-header .mobile-toggle {
    margin-left: auto;
    margin-right: 0;
  }

  /* RTL: logo right, hamburger left */
  html[dir="rtl"] #sticky-header .header-top {
    flex-direction: row-reverse;
  }
  html[dir="rtl"] #sticky-header .logo {
    margin-left: auto;
    margin-right: 0;
  }
  html[dir="rtl"] #sticky-header .mobile-toggle {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (min-width: 1025px) {
  #sticky-header .mobile-toggle {
    display: none !important;
  }
}
/* ==================== SCROLL TO TOP BUTTON ==================== */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background-color: #c18b2c; /* gold color like your screenshot */
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}


/* ==================== INTERNAL PAGE FOOTER ==================== */
#internal-footer {
  background: url("../images/footer-background.png") no-repeat center;
  background-size: cover;
  color: #d5c8c8;
  padding: 40px 20px 20px;
  border-radius: 30px;
  margin: 30px;
  overflow: hidden;
  width: 95%;
  max-width: 100%;
  height: 430px; /* fixed height to prevent jumping */
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

#internal-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  direction: ltr;
}

#internal-footer .footer-contact {
  flex: 1;
  min-width: 250px;
  text-align: right;
  margin-left: -470px;
  margin-top: 40px;
}

#internal-footer .footer-links {
  flex: 1;
  min-width: 250px;
  text-align: right;
  margin-right: 60px;
}

#internal-footer .footer-logo {
  flex: 1;
  min-width: 250px;
  text-align: right;
  margin-right: -550px;
  margin-top: 80px;
}

#internal-footer .footer-logo img {
  max-width: 80px;
  margin-bottom: 10px;
}

#internal-footer .footer-contact h4,
#internal-footer .footer-links h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

#internal-footer .footer-contact p,
#internal-footer .footer-links li,
#internal-footer .footer-logo p {
  margin-bottom: -5px;
  margin-left: 20px;
  font-size: 14px;
  color: #d5c8c8;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

#internal-footer .footer-contact a,
#internal-footer .footer-links a {
  color: #d5c8c8;
  text-decoration: none;
  transition: color 0.3s;
}

#internal-footer .footer-contact a:hover,
#internal-footer .footer-links a:hover {
  color: #c89d28;
}

#internal-footer .footer-links ul {
  list-style: none;
  margin-top: 10px;
  margin-right: 220px;
  padding: 0;
  display: block; /* stack vertically */
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

#internal-footer .footer-links li {
  margin-bottom: 8px;
}

#internal-footer .footer-links li a {
  font-size: 14px;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}

#internal-footer .footer-links h4 {
  margin-top: 70px;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  margin-right: 220px;
  font-family: 'Cairo', sans-serif; /* matches Arabic style */
}


#internal-footer .footer-social {
  display: flex;
  flex-direction: row;
  justify-content: flex-end; /* aligns icons to the right */
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 10; /* makes sure they stay visible */
}

#internal-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  color: #d5c8c8;
  transition: background 0.3s, color 0.3s;
  text-decoration: none; /* keep links clickable */
}


#internal-footer .footer-social a:hover {
  background: #c89d28;
  color: #d5c8c8;
}

#internal-footer .footer-bottom {
  text-align: center;
  margin-bottom: 50px;
  font-size: 14px;
  color: #d5c8c8;
}


/* ==================== INTERNAL FOOTER MOBILE ==================== */
@media (max-width: 768px) {
  /* container */
  #internal-footer {
    margin: 0 auto;
    padding: 30px 16px 20px;
    width: calc(100% - 32px);
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;

    /* 🔹 Background image with fallback color */
    background: #2f3d3d url('/drupal-11/themes/awqaf/images/mobile-footer.png') no-repeat center center;
    background-size: cover;
  }

  /* reset heights */
  #internal-footer,
  #internal-footer .footer-container {
    height: auto !important;
    min-height: 0 !important;
  }

  /* stack vertically */
  #internal-footer .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 25px !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    text-align: center !important;
  }

  /* section titles */
  #internal-footer .footer-links h4,
  #internal-footer .footer-contact h4 {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 0 auto 10px auto !important;
    font-size: 15px;
  }

  /* sections */
  #internal-footer .footer-logo,
  #internal-footer .footer-links,
  #internal-footer .footer-contact,
  #internal-footer .footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto !important;
    padding: 0;
  }

  /* footer links */
  #internal-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  #internal-footer .footer-links li {
    font-size: 13px;
    margin: 6px 0;
  }

  /* logo */
  #internal-footer .footer-logo img {
    max-width: 100px;
  }

  /* contact text */
  #internal-footer .footer-contact p {
    font-size: 13px;
  }

  /* spacing between contact and bottom */
  #internal-footer .footer-bottom {
    margin-top: 20px !important;
  }

  /* order */
  #internal-footer .footer-logo { order: 1; }
  #internal-footer .footer-links { order: 2; }
  #internal-footer .footer-contact { order: 3; }
  #internal-footer .footer-bottom { order: 4; }
}

@media (max-width: 480px) {
  #internal-footer .footer-logo img {
    max-width: 70px;
  }
}

/* ==================== FINAL FIX FOR LANGUAGE SWITCHER BULLET ==================== */
.language-switcher-language-url,
.language-switcher-language-url ul,
.language-switcher-language-url li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force remove the Drupal-generated bullet */
.language-switcher-language-url li::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* Clean link style */
.language-switcher-language-url a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hover (gold) */
.language-switcher-language-url a:hover {
  color: #c3922e !important;
  text-decoration: none !important;
}

/* Optional: active language */
.language-switcher-language-url a.is-active {
  color: #c3922e !important;
}

/* ==================== LANGUAGE SWITCHER COLOR (DESKTOP & MOBILE) ==================== */

/* Default (desktop) — white with golden hover */
.language-switcher-language-url a {
  color: #fff !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 500;
}

.language-switcher-language-url a:hover {
  color: #c3922e !important;
}

/* Remove bullet */
.language-switcher-language-url li::before {
  content: none !important;
}

/* ==================== MOBILE ==================== */
@media (max-width: 1024px) {
  .language-switcher-language-url a {
    color: #000 !important; /* black text on mobile */
  }

  .language-switcher-language-url a:hover {
    color: #c3922e !important; /* golden hover */
  }
}


