:root {
  --bg: #f3f3f3;
  --navy: #0a1570;
  --accent: #58b64d;
  --accent-soft: #a9e270;
  --top-blue: #203f82;
  --top-yellow: #f0cc11;
  --top-red: #d22645;
  --red-separator: #eb2b58;
  --text: #15205a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-header {
  width: 100%;
  background: var(--bg);
  overflow: hidden;
}

.top-accent {
  display: flex;
  width: 100%;
  height: 8px;
}

.top-accent-blue {
  flex: 0 0 33%;
  background: var(--top-blue);
}

.top-accent-yellow {
  flex: 0 0 34%;
  background: var(--top-yellow);
}

.top-accent-red {
  flex: 1 1 auto;
  background: var(--top-red);
}

.header-shell {
  max-width: 1351px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 20px 168px 2px;
  height: 190px;
  padding-top: 0;
  padding-right: 32px;
  box-sizing: border-box;
}

.top-links {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  z-index: 1;
}

.top-links::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9999px;
  right: -9999px;
  background: #ffffff;
  z-index: -1;
}

.top-links a {
  position: relative;
  transition: opacity 0.2s ease;
}

.top-links a:hover {
  opacity: 0.7;
}

.top-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 2px;
  height: 9px;
  background: var(--navy);
  transform: translateY(-45%);
  opacity: 0.3;
}

.header-top {
  display: grid;
  grid-template-columns: 228px 1fr;
  grid-template-rows: 108px 56px;
  grid-template-areas:
    "portrait title"
    "portrait nav";
  align-items: end;
  gap: 4px 8px;
  min-height: 0;
  padding: 0 0 12px;
}

.portrait-link {
  grid-area: portrait;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  overflow: visible;
  margin-top: 18px;
  position: relative;
  z-index: 30;
}

.portrait-link img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: translateX(-10px);
}

.title-block {
  grid-area: title;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  padding-top: 4px;
  margin-top: 0;
  position: relative;
  z-index: 5;
}

.mobile-header-bar {
  display: block;
}

.site-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--navy);
  line-height: 0.78;
  isolation: isolate;
  transform: translateY(14px);
}

.site-title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 5px;
  width: 5px;
  height: 84px;
  background: linear-gradient(180deg, var(--top-yellow) 0%, #f6dd61 100%);
  border-radius: 999px;
  z-index: -2;
}

.title-line {
  display: block;
  font-family: "Barlow Condensed", "Manrope", Arial, sans-serif;
  text-transform: uppercase;
}

.title-small {
  margin-left: 3px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 0.92;
  text-shadow: none;
}

.title-honor {
  display: inline-block;
  margin-right: 7px;
  color: var(--navy);
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: 0.12em;
}

.title-lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -1px;
}

.title-large {
  position: relative;
  display: inline-block;
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 0.78;
  text-shadow: 3px 3px 0 rgba(10, 21, 112, 0.08);
}

.title-large::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 8px;
  bottom: 5px;
  height: 7px;
  background: linear-gradient(90deg, var(--top-blue) 0%, rgba(32, 63, 130, 0.1) 100%);
  border-radius: 999px;
  opacity: 0.3;
  z-index: -1;
}

.title-blog {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  padding: 0 3px 2px;
  color: #286f22;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: none;
  z-index: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-1px);
}

.title-blog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(240, 204, 17, 0.95) 0%, rgba(169, 226, 112, 0.75) 100%);
  border-radius: 999px;
  z-index: -1;
}

.mobile-menu-toggle {
  display: none;
}

.nav-row {
  grid-area: nav;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  min-height: 56px;
  width: 100%;
  padding-left: 20px;
  z-index: 20;
}

.nav-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9999px;
  right: -9999px;
  background: #ffffff;
  z-index: -1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  gap: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 0 16px;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;
}

.main-nav a:first-child {
  padding-left: 0;
}

.main-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 2px;
  height: 10px;
  background: var(--navy);
  transform: translateY(-45%);
  opacity: 0.3;
}

.header-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 108px;
  padding: 8px 24px;
  border-radius: 0;
  background: var(--top-yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(240, 204, 17, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-donate:hover,
.header-donate--active {
  background: #ffe052;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 204, 17, 0.34);
}

.header-donate i {
  font-size: 14px;
}

.header-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.search-link {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-link:hover {
  background: #f7f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 21, 112, 0.15);
}

.search-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-bottom {
  margin-top: 0;
  margin-right: -32px;
}

.accent-line {
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.social-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex: 0 0 auto;
  height: 56px;
  min-height: 56px;
  padding: 0 22px;
}

.social-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  opacity: 0.96;
  transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
}

.social-strip a:hover {
  opacity: 1;
  color: #203f82;
  transform: translateY(-1px) scale(1.06);
}

.social-strip > a i {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid rgba(10, 21, 112, 0.2);
}

.language-switcher a {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}

.language-switcher a:hover {
  background: transparent;
  border-color: transparent;
}

.language-switcher a.is-active-lang,
.hz-footer__lang a.is-active-lang {
  opacity: 1;
  transform: translateY(-1px);
}

.language-switcher a.is-active-lang .lang-flag,
.hz-footer__lang a.is-active-lang .lang-flag {
  box-shadow: 0 0 0 2px var(--top-yellow), 0 0 0 4px rgba(10, 21, 112, 0.16);
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .title-line,
html[dir="rtl"] .hz-section-title,
html[dir="rtl"] .pg-hero__title,
html[dir="rtl"] .bio-intro__name,
html[dir="rtl"] .tl-card h3,
html[dir="rtl"] .pillar-card h3,
html[dir="rtl"] .leader-card__body h3,
html[dir="rtl"] .hz-post-card__title {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .site-title,
html[dir="rtl"] .title-block,
html[dir="rtl"] .bio-intro__text,
html[dir="rtl"] .party-intro__text,
html[dir="rtl"] .pg-hero__content,
html[dir="rtl"] .hz-newsletter-banner__text,
html[dir="rtl"] .hz-footer__col {
  text-align: right;
}

html[dir="rtl"] .main-nav,
html[dir="rtl"] .top-links,
html[dir="rtl"] .social-strip,
html[dir="rtl"] .language-switcher,
html[dir="rtl"] .pg-breadcrumb,
html[dir="rtl"] .hz-footer__lang-btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav a:first-child {
  padding-left: 16px;
  padding-right: 0;
}

html[dir="rtl"] .main-nav a:not(:last-child)::after {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  padding-right: 16px;
  border-left: 0;
  border-right: 1px solid rgba(10, 21, 112, 0.2);
}

html[dir="rtl"] .site-title::before {
  left: auto;
  right: -16px;
}

.lang-flag {
  display: inline-block;
  width: 28px;
  height: 19px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(10, 21, 112, 0.16);
}

.flag-france {
  background: linear-gradient(90deg, #2145a6 0 33.33%, #ffffff 33.33% 66.66%, #d4283a 66.66% 100%);
}

.flag-chad {
  background: linear-gradient(90deg, #1f49a5 0 33.33%, #f1cf20 33.33% 66.66%, #d62d40 66.66% 100%);
}

.flag-uk {
  background:
    linear-gradient(90deg, transparent 43%, #ffffff 43% 57%, transparent 57%),
    linear-gradient(transparent 38%, #ffffff 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(33deg, transparent 43%, #ffffff 43% 48%, transparent 48% 52%, #ffffff 52% 57%, transparent 57%),
    linear-gradient(-33deg, transparent 43%, #ffffff 43% 48%, transparent 48% 52%, #ffffff 52% 57%, transparent 57%),
    linear-gradient(33deg, transparent 46%, #c8102e 46% 49%, transparent 49% 51%, #c8102e 51% 54%, transparent 54%),
    linear-gradient(-33deg, transparent 46%, #c8102e 46% 49%, transparent 49% 51%, #c8102e 51% 54%, transparent 54%),
    #012169;
}

@media (max-width: 1100px) {
  .header-shell {
    display: block;
    height: auto;
  }

  .top-links {
    padding: 0 0 10px 0;
  }

  .header-top {
    grid-template-columns: 150px 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "portrait title"
      "nav nav";
    height: auto;
    padding: 18px 18px 0;
  }

  .portrait-link {
    grid-area: portrait;
    height: 126px;
  }

  .title-block {
    grid-area: title;
    min-height: 126px;
  }

  .nav-row {
    margin-top: 12px;
  }

  .header-actions {
    align-items: flex-end;
    gap: 8px;
  }

  .search-link {
    position: static;
  }

  .header-bottom {
    margin-top: 16px;
  }

  .title-small {
    font-size: 27px;
  }

  .title-large {
    font-size: 66px;
  }

  .title-blog {
    font-size: 26px;
  }

  .social-strip {
    width: 100%;
    max-width: 424px;
  }
}

@media (max-width: 760px) {
  .top-accent {
    height: 5px;
  }

  .top-links {
    display: none;
  }

  .header-shell {
    display: block;
    height: auto;
    padding-right: 8px;
  }

  .header-top {
    display: block;
    padding: 0;
  }

  .portrait-link {
    display: none;
  }

  .title-block {
    padding: 8px 0 10px 8px;
  }

  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }

  .site-title {
    flex: 1 1 auto;
    width: 100%;
    max-width: 188px;
    line-height: 0.78;
    transform: translateY(0);
  }

  .site-title::before {
    left: -3px;
    top: 4px;
    width: 4px;
    height: 44px;
  }

  .title-small {
    margin-left: 6px;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .title-honor {
    margin-right: 4px;
    font-size: 0.7em;
  }

  .title-lockup {
    gap: 5px;
    margin-top: -2px;
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .title-large {
    font-size: 38px;
    line-height: 0.82;
  }

  .title-blog {
    margin-bottom: 5px;
    padding: 0 1px 1px;
    font-size: 17px;
    letter-spacing: 0.01em;
  }

  .title-block {
    min-height: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #2b2b2b;
    font: inherit;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-label {
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-menu-icon {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #ff2b7a;
  }

  .mobile-menu-icon span {
    position: absolute;
    width: 18px;
    height: 2.5px;
    background: #ffffff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu-icon span:first-child {
    transform: translateY(-5px);
  }

  .mobile-menu-icon span:last-child {
    transform: translateY(5px);
  }

  .hero-header.is-menu-open .mobile-menu-icon span:first-child {
    transform: rotate(45deg);
  }

  .hero-header.is-menu-open .mobile-menu-icon span:last-child {
    transform: rotate(-45deg);
  }

  .nav-row {
    display: none;
    margin-top: 0;
    gap: 0;
    background: #ffffff;
  }

  .hero-header.is-menu-open .nav-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    font-size: 18px;
    line-height: 1.2;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid #dedede;
  }

  .main-nav a:first-child {
    padding-left: 14px;
  }

  .main-nav a:not(:last-child)::after {
    display: none;
  }

  .header-donate {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 0;
    border-bottom: 1px solid #dedede;
    box-shadow: none;
    font-size: 17px;
    text-transform: none;
    letter-spacing: 0;
  }

  .header-actions {
    position: static;
    width: 100%;
    align-items: stretch;
    gap: 0;
  }

  .search-link {
    position: static;
    justify-content: flex-start;
    padding: 12px 14px 14px;
    color: var(--navy);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 4px solid rgba(10, 21, 112, 0.15);
  }

  .search-link svg {
    display: none;
  }

  .header-bottom {
    display: none;
  }

  .social-strip {
    display: none;
  }

  .language-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}
