/**
 * MoPDIC — Flag header (all pages) + glossy header/hero junction line
 */

@keyframes mopdicFlagGlossFlow {
  0% { background-position: 0% 50%; opacity: 0.85; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 200% 50%; opacity: 0.85; }
}

@keyframes mopdicGlossOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mopdicFlagShimmer {
  0%, 88% { left: -70%; opacity: 0; }
  94% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Wrapper: quick links overlay on flag header */
.site-header-flag-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ── Quick links row on flag (blue band) ── */
.quick-links-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: 42px;
  padding: 5px 2.8% 5px 3.2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(20, 93, 174, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.quick-links-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}

.quick-links-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.quick-links-left span {
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-links-left a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.quick-links-left a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.quick-links-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn.active,
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background: #fff;
  color: #3266b5;
  transform: translateY(-2px);
}

/* ── Flag header block ── */
.header-main {
  background: none !important;
  background-image: url('/assets/images/header.png') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  animation: none !important;
  min-height: 142px !important;
  height: auto;
  box-sizing: border-box;
  padding: 50px 0.6% 10px 10.5% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 10px;
  position: relative;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  overflow: visible !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.2) !important;
}

.header-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M30 30L0 0h60L30 30zm0 0l30 30H0l30-30z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* White shimmer sweep — full flag, edge to edge (NGO portal style) */
.header-main .header-flag-shimmer,
.site-header-flag-wrap .header-flag-shimmer {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}

.header-main .header-flag-shimmer::after,
.site-header-flag-wrap .header-flag-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 48%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 38%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 62%,
    transparent 100%
  );
  transform: skewX(-12deg);
  animation: mopdicFlagShimmer 9s ease-in-out infinite;
  will-change: left, opacity;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 46% 100%);
}

/* Glossy flag-color line — header bottom / hero top */
.header-main::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #427cd0 8%,
    #ffffff 22%,
    #feb91e 38%,
    #3bb23c 52%,
    #ffffff 66%,
    #427cd0 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: mopdicFlagGlossFlow 4.5s linear infinite;
  box-shadow:
    0 0 10px rgba(66, 124, 208, 0.75),
    0 0 22px rgba(59, 178, 60, 0.45),
    0 2px 14px rgba(254, 185, 30, 0.35);
  z-index: 25;
  pointer-events: none;
}

/* Orbiting glossy accent at header ↔ content junction — keep below logo */
.header-main .header-gloss-ring {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: min(520px, 88vw);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}

.header-main .header-gloss-ring::before {
  content: '';
  position: absolute;
  inset: -120px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(66, 124, 208, 0.95) 40deg,
    rgba(255, 255, 255, 0.95) 70deg,
    rgba(254, 185, 30, 0.9) 110deg,
    rgba(59, 178, 60, 0.95) 150deg,
    rgba(255, 255, 255, 0.85) 190deg,
    transparent 240deg
  );
  animation: mopdicGlossOrbit 6s linear infinite;
  filter: blur(0.5px);
}

 .logo-link {
  display: flex !important;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  max-width: 400px;
  min-width: 0;
  margin: 0 8px 2px 10px;
  z-index: 14;
  position: relative;
  text-decoration: none;
  isolation: isolate;
  align-self: flex-end;
}

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

.logo-link:hover .logo-circle {
  box-shadow: none !important;
}

.logo-link .header-text {
  min-width: 0;
  overflow: visible;
  max-width: 330px;
  margin-left: 12px;
  padding-top: 4px;
  padding-bottom: 0;
  margin-top: -4px;
  margin-bottom: 0;
}

.logo-link .header-ministry-title,
.logo-link .header-text h1 {
  transform: none;
  margin-bottom: 0 !important;
}

.logo-link .header-text p {
  margin-top: 1px !important;
  line-height: 1.15 !important;
}

.logo-circle {
  width: 70px !important;
  height: 70px !important;
  flex-shrink: 0;
  background: #ffffff !important;
  border-radius: 50%;
  border: 3px solid #ffffff;
  outline: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  position: relative;
  z-index: 16;
  isolation: isolate;
  margin-left: 10px;
  margin-bottom: 0;
  transform: translateY(5px);
}

.logo-circle::before,
.logo-circle::after {
  display: none !important;
}

.logo-circle img {
  width: 98%;
  height: 98%;
  object-fit: contain;
  border-radius: 50%;
  filter: none !important;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.header-text h1,
.header-text .header-line-1,
.header-text .header-line-2,
.header-ministry-title,
.header-ministry-title .header-line-1,
.header-ministry-title .header-line-2 {
  color: #ffffff !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

.header-text p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: none !important;
  font-size: clamp(0.64rem, 0.88vw, 0.82rem);
  font-weight: 700;
  margin-top: 1px;
  line-height: 1.15;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.header-text h1,
.header-ministry-title {
  font-size: clamp(0.74rem, 1.08vw, 0.98rem);
  line-height: 1.2;
  font-weight: 800;
}

.nav-bar {
  margin: 0 0 0 auto;
  align-self: flex-end;
  padding: 5px 6px;
  background: rgba(22, 111, 46, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  z-index: 12;
  position: relative;
}

.header-main .nav__links,
.site-header-flag-wrap .nav__links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
  width: 100%;
}

.nav__item {
  position: relative;
  flex-shrink: 0;
}

.header-main .nav__link,
.site-header-flag-wrap .nav__link {
  padding: 8px 10px !important;
  font-size: 15px !important;
  font-weight: 650;
  letter-spacing: 0.015em;
  border-radius: 11px;
  text-shadow: none !important;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.header-main .nav__link i:first-child,
.site-header-flag-wrap .nav__link i:first-child {
  font-size: 14px !important;
  margin-right: 1px;
}

.header-main .nav__link i.fa-chevron-down,
.site-header-flag-wrap .nav__link i.fa-chevron-down {
  font-size: 9px;
  margin-left: 3px;
  opacity: 0.8;
}

.header-main .nav__link--ngo,
.site-header-flag-wrap .nav__link--ngo {
  font-size: 14px !important;
  white-space: nowrap;
}

/* Contact — pushed toward right edge */
.header-main .nav__links > .nav__item:last-child > .nav__link,
.site-header-flag-wrap .nav__links > .nav__item:last-child > .nav__link {
  padding-right: 13px !important;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 650;
  border-radius: 11px;
  text-shadow: none !important;
  white-space: nowrap;
}

.nav__link:hover,
.nav__item.is-open > .nav__link {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.nav__link--active {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* Standard nav dropdowns */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(8px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 260px;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  overflow: hidden;
  list-style: none;
  margin: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3bb23c, #427cd0);
}

.nav__item:hover > .dropdown-menu,
.nav__item.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  margin: 2px 8px;
  border-radius: 10px;
}

.dropdown-menu a i {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #427cd0;
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #2d8f30;
  transform: translateX(4px);
}

.dropdown-menu a:hover i {
  background: linear-gradient(135deg, #3bb23c, #2d8f30);
  color: #fff;
}

/* ── Compact NGO registration dropdown ── */
.ngo-dropdown--compact {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 360px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22), 0 12px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  overflow: hidden;
}

.nav__item:hover > .ngo-dropdown--compact,
.nav__item.is-open > .ngo-dropdown--compact {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ngo-dropdown-compact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2855a0 0%, #3266b5 50%, #427cd0 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ngo-dropdown-compact-header i {
  font-size: 14px;
  opacity: 0.92;
}

.ngo-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.ngo-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ngo-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.ngo-dropdown-item--new i { color: #2d8f30; }
.ngo-dropdown-item--renew i { color: #3266b5; }

.ngo-dropdown-item--new:hover {
  color: #fff;
  background: linear-gradient(135deg, #3bb23c, #2d8f30);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(59, 178, 60, 0.35);
  transform: translateY(-2px);
}

.ngo-dropdown-item--renew:hover {
  color: #fff;
  background: linear-gradient(135deg, #427cd0, #3266b5);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(66, 124, 208, 0.35);
  transform: translateY(-2px);
}

.ngo-dropdown-item:hover i { color: #fff; }

/* Mobile NGO grid (shared partial) */
.mobile-ngo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 14px 16px;
}

.mobile-ngo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mobile-ngo-link i { font-size: 12px; width: 16px; text-align: center; }
.mobile-ngo-link--new i { color: #6ee07a; }
.mobile-ngo-link--renew i { color: #93c5fd; }

.mobile-ngo-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.mobile-ngo-section.open .mobile-ngo-content { max-height: 420px; }

/* ── Mobile hamburger menu (shared header) ── */
.mobile-menu-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 100001;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.88), rgba(19, 36, 66, 0.92));
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.35s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mobile-menu-overlay.active { opacity: 1; }

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #0a1628 0%, #132442 40%, #0a1628 100%);
  z-index: 99999;
  transform: translateX(110%);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 70px rgba(0, 0, 0, 0.6);
}

.mobile-menu-panel.active { transform: translateX(0); }

.mobile-menu-header {
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.mobile-menu-header-logo {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-menu-header-logo img { width: 90%; height: 90%; object-fit: contain; }

.mobile-menu-header-text h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.4;
}

.mobile-menu-header-text p {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.65rem;
  margin-top: 3px;
}

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-body { flex: 1; padding: 16px 14px; }

.mobile-nav-item { position: relative; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 13px;
}

.mobile-nav-link .nav-icon {
  width: 42px;
  height: 42px;
  background: rgba(66, 124, 208, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #427cd0;
  flex-shrink: 0;
}

.mobile-nav-link .nav-text { flex: 1; }

.mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 20px;
}

.mobile-nav-item.open > .mobile-sub-menu { max-height: 600px; opacity: 1; }

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 20px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 11px;
}

.mobile-ngo-section {
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mobile-ngo-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.mobile-menu-footer {
  padding: 16px 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-menu-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.mobile-menu-copyright {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.7;
}

body.menu-open { overflow: hidden; }

/* Hero top — same glossy line (home) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #427cd0 8%,
    #ffffff 22%,
    #feb91e 38%,
    #3bb23c 52%,
    #ffffff 66%,
    #427cd0 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: mopdicFlagGlossFlow 4.5s linear infinite;
  box-shadow:
    0 0 12px rgba(66, 124, 208, 0.8),
    0 0 24px rgba(59, 178, 60, 0.5);
  z-index: 20;
  pointer-events: none;
}

@media (max-width: 1400px) and (min-width: 993px) {
  .header-main { padding: 48px 0.4% 6px 9.5% !important; }
  .logo-link { max-width: 370px; margin-bottom: -5px; }
  .logo-link .header-text { max-width: 300px; }
  .logo-circle { width: 66px !important; height: 66px !important; }
  .header-text h1,
  .header-ministry-title { font-size: clamp(0.72rem, 1vw, 0.92rem) !important; }
  .header-text p { font-size: clamp(0.6rem, 0.82vw, 0.76rem) !important; }
  .nav__link { padding: 7px 8px !important; font-size: 14px !important; }
}

@media (max-width: 1100px) and (min-width: 993px) {
  .header-main { padding: 48px 0.3% 6px 9% !important; }
  .logo-link { max-width: 340px; margin-bottom: -5px; }
  .logo-link .header-text { max-width: 270px; }
  .logo-circle { width: 62px !important; height: 62px !important; }
  .header-text h1,
  .header-ministry-title { font-size: clamp(0.68rem, 0.95vw, 0.86rem) !important; }
  .header-text p { font-size: clamp(0.56rem, 0.78vw, 0.72rem) !important; }
  .nav__link { padding: 6px 6px !important; font-size: 13px !important; }
  .header-main .nav__link i:first-child,
  .site-header-flag-wrap .nav__link i:first-child { font-size: 13px !important; }
}

@media (max-width: 992px) {
  .header-main {
    min-height: 124px !important;
    padding: 40px 4% 10px 12% !important;
    align-items: center;
  }
  .nav-bar { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .header-main .header-flag-shimmer::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .quick-links-bar {
    min-height: 40px;
    padding: 5px 2.5% 5px 3%;
  }
  .quick-links-left span { display: none; }
  .quick-links-left a { padding: 5px 8px; font-size: 8.5px; }
  .quick-links-right { gap: 8px; }
  .lang-btn { padding: 5px 8px; }
  .social-icons a { width: 26px; height: 26px; font-size: 10px; }
  .header-main {
    min-height: 112px !important;
    padding: 38px 4% 8px 10% !important;
  }
  .logo-circle { width: 50px !important; height: 50px !important; }
  .header-text h1 { font-size: 0.68rem; }
  .header-text p { font-size: 0.48rem; }
}

/* ── Home header canonical lock (all pages via site-header partial) ── */
.site-header-flag-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-flag-wrap .header-main {
  min-height: 142px !important;
  padding: 50px 0.6% 10px 10.5% !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
}

.site-header-flag-wrap .quick-links-bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(20, 93, 174, 0.32) !important;
  background-image: none !important;
  min-height: 42px !important;
  padding: 5px 2.8% 5px 3.2% !important;
}

.site-header-flag-wrap .logo-link {
  align-items: flex-end !important;
  align-self: flex-end !important;
}

.site-header-flag-wrap .logo-circle {
  transform: translateY(5px) !important;
}

.site-header-flag-wrap .logo-link .header-text {
  margin-top: -4px !important;
  padding-top: 4px !important;
}
