:root {
  --waha-navy: #073f60;
  --waha-navy-2: #0b5278;
  --waha-gold: #f2ad00;
  --waha-ink: #153044;
  --waha-soft: #f4f7f9;
  --waha-white: #fff;
}

body.waha-global-layout {
  overflow-x: hidden;
  font-family: Cairo, Tahoma, Arial, sans-serif;
}

body.home .waha-service {
  cursor: pointer;
}

body.home .waha-service > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* One global header: the standard Divi header, styled exactly like the home page. */
body.waha-global-layout #main-header {
  min-height: 82px !important;
  background: var(--waha-white) !important;
  border-bottom: 3px solid var(--waha-gold);
  box-shadow: 0 8px 28px rgba(7, 63, 96, .12) !important;
}

body.waha-global-layout #main-header .logo_container a {
  display: flex;
  align-items: center;
  height: 100%;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  text-decoration: none;
}

body.waha-global-layout #main-header #logo {
  display: none !important;
}

body.waha-global-layout #main-header .logo_container a::before {
  content: "" !important;
  display: inline-block;
  width: 58px;
  min-width: 58px;
  height: 58px;
  margin-left: 8px;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: var(--waha-global-logo, url("waha-header-logo.png")), var(--waha-global-logo-fallback, url("waha-header-logo.png")) !important;
  background-position: center, center !important;
  background-size: contain, contain !important;
  background-repeat: no-repeat, no-repeat !important;
}

body.waha-global-layout #main-header .logo_container a::after {
  content: "الواحة الدولية" !important;
  display: inline-block !important;
  color: var(--waha-navy) !important;
  font-family: Cairo, Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 1 !important;
}

body.waha-global-layout #top-menu a {
  color: var(--waha-ink) !important;
  font-family: Cairo, Tahoma, Arial, sans-serif !important;
  font-weight: 600 !important;
  transition: color .2s ease;
}

body.waha-global-layout #top-menu li.current-menu-item > a,
body.waha-global-layout #top-menu li.current_page_item > a,
body.waha-global-layout #top-menu a:hover {
  color: var(--waha-gold) !important;
}

@media (min-width: 981px) {
  body.waha-global-layout #main-header .container {
    display: flex !important;
    align-items: center !important;
    width: min(1220px, 96%) !important;
    max-width: 1220px !important;
    min-height: 82px !important;
    padding: 0 !important;
  }

  body.waha-global-layout #main-header .logo_container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    order: 1;
    flex: 0 0 178px;
    width: auto !important;
    height: auto !important;
  }

  body.waha-global-layout #main-header .logo_container a::before {
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin-left: 7px;
  }

  body.waha-global-layout #et-top-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    order: 2;
    flex: 1;
    float: none !important;
    padding: 0 !important;
  }

  body.waha-global-layout #top-menu-nav {
    width: 100%;
    margin: 0 !important;
  }

  body.waha-global-layout #top-menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  body.waha-global-layout #top-menu li {
    margin: 0 !important;
    padding-right: 0 !important;
  }

  body.waha-global-layout #top-menu li a {
    padding-bottom: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }

  body.waha-global-layout #top-menu .menu-item-has-children > a:first-child {
    padding-right: 13px !important;
  }

  body.waha-global-layout #et_top_search {
    display: none !important;
  }
}

@media (max-width: 980px) {
  body.waha-global-layout #main-header {
    min-height: 84px !important;
  }

  body.waha-global-layout #main-header .container {
    position: relative !important;
    display: block !important;
    width: 94% !important;
    min-height: 84px !important;
    padding: 0 !important;
  }

  body.waha-global-layout #main-header .logo_container {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    float: none !important;
    width: auto !important;
    height: 84px !important;
  }

  body.waha-global-layout #main-header .logo_container a {
    height: 84px !important;
    opacity: 1 !important;
  }

  body.waha-global-layout #main-header .logo_container a::after {
    font-size: 18px;
  }

  body.waha-global-layout #et-top-navigation {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
    display: block !important;
    float: none !important;
    padding: 27px 0 0 !important;
  }

  body.waha-global-layout #et_mobile_nav_menu {
    float: none !important;
  }

  body.waha-global-layout #et_top_search {
    display: none !important;
  }
}

@media (max-width: 600px) {
  body.waha-global-layout #main-header .logo_container a::after {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  body.waha-global-layout.waha-mobile-menu-open #main-header {
    z-index: 1000001 !important;
  }

  body.waha-global-layout.waha-mobile-menu-open .et_mobile_menu,
  body.waha-global-layout.waha-mobile-menu-open #mobile_menu {
    z-index: 1000002 !important;
    pointer-events: auto !important;
  }
}

/* One global footer, emitted once by the shared layout plugin. */
body.waha-global-layout #main-footer {
  display: none !important;
}

.waha-wrap {
  width: min(1180px, 92%);
  margin: auto;
}

.waha-footer {
  position: relative;
  overflow: hidden;
  padding: 62px 0 0;
  border-top: 3px solid var(--waha-gold);
  background: radial-gradient(circle at 8% 0%, rgba(28, 127, 177, .22), transparent 34%), linear-gradient(115deg, #032d4d 0%, #063b62 48%, #022743 100%);
  color: #dceaf2;
  direction: rtl;
  font-family: Cairo, Tahoma, Arial, sans-serif;
}

.waha-footer-glow {
  position: absolute;
  top: -180px;
  right: 8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(242, 173, 0, .08);
  filter: blur(75px);
  pointer-events: none;
}

.waha-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr 1.25fr;
  gap: 0;
  padding-bottom: 46px;
}

.waha-footer-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 0 34px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  text-align: right;
}

.waha-footer-column:first-child { padding-right: 0; }
.waha-footer-column:last-child { padding-left: 0; border-left: 0; }

.waha-footer-column h2 {
  position: relative;
  margin: 0 0 13px;
  padding-bottom: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.waha-footer-column h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--waha-gold);
}

.waha-footer-column > a {
  position: relative;
  color: #dceaf2 !important;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.waha-footer-column > a:hover {
  color: var(--waha-gold) !important;
  transform: translateX(-3px);
}

.waha-footer-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.waha-footer-logo:hover { transform: none !important; }

.waha-footer-logo img {
  width: 70px;
  height: 70px;
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .22));
}

.waha-footer-logo span { display: flex; flex-direction: column; }
.waha-footer-logo strong { color: #fff; font-size: 23px; font-weight: 800; line-height: 1.35; }
.waha-footer-logo small { color: var(--waha-gold); font-size: 16px; font-weight: 800; }

.waha-footer-brand p {
  max-width: 320px;
  margin: 0 0 18px;
  color: #c2d7e2;
  font-size: 14px;
  line-height: 1.9;
}

.waha-social { display: flex; gap: 9px; flex-wrap: wrap; }

.waha-social a {
  display: inline-grid;
  width: 39px;
  height: 39px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: var(--waha-white) !important;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.waha-social a:hover {
  border-color: var(--waha-gold);
  background: var(--waha-gold);
  color: var(--waha-navy) !important;
  transform: translateY(-4px);
}

.waha-social svg {
  width: 19px;
  height: 19px;
  overflow: visible;
}

.waha-social svg path,
.waha-social svg rect {
  fill: currentColor;
}

.waha-social a[aria-label="Instagram"] rect,
.waha-social a[aria-label="Instagram"] circle:not(.waha-svg-fill) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.waha-social .waha-svg-fill { fill: currentColor; }
.waha-social .waha-svg-cut { fill: var(--waha-navy); }

.waha-footer-contact { gap: 14px; }

.waha-footer-contact > a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
}

.waha-footer-contact > a[dir="ltr"] { justify-content: end; text-align: left; }

.waha-contact-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--waha-gold);
  font-size: 16px;
}

.waha-footer-bottom {
  position: relative;
  z-index: 1;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 20, 38, .33);
  color: #b8ccd7;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .waha-footer { padding-top: 48px; }
  .waha-footer-grid { grid-template-columns: 1.2fr 1fr; row-gap: 38px; }
  .waha-footer-column,
  .waha-footer-column:first-child,
  .waha-footer-column:last-child { padding: 0 28px; border-left: 0; }
  .waha-footer-column:nth-child(odd) { border-left: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 600px) {
  .waha-footer { padding-top: 42px; }
  .waha-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 14px; width: 90%; padding-bottom: 36px; }
  .waha-footer-column,
  .waha-footer-column:first-child,
  .waha-footer-column:last-child,
  .waha-footer-column:nth-child(odd) { align-items: center; padding: 0 5px; border: 0; text-align: center; }
  .waha-footer-brand,
  .waha-footer-contact { grid-column: 1 / -1; }
  .waha-footer-brand { padding-bottom: 30px !important; border-bottom: 1px solid rgba(255, 255, 255, .15) !important; }
  .waha-footer-logo { flex-direction: column; gap: 6px; }
  .waha-footer-logo img { width: 78px; height: 78px; }
  .waha-footer-logo strong { font-size: 22px; }
  .waha-footer-logo small { font-size: 15px; }
  .waha-footer-brand p { max-width: 330px; }
  .waha-footer-column h2::after { right: 50%; transform: translateX(50%); }
  .waha-social { justify-content: center; }
  .waha-footer-contact { padding-top: 30px !important; border-top: 1px solid rgba(255, 255, 255, .15) !important; }
  .waha-footer-contact > a,
  .waha-footer-contact > a[dir="ltr"] { width: min(340px, 100%); justify-content: center; text-align: center; }
  .waha-footer-bottom { padding: 17px 16px; font-size: 12px; line-height: 1.8; }
}

/* Existing service-page content styling is preserved. */
body.waha-service-page {
  color: var(--waha-ink);
  background: var(--waha-soft);
}

body.waha-service-page #main-content {
  background: var(--waha-soft);
}

body.waha-service-page #main-content > .container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.waha-service-page #main-content > .container::before,
body.waha-service-page #sidebar,
body.waha-service-page .et_post_meta_wrapper,
body.waha-service-page h1.entry-title {
  display: none !important;
}

body.waha-service-page #left-area {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

body.waha-service-page article.page {
  margin: 0 !important;
  padding: 0 !important;
}

.waha-service-shell {
  box-sizing: border-box;
  width: min(1180px, 92%);
  min-height: 52vh;
  margin: 0 auto;
  padding: 72px 0 84px;
  direction: rtl;
}

.waha-service-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 42px;
  border-top: 5px solid var(--waha-gold);
  border-radius: 24px;
  background: linear-gradient(115deg, var(--waha-navy), var(--waha-navy-2));
  box-shadow: 0 22px 55px rgba(7, 63, 96, .2);
  text-align: center;
}

.waha-service-hero::after {
  content: "✈";
  position: absolute;
  left: -20px;
  bottom: -70px;
  color: rgba(255, 255, 255, .06);
  font-size: 210px;
  transform: rotate(-25deg);
}

.waha-service-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--waha-white);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.3;
}

.waha-service-content {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid #e5ecef;
  border-radius: 20px;
  background: var(--waha-white);
  box-shadow: 0 12px 34px rgba(7, 63, 96, .07);
}

.waha-service-content:empty {
  display: none;
}

.waha-service-content h2,
.waha-service-content h3 {
  color: var(--waha-navy);
  font-weight: 800;
}

.waha-service-content p,
.waha-service-content li {
  color: #526775;
  font-size: 17px;
  line-height: 1.9;
}

.waha-service-content .et_pb_button,
.waha-service-content .button,
.waha-service-content .wp-block-button__link {
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--waha-gold) !important;
  color: var(--waha-navy) !important;
  font-weight: 800 !important;
}

@media (max-width: 980px) {
  .waha-service-shell {
    padding: 48px 0 60px;
  }
}

@media (max-width: 600px) {
  .waha-service-shell {
    width: 92%;
    min-height: 46vh;
    padding: 34px 0 48px;
  }

  .waha-service-hero {
    padding: 42px 20px;
    border-radius: 18px;
  }

  .waha-service-hero h1 {
    font-size: 34px;
  }

  .waha-service-content {
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 16px;
  }
}
