html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

/* ==========================================================================
   EMBASSY OF THE REPUBLIC OF KAZAKHSTAN - SOVEREIGN DIPLOMATIC PORTAL
   Pixel-Faithful Replication of the U.S. Embassy & Consulate Platform (kz.usembassy.gov)
   ========================================================================== */

@charset "UTF-8";

:root {
  --navy-deep: #0a2240;
  --navy-darker: #06182e;
  --navy-text: #002868;
  --gold-accent: #c2850c;
  --gold-yellow: #ffd100;
  --body-text: #212529;
  --link-blue: #0071bc;
  --link-hover: #c2850c;
  --gray-bg: #f1f1f1;
  --gray-border: #dcdcdc;
  --footer-bg: #0a314d;
  --social-bar-bg: #002d74;
  --font-serif: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-condensed: "Roboto Condensed", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--body-text);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. USWDS GOVERNMENT DISCLAIMER BANNER (.usa-banner)
   ========================================================================== */
.ga-disclaimer.usa-banner {
  background-color: #f0f0f0;
  border-bottom: 1px solid #e1e4e8;
  font-size: 12px;
  color: #1b1b1b;
  padding: 4px 0;
}
.usa-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.usa-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usa-banner-flag {
  width: 24px;
  height: 12px;
  object-fit: fill;
  border: 1px solid rgba(0,0,0,0.2);
  display: block;
}
.usa-banner-text {
  font-size: 12px;
  color: #1b1b1b;
}
.usa-banner-button {
  background: none;
  border: none;
  color: #0071bc;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.usa-banner-button:hover {
  color: var(--gold-accent);
}
.usa-banner-content {
  background: #f0f0f0;
  border-top: 1px solid #e6e6e6;
  padding: 16px 0;
  display: none;
}
.usa-banner-content.open {
  display: block;
}
.usa-banner-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.usa-banner-guidance {
  flex: 1;
  min-width: 280px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.guidance-circle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle-gov {
  background: #d9e8f6;
  color: #0071bc;
  font-size: 18px;
}
.icon-circle-ssl {
  background: #d8eedc;
  color: #2e8540;
  font-size: 18px;
}
.guidance-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1b1b1b;
  margin: 0 0 2px;
  font-family: var(--font-sans);
}
.guidance-text p {
  font-size: 12px;
  color: #454545;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   2. TRAVEL ADVISORY STRIP (#travel-advisory)
   ========================================================================== */
#travel-advisory {
  background: #eef2f6;
  border-bottom: 1px solid #dce2e8;
  font-size: 13px;
  padding: 8px 15px;
}
#travel-advisory .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plane-circle-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #002868;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transform: rotate(-45deg);
  flex-shrink: 0;
}
.advisory-lead {
  font-weight: 700;
  color: #002868;
}
.advisory-body-text {
  color: #212529;
}
.advisory-link {
  color: #0071bc;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}
.advisory-link:hover {
  color: var(--gold-accent);
}

@media (max-width: 768px) {
  #travel-advisory {
    padding: 6px 0;
    font-size: 11.5px;
    line-height: 1.35;
  }
  #travel-advisory .container {
    padding: 0 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .plane-circle-badge {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
}

/* ==========================================================================
   3. PURE WHITE MASTHEAD HEADER (header#masthead)
   Exact match to kz.usembassy.gov screenshot
   ========================================================================== */
header#masthead {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  padding: 16px 0;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}
header#masthead.stuck {
  padding: 12px 0;
  border-bottom: 1px solid #dcdcdc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.header-brand-wrap:hover {
  text-decoration: none;
}
.brand-graphics {
  display: flex;
  align-items: center;
  gap: 12px;
}
.flag-img {
  width: 64px;
  height: 32px;
  object-fit: fill;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: block;
}
.seal-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-title-serif {
  font-family: var(--font-brand-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}
.brand-subtitle-serif {
  font-family: var(--font-brand-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}

/* --- Right Side Navigation Tools (Country/Area, Search, Menu, Language) --- */
.header-tools-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tool-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}
.tool-link-item:hover {
  color: var(--gold-accent);
  text-decoration: none;
}
.tool-link-item i {
  font-size: 14px;
}
.tool-link-item .fa-bars {
  font-size: 16px;
}

/* Floating Language Popover */
.lang-dropdown-wrapper {
  position: relative;
}
.lang-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 6px 0;
  min-width: 130px;
  display: none;
  z-index: 1050;
}
.lang-popover.show {
  display: block;
}
.lang-popover-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0a2240;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, color 0.15s;
}
.lang-popover-item:hover {
  background: #f4f6f8;
  color: var(--gold-accent);
}
.lang-popover-item.active {
  background: #eaf1f8;
  color: #005ea2;
  font-weight: 700;
}
.lang-popover-item.active::after {
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  color: #005ea2;
}

@media (max-width: 768px) {
  header#masthead {
    padding: 8px 0;
  }
  .masthead-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand-graphics tools"
      "brand-text brand-text";
    align-items: center;
    row-gap: 6px;
    padding: 0 12px;
  }
  .header-brand-wrap {
    display: contents;
  }
  .brand-graphics {
    grid-area: brand-graphics;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .flag-img {
    width: 44px;
    height: 22px;
  }
  .seal-img {
    width: 38px;
    height: 38px;
  }
  .header-tools-row {
    grid-area: tools;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .tool-link-item span {
    display: none !important;
  }
  .tool-link-item {
    font-size: 16px;
    padding: 4px;
    color: var(--navy-text);
  }
  .tool-link-item .fa-caret-down {
    font-size: 13px;
  }
  .tool-link-item .fa-search {
    font-size: 15px;
  }
  .tool-link-item .fa-bars {
    font-size: 17px;
  }
  .tool-link-item .fa-language {
    font-size: 17px;
  }
  .brand-text-block {
    grid-area: brand-text;
    padding-top: 2px;
  }
  .brand-title-serif {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  .brand-subtitle-serif {
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }

  /* Critical: Sticky state on mobile - collapses to compact 48px header like US Embassy */
  header#masthead.stuck {
    padding: 6px 0;
  }
  header#masthead.stuck .masthead-inner {
    row-gap: 0;
  }
  header#masthead.stuck .brand-text-block {
    display: none !important;
  }
}

/* ==========================================================================
   4. YELLOW WORLDWIDE / CONSULAR CAUTION BAR (#importantcallout)
   ========================================================================== */
#importantcallout {
  background-color: var(--gold-yellow);
  color: #000000;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#importantcallout .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#importantcallout a {
  color: #000000;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  line-height: 1.35;
}
#importantcallout a:hover {
  color: #222222;
}
#importantcallout i {
  font-size: 14px;
  color: #000000;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #importantcallout {
    padding: 8px 12px;
  }
  #importantcallout a {
    font-size: 12.5px;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
  }
  #importantcallout i {
    display: none;
  }
}

/* ==========================================================================
   5. DEEP NAVY ARTICLE / HERO BANNER (Exact match to C5+1 banner)
   ========================================================================== */
.hero-diplomatic-banner {
  background-color: var(--navy-deep);
  color: #ffffff;
  padding: 60px 0 65px;
}
.hero-diplomatic-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.hero-title-border-wrap {
  border-left: 6px solid var(--gold-accent);
  padding-left: 24px;
  max-width: 820px;
}
.hero-display-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .hero-diplomatic-banner {
    padding: 28px 0 32px;
  }
  .hero-diplomatic-inner {
    padding: 0 12px;
  }
  .hero-title-border-wrap {
    border-left: 5px solid var(--gold-accent);
    padding-left: 14px;
  }
  .hero-display-title {
    font-size: 22px;
    line-height: 1.22;
  }
}

/* ==========================================================================
   6. ARTICLE META BAR (Below Navy Banner)
   ========================================================================== */
.article-meta-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  padding: 22px 0 18px;
}
.article-meta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.meta-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meta-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #565c65;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meta-byline strong {
  color: #1b1b1b;
  font-weight: 700;
}
.meta-dateline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #565c65;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.meta-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.meta-readtime {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #565c65;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.social-share-strip {
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-share-strip a {
  color: var(--gold-accent);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.15s;
}
.social-share-strip a:hover {
  color: var(--navy-deep);
}

@media (max-width: 768px) {
  .article-meta-inner {
    flex-direction: column;
    gap: 14px;
    padding: 0 12px;
  }
  .meta-right-col {
    align-items: flex-start;
  }
  .social-share-strip {
    gap: 16px;
  }
}

/* ==========================================================================
   7. FLOATING RIGHT TAB ("Help us improve" / Feedback)
   ========================================================================== */
.floating-feedback-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #333333;
  border: 1px solid #c5c5c5;
  border-right: none;
  padding: 14px 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 1000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.floating-feedback-tab:hover {
  background: #f8f9fa;
  color: #000000;
  text-decoration: none;
}
.floating-feedback-tab i {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .floating-feedback-tab {
    top: auto;
    bottom: 75px;
    transform: none;
    padding: 8px 3px;
    font-size: 10px;
    z-index: 900;
    opacity: 0.75;
  }
}

/* ==========================================================================
   7.5. BLOGROLL / DIPLOMATIC NEWS SECTION (.blogrollcontainer)
   Exact match to kz.usembassy.gov
   ========================================================================== */
.blogrollcontainer {
  background-color: var(--navy-deep);
  padding: 40px 0 65px;
}

/* Featured Hero Visual Story Card (Matching kz.usembassy.gov Homepage) */
.featured-hero-wrap {
  max-width: 780px;
  margin: 0 auto 35px;
  position: relative;
}
.featured-hero-card {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #06182e;
}
.featured-hero-img-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}
.featured-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.featured-hero-card:hover .featured-hero-img {
  transform: scale(1.025);
}
.featured-hero-title-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #06182e;
  padding: 14px 24px;
  max-width: 88%;
  box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.35);
}
.featured-hero-title {
  font-family: var(--font-brand-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}
.featured-hero-card:hover .featured-hero-title,
.featured-hero-title-badge:hover .featured-hero-title,
.featured-hero-title:hover {
  color: #ffd100 !important;
}

@media (max-width: 768px) {
  .featured-hero-wrap {
    margin-bottom: 25px;
  }
  .featured-hero-title {
    font-size: 17px;
  }
  .featured-hero-title-badge {
    padding: 10px 16px;
    max-width: 95%;
  }
}
.blogroll-grid-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 25px;
  align-items: start;
}
@media (max-width: 992px) {
  .blogroll-grid-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.middle-post {
  display: flex;
  flex-direction: column;
}
.two-mid {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.embed-responsive-16by9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #06182e;
}
.embed-responsive-16by9 img.thumbphoto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.two-mid:hover img.thumbphoto {
  transform: scale(1.03);
}
.gold-line-border {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--gold-accent);
  z-index: 2;
}
.middle-post-white-box {
  background: #ffffff;
  padding: 20px 20px 24px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.middle-post-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.middle-post-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #002868;
  line-height: 1.35;
  text-decoration: underline;
  display: inline-block;
  cursor: pointer;
  transition: color 0.15s;
}
.middle-post-title:hover {
  color: var(--gold-accent);
}

/* Right Column (Three Vert Stack) */
.sm-bg-color {
  background: rgba(6, 25, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 20px 14px;
}
.three-vert {
  display: flex;
  flex-direction: column;
}
.middle-post-right {
  display: grid;
  grid-template-columns: 1fr 85px;
  gap: 15px;
  align-items: start;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(194, 133, 12, 0.3);
}
.middle-post-right:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.middle-post-right .left-info {
  display: flex;
  flex-direction: column;
}
.right-post-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.middle-post-right .middle-post-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.middle-post-right:hover .middle-post-title,
.middle-post-right a:hover .middle-post-title,
.middle-post-right .middle-post-title:hover {
  color: #ffd100 !important;
}
.right-photo {
  width: 85px;
  height: 85px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.embed-responsive-1by1 {
  width: 100%;
  height: 100%;
  display: block;
}
.embed-responsive-1by1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.middle-post-right:hover .embed-responsive-1by1 img {
  transform: scale(1.06);
}

/* SHOW MORE Button */
.btn-show-more-news {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 16px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.btn-show-more-news:hover {
  color: #ffd100 !important;
}

/* News Modal Dialog */
.news-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  padding: 15px;
}
.news-modal-backdrop.open {
  display: flex;
}
.news-modal-dialog {
  background: #ffffff;
  max-width: 750px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  padding: 32px;
}
.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--gold-accent);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.news-modal-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-modal-title {
  font-family: var(--font-brand-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 6px 0 0;
  line-height: 1.3;
}
.news-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888888;
}
.news-modal-close:hover {
  color: #000000;
}
.news-modal-meta {
  font-size: 13px;
  color: #666666;
  margin-bottom: 18px;
  display: flex;
  gap: 15px;
}
.news-modal-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 1px solid #e6e6e6;
}
.news-modal-body p {
  font-size: 15px;
  line-height: 1.65;
  color: #212529;
  margin-bottom: 14px;
}

/* ==========================================================================
   8. THE SIGNATURE "I NEED..." MATRIX (.i-want-to-section)
   Exact match to kz.usembassy.gov with scenic mountain background
   ========================================================================== */
.i-want-to-section {
  position: relative;
  background: linear-gradient(rgba(10, 34, 64, 0.4), rgba(10, 34, 64, 0.4)), url('assets/mountain-background.jpg') center center / cover no-repeat fixed;
  padding: 70px 15px;
}
.want-container {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 60px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.18);
}
.want-heading-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.want-heading-wrap h2 {
  font-family: var(--font-brand-serif);
  font-size: 34px;
  font-weight: 700;
  color: #0a2240;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.want-divider {
  width: 65px;
  height: 4px;
  background-color: var(--gold-accent);
  margin: 0 auto;
}
.want-grid-3x4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
@media (max-width: 900px) {
  .want-grid-3x4 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .want-container {
    padding: 30px 20px;
  }
}
@media (max-width: 768px) {
  .i-want-to-section {
    padding: 35px 12px;
    background-attachment: scroll;
  }
  .want-container {
    padding: 24px 16px;
  }
  .want-heading-wrap {
    margin-bottom: 24px;
  }
  .want-heading-wrap h2 {
    font-size: 24px;
  }
  .want-divider {
    width: 40px;
    height: 3px;
  }
  .want-grid-3x4 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .wantbox {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
  }
  .wantbox:last-child {
    border-bottom: none;
  }
  .alink-want {
    font-size: 15px;
    line-height: 1.4;
  }
}
.wantbox {
  margin: 0;
  text-align: center;
}
.alink-want {
  color: #005ea2;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.alink-want:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

/* ==========================================================================
   9. SOVEREIGN REGISTRY DATABASE QUERY (Real-time kz_bff Engine)
   ========================================================================== */
.section-sovereign-query {
  background: #ffffff;
  padding: 60px 15px;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}
.sovereign-query-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.block-title-center {
  text-align: center;
  margin-bottom: 12px;
}
.block-title-center h2 {
  font-family: var(--font-brand-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}
.block-subtitle-center {
  text-align: center;
  font-size: 14px;
  color: #555555;
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.form-instruction {
  background: #f1f6fa;
  border-left: 4px solid #005ea2;
  padding: 10px 14px;
  font-size: 13px;
  color: #212529;
  margin-bottom: 24px;
}
.form-row-gov {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .form-row-gov {
    grid-template-columns: 1fr;
  }
}
.form-col-gov {
  display: flex;
  flex-direction: column;
}
.form-label-gov {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.form-input-gov {
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #888888;
  border-radius: 0;
  background: #ffffff;
  font-family: inherit;
}
.form-input-gov:focus {
  outline: 3px solid #2491ff;
  border-color: #2491ff;
}
.form-tools-gov {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}
.demo-tag-btn {
  background: #eef2f6;
  border: 1px solid #ccd2d9;
  color: #005ea2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  margin-right: 6px;
}
.demo-tag-btn:hover {
  background: #005ea2;
  color: #ffffff;
}
.btn-gov-primary {
  background: #005ea2;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-gov-primary:hover {
  background: #002868;
}

/* Verification Result Box */
.verify-result-card {
  margin-top: 30px;
  border: 1px solid #c2850c;
  background: #fffdf7;
  padding: 24px;
}
.verify-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #c2850c;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.verify-status-badge {
  background: #2e8540;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
}
.verify-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.verify-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
}
.verify-table td:first-child {
  font-weight: 700;
  color: #555555;
  width: 35%;
}

/* ==========================================================================
   10. CONSULAR TARIFF & ANTI-FRAUD NOTICE
   ========================================================================== */
.callout-advisory-box {
  background: #fdfaf2;
  border: 1px solid #e6b85c;
  border-left: 6px solid #c2850c;
  padding: 30px;
  margin-top: 40px;
}
.callout-title {
  color: #8a5800;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-gov-tariffs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}
.table-gov-tariffs th {
  background: #0a2240;
  color: #ffffff;
  padding: 10px;
  text-align: left;
  font-weight: 600;
}
.table-gov-tariffs td {
  padding: 10px;
  border-bottom: 1px solid #e1e4e8;
  color: #212529;
}
.table-gov-tariffs tr:nth-child(even) {
  background: #ffffff;
}

@media (max-width: 768px) {
  .callout-advisory-box {
    padding: 18px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-gov-tariffs {
    min-width: 480px;
  }
}

/* ==========================================================================
   11. MISSION LEADERSHIP CAROUSEL (.leaderships)
   Exact Match to kz.usembassy.gov: Pure Black Background #000000
   ========================================================================== */
.black-section-background-color.leaderships {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0 80px;
}
.leadership-carousel.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.nav-tabs-gov {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #333333;
  margin-bottom: 40px;
}
.nav-tab-btn {
  background: none;
  border: none;
  color: #888888;
  font-family: var(--font-brand-serif);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.nav-tab-btn.active {
  color: #ffffff;
}
.nav-tab-btn:hover {
  color: #ffd100 !important;
}
.nav-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--gold-accent);
}

/* Featured Leader Presentation (Active Julie Stufft style) */
.featured-leader-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 420px;
}
@media (max-width: 900px) {
  .featured-leader-display {
    grid-template-columns: 1fr;
  }
}
.featured-leader-info {
  display: flex;
  flex-direction: column;
}
.featured-leader-name {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.15;
  transition: color 0.2s ease;
  cursor: default;
}
.featured-leader-name:hover {
  color: #ffd100 !important;
}
.featured-leader-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  transition: color 0.2s ease;
}
.featured-leader-title:hover {
  color: #ffd100 !important;
}
.featured-leader-bio {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 24px;
}
.featured-leader-btn {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.featured-leader-btn:hover {
  color: #ffd100 !important;
  transform: translateX(4px);
}
.featured-leader-photo-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 420px;
  overflow: visible;
}
.featured-leader-photo-wrap::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  background-image: url('assets/kazakh_emblem_dark.svg?v=20261026_5');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}
.featured-leader-photo {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: 0 6px 30px rgba(0,0,0,0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Carousel Headshot Row */
.leader-carousel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 55px;
  padding: 10px 0;
}
.carousel-nav-arrow {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  padding: 10px 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.carousel-nav-arrow:hover {
  color: #ffd100 !important;
  transform: scale(1.15);
}
.carousel-thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  opacity: 0.55;
  transition: all 0.25s ease;
  width: 200px;
  user-select: none;
}
.carousel-thumb-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.carousel-thumb-item.active {
  opacity: 1;
}
.thumb-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.carousel-thumb-item.active .thumb-circle {
  width: 140px;
  height: 140px;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}
.carousel-thumb-item:hover .thumb-circle {
  border-color: #ffd100 !important;
}
.thumb-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.carousel-thumb-item:hover .thumb-name {
  color: #ffd100 !important;
}
.thumb-role {
  font-size: 12px;
  color: #b0b0b0;
  transition: color 0.2s ease;
  line-height: 1.35;
}
.carousel-thumb-item:hover .thumb-role {
  color: #ffd100 !important;
}

@media (max-width: 768px) {
  .black-section-background-color.leaderships {
    padding: 35px 0 50px;
  }
  .nav-tabs-gov {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: none;
  }
  .nav-tab-btn {
    font-size: 15px;
    text-align: left;
    padding: 4px 0;
  }
  .nav-tab-btn.active::after {
    bottom: -2px;
    height: 2px;
  }
  .featured-leader-display {
    min-height: auto;
    gap: 15px;
  }
  .featured-leader-photo-wrap {
    display: none;
  }
  .featured-leader-info {
    text-align: center;
    align-items: center;
  }
  .featured-leader-name {
    font-size: 24px;
    color: var(--gold-accent);
    margin-bottom: 4px;
  }
  .featured-leader-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .featured-leader-bio {
    font-size: 13.5px;
    max-width: 340px;
    margin: 0 auto 16px auto;
    line-height: 1.5;
  }
  .leader-carousel-row {
    margin-top: 20px;
    gap: 14px;
  }
  .carousel-nav-arrow {
    font-size: 20px;
    padding: 4px;
  }
  .thumb-circle {
    width: 60px;
    height: 60px;
  }
  .carousel-thumb-item.active .thumb-circle {
    width: 95px;
    height: 95px;
    border: 3px solid #ffffff;
  }
  .thumb-name {
    font-size: 12px;
  }
  .thumb-role {
    font-size: 10px;
  }
}

/* ==========================================================================
   12. LOCATIONS SECTION (.locationsection)
   ========================================================================== */
.locationsection {
  background-color: #06182e;
  color: #ffffff;
  padding: 60px 0 70px;
}
.location-btn-bar {
  text-align: center;
  margin-bottom: 40px;
}
.btn-location-gold {
  background-color: var(--gold-accent);
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
}
.location-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .location-row {
    grid-template-columns: 1fr;
  }
}
.embassy-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #0a2240;
}
.embassy-menu-item {
  padding: 16px 20px;
  border-bottom: 1px solid #143560;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
  color: #cccccc;
}
.embassy-menu-item.active {
  background: #ffffff;
  color: #002868;
}
.location-details-box {
  background: #ffffff;
  color: #212529;
  padding: 30px;
}
.location-details-box h2 {
  font-size: 22px;
  color: #002868;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.location-details-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0a2240;
  margin: 16px 0 4px;
}
.location-details-box address,
.location-details-box p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* ==========================================================================
   13. DIPLOMATIC FOOTER (.footercontainer & .footersocial)
   ========================================================================== */
.footercontainer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 50px 0 40px;
}
.footer-inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-top-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-seal {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer-title h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}
.footer-title p {
  font-size: 12px;
  color: #a0b2c6;
  margin: 2px 0 0;
}
.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .footer-nav-columns {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #a0b2c6;
  font-size: 13px;
  text-decoration: none;
}
.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footersocial {
  background-color: var(--social-bar-bg);
  color: #ffffff;
  padding: 16px 0;
  font-size: 12px;
}
.footersocial-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.social-icons-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icons-row a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}
.social-icons-row a:hover {
  color: var(--gold-accent);
}

/* ==========================================================================
   14. FULLSCREEN MENU OVERLAY
   ========================================================================== */
.fullscreen-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 34, 64, 0.98);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 30px 40px;
  overflow-y: auto;
}
.fullscreen-menu-overlay.open {
  display: flex;
}
.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 20px;
  margin-bottom: 40px;
}
.menu-overlay-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
}
.menu-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
}
@media (max-width: 768px) {
  .menu-overlay-grid {
    grid-template-columns: 1fr;
  }
}
.menu-overlay-col h3 {
  font-family: var(--font-brand-serif);
  color: var(--gold-accent);
  font-size: 20px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(194, 133, 12, 0.4);
  padding-bottom: 8px;
}
.menu-overlay-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-overlay-col li {
  margin-bottom: 12px;
}
.menu-overlay-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}
.menu-overlay-col a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

/* ==========================================================================
   15. EMERGENCY POP-UP MODAL
   ========================================================================== */
.emergency-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 15px;
}
.emergency-modal-backdrop.open {
  display: flex;
}
.emergency-modal-dialog {
  background: #ffffff;
  max-width: 550px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.emergency-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #d9381e;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.emergency-modal-header h3 {
  margin: 0;
  color: #d9381e;
  font-size: 20px;
}
.emergency-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.emergency-phone-box {
  background: #fdf2f0;
  border: 1px solid #f5c2bb;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.emergency-phone-box strong {
  display: block;
  font-size: 18px;
  color: #d9381e;
  margin-top: 4px;
}

/* Sovereign Certificate Slip Styles */
.sovereign-cert-slip {
  margin-top: 30px;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold-accent);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.cert-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.cert-header-titles h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.5px;
}
.cert-header-titles p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #555555;
}
.cert-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cert-status-approved {
  background: #2e8540;
  color: #ffffff;
}
.cert-status-rejected {
  background: #d9381e;
  color: #ffffff;
}
.cert-status-cancelled {
  background: #c53030;
  color: #ffffff;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
.cert-cell {
  background: #fbfbfb;
  border: 1px solid #ebebeb;
  padding: 10px 14px;
}
.cert-label {
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cert-value {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}
.cert-footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e6e6e6;
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================================================
   16. BACK TO TOP BUTTON (#toTopBtn)
   Exact Match to kz.usembassy.gov
   ========================================================================== */
#toTopBtn {
  background-color: #005ea2;
  color: #ffffff;
  border: none;
  border-radius: 6px 6px 0 0;
  bottom: 0px;
  opacity: 0;
  visibility: hidden;
  padding: 14px 21px;
  position: fixed;
  right: 25px;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease, padding 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
#toTopBtn.active-ttb {
  opacity: 0.85;
  visibility: visible;
}
#toTopBtn:hover {
  opacity: 1;
  background-color: #002868;
  padding: 18px 21px 14px;
}

@media (max-width: 768px) {
  #toTopBtn {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 4px;
    z-index: 995;
  }
}

/* ==========================================================================
   17. FULL ARTICLE PAGE VIEW (.paragraphsection)
   Exact match to kz.usembassy.gov/c51-historic-partnership-prosperous-future/
   ========================================================================== */
.article-breadcrumb-bar {
  background: #f4f6f8;
  border-bottom: 1px solid #e1e4e8;
  padding: 10px 0;
  font-size: 13px;
}
.article-breadcrumb-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.article-breadcrumb-bar a {
  color: #005ea2;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-breadcrumb-bar a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

.article-content-view {
  background: #ffffff;
  padding: 40px 0 70px;
}
.article-body-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-featured-figure {
  margin: 0 0 35px 0;
}
.article-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid #e6e6e6;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.article-photo-caption {
  font-size: 13px;
  color: #666666;
  font-style: italic;
  margin-top: 8px;
  border-left: 3px solid var(--gold-accent);
  padding-left: 10px;
}

.article-lead-text {
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  font-style: italic;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.article-main-text h2 {
  font-family: var(--font-brand-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-main-text h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: #002868;
  margin: 28px 0 12px;
  line-height: 1.35;
}
.article-main-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #212529;
  margin-bottom: 20px;
}
.article-quote-box {
  background: #f8fafc;
  border-left: 5px solid var(--gold-accent);
  padding: 20px 25px;
  margin: 30px 0;
  font-size: 16px;
  font-style: italic;
  color: #0a2240;
  line-height: 1.6;
}
.article-quote-box strong {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--navy-deep);
  margin-top: 10px;
}

.article-bottom-actions {
  border-top: 2px solid #e6e6e6;
  padding-top: 25px;
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Related News Strip below article */
.article-related-strip {
  background: #f7f9fa;
  border-top: 1px solid #e6e6e6;
  padding: 45px 0;
}
.article-related-strip .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.related-heading {
  font-family: var(--font-brand-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 25px;
  text-transform: uppercase;
}
.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .related-cards-grid {
    grid-template-columns: 1fr;
  }
}
.related-card {
  background: #ffffff;
  border: 1px solid #e1e4e8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.related-card a {
  color: #002868;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: underline;
}
.related-card a:hover {
  color: var(--gold-accent);
}
.related-card-meta {
  font-size: 12px;
  color: #777777;
  margin-top: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   18. DIPLOMATIC SUBPAGE ENGINE (.diplomatic-subpage-view)
   Full visual parity with US Embassy (USWDS / MWP) subpage architecture
   ========================================================================== */
.diplomatic-subpage-view {
  background-color: #ffffff;
}
.subpage-breadcrumb-bar {
  background: #f4f6f8;
  border-bottom: 1px solid #e1e4e8;
  padding: 12px 0;
  font-size: 13px;
  font-family: var(--font-sans);
}
.subpage-breadcrumb-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666666;
}
.subpage-breadcrumb-bar a {
  color: #005ea2;
  font-weight: 700;
  text-decoration: none;
}
.subpage-breadcrumb-bar a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}
.subpage-hero-banner {
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 55px 0 60px;
}
.subpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(10, 34, 64, 0.88), rgba(10, 34, 64, 0.94));
  z-index: 1;
}
.subpage-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.subpage-hero-border-wrap {
  border-left: 6px solid var(--gold-accent);
  padding-left: 24px;
  max-width: 880px;
}
.subpage-hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.18;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.subpage-hero-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}
.subpage-tabs-wrap {
  background: #ffffff;
  border-bottom: 2px solid #e1e4e8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: sticky;
  top: 50px;
  z-index: 90;
}
.subpage-tabs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subpage-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #565c65;
  padding: 16px 2px 14px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.subpage-tab-btn:hover {
  color: #002868;
}
.subpage-tab-btn.active {
  color: #002868;
  font-weight: 700;
}
.subpage-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--gold-accent);
}
.subpage-content-box {
  background: #ffffff;
  padding: 45px 0 80px;
}
.subpage-body-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2-Column Subpage Layout & Diplomatic Sidebar */
.subpage-layout-2col {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.subpage-main-col {
  min-width: 0;
}
.subpage-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 105px;
}

/* Sidebar Widgets */
.sidebar-widget-card {
  background: #fbfbfb;
  border: 1px solid #dcdcdc;
  border-top: 3px solid var(--navy-deep);
  border-radius: 3px;
  padding: 20px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.sidebar-widget-card.highlight {
  border-top-color: var(--gold-accent);
  background: #ffffff;
}
.sidebar-widget-title {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 8px;
}
.sidebar-widget-subtitle {
  font-size: 12px;
  color: #666666;
  margin: -6px 0 12px;
  line-height: 1.4;
}
.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  transition: all 0.15s ease;
  background: #ffffff;
  border: 1px solid #eee;
}
.sidebar-nav-list li a:hover {
  background: #f0f4f9;
  color: #005ea2;
  border-color: #c9d8eb;
  padding-left: 14px;
}
.sidebar-nav-list li a.active {
  background: #0a2240;
  color: #ffffff;
  border-color: #0a2240;
}
.sidebar-ext-portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-ext-portal-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #fdfdfd;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #005ea2;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-ext-portal-item:hover {
  background: #f0f4f9;
  border-color: #005ea2;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 94, 162, 0.08);
}
.sidebar-ext-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #005ea2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.sidebar-ext-desc {
  font-size: 11.5px;
  color: #666666;
  line-height: 1.35;
}
.sidebar-info-row {
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.sidebar-info-row i {
  color: var(--link-blue);
  margin-top: 3px;
}

@media (max-width: 992px) {
  .subpage-layout-2col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .subpage-sidebar-col {
    position: static;
  }
}
.subpage-notice-card {
  background: #f0f4f9;
  border-left: 5px solid #005ea2;
  border-radius: 2px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.subpage-notice-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #002868;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subpage-notice-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}
.subpage-section-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 35px 0 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subpage-bullet-list {
  padding-left: 20px;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 15px;
  color: #212529;
}
.subpage-bullet-list li {
  margin-bottom: 8px;
}
.subpage-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.subpage-card-box {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-top: 3px solid var(--gold-accent);
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.subpage-card-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 10px;
}
.subpage-card-box p {
  font-size: 14px;
  line-height: 1.55;
  color: #555555;
  margin: 0;
}
.subpage-action-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn-gov-secondary {
  background: #ffffff;
  border: 1px solid #005ea2;
  color: #005ea2;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gov-secondary:hover {
  background: #005ea2;
  color: #ffffff;
}

@media (max-width: 768px) {
  .subpage-hero-banner {
    padding: 30px 0 35px;
  }
  .subpage-hero-border-wrap {
    padding-left: 14px;
    border-left-width: 5px;
  }
  .subpage-hero-title {
    font-size: 22px;
  }
  .subpage-hero-subtitle {
    font-size: 13px;
  }
  .subpage-tabs-wrap {
    top: 48px;
  }
  .subpage-tab-btn {
    font-size: 13.5px;
    padding: 12px 2px 10px;
  }
  .subpage-grid-2col {
    grid-template-columns: 1fr;
  }
  .subpage-action-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   19. SOVEREIGN UI COMPONENTS (Steppers, Accordions, Stat Grids, Doc Cards)
   ========================================================================== */

/* 19.1 Process Stepper */
.gov-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0 35px;
  position: relative;
}
.gov-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--navy-deep);
  border-radius: 4px;
  padding: 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gov-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 40, 104, 0.08);
}
.gov-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.gov-step-card.active-step {
  border-top-color: var(--gold-accent);
}
.gov-step-card.active-step .gov-step-badge {
  background: var(--gold-accent);
  color: #06182e;
}
.gov-step-title {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 8px;
  line-height: 1.35;
}
.gov-step-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4a5568;
  margin: 0;
}

/* 19.2 Accordions (Native Details/Summary) */
.gov-accordion-group {
  margin: 20px 0 35px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.gov-accordion-item {
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: #ffffff;
  transition: border-color 0.2s;
  overflow: hidden;
}
details.gov-accordion-item[open] {
  border-color: #005ea2;
  box-shadow: 0 2px 8px rgba(0, 94, 162, 0.08);
}
summary.gov-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbfb;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}
summary.gov-accordion-summary::-webkit-details-marker {
  display: none;
}
summary.gov-accordion-summary:hover {
  background: #f0f4f9;
  color: #005ea2;
}
details.gov-accordion-item[open] summary.gov-accordion-summary {
  background: #f0f4f9;
  border-bottom: 1px solid #e1e4e8;
  color: #005ea2;
}
.gov-accordion-icon {
  font-size: 13px;
  color: #666666;
  transition: transform 0.2s ease;
}
details.gov-accordion-item[open] .gov-accordion-icon {
  transform: rotate(180deg);
  color: #005ea2;
}
.gov-accordion-content {
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #333333;
  background: #ffffff;
}
.gov-accordion-content p:last-child {
  margin-bottom: 0;
}

/* 19.3 Official Statistics Grid */
.gov-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0 35px;
}
.gov-stat-card {
  background: linear-gradient(135deg, #0a2240 0%, #06182e 100%);
  color: #ffffff;
  padding: 20px 18px;
  border-radius: 4px;
  border-bottom: 4px solid var(--gold-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.gov-stat-card.light-card {
  background: #f4f7fb;
  border: 1px solid #dcdcdc;
  border-bottom: 4px solid var(--link-blue);
  color: var(--body-text);
}
.gov-stat-card.light-card .gov-stat-num {
  color: var(--navy-deep);
}
.gov-stat-card.light-card .gov-stat-sub {
  color: #555555;
}
.gov-stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-yellow);
  line-height: 1.1;
  margin-bottom: 6px;
}
.gov-stat-label {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.gov-stat-sub {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
}

/* 19.4 Official Document Download Cards */
.gov-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 30px;
}
.gov-doc-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfdfd;
  border: 1px solid #dcdcdc;
  border-left: 4px solid #d9381e;
  border-radius: 3px;
  padding: 16px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.gov-doc-download-card:hover {
  border-color: #005ea2;
  box-shadow: 0 4px 12px rgba(0, 94, 162, 0.1);
  background: #ffffff;
}
.gov-doc-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gov-doc-icon {
  font-size: 28px;
  color: #d9381e;
}
.gov-doc-info {
  display: flex;
  flex-direction: column;
}
.gov-doc-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
}
.gov-doc-meta {
  font-size: 12px;
  color: #666666;
}
.gov-doc-btn {
  background: #f0f4f9;
  color: #005ea2;
  border: 1px solid #c9d8eb;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.gov-doc-download-card:hover .gov-doc-btn {
  background: #005ea2;
  color: #ffffff;
  border-color: #005ea2;
}

/* 19.5 Legal Statutory Citation Quote */
.gov-legal-quote {
  background: #fdfae5;
  border: 1px solid #e6d385;
  border-left: 5px solid #c2850c;
  padding: 16px 20px;
  border-radius: 2px;
  margin: 25px 0;
  font-family: var(--font-sans);
}
.gov-legal-header {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a5405;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.gov-legal-text {
  font-size: 13.5px;
  font-style: italic;
  color: #3e3204;
  line-height: 1.6;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gov-stepper {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gov-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gov-doc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .gov-stat-grid {
    grid-template-columns: 1fr;
  }
}

