.header-wrapper{
    display: flex;
    justify-content: start;
    align-items: center;
    /* margin-top: 40px; */
    padding: clamp(16px, 2.5vw, 32px) 0 0;
    position: sticky;
    top: 0;
    z-index: 500;
}

/* Overlay variant: floats on top of a full-bleed hero instead of pushing it
   down, so the hero can use the entire first viewport. Always transparent. */
.header-wrapper.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* While the mobile menu is open, pin the header to the viewport itself
   rather than leaving it sticky within the document — this keeps it
   visible at the top regardless of where the page was scrolled to when
   the menu opened. !important guards this against the header-casestudy/
   header-overlay variants below. */
.header-wrapper:has(.navigation-popup.open) {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

/* The header stays transparent everywhere, on every page and scroll
   position — it never takes on a solid/theme background (see header-gray /
   header-white / header-black below and in index.css). */
.header-wrapper {
    background: transparent;
}
.header-wrapper .header-vlines{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: var(--container-max);
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 1;
    transition: opacity 0.25s ease;
}
.header-wrapper .header-vlines.is-hidden{
    opacity: 0;
}
.header-wrapper .header-vlines span{
    height: 100%;
    border-left: 1px solid var(--color-border-light);
}
.header-wrapper .header-vlines.dark span{
    border-left: 1px solid var(--color-border-dark);
}
.header-wrapper .header-vlines span:last-child{
    border-right: 1px solid var(--color-border-light);
}
.header-wrapper .header-vlines.dark span:last-child{
    border-right: 1px solid var(--color-border-dark);
}
.header-wrapper .header-vlines.dark span:nth-child(3){
    border-right: 1px solid var(--color-border-dark);
}
.header-wrapper > .container{
    position: relative;
    z-index: 4;
}
.header-wrapper .header-logo {
    width: clamp(44px, 4vw, 60px);
}
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-wrapper .plus-btn{
  /* position: absolute;
  right: 20px; */
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 99999;
  transition: transform 0.25s ease;
}

.header-wrapper .plus-btn.active{
  transform: rotate(-45deg);
}
.header-wrapper .plus-btn:active{
  transform: scale(0.85);
}

/* press feedback while menu is open — keep the rotation too */
.header-wrapper .plus-btn.active:active{
  transform: scale(0.85) rotate(-45deg);
}
/* 
.header-wrapper .plus-btn.active:hover{
  transform: scale(1.2) rotate(-45deg);
} */

.header-wrapper .plus-btn.active:hover{
  transform: scale(1.2) rotate(-45deg);
}
.header-wrapper .navigation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2A2A2AD9;
  color: var(--color-accent-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-100%);
  transition: transform 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
  padding: clamp(0px, 3vw, 40px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  backdrop-filter: blur(6px);
  overflow: hidden; /* ← no scroll on desktop */
}

.header-wrapper .navigation-popup.open {
  transform: translateY(0);
  visibility: visible;
}
.header-wrapper .navigation-popup .nav-vlines{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: var(--container-max);
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 1;
}
.header-wrapper .navigation-popup .nav-vlines span{
    height: 100%;
    border-left: 1px solid var(--color-border-light);
}
.header-wrapper .navigation-popup .nav-vlines span:last-child{
    border-right: 1px solid var(--color-border-light);
}

.header-wrapper  .navigation-popup.open {
  transform: translateY(0);
}
.header-wrapper  .navigation-popup .navigation-content{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 2;
}
.header-wrapper  .navigation-popup .navigation-content .nav-left,
.header-wrapper  .navigation-popup .navigation-content .nav-right{
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}
.header-wrapper  .navigation-popup .navigation-content .nav-left{
    justify-content: space-between;
}
.header-wrapper  .navigation-popup .navigation-content .nav-right{
    justify-content: end;
     /* gap:  5rem; clamp(20px,6vw,100px); */
}
.header-wrapper.header-black {
  background: transparent;
}
@media (min-width:768px)  {
    .header-wrapper  .navigation-popup .navigation-content .nav-right{
   gap: clamp(4rem,3vw,30rem); /* 5rem; */
}
}
.header-wrapper  .navigation-popup .navigation-content .nav-brand-title{
   font-size: var(--text-4-5xl);
   font-family: var(--font-primary);
   font-weight: normal;
   max-width: 900px;
}
.header-wrapper  .navigation-popup .navigation-content .time-wrapper{
  margin-top: 60px;
}
.header-wrapper  .navigation-popup .navigation-content .time-wrapper .current-time{
   font-size: var(--text-4xl);
   font-family: var(--font-body);
   font-weight: 700;
}
.header-wrapper  .navigation-popup .navigation-content .time-wrapper .current-time-text{
    font-size: var(--text-xl);
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country{
    font-size: var(--text-lg);
    font-weight: 700;
    max-width: fit-content;
}

.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags{
    display: flex;
    gap: 10px;
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag{
    width: 165px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: 1px solid white;
    margin-top: 20px;
    cursor: pointer;
    background-color: transparent;
    transition: 0.3s ease;
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag p{
    font-size: 16px;
    font-weight: normal;
    color: var(--color-accent-white);
    font-family: var(--font-body);
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag:hover{
    border-color: var(--color-accent-primary);
    color: var(--color-accent-white);
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag:hover p{
    /* color: var(--color-accent-black); */
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-policy{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}
.header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-policy a{
    font-size: var(--text-xl);
    color: var(--color-accent-white);
    font-weight: 300;
    font-family: var(--font-body);
}
.header-wrapper  .navigation-popup .navigation-content .nav-right .nav-items{
    margin-top: clamp(0%, 3vw, 80%);
}
.header-wrapper  .navigation-popup .navigation-content .nav-right .nav-items ul{
    display: flex;
    flex-direction: column;
    gap: clamp(0px, 1.5vw, 12px);
}
.header-wrapper  .navigation-popup  ul li{
    list-style-type: none;
    padding: 0;
}
.header-wrapper  .navigation-popup .navigation-content .nav-right .nav-items ul li{
    text-align: right;
}
.header-wrapper  .navigation-popup .navigation-content .nav-right .nav-items ul li a{
    font-size: var(--text-3-4xl);
   color: var(--color-accent-white);
   font-weight: 700;
   text-align: right;
}


@media (max-width:1024px){
    .header-wrapper{
    padding: clamp(16px, 3vw, 24px) 0 clamp(48px, 8vw, 72px);
}
    .header-wrapper  .navigation-popup{
     padding-top: 60px;
    }
    .header-wrapper .navigation-popup .navigation-content .social-header{
        order: 3;
        align-self: flex-end;
        margin: auto 0 0;
        padding-bottom: 20px;
    }
    .header-wrapper  .navigation-popup .navigation-content{
      flex-direction: column;
      align-items: self-end;
      gap:20px;
      overflow-y: visible;
      padding: 20px;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left, .header-wrapper  .navigation-popup .navigation-content .nav-right{
        align-items: self-end;
        width: 100%;
        height: auto;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left{
        order: 2;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-right{
        display: contents;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-right .nav-items{
        order: 1;
        width: 100%;
        margin-top: 0;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left .nav-text,
    .header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country h3{
     text-align: right;
    }
    .header-wrapper .plus-btn img{
        width: 32px;
        height: 32px;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag{
        width: 100%;
        height: 100%;
        padding: 18px 0;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country{
        margin-top:10%;
        width: 100%;
        max-width: 570px;
    }
    .header-wrapper  .navigation-popup .navigation-content .nav-left .nav-country .nav-policy{
    justify-content: space-between;
    flex-direction: column;
    text-align: right;
    gap: 20px;
    margin-top: 25px;
    }   
}

@media (max-width:768px){
    .header-wrapper .header-vlines,
    .header-wrapper .navigation-popup .nav-vlines{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .header-wrapper .header-vlines{
        padding-inline: var(--gutter);
    }
    .header-wrapper .header-vlines span:nth-child(4),
    .header-wrapper .navigation-popup .nav-vlines span:nth-child(4){
        display: none;
    }
    .header-wrapper .header-vlines span:nth-child(3){
        border-right: 1px solid var(--color-border-light);
    }
    .header-wrapper .navigation-popup .nav-vlines span:nth-child(3){
        border-right: 1px solid var(--color-border-light);
    }
    .header-wrapper .faq-section{
    display: flex;
    justify-content: start;
    align-items: center;
    /* margin-top: 40px; */
    padding: 60px 0 0;
    position: relative;
}
  .header-wrapper{
    padding: clamp(14px, 3vw, 22px) 0 clamp(40px, 10vw, 52px);
  }
}
@media (min-width: 1025px) {
  .header-wrapper .navigation-popup.open {
    /* Replace with the actual path to your background image */
    background-image: url("/images/menu-bg.png"); 
    
    /* Ensure the image covers the background gracefully */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Optional: Keeps a dark tint overlay so text remains readable */
    /* background-blend-mode: multiply;  */
    /* background-color: rgba(42, 42, 42, 0.85);  */
  }
  .header-wrapper .navigation-popup {
    overflow: hidden;
  }

  .header-wrapper .navigation-popup .navigation-content {
    height: 100%;
    overflow: visible;
  }
}

.header-wrapper .plus-icon {
    width: clamp(38px, 4vw, 48px);
    height: auto;
}

.nav-flag img {
  width: clamp(24px, 3vw, 38px);
  height: auto;
  display: block;
}
/* .header-wrapper{
    padding-bottom: 3rem;
} */

@media (min-width: 2100px) {
.header-wrapper .plus-icon {
        max-width: 52px;
    }
    .social-media.social-.header-wrapper ul li svg {
    width: clamp(40px, 5vw, 72px);
    height: clamp(40px, 5vw, 72px);
}

.header-wrapper .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag {
    width: 243px;
    height: 162px;
}
.header-wrapper .navigation-popup .navigation-content .nav-left .nav-country .nav-country-flags .nav-flag p {
    font-size: 24px;
    font-family: var(--font-body);
}
.nav-country h3{
  font-family: var(--font-primary);
  font-weight: 400;
}
.nav-flag img {
  width: clamp(30px, 4vw, 53px);
}
.header-wrapper{
    padding-bottom: clamp(32px, 3.5vw, 56px) !important;
    padding-top: clamp(20px, 2.2vw, 36px) !important;
}
.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul
 {
    /* gap: clamp(20px, 2.5vw, 40px); */
}
.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a
 {
    font-size: 80px;
}
}


@media(min-width: 1100px) and (max-width: 1580px){
.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a {
    font-size: clamp(32px, 3vw, 38px);
}
}

/* ==================== CASE STUDY VARIANT ==================== */
.header-wrapper.header-casestudy {
  background: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.header-wrapper.header-casestudy .header-nav {
  justify-content: space-between;
}

/* Optional: hide v-lines on case study hero */
.header-wrapper.header-casestudy .header-vlines {
  /* display: none; */
}
/* Updated key sections in header.css */

/* ... existing styles above ... */

.header-wrapper .navigation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2A2A2AD9;
  color: var(--color-accent-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-100%);
  transition: transform 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
  padding: clamp(0px, 3vw, 40px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  backdrop-filter: blur(6px);
}

.header-wrapper .navigation-popup.open {
  transform: translateY(0);
  visibility: visible;
}

/* NEW MAIN ROW LAYOUT - Inspired by clean agency menus like Arpeggio */
.header-wrapper .navigation-popup .navigation-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the whole content block */
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.nav-main-row {
  display: flex;
  width: 100%;
  /* max-width: 1400px; */
  gap: clamp(4rem, 6vw, 120px);
  align-items: stretch;
  justify-content: space-between;
}

/* LEFT (Heading + Language) */
.header-wrapper .navigation-popup .navigation-content .nav-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* ← This is the key change */
  height: auto;
  max-width: 45%;
}

.header-wrapper .navigation-popup .navigation-content .nav-left .nav-text .nav-brand-title {
  font-size: var(--text-3xl);
  font-family: var(--font-primary);
  font-weight: normal;
  line-height: 1.4;
}

.header-wrapper .navigation-popup .navigation-content .nav-left .time-wrapper {
  margin-top: 60px;
}

/* RIGHT (Links + Social) */
.header-wrapper .navigation-popup .navigation-content .nav-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: auto;
  max-width: 55%;
}

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items {
  width: 100%;
  margin-top: 0;
}

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
  display: flex;
  flex-direction: column;
  /* gap: clamp(12px, 2vw, 24px); */
  align-items: flex-end;
}

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a {
  font-size: var(--text-3-4xl);
  color: var(--color-accent-white);
  font-weight: 700;
  text-align: right;
  transition: color 0.2s ease;
}

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a:hover,
.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a.active {
  color: var(--color-accent-primary);
}

/* Social at bottom of links column - flush with the language switcher's baseline */
.social-header {
  margin-top: auto;
  padding-bottom: 0;
}

/* Ensure cross icon is always on top and clear */
.plus-btn {
  position: relative;
  z-index: 10000 !important;
}

.navigation-popup .plus-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10001;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
.header-wrapper .navigation-popup .navigation-content {
    height: auto;           /* grow with content so outer can scroll */
    min-height: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;      /* no inner scroll */
    padding: 0;
    margin-top: 0;          /* don't stack on top of the popup's own top padding */
  }

.nav-main-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 45px;
    height: auto;
  }

  .header-wrapper .navigation-popup .navigation-content .nav-left,
  .header-wrapper .navigation-popup .navigation-content .nav-right {
    align-items: flex-end;
    width: 100%;
    max-width: none;
  }
  
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a {
    font-size: clamp(28px, 5vw, 42px);
  }
  
 .header-wrapper .navigation-popup {
    overflow-y: auto;              /* ← outer scrolls */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;  /* stops bounce chaining */
    padding: 80px 30px 60px;
  }
}

@media (max-width: 768px) {
  .nav-main-row {
    gap: 40px;
  }
}

/* Keep existing large screen tweaks */
@media (min-width: 2100px) {
  .header-wrapper .navigation-popup .navigation-content .nav-left .nav-text .nav-brand-title {
    /* font-size: 5.5rem; */
  }
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a {
    font-size: 80px;
  }
}

/* Add / replace these rules in header.css */

.header-wrapper .navigation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2A2A2AD9;
  color: var(--color-accent-white);
  backdrop-filter: blur(4px);
  transform: translateY(-100%);
  transition: transform 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
  padding: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px);
  z-index: 999;
}

/* Cross icon - always safe */
.plus-btn {
  position: relative;
  z-index: 10000 !important;
}

.navigation-popup .plus-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10001 !important;
}

/* Main content row - safe padding from right edge */
.nav-main-row {
  height: 100%;
  display: flex;
  width: 100%;
  /* max-width: 1450px; */
  margin: 0 auto;
  gap: clamp(4rem, 6vw, 140px);
  align-items: stretch;
  justify-content: space-between;
  padding-top: 20px;
}
.video-time{
  font-size:var(--text-lg) ;
}
/* Right column (links) - align to right but with breathing room */
.header-wrapper .navigation-popup .navigation-content .nav-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 580px; /* Limit width so links don't stretch too far */
}

/* Links list - ensure text doesn't go under icon */
.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
  display: flex;
  flex-direction: column;
  /* gap: clamp(12px, 2.2vw, 28px); */
  align-items: flex-end;
  width: 100%;
  padding-right: 20px; /* Extra safety margin */
}

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul li a {
  font-size: var(--text-2-3xl);
  color: var(--color-accent-white);
  font-weight: 700;
  text-align: right;
  white-space: nowrap; /* Prevent wrapping issues */
}
.header-wrapper .navigation-popup .navigation-content .nav-left .nav-country {
  margin-top: auto;                 /* ← Pushes language to bottom */
}
/* Mobile - stack safely */
@media (max-width: 1024px) {
  .nav-main-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 60px;
    padding-right: 0; /* No need for extra padding on mobile since icon moves with flow */
    padding-top: 0;    /* don't stack on top of the popup's own top padding */
  }
  
  .navigation-popup .plus-btn {
    top: 30px;
    right: 30px;
  }
  
  .header-wrapper .navigation-popup .navigation-content .nav-right {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-main-row {
    gap: 40px;
  }
  
  .header-wrapper .navigation-popup {
    padding: 80px 30px 60px 30px;
  }
}

/* Replace / add these rules in header.css */

.header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
  display: flex;
  flex-direction: column;
  /* gap: clamp(12px, 2.2vw, 28px); Desktop */
  align-items: flex-end;
  width: 100%;
  padding-right: 20px;
}

/* Smaller screens - reduced gaps */
@media (max-width: 1024px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 18px; /* Reduced from previous larger values */
  }
  
  .nav-main-row {
    gap: 50px; /* Reduced gap between heading and links section */
  }
}

@media (max-width: 768px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 14px; /* Even tighter on mobile */
  }
  
  .nav-main-row {
    gap: 40px;
  }
  
  .header-wrapper .navigation-popup .navigation-content .nav-left .nav-text .nav-brand-title {
    font-size: var(--text-3xl); /* Slightly smaller heading if needed */
  }
}

@media (max-width: 480px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 10px; /* Very compact on small phones */
  }
}

/* Main row on mobile */
@media (max-width: 1024px) {
  .nav-main-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 45px;           /* Reduced */
  }

  .header-wrapper .navigation-popup .navigation-content .nav-right {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start; /* Changed to prevent pushing social down */
  }

  /* Links section */
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 16px;           /* Reduced */
    margin-bottom: 40px; /* Space before social */
  }

  /* Social icons - make them smaller & safer on mobile */
  .social-header {
    margin-top: auto;
    padding-bottom: 30px;
  }
}

/* Extra small screens */
@media (max-width: 768px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 13px;
  }
  
  .nav-main-row {
    gap: 35px;
  }
}

@media (max-width: 480px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 11px;
  }

  /* Slightly smaller social icons if needed */
  
}

.social-header ul li svg,
  .social-header ul li img {
    width: clamp(20px, 1.8vw, 28px);
    height: clamp(20px, 1.8vw, 28px);
  }

/* Shrink the social icon boxes on narrow phones so the row (7 icons) fits
   within the popup's content width instead of overflowing off-screen. */
@media (max-width: 520px) {
  .header-wrapper .navigation-popup .navigation-content .social-media.social-header ul {
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
  }

}
.header-wrapper .navigation-popup .navigation-content .social-media.social-header .social-link {
    width: clamp(34px, 3vw, 48px);
    height: clamp(34px, 3vw, 48px);
  }

/* Main row on mobile */
@media (max-width: 1024px) {
  .nav-main-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 50px;
  }

  .header-wrapper .navigation-popup .navigation-content .nav-left {
    justify-content: flex-start;     /* Reset on mobile */
    height: auto;
  }

  .header-wrapper .navigation-popup .navigation-content .nav-left .nav-country {
    margin-top: 40px;                /* Less aggressive push on mobile */
  }

  .header-wrapper .navigation-popup .navigation-content .nav-right {
    justify-content: flex-start;
  }

  .social-header {
    margin-top: 40px;
    padding-bottom: 20px;
  }
}

/* Extra small screens */
@media (max-width: 768px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 13px;
  }
  
  .nav-main-row {
    gap: 35px;
  }
}

/* @media (max-width: 480px) {
  .header-wrapper .navigation-popup .navigation-content .nav-right .nav-items ul {
    gap: 11px;
  }
  
  .social-header ul li svg,
  .social-header ul li img {
    width: 32px;
    height: 32px;
  }
} */

/* Extra bottom padding only on large screens, where the menu never scrolls */
@media (min-width: 1025px) {
  .header-wrapper .navigation-popup {
    padding-bottom: 80px;
  }
}

/* Scrolling is only ever needed on small/medium screens where the menu
   content can exceed the viewport height. Large screens must stay
   scrollbar-free (overflow: hidden, set above) no matter the content size. */
@media (max-width: 1024px) {
  .header-wrapper .navigation-popup.open {
    overflow-y: auto;
    overscroll-behavior: contain; /* stops scroll chaining to the page */
    -webkit-overflow-scrolling: touch;
  }
}