/* 
   - .grid                      : the grid container
   - .col-{n}                   : span n columns (mobile: full width, desktop: specified width)
   - .col-sm-{n}, .col-md:{n}   : responsive variants at breakpoints
   - .offset-{n}                : offset by n columns
   - .offset-sm-{n}, ...        : responsive offsets
*/

/* ----------------------------
   Variables
   ---------------------------- */
:root {
  --container-max-width: 1400px;
  --gutter: 3rem;
  --outer-padding: 1rem;
  --break-sm: 768px;
  --break-md: 992px;
  --break-lg: 1200px;
  --break-xl: 1400px;
  --cta-safe-bottom: 0;

  /* Carousel arrow safe-space (option 1: reserve wrapper padding for arrows) */
  --carousel-arrow-space: 80px; /* space on each side inside wrapper to hold arrow buttons */
  --carousel-arrow-inner-offset: 16px; /* inner offset from wrapper edge for arrow visual placement */
}

/* ----------------------------
   Global / Utility
   ---------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  color: #001a70;
  font-family: "EDF2020W01-Regular", sans-serif;
  font-size: 16px;
  height: 100%;
  padding-bottom: var(--cta-safe-bottom);
  margin: 0;
}

/* Typographic improvements */
p {
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

/* Fluid typography for headings for comfortable scaling across devices */
h1 {
  font-size: clamp(4rem, 5vw, 6rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

/* h2 rules */
h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  padding: 1rem;
  text-align: center;
  margin: 0;
}
.all-around-padding {
    padding: 5% 1rem;
}
.h2-left {
    font-weight: 400;
    text-align: center;
}
.header-h2 {
    padding: 1rem 1rem 0 1rem; 
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

/* Keep h3 at least 1.5rem and allow it to scale up */
h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0;
}
.career-cta h3 {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
}
  .h3-left {
    font-family:"EDF2020W01-Bold", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
  }
/* Decorative / utility */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

footer {
  background-color: #001a70;
  padding: 2rem;
  color: #ffffff;
  z-index: 100000;
}
video {
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}
.video-container {
      margin-top: 5% !important;
  }
  .last-div {
      padding: 5% 0 15% 0;
  }
/* Inline styles extracted from HTML */
#about .grid.center {
  padding: 0 0 7% 0;
}

#careers .grid {
  padding: 0 0 2% 0;
}
.benefits-grid-copy {
    text-align: center;
}
.hero {
  background-color: #001a70;
  color: #ffffff;
  padding: 25% 5% 5% 5%;
  text-align: center;
}

/* animated number: keep large on desktop but safe on mobile */
.animated-number {
  font-family: "EDF2020W01-Bold", sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  padding: 2rem 0 0 0;
  text-align: center;
}

.vert-padding {
  padding: 5% 0;
}
.small-vert-padding {
  padding: 1% 0;
}
h2.padding-bottom-0 {
  padding-bottom: 0;
}

h3.section-bottom-text {
  text-align: center;
  padding: 1rem 1rem 0 1rem;
}

/* Location page specific styles */
.grid.location-images {
  padding: 0 0 10% 0;
}

.blue {
  color: #001a70;
}
.center {
  text-align: center;
}
.icon {
  max-width: 200px;
  margin: 0 auto;
}
.small-icon {
  max-width: 130px;
  margin: 0 auto;
}
.image-expand-section {
  position: relative;
  height: 200vh;
}

.sticky-image-container {
  position: sticky;
  top: 0;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.expanding-image {
  width: 60%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  transition: all 0.1s ease-out;
}

.expanding-image.full-screen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.light-blue {
  background-color: #dcecf7;
}
.orange-bg {
  background-color: #fe5716;
  color: #ffffff !important;
}

.left {
  text-align: left !important;
}

.career-cta {
    border-radius: 0;
    position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fe5716;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  color: #ffffff;
  padding: 0.8rem;
  transition: padding 160ms ease, box-shadow 160ms ease;
  width: 100%;
}
.career-cta.is-above-footer {
    padding: 1rem;
    }

/* h3 button/heading style - we keep min 1.5rem above */
h3 {
  font-family:"EDF2020W01-Bold", sans-serif;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.career-cta h3 a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.career-cta h3 a:hover {
  color: #001a70;
  text-decoration: none;
}

.orange {
  color: #fe5716;
  font-family:"EDF2020W01-Bold", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

a.orange {
  transition: color 0.3s ease;
}

a.orange:hover {
  color: #001a70;
}

.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--outer-padding);
  padding-right: var(--outer-padding);
  width: 100%;
}

/* ----------------------------
   Grid System - Mobile First
   ---------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: stretch;
}

.grid > * {
  width: 100%;
}

/* Equal Height Cards */
.card {
  border: 1px solid #001a70;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.inner-card {
  padding: 1rem 2.5rem 1.5rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.inner-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.inner-card p {
  margin: 0;
  flex-grow: 1;
}

/* Mobile: All columns are full width by default */
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  grid-column: span 12;
}

/* Offsets - Mobile */
.offset-0 {
  grid-column-start: auto;
}
.offset-1 {
  grid-column-start: 2;
}
.offset-2 {
  grid-column-start: 3;
}
.offset-3 {
  grid-column-start: 4;
}
.offset-4 {
  grid-column-start: 5;
}
.offset-5 {
  grid-column-start: 6;
}
.offset-6 {
  grid-column-start: 7;
}
.offset-7 {
  grid-column-start: 8;
}
.offset-8 {
  grid-column-start: 9;
}
.offset-9 {
  grid-column-start: 10;
}
.offset-10 {
  grid-column-start: 11;
}
.offset-11 {
  grid-column-start: 12;
}

/* --------------------------------------
   NAVBAR
   -------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  z-index: 10000;
  transition: box-shadow 0.4s ease, background 0.3s ease;
  padding: 1rem;
}

.navbar.scrolled {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  animation: shadowFadeIn 0.4s ease forwards;
}

@keyframes shadowFadeIn {
  from {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  }
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  min-height: 50px;
}

.nav-logo a {
  display: block;
  align-items: center;
  height: 100%;
}

.nav-links {
  position: relative;
  text-align: right;
}

/* Only target the immediate child UL so nested dropdown ULs are not affected */
.nav-links > ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Dropdown / explore careers integration --- */
/* position context for dropdown parent */
.nav-item.has-dropdown { position: relative; }

/* Toggle button styling (unstyled button baseline) */
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family:"EDF2020W01-Bold", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
}
.dropdown-toggle:hover {
color: #fe5716;
}
/* Dropdown pane: hidden by default
   Updated so the panel never extends past the viewport:
   - center the panel under its toggle by default (left:50% + translateX(-50%))
   - limit max-width to viewport (calc(100vw - 32px))
   - allow internal wrapping and scrolling if needed
*/
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  max-width: calc(100vw - 32px); /* keep it inside viewport with 16px side gutters */
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 0.25rem 0;
  display: none;
  z-index: 1000;
  box-sizing: border-box;
  overflow: auto; /* if content exceeds max-height, allow scrolling */
  white-space: normal; /* allow wrapping */
  word-break: break-word;
  word-wrap: break-word;
  hyphens: auto;
  /* give a comfortable max-height so it won't overflow very tall (adjustable) */
  max-height: calc(100vh - 120px);
}

/* Dropdown link items */
.dropdown li { 
    list-style: none; 
    padding: 7px 0;
    
}
.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: #001a70;
  text-align: center;
  text-decoration: none;
  white-space: normal; /* ensure labels wrap, e.g. "U.S." */
}
.dropdown a:hover,
.dropdown a:focus {
  color: #fe5716;
}

/* Show on hover for pointer devices */
@media (hover: hover) {
  .nav-item.has-dropdown:hover > .dropdown,
  .nav-item.has-dropdown:focus-within > .dropdown {
    display: block;
  }
}

/* When the JS toggle class is present, show the dropdown (for touch/click) */
.nav-item.has-dropdown.open > .dropdown {
  display: block;
}

/* Small-screen behavior: make dropdown part of flow when nav collapses */
@media (max-width: 991px) {
  .nav-links > ul { 
      flex-direction: 
      column; gap: 0; }
      
  .nav-item.has-dropdown { 
      width: 100%; 
      
  }
  .dropdown {
    position: relative;
    top: 0;
    left: 100px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0.25rem 0 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
  }
.dropdown li a {
    text-align: left;
}
}

/* --- end dropdown integration --- */

.social-nav-links ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  justify-content: flex-end;
}

.social-nav-links a {
  transition: filter 0.3s ease;
}

social-nav-links a:hover img {
  filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(1612%) hue-rotate(360deg) brightness(98%) contrast(101%);
}

/* Only target immediate child list items/links so nested ULs aren't affected */
.nav-links > ul > li {
  list-style: none;
}

.nav-links > ul > li > a {
  text-decoration: none;
  color: #001a70;
  font-family:"EDF2020W01-Bold", sans-serif;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links > ul > li > a:hover {
  color: #fe5716;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; /* increased for better touch target */
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
  flex-shrink: 0;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
  margin: 2px 0;
}

.hamburger.open {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile nav styling */
.nav-grid {
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.nav-logo {
  grid-column: 1;
  display: flex;
  align-items: center;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  text-align: right;
}

/* Show mobile panel only for the immediate child UL when open (fixes dropdown auto-show bug) */
.nav-links.open > ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  animation: slideIn 0.4s forwards ease;
}

/* Hide main nav immediate child by default on small screens; on desktop the > ul rule above handles layout */
.nav-links > ul {
  display: none;
}

.nav-links.open > ul > li {
  width: 100%;
  text-align: left;
}

.nav-links.open > ul > li > a {
  display: block;
  padding: 0.75rem 0;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
@media (min-width: 992px) {
  .nav-item.has-dropdown:hover > .dropdown {
    display: block;
    pointer-events: auto;
  }
  
  /* Keep dropdown open when hovering over it */
  .dropdown:hover {
    display: block;
    pointer-events: auto;
  }
   .last-div {
      padding: 5% 0 10% 0;
  }
}

/* Make sure dropdown menu has pointer-events enabled by default on desktop */
@media (min-width: 992px) {
  .dropdown {
    pointer-events: auto;
  }
}

/* Mobile: ensure dropdown works with JS toggle (no changes needed to existing mobile styles) */
.nav-item.has-dropdown.open > .dropdown {
  display: block;
}
/* --------------------------------------
   Breakpoint: SM (768px+)
   -------------------------------------- */
@media (min-width: 768px) {
  h1 {
    font-size: clamp(3rem, 4.5vw, 5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    padding: 0 1rem 2rem 1rem;
  }

  .homepage {
    padding: 1rem 1rem 2rem 1rem !important;
  }

  .expanding-image {
    width: 70%;
    max-height: 75vh;
  }

  .h2-left {
    font-size: 3rem;
    padding: 1rem;
  }
  .h2-video {
    padding: 0 1rem 2rem 1rem !important;
  }

  .h3-left-under-video {
    padding: 0 1rem 4rem 1rem;
    text-align: left;
  }
  .career-cta {
    flex-direction: row;
  }

  h3 {
    font-size: 1.6rem; /* ensure >= 1.5rem on small desktops */
  }

  /* Column spans at SM */
  .col-sm-1 { grid-column: span 1; }
  .col-sm-2 { grid-column: span 2; }
  .col-sm-3 { grid-column: span 3; }
  .col-sm-4 { grid-column: span 4; }
  .col-sm-5 { grid-column: span 5; }
  .col-sm-6 { grid-column: span 6; }
  .col-sm-7 { grid-column: span 7; }
  .col-sm-8 { grid-column: span 8; }
  .col-sm-9 { grid-column: span 9; }
  .col-sm-10 { grid-column: span 10; }
  .col-sm-11 { grid-column: span 11; }
  .col-sm-12 { grid-column: span 12; }

  .offset-sm-0 { grid-column-start: auto; }
  .offset-sm-1 { grid-column-start: 2; }
  .offset-sm-2 { grid-column-start: 3; }
  .offset-sm-3 { grid-column-start: 4; }
  .offset-sm-4 { grid-column-start: 5; }
  .offset-sm-5 { grid-column-start: 6; }
  .offset-sm-6 { grid-column-start: 7; }
  .offset-sm-7 { grid-column-start: 8; }
  .offset-sm-8 { grid-column-start: 9; }
  .offset-sm-9 { grid-column-start: 10; }
  .offset-sm-10 { grid-column-start: 11; }
  .offset-sm-11 { grid-column-start: 12; }
}

/* --------------------------------------
   Breakpoint: MD (992px+)
   -------------------------------------- */
@media (min-width: 992px) {
  h1 {
    font-size: clamp(3.5rem, 4vw, 6rem);
  }

  h2 {
    font-size: clamp(1.75rem, 2.8vw, 3rem);
    padding: 0 1rem 4rem 1rem;
  }
  .all-around-padding {
    padding: 5%;
}
  .h2-video {
    padding: 0 1rem 4rem 1rem !important;
  }
  h4 {
    color: #fe5716;
    font-size: 1.5rem;
    font-family:"EDF2020W01-Bold", sans-serif;
    font-weight: 500;
  }
    .h3-left {
    font-size: 1.5rem; /* ensure >= 1.5rem at this breakpoint */
    padding: 1rem;
    text-align: left;
  }
  .animated-number {
      padding: 0 0 0 1rem;
      text-align: left;
  }
  .benefits-grid-copy {
    text-align: left;
}
  h3.section-bottom-text {
  text-align: left;
}
.hero {
padding: 15% 5% 5% 5%;
  }
  .expanding-image {
    width: 80%;
    max-height: 80vh;
  }

  .h2-left {
    font-size: 3rem;
    text-align: left;
  }

  .h2-location {
    padding: 0 0 1rem 0 !important;
    text-align: left;
  }



  h3 {
    line-height: 2rem;
  }

  /* Base columns become active at MD */
  .col-1 { grid-column: span 1; }
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; }
  .col-11 { grid-column: span 11; }
  .col-12 { grid-column: span 12; }

  /* MD specific columns */
  .col-md-1 { grid-column: span 1; }
  .col-md-2 { grid-column: span 2; }
  .col-md-3 { grid-column: span 3; }
  .col-md-4 { grid-column: span 4; }
  .col-md-5 { grid-column: span 5; }
  .col-md-6 { grid-column: span 6; }
  .col-md-7 { grid-column: span 7; }
  .col-md-8 { grid-column: span 8; }
  .col-md-9 { grid-column: span 9; }
  .col-md-10 { grid-column: span 10; }
  .col-md-11 { grid-column: span 11; }
  .col-md-12 { grid-column: span 12; }

  .offset-md-0 { grid-column-start: auto; }
  .offset-md-1 { grid-column-start: 2; }
  .offset-md-2 { grid-column-start: 3; }
  .offset-md-3 { grid-column-start: 4; }
  .offset-md-4 { grid-column-start: 5; }
  .offset-md-5 { grid-column-start: 6; }
  .offset-md-6 { grid-column-start: 7; }
  .offset-md-7 { grid-column-start: 8; }
  .offset-md-8 { grid-column-start: 9; }
  .offset-md-9 { grid-column-start: 10; }
  .offset-md-10 { grid-column-start: 11; }
  .offset-md-11 { grid-column-start: 12; }
}

/* --------------------------------------
   Breakpoint: LG (1200px+)
   -------------------------------------- */
@media (min-width: 1200px) {
  /* Show desktop nav, hide hamburger */
.career-cta {
    border-radius: 1rem 1rem 0 0;
    width: 60%;
  margin: 0 auto;
}
.hero {
    padding: 10% 5% 5% 5%;
  }
  .last-div {
      padding: 5% 0;
  }
  .video-container {
      margin-top: -30px !important;
  }
  .nav-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .nav-logo {
    grid-column: span 3;
  }

  .nav-links {
    grid-column: span 9;
    text-align: right;
    justify-content: flex-end;
  }

  .nav-links > ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end !important;
    width: 100%;
    height: auto;
    padding: 0;
    gap: clamp(0.75rem, 1.2vw, 1.5rem);
    background: transparent;
    box-shadow: none;
    animation: none;
  }

  .nav-links > ul li {
    width: auto;
  }

  .nav-links > ul li a {
    padding: 0;
  }

  .hamburger {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  /* LG specific columns */
  .col-lg-1 { grid-column: span 1; }
  .col-lg-2 { grid-column: span 2; }
  .col-lg-3 { grid-column: span 3; }
  .col-lg-4 { grid-column: span 4; }
  .col-lg-5 { grid-column: span 5; }
  .col-lg-6 { grid-column: span 6; }
  .col-lg-7 { grid-column: span 7; }
  .col-lg-8 { grid-column: span 8; }
  .col-lg-9 { grid-column: span 9; }
  .col-lg-10 { grid-column: span 10; }
  .col-lg-11 { grid-column: span 11; }
  .col-lg-12 { grid-column: span 12; }

  .offset-lg-0 { grid-column-start: auto; }
  .offset-lg-1 { grid-column-start: 2; }
  .offset-lg-2 { grid-column-start: 3; }
  .offset-lg-3 { grid-column-start: 4; }
  .offset-lg-4 { grid-column-start: 5; }
  .offset-lg-5 { grid-column-start: 6; }
  .offset-lg-6 { grid-column-start: 7; }
  .offset-lg-7 { grid-column-start: 8; }
  .offset-lg-8 { grid-column-start: 9; }
  .offset-lg-9 { grid-column-start: 10; }
  .offset-lg-10 { grid-column-start: 11; }
  .offset-lg-11 { grid-column-start: 12; }
}

/* --------------------------------------
   Testimonials Carousel (PATCHED VERSION)
   - 4 cards for width > 1400px
   - 3 cards for 1200px <= width <= 1400px
   - hidden for width < 1200px
   - arrows shown only when width > 1200px
   -------------------------------------- */

/* Base layout (desktop default: 4 cards) */
.testimonials-section {
  position: relative;
  padding: 0 clamp(2rem, 6vw, 6rem);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* Center the carousel */
}

.testimonials-section.hidden {
  display: none !important;
}

/* Option 1: reserve internal wrapper padding so arrows sit inside the wrapper and do not require negative offsets */
.testimonials-wrapper {
  position: relative;
  padding: 0 var(--carousel-arrow-space); /* reserve left/right space for arrows inside wrapper */
  width: 100%;
  overflow: hidden; /* hide any slight overflow, prevents horizontal scrollbars */
}

.testimonials-container {
  display: flex;
  gap: 1rem; /* Explicitly set to 16px for consistent spacing */
  transition: transform 0.4s ease-in-out;
  padding: 0;
  will-change: transform;
}

/* Default: 4 cards at >1400px */
.testimonial-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: calc(25% - 0.75rem);
  width: calc(25% - 0.75rem); /* Explicit width added for JS calculation */
  border: 1px solid #001a70;
  display: flex;
  flex-direction: column;
  height: auto;
  background: #ffffff;
}

.testimonial-card img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.testimonial-card .inner-card {
  padding: 1rem 2.5rem 1.5rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-card .inner-card h4 {
  color: #fe5716;
  font-size: 1.5rem;
  font-family: "EDF2020W01-Bold", sans-serif;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 1rem;
}

.testimonial-card .inner-card p {
  margin: 0;
  flex-grow: 1;
  color: #001a70;
  line-height: 1.6;
}

/* Arrows - hidden by default; shown only on screens > 1200px */
/* Arrows are placed inside the wrapper's reserved padding so no negative offsets are required */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 2px solid #001a70;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* made visible via media query for >1200px */
  align-items: center;
  justify-content: center;
  z-index: 100; /* Ensure arrows are always on top */
  transition: all 0.3s ease;
  margin-top: -24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.arrow-btn:hover {
  background: #fe5716;
  border-color: #fe5716;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.arrow-btn:hover svg {
  fill: #ffffff;
}

.arrow-left {
  /* place inside the reserved left padding */
  left: var(--carousel-arrow-inner-offset);
}

.arrow-right {
  /* place inside the reserved right padding */
  right: var(--carousel-arrow-inner-offset);
}

.arrow-btn svg {
  width: 24px;
  height: 24px;
  fill: #001a70;
  transition: fill 0.3s ease;
}

/* 3 cards layout for 1200px <= width <= 1400px */
@media (min-width: 1200px) and (max-width: 1400px) {
  .testimonial-card {
    flex: 0 0 calc(33.3333% - 0.6667rem);
    min-width: calc(33.3333% - 0.6667rem);
    width: calc(33.3333% - 0.6667rem); /* Explicit width for JS */
  }
  /* slightly adjust inner offset to keep arrows visually near edge on narrower desktops */
  .testimonials-wrapper { padding: 0 calc(var(--carousel-arrow-space) * 0.9); }
  .arrow-left { left: calc(var(--carousel-arrow-inner-offset) * 0.9); }
  .arrow-right { right: calc(var(--carousel-arrow-inner-offset) * 0.9); }
}

/* HIDE carousel for screens smaller than 1200px */
@media (max-width: 1199px) {
  .testimonials-section {
    display: none;
  }
  /* reduce reserved arrow space on small viewports in case CSS is reused elsewhere */
  .testimonials-wrapper { padding: 0 0; }
}

/* Show arrows only on screens strictly larger than 1200px */
@media (min-width: 1201px) {
  .arrow-btn {
    display: flex;
  }
}

/* Mobile fallback (not used when <1200 since the carousel is hidden) */
@media (max-width: 767px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 0.75rem);
    min-width: calc(100% - 0.75rem);
    width: calc(100% - 0.75rem);
  }
}

/* --------------------------------------
   Breakpoint: XL (1400px+)
   -------------------------------------- */
@media (min-width: 1400px) {
.career-cta {
    width: 45%;
}

  .col-xl-1 { grid-column: span 1; }
  .col-xl-2 { grid-column: span 2; }
  .col-xl-3 { grid-column: span 3; }
  .col-xl-4 { grid-column: span 4; }
  .col-xl-5 { grid-column: span 5; }
  .col-xl-6 { grid-column: span 6; }
  .col-xl-7 { grid-column: span 7; }
  .col-xl-8 { grid-column: span 8; }
  .col-xl-9 { grid-column: span 9; }
  .col-xl-10 { grid-column: span 10; }
  .col-xl-11 { grid-column: span 11; }
  .col-xl-12 { grid-column: span 12; }

  .offset-xl-0 { grid-column-start: auto; }
  .offset-xl-1 { grid-column-start: 2; }
  .offset-xl-2 { grid-column-start: 3; }
  .offset-xl-3 { grid-column-start: 4; }
  .offset-xl-4 { grid-column-start: 5; }
  .offset-xl-5 { grid-column-start: 6; }
  .offset-xl-6 { grid-column-start: 7; }
  .offset-xl-7 { grid-column-start: 8; }
  .offset-xl-8 { grid-column-start: 9; }
  .offset-xl-9 { grid-column-start: 10; }
  .offset-xl-10 { grid-column-start: 11; }
  .offset-xl-11 { grid-column-start: 12; }
}

/* --------------------------------------
   Card Carousel
   -------------------------------------- */
/* Note: .carousel-section uses large viewport-based height in original file.
   Keep but reduce impact on small screens to avoid extremely long mobile scrolling. */
.carousel-section {
  position: relative;
  height: 400vh;
  margin-bottom: -100px !important;
  padding-bottom: 0 !important;
}

@media (max-width: 1199px) {
  .carousel-section {
    height: auto;
    margin-bottom: 0 !important;
  }
}

.carousel-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.carousel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out, filter 0.1s ease-out;
  transform-origin: center center;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------
   Utility Classes
   -------------------------------------- */
.grid--full {
  width: 100%;
  margin-left: calc(var(--outer-padding) * -1);
  margin-right: calc(var(--outer-padding) * -1);
}

.align-center {
  align-self: center;
  justify-self: center;
}

.align-start {
  align-self: start;
  justify-self: start;
}

.align-end {
  align-self: end;
  justify-self: end;
}

/* --------------------------------------
   Contact Form
   -------------------------------------- */
.form-container {
  margin: 3rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-field {
  width: 100%;
  padding: 1rem;
  font-family: "EDF2020W01-Regular", sans-serif;
  font-size: 1rem;
  color: #001a70;
  border: 1px solid #001a70;
  border-radius: 0;
  background: #ffffff;
  transition: border-color 0.3s ease;
}

.form-field:focus {
  outline: none;
  border-color: #fe5716;
}

.form-field::placeholder {
  color: rgba(0, 26, 112, 0.25);
  opacity: 1;
}

textarea.form-field {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-family: "EDF2020W01-Bold", sans-serif;
  font-size: 1rem;
  color: #ffffff;
  background-color: #fe5716;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #001a70;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ----------------------------
   Small-screen adjustments
   ---------------------------- */
@media (max-width: 767px) {
  /* reduce large grid gutters on small screens */
  :root { --gutter: 1rem; --carousel-arrow-space: 48px; }


  /* ensure testimonial wrapper doesn't keep large reserved space when hidden (defensive) */
  .testimonials-wrapper { padding: 0 0; }

  /* increase touch targets where needed */
  .hamburger { width: 44px; height: 44px; }

  /* keep h1/h2 smaller on very small screens but keep h3 at least 1.5rem */
  h1 { font-size: clamp(2.5rem, 6.5vw, 3.5rem); }
  h2 { font-size: clamp(1.75rem, 4vw, 2rem); }
  h3 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); } /* ensure min 1.5rem on phones */
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  background: #001a70;
  color: #ffffff;
  padding: 1rem;
  text-decoration: none;
  z-index: 99999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}