/**
 * Exact visual replication of the IIYL.org site header for /donations/.
 * Colors matched to Elementor kit + live screenshot.
 */

.iiyl-site-header {
  --iiyl-topbar: #0a5f5c;
  --iiyl-nav: #009368;
  --iiyl-donate: #eca30c;
  --iiyl-donate-hover: #d58c13;
  --iiyl-white: #ffffff;
  --iiyl-ink: #213430;
  width: 100%;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  position: relative;
  z-index: 1000;
  background: var(--iiyl-white);
}

.iiyl-site-header a {
  text-decoration: none;
}

.iiyl-site-header .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Top bar ---------- */
.iiyl-sh-topbar {
  background: var(--iiyl-topbar);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.iiyl-sh-topbar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.iiyl-sh-topbar__contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
}

.iiyl-sh-topbar__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 400;
  white-space: nowrap;
}

.iiyl-sh-topbar__contact-item i {
  font-size: 12px;
  opacity: 0.95;
}

.iiyl-sh-topbar__sep {
  opacity: 0.55;
  font-weight: 300;
}

.iiyl-sh-topbar__social {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.iiyl-sh-social {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border-radius: 2px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.iiyl-sh-social:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.iiyl-sh-social i {
  font-size: 13px;
  line-height: 1;
}

/* ---------- Branding / logo strip ---------- */
.iiyl-sh-brand {
  background: #fff;
  border-bottom: 1px solid #eceff0;
}

.iiyl-sh-brand__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iiyl-sh-brand__logo-link {
  display: block;
  width: 100%;
  max-width: 920px;
}

.iiyl-sh-brand__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  object-position: center;
}

/* ---------- Navigation ---------- */
.iiyl-sh-nav {
  background: var(--iiyl-nav);
  color: #fff;
}

.iiyl-sh-nav__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px 0 8px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iiyl-sh-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  padding: 10px 12px;
  cursor: pointer;
}

.iiyl-sh-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.iiyl-sh-nav__item {
  position: relative;
}

.iiyl-sh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.iiyl-sh-nav__link i {
  font-size: 10px;
  opacity: 0.9;
}

.iiyl-sh-nav__item:hover > .iiyl-sh-nav__link,
.iiyl-sh-nav__item.is-current > .iiyl-sh-nav__link,
.iiyl-sh-nav__link[aria-current="page"] {
  background: rgba(0, 0, 0, 0.12);
  color: #eca30c !important;
}

.iiyl-sh-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: 360px;
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 55, 46, 0.18);
  border-radius: 0 0 6px 6px;
  padding: 8px 0;
  z-index: 1200;
  list-style: none;
  margin: 0;
}

.iiyl-sh-nav__item--has-children:hover > .iiyl-sh-dropdown,
.iiyl-sh-nav__item--has-children:focus-within > .iiyl-sh-dropdown,
.iiyl-sh-nav__item--has-children.is-open > .iiyl-sh-dropdown {
  display: block;
}

.iiyl-sh-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #213430 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  border-left: 3px solid transparent;
}

.iiyl-sh-dropdown a:hover {
  background: #f3faf6;
  border-left-color: #009368;
  color: #009368 !important;
}

.iiyl-sh-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px 4px;
}

.iiyl-sh-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--iiyl-donate) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 999px;
  padding: 10px 18px;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease;
}

.iiyl-sh-donate:hover {
  background: var(--iiyl-donate-hover) !important;
  color: #fff !important;
}

.iiyl-sh-donate i {
  font-size: 13px;
}

.iiyl-sh-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 4px;
}

.iiyl-sh-lang img {
  display: block;
  width: 18px;
  height: auto;
  border-radius: 1px;
}

.iiyl-sh-lang i {
  font-size: 10px;
  color: #e53935;
}

/* ---------- Payment strip ---------- */
.iiyl-sh-payments {
  background: #fff;
  border-bottom: 1px solid #eef1f0;
}

.iiyl-sh-payments__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iiyl-sh-payments__img {
  display: block;
  width: auto;
  max-width: min(535px, 100%);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .iiyl-sh-nav__link {
    padding: 16px 9px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .iiyl-sh-nav__toggle {
    display: inline-flex;
  }

  .iiyl-sh-nav__inner {
    flex-wrap: wrap;
    min-height: 52px;
    padding: 6px 12px;
  }

  .iiyl-sh-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #00845d;
    border-radius: 8px;
    margin: 6px 0 8px;
    overflow: hidden;
  }

  .iiyl-sh-nav__list.is-open {
    display: flex;
  }

  .iiyl-sh-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .iiyl-sh-dropdown {
    position: static;
    display: none;
    max-width: none;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
    background: #047a57;
  }

  .iiyl-sh-nav__item--has-children.is-open > .iiyl-sh-dropdown {
    display: block;
  }

  .iiyl-sh-dropdown a {
    color: #fff !important;
    border-left-color: transparent;
  }

  .iiyl-sh-dropdown a:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #ffd54f !important;
  }

  .iiyl-sh-nav__actions {
    margin-left: auto;
  }

  .iiyl-sh-brand__inner {
    padding: 10px 16px;
  }

  .iiyl-sh-brand__logo {
    max-height: 84px;
  }
}

@media (max-width: 640px) {
  .iiyl-sh-topbar__inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .iiyl-sh-topbar__contact-item span {
    font-size: 12px;
  }

  .iiyl-sh-topbar__sep {
    display: none;
  }

  .iiyl-sh-lang span {
    display: none;
  }

  .iiyl-sh-donate {
    padding: 9px 14px;
  }

  .iiyl-sh-payments__inner {
    padding: 10px 12px;
  }
}
