/* ========================================
   RLM Redesign - Main Content Styles
   Reusable classes for the redesign

   Note: CSS variables are defined in variables.css
   ======================================== */

/* Prevent horizontal overflow from affecting page width */
body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* ========================================
   Bootstrap Container Override
   Match Figma design: 1088px content width
   ======================================== */
@media (min-width: 1400px) {
  .container:not(.extended-container) {
    max-width: 1088px !important;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  background: linear-gradient(270deg, var(--allied-blue) 0%, rgba(255, 255, 255, 0.00) 100%);
  pointer-events: none;
}

.hero-squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-square {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-overlay-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-heading {
  color: #FFF;
  text-shadow: 0 0 12.5px #000;
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  line-height: 95px;
  margin: 0;
}

.hero-heading strong {
  font-weight: 500;
}

/* ========================================
   Search Section
   ======================================== */

.search {
  position: relative;
  background-color: var(--allied-blue);
  overflow: hidden;
}

.search-background {
  position: absolute;
  bottom: -22px;
  right: -152px;
  pointer-events: none;
  z-index: 1;
  width: 1141px;
  height: 668px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.search-background-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.search-container {
  position: relative;
  z-index: 2;
  padding: 172px 20px;
}

.search-heading {
  color: #FFF;
  font-size: 48px;
  font-weight: 400;
  line-height: 66px;
  margin: 0 0 40px 0;
}

.search-brand-allied {
  font-weight: 400;
  font-style: normal;
  letter-spacing: -3.36px;
}

.search-brand-services {
  font-weight: 300;
  font-style: normal;
  letter-spacing: -3.36px;
}

.search-form {
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--allied-blue);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 31px 20px 31px 60px;
  border: none;
  border-radius: 6px;
  font-size: 22.7px;
  font-weight: 300;
  line-height: 28.8px;
  color: var(--allied-blue);
  outline: none;
}

.search-input::placeholder {
  color: var(--allied-blue);
  opacity: 0.7;
}

.search-button {
  background-color: var(--allied-green);
  color: #FFF;
  border: 1px solid #FFF;
  padding: 16px 32px;
  font-size: 24px;
  font-weight: 900;
  line-height: 18.2px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-button:hover {
  background-color: var(--allied-green-hover);
}

.search-help {
  color: #FFF;
  font-size: 19.2px;
  font-weight: 400;
  line-height: 26.25px;
  margin: 0;
  align-self: stretch;
}

.search-help strong {
  font-weight: 700;
}

.search-phone {
  color: #FFF;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.search-phone:hover {
  opacity: 0.8;
  color: #FFF;
}

/* ========================================
   Pathways Section
   ======================================== */

.pathways {
  background-color: #F5F5F5;
  padding: 80px 20px;
}

.pathways-heading {
  color: var(--allied-blue);
  font-size: 48px;
  font-weight: 400;
  line-height: 66px;
  text-align: center;
  margin: 0 0 30px 0;
}

.pathways-heading strong {
  font-weight: 900;
}

.pathways-heading-medium {
  font-weight: 500;
}

.pathways-intro {
  color: #002855;
  font-size: 19.2px;
  line-height: 26.25px;
  text-align: left;
  margin: 0 0 60px 0;
}

.pathways-intro strong {
  font-weight: 700;
}

.pathways-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pathways-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  background: linear-gradient(90deg, var(--allied-blue) 0%, var(--allied-green) 100%);
  color: #FFF;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.4;
}

.pathways-button:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #FFF;
}

.pathways-button-text {
  flex-grow: 1;
}

.pathways-button-text strong {
  font-weight: 700;
}

.pathways-button-arrow {
  flex-shrink: 0;
  margin-left: 20px;
  color: #FFF;
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
  position: relative;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  min-height: 682px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats::before {
  content: '';
  position: absolute;
  top: 39px;
  left: 37px;
  right: 37px;
  bottom: 39px;
  border: 1px solid white;
  z-index: 3;
  pointer-events: none;
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 40, 85, 0.36);
  z-index: 1;
}

.stats-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 50px 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-card {
  background-color: rgba(5, 93, 151, 0.75);
  padding: 0;
  text-align: center;
  color: #FFF;
  box-shadow: 8px 8px 23.7px 0px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  min-height: 336px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(5, 93, 151, 0.85);
}

.stat-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.stat-top {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.stat-value {
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 3px #FFF;
  text-stroke: 3px #FFF;
}

.stat-card:nth-child(2) .stat-value {
  font-size: 130px;
}

.stat-card:nth-child(3) .stat-value {
  font-size: 83px;
}

.stat-label {
  font-size: 32px;
  font-weight: 900;
  line-height: 34px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.stat-description {
  font-size: 12px;
  line-height: 19px;
  font-weight: 500;
  max-width: 300px;
  margin: 0 auto;
}

/* ========================================
   Reusable: Centered Logo Background
   ======================================== */

.centered-logo-background {
  position: relative;
}

.centered-logo-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/allied-logo-1.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
  position: relative;
  background-color: var(--allied-green);
  padding: 0 20px;
  overflow: hidden;
}

.testimonials .carousel {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.testimonials .carousel-inner {
  overflow: hidden;
}

/* Custom carousel slide animations - slides move completely offscreen */
.testimonials .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.testimonials .carousel-item-next,
.testimonials .carousel-item-prev {
  display: block;
}

.testimonials .carousel-item-next:not(.carousel-item-start),
.testimonials .carousel-item.active.carousel-item-end {
  transform: translateX(100%);
}

.testimonials .carousel-item-prev:not(.carousel-item-end),
.testimonials .carousel-item.active.carousel-item-start {
  transform: translateX(-100%);
}

.testimonials .carousel-item-next.carousel-item-start,
.testimonials .carousel-item-prev.carousel-item-end,
.testimonials .carousel-item.active {
  transform: translateX(0);
}

.testimonials-container {
  padding: 100px 20px 200px 20px;
  position: relative;
}

.testimonials-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.testimonials-photo {
  flex-shrink: 0;
  width: 415px;
  height: 415px;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: transparent;
  padding: 0;
  border: 0;
  box-shadow: 20px 21px 4px 0 rgba(0, 0, 0, 0.25);
  position: relative;
}

.testimonials-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(1, 103, 62, 0.60) 100%);
  pointer-events: none;
}

.testimonials-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-quote {
  flex-grow: 1;
  position: relative;
  color: #FFF;
}

.testimonials-quote-mark {
  font-size: 175px;
  line-height: 50px;
  font-weight: 500;
  color: #FFF;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -100px;
  font-family: 'Gotham', 'Montserrat', sans-serif;
  letter-spacing: -15px;
}

.testimonials-text {
  font-size: 38.628px;
  line-height: 40.237px;
  font-weight: 500;
  margin: 0 0 40px 0;
  position: relative;
  z-index: 2;
}

.testimonials-text em {
  font-style: italic;
  font-weight: 900;
}

.testimonials-text .testimonials-light {
  font-weight: 300;
}

.testimonials-text .testimonials-brand-name {
  font-size: 43.456px;
  letter-spacing: -2.4142px;
}

.testimonials-brand {
  font-style: italic;
  font-weight: 400;
}

.testimonials-button {
  display: inline-block;
  background-color: #FFF;
  color: rgba(5, 91, 151, 0.75);
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.testimonials-button:hover {
  background-color: var(--allied-blue);
  color: #FFF;
}

.testimonials-name {
  color: #FFF;
  font-family: 'Gotham', 'Montserrat', sans-serif;
  font-size: 177.639px;
  font-weight: 100;
  line-height: 185.041px;
  letter-spacing: -2px;
  position: absolute;
  bottom: -45px;
  left: 20px;
  margin: 0;
  white-space: nowrap;
}

.testimonials-name .descender-lift {
  display: inline-block;
  transform: translateY(-25px);
}

.testimonials-location {
  font-size: 24px;
  font-style: italic;
  color: #FFF;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Carousel controls */
.carousel-control-prev {
  display: none;
}

.testimonials .carousel-control-next {
  width: 134px;
  height: 134px;
  top: auto;
  bottom: 60px;
  right: 20px;
  opacity: 1;
  border: 3.526px solid #DEE2E6;
  border-radius: 0 21.158px 21.158px 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.carousel-control-prev-icon {
  display: none;
}

.carousel-control-next-icon {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

/* ========================================
   Services Section
   ======================================== */

.services {
  background-color: #FFF;
  padding: 80px 20px;
}

.services-heading {
  color: var(--allied-blue);
  font-size: 48px;
  font-weight: 300;
  line-height: 66px;
  text-align: center;
  margin: 0 0 50px 0;
}

.services-heading strong {
  font-weight: 500;
}

/* Services Carousel Container */
.services-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.services-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background-color: rgba(5, 93, 151, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #FFF;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
  background-color: rgba(0, 65, 118, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.carousel-nav-prev {
  left: 20px;
}

.carousel-nav-next {
  right: 20px;
}

.carousel-nav i {
  pointer-events: none;
}

/* Carousel 3D Items */
.carousel-3d-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 400px;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, opacity;
  cursor: pointer;
}

/* Service Card Styles */
.service-card {
  background-color: #CCC;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Center item gets hover effect */
.carousel-3d-item-center .service-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Side items get pointer cursor but less hover */
.carousel-3d-item-left .service-card:hover,
.carousel-3d-item-right .service-card:hover {
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.25);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 93, 151, 0.75);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.service-card:hover .service-card-overlay {
  background-color: rgba(5, 93, 151, 0.85);
}

.service-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.service-card-title {
  color: #FFF;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

/* ========================================
   News & Events Section
   ======================================== */

.news-events {
  background-color: var(--allied-blue);
  padding: 96px 20px;
}

.news-events-container {
  max-width: 1088px;
  padding: 0;
}

.news-events-heading {
  color: #FFF;
  font-size: 40px;
  font-weight: 900;
  line-height: 48.4px;
  margin: 0 0 30px 0;
}

.news-events-links {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.news-events-link {
  color: #FFF;
  font-size: 15.3px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid #FFF;
  padding-bottom: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.news-events-link:hover {
  opacity: 0.8;
  color: #FFF;
}

/* Carousel Wrapper */
.news-events-carousel-wrapper {
  position: relative;
}

/* Carousel Container (Scrollable) */
.news-events-carousel-container {
  display: flex;
  gap: 33.463px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.news-events-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Card sizing within carousel */
.news-events-carousel-container .news-events-card {
  flex: 0 0 246px; /* Fixed width from Figma */
  scroll-snap-align: start;
}

/* Navigation Arrows */
.news-events-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--allied-blue);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-events-carousel-arrow:hover {
  background-color: #FFF;
  transform: translateY(-50%) scale(1.1);
}

.news-events-carousel-arrow-prev {
  left: -70px;
}

.news-events-carousel-arrow-next {
  right: -70px;
}

/* Responsive: Adjust arrows on tablets */
@media (max-width: 991px) {
  .news-events-carousel-container .news-events-card {
    flex: 0 0 200px;
  }

  .news-events-carousel-arrow {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .news-events-carousel-arrow-prev {
    left: 10px;
  }

  .news-events-carousel-arrow-next {
    right: 10px;
  }
}

/* Responsive: 1 card on mobile */
@media (max-width: 767px) {
  .news-events-carousel-container .news-events-card {
    flex: 0 0 100%; /* 1 card visible */
    scroll-snap-align: center;
  }

  .news-events-carousel-container {
    gap: 20px;
    padding: 0 10px;
  }

  .news-events-carousel-arrow {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .news-events-carousel-arrow-prev {
    left: 15px;
  }

  .news-events-carousel-arrow-next {
    right: 15px;
  }
}

.news-events-card {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
  height: 331.187px;
}

.news-events-card:hover {
  transform: translateY(-5px);
}

/* Event Cards */
.news-events-card--event {
  padding: 31.48px 20px 30px 20px;
  display: flex;
  flex-direction: column;
}

.news-events-card--event-green {
  background-color: var(--allied-green);
}

.news-events-card--event-white {
  background-color: #FFF;
}

.news-events-card-date {
  font-size: 39.794px;
  font-weight: 900;
  line-height: 43.774px;
  letter-spacing: 1.8088px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.news-events-card--event-green .news-events-card-date {
  color: #FFF;
}

.news-events-card--event-white .news-events-card-date {
  color: var(--allied-blue);
}

.news-events-card--event .news-events-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.324px;
  margin: 0 0 20px 0;
  /* Fallback for older browsers */
  max-height: calc(10 * 25.324px);
  overflow: hidden;
  /* Modern browsers with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.news-events-card--event-green .news-events-card-title {
  color: #FFF;
}

.news-events-card--event-white .news-events-card-title {
  color: var(--allied-blue);
}

.news-events-card-description {
  font-size: 11.576px;
  line-height: 16.46px;
  letter-spacing: 1.8088px;
  margin: 0;
}

.news-events-card--event-green .news-events-card-description {
  color: #FFF;
  text-transform: uppercase;
}

.news-events-card--event-white .news-events-card-description {
  color: var(--allied-blue);
  text-transform: uppercase;
}

/* News Cards */
.news-events-card--news {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background-color: #FFF; /* White background layer */
}

/* Semi-transparent image layer */
.news-events-card--news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--news-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.59; /* 59% opacity like Figma */
  filter: saturate(0) brightness(1.2); /* Grayscale + brightened for better text contrast */
  z-index: 0;
}

.news-events-card--news .news-events-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Green overlay for news cards */
.news-events-card--news-green .news-events-card-overlay {
  background-color: rgba(1, 103, 62, 0.50);
}

/* Blue overlay for news cards */
.news-events-card--news-white .news-events-card-overlay {
  background-color: rgba(5, 93, 151, 0.20);
}

.news-events-card--news .news-events-card-content {
  position: relative;
  z-index: 2;
  padding: 28.94px;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1.5fr auto 1fr auto 0.3fr;
  align-items: start;
  flex-shrink: 0;
}

.news-events-card--news .news-events-card-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 25.324px;
  margin: 0;
  text-transform: uppercase;
  grid-row: 2;
  /* Fallback for older browsers */
  max-height: calc(10 * 25.324px);
  overflow: hidden;
  /* Modern browsers with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Title color for green overlay */
.news-events-card--news-green .news-events-card-title {
  color: #FFF;
}

/* Title color for white/blue overlay */
.news-events-card--news-white .news-events-card-title {
  color: var(--allied-blue);
}

/* News card date at bottom */
.news-events-card--news .news-events-card-date-bottom {
  color: #FFF;
  font-family: 'Gotham', sans-serif;
  font-size: 11.576px;
  font-weight: 900;
  line-height: 16.46px;
  letter-spacing: 1.8088px;
  text-transform: uppercase;
  margin: 0;
  grid-row: 4;
}

/* ========================================
   Why Choose Us Section
   ======================================== */

#why-choose-us {
  background-color: #FFF;
  padding: 150px 0;
  overflow: hidden;
}

#why-choose-us-wrapper {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

#why-choose-us-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  position: relative;
}

#why-choose-us-arrow {
  position: relative;
  background-color: var(--allied-green);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 80px 2px 40px;
  z-index: 1;
}

/* Extend green background to left edge of viewport */
#why-choose-us-arrow::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 100vw;
  background-color: var(--allied-green);
  z-index: -1;
}

/* Arrow triangle on the right */
#why-choose-us-arrow::after {
  content: '';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 50px solid var(--allied-green);
  border-top: 35px solid transparent;
  border-bottom: 35px solid transparent;
}

#why-choose-us-arrow-text {
  color: #FFF;
  font-size: 39.794px;
  font-weight: 900;
  line-height: 43.774px;
  white-space: nowrap;
}

#why-choose-us-heading {
  margin: 0;
  padding: 40px 0 40px 80px;
}

#why-choose-dynamic-text {
  color: var(--allied-blue);
  font-size: 48px;
  font-weight: 900;
  line-height: 43.774px;
}

/* Simple Vertical Slide Animation Styles */
#why-choose-text-wrapper {
  overflow: visible;
  position: relative;
  min-height: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

#why-choose-text-wrapper span {
  position: absolute;
  right: 0;
  top: 50%;
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.7s ease-out;
  will-change: transform, opacity;
  white-space: normal;
  max-width: 100%;
  direction: rtl;
  text-align: right;
}

#why-choose-text-wrapper span.why-choose-text-active {
  transform: translateY(-50%);
  opacity: 1;
}

/* Scrolling DOWN - next reason */
#why-choose-text-wrapper span.why-choose-text-leaving-up {
  transform: translateY(-500%);
  opacity: 0;
}

#why-choose-text-wrapper span.why-choose-text-entering-up {
  transform: translateY(500%);
  opacity: 0;
}

/* Scrolling UP - previous reason */
#why-choose-text-wrapper span.why-choose-text-leaving-down {
  transform: translateY(500%);
  opacity: 0;
}

#why-choose-text-wrapper span.why-choose-text-entering-down {
  transform: translateY(-500%);
  opacity: 0;
}

/* ========================================
   Contact Form Section
   ======================================== */

.contact-form {
  background-color: var(--allied-green);
  padding: 100px 20px;
}

.contact-form-container {
  margin: 0 auto;
}

.contact-form-heading {
  color: #FFF;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 50px 0;
}

.contact-form-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.contact-form-input,
.contact-form-select {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  background-color: #f3f3f3;
  color: rgba(0, 0, 0, 0.5);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 65px;
}

.contact-form-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.contact-form-input:focus,
.contact-form-select:focus {
  outline: 2px solid var(--allied-blue);
  outline-offset: 0;
}

.contact-form-select {
  background-color: #FFF;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23828282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
  cursor: pointer;
  text-transform: uppercase;
  color: #828282;
  font-size: 20px;
}

.contact-form-select option {
  color: #333;
  text-transform: none;
}

.contact-form-select:valid {
  color: #828282;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-full-width {
  grid-column: 1 / -1;
}

.contact-form-col-1 {
  grid-column: span 3;
}

.contact-form-col-2 {
  grid-column: span 6;
}

.contact-form-col-3 {
  grid-column: span 6;
}

.contact-form-col-2-3 {
  grid-column: span 9;
}

.contact-form-country-code {
  width: 100%;
  padding: 8px 45px 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  background-color: #FFF;
  color: #828282;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23828282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 65px;
}

.contact-form-country-code:focus {
  outline: 2px solid var(--allied-blue);
  outline-offset: 0;
}

.contact-form-submit {
  background-color: var(--allied-blue);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 0 24px;
  height: 114px;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.contact-form-submit:hover {
  background-color: var(--allied-blue-hover);
}

/* ========================================
   Call Now Section - COMMENTED OUT
   Section removed from homepage per meeting decision
   ======================================== */

/*
.call-now {
  background-color: var(--allied-blue);
  padding: 80px 20px;
}

.call-now-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: max-content;
  margin: 0 auto;
}

.call-now-heading {
  color: #FFF;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.call-now-select {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  background-color: #FFF;
  color: #666;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 45px;
  cursor: pointer;
}

.call-now-select:focus {
  outline: 2px solid #FFF;
  outline-offset: 2px;
}

.call-now-number {
  grid-column: 1 / -1;
  color: #FFF;
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.3s ease;
  text-align: center;
}

.call-now-number:hover {
  opacity: 0.9;
  color: #FFF;
}
*/

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1199px) {
  .stats-container {
    padding: 52px 48px;
  }

  .stats-grid {
    gap: 30px;
  }

  .stat-card {
    padding: 38px 22px;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stat-number {
    margin-bottom: 15px;
  }

  .stat-value {
    font-size: 100px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 88px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 62px;
  }

  .stat-top {
    font-size: 23px;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 22px;
    line-height: 27px;
    margin-bottom: 10px;
  }

  .stat-description {
    font-size: 13px;
    line-height: 17px;
  }
}

@media (max-width: 1229px) {
  .news-events {
    padding: 96px 80px;
  }
}

@media (max-width: 991px) {
  .hero-heading {
    font-size: 36px;
    line-height: 75px;
  }

  .search-heading {
    font-size: 36px;
  }

  .search-background {
    max-width: 40%;
  }

  .pathways-heading {
    font-size: 36px;
    line-height: 48px;
  }

  .pathways-button {
    font-size: 20px;
    padding: 25px 35px;
  }

  .stats {
    padding: 70px 20px;
    min-height: auto;
  }

  .stats-container {
    padding: 40px 35px;
  }

  .stats-grid {
    gap: 24px;
  }

  .stat-card {
    padding: 38px 20px;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stat-number {
    margin-bottom: 10px;
  }

  .stat-value {
    font-size: 65px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 58px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 44px;
  }

  .stat-top {
    font-size: 17px;
    margin-bottom: 3px;
  }

  .stat-label {
    font-size: 17px;
    line-height: 21px;
    margin-bottom: 8px;
  }

  .stat-description {
    font-size: 10px;
    line-height: 14px;
  }

  .services-heading {
    margin: 0;
  }

  .services-carousel-wrapper {
    padding: 50px 60px;
  }

  .services-carousel {
    height: 350px;
  }

  .carousel-3d-item {
    width: 300px;
    height: 300px;
  }

  .carousel-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .carousel-nav-prev {
    left: 10px;
  }

  .carousel-nav-next {
    right: 10px;
  }

  .service-card-title {
    font-size: 22px;
  }

  .news-events-card-date {
    font-size: 36px;
  }

  .news-events-card--event .news-events-card-title,
  .news-events-card--news .news-events-card-title {
    font-size: 18px;
    line-height: 24px;
  }

  .news-events-card-description {
    font-size: 11px;
    line-height: 15px;
  }

  /* Testimonials: Keep horizontal layout at tablet size for better visual balance */
  .testimonials-container {
    padding: 70px 20px 140px 20px;
  }

  .testimonials-content {
    flex-direction: row;
    align-items: center;
    gap: 35px;
    margin-bottom: 30px;
  }

  .testimonials-photo {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
  }

  .testimonials-quote {
    flex-grow: 1;
    padding: 0 15px 0 0;
  }

  .testimonials-quote-mark {
    font-size: 90px;
    top: -30px;
    left: -50px;
    letter-spacing: -10px;
    transform: none;
  }

  .testimonials-text {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 25px;
  }

  .testimonials-text .testimonials-brand-name {
    font-size: 26px;
    letter-spacing: -1.5px;
  }

  .testimonials-location {
    font-size: 14px;
  }

  .testimonials-button {
    font-size: 16px;
    padding: 14px 35px;
  }

  .testimonials-name {
    font-size: 110px;
    line-height: 115px;
    bottom: -28px;
    left: 20px;
  }

  .testimonials .carousel-control-next {
    width: 90px;
    height: 90px;
    bottom: 40px;
    right: 25px;
  }

  .carousel-control-next-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 900px) {
  .stats-container {
    padding: 35px 32px;
  }

  .stat-card {
    padding: 32px 20px;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stat-number {
    margin-bottom: 10px;
  }

  .stat-value {
    font-size: 62px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 56px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 42px;
  }

  .stat-top {
    font-size: 17px;
    margin-bottom: 3px;
  }

  .stat-label {
    font-size: 17px;
    line-height: 21px;
    margin-bottom: 7px;
  }

  .stat-description {
    font-size: 10px;
    line-height: 14px;
  }

  .testimonials-content {
    gap: 40px;
  }

  .testimonials-photo {
    width: 380px;
  }

  .testimonials-quote-mark {
    font-size: 100px;
    top: -20px;
    left: -55px;
    transform: none;
  }

  .testimonials-text {
    font-size: 28px;
  }

  .testimonials-location {
    font-size: 18px;
  }

  .testimonials-name {
    font-size: 100px;
    bottom: -31px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 70px;
    height: 70px;
  }

  .carousel-control-prev {
    left: 20px;
  }

  .carousel-control-next {
    right: 20px;
  }

  .services {
    padding: 80px 20px;
  }

  .services-heading {
    font-size: 36px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .service-card-title {
    font-size: 24px;
  }

  .news-events {
    padding: 80px 20px;
  }

  .news-events-heading {
    font-size: 36px;
  }

  .news-events-carousel-container .news-events-card {
    flex: 0 0 246px;
  }

  .news-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .news-events-card {
    min-height: 350px;
  }

  .news-events-card-date {
    font-size: 60px;
  }

  .news-events-card--event .news-events-card-title,
  .news-events-card--news .news-events-card-title {
    font-size: 22px;
  }

  #why-choose-us {
    padding: 80px 20px;
  }

  #why-choose-us-container {
    gap: 30px;
  }

  #why-choose-us-arrow-text {
    font-size: 28px;
  }

  #why-choose-us-heading {
    padding: 40px 0 40px 20px;
  }

  #why-choose-dynamic-text {
    font-size: 34px;
  }

  .contact-form {
    padding: 80px 20px;
  }

  .contact-form-heading {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .call-now-heading {
    font-size: 36px;
  }

  .call-now-number {
    font-size: 96px;
  }
}

@media (max-width: 767px) {
  .hero-heading {
    font-size: 28px;
    line-height: 55px;
  }

  .search {
    padding: 60px 20px;
  }

  .search-container {
    padding: 60px 20px;
  }

  .search-heading {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 30px;
  }

  .search-brand-allied,
  .search-brand-services {
    letter-spacing: -1.5px;
  }

  .search-form {
    flex-direction: column;
    gap: 20px;
  }

  .search-input {
    padding: 20px 20px 20px 55px;
    font-size: 18px;
    min-height: 58px;
  }

  .search-button {
    padding: 20px 40px;
    font-size: 20px;
    min-height: 58px;
  }

  .search-help {
    font-size: 17px;
    line-height: 24px;
  }

  .search-background {
    max-width: 50%;
    opacity: 0.3;
  }

  .pathways {
    padding: 60px 20px;
  }

  .pathways-heading {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 25px;
  }

  .pathways-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .pathways-button {
    font-size: 18px;
    padding: 20px 30px;
  }

  .stats {
    padding: 50px 37px;
    min-height: auto;
  }

  .stats-container {
    margin: 0 !important;
    max-width: none !important;
    padding: 30px 12px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-card {
    padding: 35px 20px;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stat-number {
    margin-bottom: 12px;
  }

  .stat-value {
    font-size: 72px;
    -webkit-text-stroke: 2.5px #FFF;
    text-stroke: 2.5px #FFF;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 64px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 50px;
  }

  .stat-top {
    font-size: 19px;
    margin-bottom: 3px;
  }

  .stat-label {
    font-size: 19px;
    line-height: 24px;
    margin-bottom: 8px;
  }

  .stat-description {
    font-size: 11px;
    line-height: 15px;
  }

  .testimonials-container {
    padding: 80px 20px 130px 20px;
    min-height: 450px;
  }

  .testimonials-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .testimonials-photo {
    display: block;
    order: 2;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
  }

  .testimonials-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonials-quote {
    order: 1;
    padding: 0 30px;
    max-width: 700px;
  }

  .testimonials-quote-mark {
    font-size: 100px;
    top: -30px;
    left: 0;
    transform: none;
  }

  .testimonials-text {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 35px;
  }

  .testimonials-location {
    font-size: 16px;
  }

  .testimonials-button {
    font-size: 18px;
    padding: 16px 45px;
  }

  .testimonials-name {
    font-size: 90px;
    line-height: 95px;
    bottom: -23px;
    left: 45%;
    transform: translateX(-50%);
  }

  .testimonials-name .descender-lift {
    transform: translateY(-18px);
  }

  #why-choose-us-arrow {
    padding: 2px 40px 2px 40px;
  }
}

@media (max-width: 687px) {
  .stat-value {
    font-size: 65px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 58px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 46px;
  }

  .stat-top {
    font-size: 18px;
  }

  .stat-label {
    font-size: 18px;
    line-height: 23px;
  }

  .stat-description {
    font-size: 10.5px;
    line-height: 14px;
  }

  #why-choose-us-arrow {
    padding: 2px 30px 2px 30px;
  }

  #why-choose-us-arrow-text {
    font-size: 24px;
  }

  #why-choose-dynamic-text {
    font-size: 28px;
  }
}

@media (max-width: 660px) {
  .stats {
    padding: 50px 12px;
  }

  .stats::before {
    top: 50px;
    left: 12px;
    right: 12px;
    bottom: 50px;
  }

  .stat-value {
    font-size: 60px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 54px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 42px;
  }

  .stat-top {
    font-size: 17px;
  }

  .stat-label {
    font-size: 17px;
    line-height: 22px;
  }

  .stat-description {
    font-size: 10px;
    line-height: 13px;
  }
}

@media (max-width: 575px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 380px;
    margin: 0 auto;
  }

  .stat-card {
    padding: 45px 30px;
  }

  .stat-number {
    margin-bottom: 18px;
  }

  .stat-value {
    font-size: 100px;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 88px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 68px;
  }

  .stat-top {
    font-size: 26px;
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 12px;
  }

  .stat-description {
    font-size: 14px;
    line-height: 19px;
  }

  .services-carousel-wrapper {
    padding: 40px 40px;
  }

  .services-carousel {
    height: 280px;
  }

  .carousel-3d-item {
    width: 240px;
    height: 240px;
  }

  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .service-card-title {
    font-size: 18px;
  }

  .testimonials-container {
    padding: 60px 20px 110px 20px;
    min-height: 670px;
  }

  .testimonials-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 30px;
  }

  .testimonials-photo {
    display: block;
    order: 2;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
  }

  .testimonials-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonials-quote {
    order: 1;
    padding: 0 15px;
    max-width: 600px;
  }

  .testimonials-quote-mark {
    display: none;
  }

  .testimonials-text {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 25px;
  }

  .testimonials-text .testimonials-brand-name {
    letter-spacing: -1.2px;
  }

  .testimonials-location {
    font-size: 15px;
  }

  .testimonials-button {
    font-size: 16px;
    padding: 14px 35px;
  }

  .testimonials-name {
    font-size: 70px;
    line-height: 75px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .testimonials-name .descender-lift {
    transform: translateY(-15px);
  }

  .testimonials .carousel-control-next {
    width: 70px;
    height: 70px;
    bottom: 35px;
    right: 25px;
  }

  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
  }

  .services {
    padding: 60px 20px;
  }

  .services-heading {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card-title {
    font-size: 22px;
  }

  .news-events {
    padding: 60px 20px;
  }

  .news-events-heading {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .news-events-links {
    gap: 30px;
    margin-bottom: 40px;
  }

  .news-events-link {
    font-size: 16px;
  }

  .news-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-events-card {
    min-height: 320px;
  }

  .news-events-card--event {
    padding: 30px 25px;
  }

  .news-events-card-date {
    font-size: 56px;
  }

  .news-events-card--event .news-events-card-title,
  .news-events-card--news .news-events-card-title {
    font-size: 20px;
  }

  .news-events-card-description {
    font-size: 14px;
  }

  #why-choose-us {
    padding: 60px 20px;
  }

  #why-choose-us-wrapper {
    padding: 0;
  }

  #why-choose-us-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
  }

  #why-choose-us-arrow {
    padding: 20px 30px 20px 30px;
    display: flex;
    justify-content: center;
  }

  #why-choose-us-arrow::before {
    display: none;
  }

  #why-choose-us-arrow::after {
    display: none;
  }

  #why-choose-us-arrow-text {
    font-size: 42px;
  }

  #why-choose-us-heading {
    padding: 40px 0;
  }

  #why-choose-text-wrapper {
    justify-content: center;
    text-align: center;
  }

  #why-choose-text-wrapper span {
    left: 0;
    right: 0;
    direction: ltr;
    text-align: center;
  }

  #why-choose-dynamic-text {
    font-size: 42px;
  }

  .contact-form {
    padding: 60px 20px;
  }

  .contact-form-heading {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 35px;
  }

  .contact-form-form {
    gap: 20px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form-input,
  .contact-form-select {
    min-height: 58px;
    padding: 16px 18px;
    font-size: 18px;
  }

  .contact-form-phone-row {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .contact-form-country-code {
    min-width: 90px;
    min-height: 58px;
    font-size: 18px;
  }

  .contact-form-submit {
    height: 70px;
    font-size: 22px;
    margin-top: 15px;
  }

  /* Call-now responsive styles commented out
  .call-now {
    padding: 60px 20px;
  }

  .call-now-header {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 35px;
  }

  .call-now-heading {
    font-size: 28px;
    text-align: center;
  }

  .call-now-number {
    font-size: 72px;
  }
  */
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 24px;
    line-height: 45px;
  }

  .search {
    padding: 40px 15px;
  }

  .search-container {
    padding: 50px 15px;
  }

  .search-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .search-brand-allied,
  .search-brand-services {
    letter-spacing: -0.8px;
  }

  .search-form {
    gap: 18px;
  }

  .search-input {
    font-size: 16px;
    padding: 18px 18px 18px 50px;
    min-height: 54px;
  }

  .search-icon {
    left: 18px;
  }

  .search-button {
    font-size: 18px;
    padding: 18px 30px;
    min-height: 54px;
  }

  .search-help {
    font-size: 15px;
    line-height: 22px;
  }

  .pathways {
    padding: 40px 15px;
  }

  .pathways-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .pathways-intro {
    font-size: 14px;
  }

  .pathways-button {
    font-size: 16px;
    padding: 18px 25px;
  }

  .stats {
    padding: 40px 15px;
    min-height: auto;
  }

  .stats-container {
    padding: 25px 23px;
  }

  .stats-grid {
    gap: 22px;
    max-width: 420px;
    margin: 0 auto;
  }

  .stat-card {
    padding: 35px 25px;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .stat-number {
    margin-bottom: 14px;
  }

  .stat-value {
    font-size: 80px;
    -webkit-text-stroke: 2px #FFF;
    text-stroke: 2px #FFF;
  }

  .stat-card:nth-child(2) .stat-value {
    font-size: 72px;
  }

  .stat-card:nth-child(3) .stat-value {
    font-size: 58px;
  }

  .stat-top {
    font-size: 21px;
    margin-bottom: 4px;
    letter-spacing: 1.3px;
  }

  .stat-label {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 10px;
  }

  .stat-description {
    font-size: 12.5px;
    line-height: 17px;
  }

  .testimonials-container {
    padding: 60px 15px 110px 15px;
    min-height: 360px;
  }

  .testimonials-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 40px;
  }

  .testimonials-photo {
    display: block;
    order: 2;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
  }

  .testimonials-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonials-quote {
    order: 1;
    padding: 0 15px;
    max-width: 550px;
  }

  .testimonials-quote-mark {
    display: none;
  }

  .testimonials-text {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 15px;
  }

  .testimonials-text .testimonials-brand-name {
    letter-spacing: -1.2px;
  }

  .testimonials-location {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .testimonials-button {
    font-size: 16px;
    padding: 14px 35px;
  }

  .testimonials-name {
    font-size: 70px;
    line-height: 75px;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-text-stroke: 1.5px #FFF;
  }

  .testimonials-name .descender-lift {
    transform: translateY(-8px);
  }

  .testimonials .carousel-control-next {
    width: 70px;
    height: 70px;
    bottom: 68px;
    right: 20px;
    border-width: 2.5px;
  }

  .carousel-control-next-icon {
    width: 36px;
    height: 36px;
  }

  .services {
    padding: 40px 15px;
  }

  .services-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card-title {
    font-size: 20px;
  }

  .news-events {
    padding: 40px 15px;
  }

  .news-events-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .news-events-links {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .news-events-link {
    font-size: 14px;
    display: inline-block;
  }

  .news-events-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-events-card {
    min-height: 300px;
  }

  .news-events-card--event {
    padding: 25px 20px;
  }

  .news-events-card-date {
    font-size: 48px;
  }

  .news-events-card--event .news-events-card-title,
  .news-events-card--news .news-events-card-title {
    font-size: 18px;
  }

  .news-events-card-description {
    font-size: 13px;
  }

  .news-events-card--news .news-events-card-content {
    padding: 25px 20px;
  }

  .news-events-card-date-bottom {
    font-size: 12px;
  }

  #why-choose-us {
    padding: 40px 15px;
  }

  #why-choose-us-container {
    gap: 20px;
  }

  #why-choose-us-arrow {
    padding: 15px 30px;
  }

  #why-choose-us-arrow-text {
    font-size: 20px;
  }

  #why-choose-dynamic-text {
    font-size: 32px;
  }

  .contact-form {
    padding: 40px 15px;
  }

  .contact-form-heading {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 30px;
  }

  .contact-form-form {
    gap: 18px;
  }

  .contact-form-row {
    gap: 18px;
  }

  .contact-form-input,
  .contact-form-select {
    padding: 16px;
    font-size: 16px;
    min-height: 54px;
  }

  .contact-form-phone-row {
    gap: 10px;
  }

  .contact-form-country-code {
    min-width: 85px;
    padding: 16px 8px;
    font-size: 16px;
    min-height: 54px;
  }


  .call-now {
    padding: 40px 15px;
  }

  .call-now-header {
    gap: 20px;
    margin-bottom: 30px;
  }

  .call-now-heading {
    font-size: 24px;
  }

  .call-now-select {
    font-size: 14px;
    padding: 16px 18px;
  }

  .call-now-number {
    font-size: 48px;
  }
}

@media (max-width: 364px) {
  .testimonials-container {
    min-height: 750px;
  }

  .testimonials-name {
    font-size: 50px;
    bottom: -23px;
  }

  .testimonials-name .descender-lift {
    transform: translateY(-6px);
  }

  .testimonials .carousel-control-next {
    bottom: 60px;
  }
}
