.services-header {
  display: flex;
  justify-content: flex-start;
  font-family: 'Arial Black', sans-serif;
  background: white;
  padding: 20px 0;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  /* Enables wrap on smaller screens */
}

.circle-arrow {
  background: #F47E25;
  color: #000;
  font-size: 36px;
  font-weight: 900;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.our-text {
  color: #046EBA;
  font-size: 48px;
  font-weight: 900;
}

.break-text {
  color: #F47E25;
  font-size: 48px;
  font-weight: 900;
}

.services-text {
  color: transparent;
  font-size: 48px;
  font-weight: 900;
  -webkit-text-stroke: 2px #333333;
  text-stroke: 2px #333333;
}

/* 🔽 Responsive breakpoint for mobile */
@media (max-width: 600px) {

  .our-text,
  .services-text {
    font-size: 36px;
  }

  .circle-arrow {
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 44px;
  }
}

/* Container to link image + text */
.service-box {
  position: relative;
}

/* Dim image by default */
.service-box img {
  transition: filter 0.3s ease;
  filter: brightness(60%);
}

/* Brighten on hover over the image or the link */
.service-box:hover img,
.service-box:hover a {
  filter: brightness(100%);
}

/* Change link color on hover */
.service-box a:hover {
  color: #046EBA;
}

/* Control parallax height */
.custom-parallax-section .parallax-container {
  height: 350px;
  /* Adjust for desired height */
  display: flex;
  align-items: center;
}

.custom-parallax-section .parallax-content {
  padding: 40px 0;
}

/* Icon Styling */
.icon-blue-bg {
  background-color: #046EBA;
  /* Matches your preferred blue */
  color: white;
  font-size: 32px;
  padding: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 15px;
}

/* Title & Text */
.custom-parallax-section h2 {
  color: white;
}

.custom-parallax-section p {
  font-size: 0.95rem;
  color: #f0f0f0;
}

.custom-parallax-section .divider {
  width: 60px;
  margin: 15px auto;
  height: 3px;
  background-color: #046EBA;
}

/* Ensure the parallax content is centered */
.custom-parallax-section .parallax-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 400px;
}

/* Optional: Container padding if needed */
.custom-parallax-section .parallax-content {
  width: 100%;
  padding: 40px 20px;
}

/* Ensure icons and text in each column are centered */
.custom-parallax-section .col-md-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Reduce height and center content */
.join-team-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 800px;
  /* Adjust as needed */
}

.join-team-section .content {
  width: 100%;
  padding: 40px 20px;
}

/* Hide the button initially */
.indeed-button-wrapper {
  position: relative;
  height: 60px;
  /* Reserve space so layout doesn't shift */
}

.indeed-button {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.3s ease;
  background-color: #046EBA;
  border-radius: 30px;
  padding: 12px 30px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: none;
}

/* Reveal the button on hover of the wrapper or nearby text */
.indeed-button-wrapper:hover .indeed-button,
.join-team-section:hover .indeed-button {
  opacity: 1;
  transform: scale(1);
}

.indeed-button {
  color: white;
  text-decoration: none;
}

.indeed-button:hover {
  color: white;
  /* Force white text */
  background-color: #F47E25;
  /* Retain the orange background */
}

/* Ensure white text for headings and paragraphs in parallax sections */
.parallax-section h1,
.parallax-section h2,
.parallax-section h5,
.parallax-section p {
  color: white !important;
}

.slider-caption-block h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.slider-caption-block p {
  font-size: 1.125rem;
  color: #ccc;
}

.contact-info-section {
  background-color: #ffffff;
  padding: 50px 20px;
}

.contact-info-row {
  margin-top: 30px;
}

.contact-info-item {
  margin-bottom: 30px;
}

.icon-orange-bg {
  background-color: #F47E25;
  color: white;
  font-size: 32px;
  padding: 18px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 15px;
}

.contact-info-item h5 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #222;
}

.contact-info-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-item a {
  color: #046EBA;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Optional: Let icons and text resize better on mobile */
.icon-blue-bg {
  font-size: 28px;
  padding: 16px;
}

.parallax-section h5 {
  font-size: 1.1rem;
}

.parallax-section p {
  font-size: 0.95rem;
}

/* 🔒 Reset stacking and visibility */
.parallax-section {
  position: relative;
  z-index: 1;
  min-height: 600px;
  color: #fff;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* Ensure inner content is centered vertically */
.parallax-section .parallax-inner {
  width: 100%;
  padding: 80px 20px;
  /* Add vertical breathing room */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 2;
  position: relative;
}

.other-section {
  position: relative;
  z-index: 2;
}

.parallax-section .content,
.parallax-section .container,
.parallax-section .row {
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
}

.join-team-section {
  z-index: 1 !important;
  overflow: visible !important;
  position: relative !important;
}

/* Responsive fallback for mobile where fixed attachment breaks */
@media (max-width: 767px) {
  .parallax-section {
    background-attachment: scroll !important;
    min-height: auto;
  }

  .parallax-section .parallax-inner {
    padding: 60px 20px;
  }
}

.join-team-limited {
  height: 350px;
  background-size: cover;
  /* show full image */
  background-repeat: no-repeat;
  /* prevent tiling */
  background-position: center center;
  background-color: #fff;
  /* fallback if image doesn't cover full width */
  position: relative;
  overflow: visible;
  z-index: 1;
}

.social-media-wrapper {
  margin-top: 18px;
  /* Adjust this value as needed */
}

.slider-shape-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(to top, white 0%, transparent 100%);
  z-index: 5;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  font-size: 16px;
  justify-content: center;
  text-align: center;
  font-weight: bold;
}

.breadcrumb-item a {
  color: #333333;
  /* dark grey for "Home" */
  text-decoration: none;
}

.breadcrumb-separator {
  color: #F47E25;
  /* orange divider */
  margin: 0 8px;
}

.breadcrumb-item.current {
  color: #FFFFFF;
  /* white for current page */
}

.info-tabs-section {
  padding: 40px 20px;
  background: #fff;
  font-family: sans-serif;
}

.tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  color: #ccc;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.tab:hover {
  color: #F47E25;
}

.tab.active {
  color: #F47E25;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 100%;
  background: #F47E25;
}

.tab-content {
  max-width: 800px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  text-align: left;
  color: #333;
}

.tab-pane.active {
  display: block;
}

ul.custom-bullets {
  list-style-type: disc;
  margin-left: 1.5em;
  padding-left: 1em;
}

ul.custom-bullets li {
  display: list-item;
  margin-bottom: 0.5em;
}

ul.custom-bullets li::marker {
  color: #F47E25;
}

.header-h10 {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
}

.header-h10 .period {
  color: #F47E25;
}

section#pagetop.parallax-section {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  height: 350px !important;
}

@media (max-width: 1200px) {
  #pagetop.parallax-section {
    aspect-ratio: 1920 / 400;
    max-height: 300px;
  }
}

@media (max-width: 992px) {
  #pagetop.parallax-section {
    aspect-ratio: 1920 / 500;
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  #pagetop.parallax-section {
    aspect-ratio: 1920 / 600;
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  #pagetop.parallax-section {
    aspect-ratio: 1920 / 700;
    max-height: 125px;
  }
}

.hero-image-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  /* Show entire image */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.counter-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.counter-box {
  flex: 1;
  min-width: 200px;
}

.counter {
  font-size: 48px;
  font-weight: bold;
  color: #F47E25;
}

.counter-label {
  color: #046EBA;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: bold;
  /* Add this line */
}

.divider {
  width: 1px;
  height: 80px;
  background-color: grey;
}

/* --- Application Form Custom Styles --- */
.application-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
}

.application-form-wrapper h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.application-form-wrapper .form-group {
  margin-bottom: 20px;
}

.application-form-wrapper label {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #000;
}

.application-form-wrapper label .required-star {
  color: #F47E25;
  font-weight: bold;
}

.application-form-wrapper input[type="text"],
.application-form-wrapper input[type="email"],
.application-form-wrapper input[type="tel"],
.application-form-wrapper select,
.application-form-wrapper textarea,
.application-form-wrapper input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #888;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  margin-top: 5px;
}

.application-form-wrapper input[type="file"] {
  padding: 4px;
}

.application-form-wrapper .btn-submit,
.application-form-wrapper input[type="submit"],
.application-form-wrapper button[type="submit"] {
  background-color: #046EBA;
  color: #ffffff;
  /* white text */
  border: 1px solid #000000;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.application-form-wrapper .btn-submit:hover {
  background-color: #F47E25;
  /* orange hover */
  color: #ffffff;
}

/* Smaller font and spacing for checkboxes */
.application-form-wrapper input[type="checkbox"] {
  margin-right: 5px;
}

.application-form-wrapper .error {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}

.form-success-msg {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #28a745;
  background-color: #d4edda;
  color: #155724;
  border-radius: 4px;
  font-size: 1rem;
}

.form-error-msg {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #dc3545;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  font-size: 1rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.modal-box h4 {
  color: #046EBA;
  margin-bottom: 15px;
}

.modal-close {
  margin-top: 15px;
  background-color: #046EBA;
  color: white;
  border: 1px solid #000;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

/* Spinner */
#submitSpinner {
  display: none;
  margin-left: 10px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #046EBA;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Make section titles (Reference #1, #2) larger and bold */
/* Reference section title */
.section-label {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #000;
}

.app-sub-label {
  display: block;
  font-size: 0.95em !important;
  font-weight: normal;
  color: #333 !important;
  margin-bottom: 4px;
  /* 🟠 Removed margin-left */
}

/* 👇 Remove indent so inputs align with rest of form */
.app-sub-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* 🟠 Removed margin-left */
}

.indeed-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 10px 0;
}

.indeed-link {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1em;
  color: #046EBA;
  text-decoration: none;
  border: 1px solid #046EBA;
  border-radius: 4px;
  padding: 6px 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.indeed-link:hover {
  background-color: #F47E25;
  color: white;
  border-color: #F47E25;
}

.indeed-links-header {
  font-family: Arial, sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* === CLEAN SLIDER STYLES === */
.slider-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.swiper-container {
  position: relative;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: auto !important;
}

.swiper-wrapper {
  width: 100%;
}

.swiper-slide {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

/* Captions below image */
.slider-caption-block {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  color: #000;
  position: relative;
  z-index: 2;
}

.slider-caption-block h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.slider-caption-block p {
  font-size: 1rem;
  color: #444;
}

/* === MOBILE & TABLET RESPONSIVE === */
@media (max-width: 1024px) {
  .slider-section {
    height: auto;
    min-height: 60vh;
  }

  .slider-caption-block {
    position: static;
    transform: none;
    padding: 1.5rem 1rem 2rem;
    text-align: center;
  }

  #sliderTitle {
    font-size: 1.6rem;
  }

  #sliderSubtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .slider-caption-block h2 {
    font-size: 1.4rem;
  }

  .slider-caption-block p {
    font-size: 0.95rem;
  }
}

@media (orientation: landscape) and (max-width: 991px) {
  .slider-section {
    height: auto;
  }
}

/* --- Hero-only portrait: show full image, no vertical crop, white letterbox --- */
/* Desktop default: no change to the index look */
#heroSlider {
  --hero-ar: 16/9;
}

/* used only in portrait below */

/* Portrait: match mobile asset ratio and fill width */
@media (max-width: 991px) and (orientation: portrait) {

  /* stop any theme heights */
  #heroSlider,
  #heroSlider .swiper-wrapper {
    height: auto !important;
  }

  #heroSlider .swiper-slide {
    /* compute height from aspect ratio (matches mobile art) */
    height: auto !important;
    aspect-ratio: var(--hero-ar, 9/16);

    /* fill side-to-side without squish */
    background-size: cover !important;
    background-position: center top !important;
    /* adjust if needed */
    background-repeat: no-repeat !important;
    background-color: #fff !important;
  }

  /* use 9:16 for portrait */
  #heroSlider {
    --hero-ar: 9/16;
  }
}

@media (min-width: 1200px) {
  #heroSlider+.slider-caption-block {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }
}

#heroSlider .swiper-pagination {
  position: absolute;
  bottom: 15px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  text-align: center !important;
  z-index: 10;
}

#heroSlider .swiper-pagination-bullet {
  background: #cccccc !important;
  border-color: #cccccc !important;
  opacity: 1 !important;
}

#heroSlider .swiper-pagination-bullet-active {
  background: #046EBA !important;
  border-color: #046EBA !important;
}

@media (max-width: 991px) and (orientation: landscape) {
  #heroSlider .swiper-slide {
    background-position: center center;
    background-size: cover;
  }
}

/* Ensure overlay cannot cover the caption */
#heroSlider .slider-shape-overlay {
  position: relative;
  z-index: 1;
}

/* Caption must sit above everything and be readable */
.slider-caption-block {
  position: relative;
  z-index: 5;
}

#sliderTitle,
#sliderSubtitle {
  color: #222 !important;
  /* visible on white */
  line-height: 1.25;
}

/* give the block some height even if fonts get zeroed by global rules */
.slider-caption-block .container {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

/* Caption sits below the slider, outside overflow areas */
#heroCaption.slider-caption-block {
  position: relative;
  z-index: 5;
  color: #222 !important;
  padding: 0.75rem 0 1rem;
  background: transparent;
}

/* Keep overlay (inside slider) below slides, and it cannot cover the external caption anyway */
#heroSlider .slider-shape-overlay {
  position: relative;
  z-index: 1;
}

/* --- HERO CAPTION TYPOGRAPHY --- */
#heroCaption #sliderTitle,
#heroCaption #sliderSubtitle {
  /* same size for both */
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  line-height: 1.25;
  margin: 0.25rem 0;
  text-transform: none !important;
  /* kill any global uppercase */
}

#heroCaption #sliderTitle {
  color: #046EBA !important;
  /* H2Oil Blue */
  font-weight: 800 !important;
  /* bold */
  letter-spacing: 0.2px;
}

#heroCaption #sliderSubtitle {
  color: #333 !important;
  /* dark grey */
  font-weight: 400 !important;
  /* not bold */
}

/* If theme class tweaks subtitle size (subtitle-variant-1), force inherit */
#heroCaption #sliderSubtitle.subtitle-variant-1 {
  font-size: inherit !important;
}

/* === Services hero (static image) === */
.hero-image-wrap {
  position: relative;
  overflow: hidden;
  background: #fff;
  /* avoids black gutters on portrait/letterbox */
  line-height: 0;
  /* removes stray inline gaps from <img> */
}

/* Force proportional scaling, remove any height caps */
.hero-image {
  display: block;
  width: 100%;
  height: 85vh;
  object-fit: cover;
}

/* Base desktop/landscape (unchanged feel) */
.service-hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 36.25vw, 820px);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #fff;
  overflow: hidden;

  /* new: use a CSS variable to drive exact aspect ratio when needed */
  --hero-ar: 16/9;
  /* default */
  aspect-ratio: var(--hero-ar);
  /* lets us match the image aspect precisely */
}

/* Portrait: let aspect-ratio define height so we don't crop 9:16 art */
@media (max-width: 991px) and (orientation: portrait) {
  .service-hero {
    min-height: 0;
    /* remove vh forcing */
    height: auto;
    /* let aspect-ratio compute actual height */
    background-size: cover;
    /* fills width; with matching AR there's no crop */
    background-position: center top;
  }
}


/* Tablet portrait can afford a little more height for nicer composition */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .service-hero {
    min-height: 78vh;
  }
}

@media (max-width: 420px) and (orientation: portrait) {
  .service-hero {
    min-height: 80vh;
  }

  /* gives cover more vertical room to avoid harsh crop */
}

/* === Our Services grid: 1 / 2 / 3 columns === */
.services-summary .services-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start;
  row-gap: 40px;
  column-gap: 30px;
}

/* force override of Bootstrap's column widths */
.services-summary .services-grid>[class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* tablets: 2 per row */
@media (min-width: 768px) {
  .services-summary .services-grid>[class*="col-"] {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
  }
}

/* desktop: 3 per row */
@media (min-width: 992px) {
  .services-summary .services-grid>[class*="col-"] {
    flex: 0 0 calc(33.3333% - 20px) !important;
    max-width: calc(33.3333% - 20px) !important;
  }
}

/* widen container slightly on big screens */
@media (min-width: 1200px) {
  .services-summary .container {
    width: min(94vw, 1320px);
    max-width: 1320px;
  }
}

/* === Certifying Partners Grid === */
.cert-partners-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 40px 60px;
  /* row-gap, column-gap */
  margin-top: 40px;
}

/* base: mobile (1 per row) */
.cert-partners-grid>[class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  text-align: center;
}

/* tablets: 2 per row */
@media (min-width: 768px) {
  .cert-partners-grid>[class*="col-"] {
    flex: 0 0 calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
  }
}

/* desktops: 3 per row */
@media (min-width: 992px) {
  .cert-partners-grid>[class*="col-"] {
    flex: 0 0 calc(33.3333% - 40px) !important;
    max-width: calc(33.3333% - 40px) !important;
  }
}

/* widen container slightly for breathing room */
@media (min-width: 1200px) {
  #certified .container {
    width: min(94vw, 1320px);
    max-width: 1320px;
  }
}

/* center logos visually and add subtle hover polish */
.cert-partners-grid img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cert-partners-grid img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* =========================
   HEADER OVERRIDES (SIMPLIFIED)
   ========================= */

/* Blue navigation background */
.rd-navbar-static.rd-navbar-transparent .rd-navbar-nav-wrap-bg-inner {
  background: #046EBA !important;
}

/* =========================
   WIDE DESKTOP
   1460px+
   ========================= */
@media (min-width: 1460px) {

  .rd-navbar-static .rd-navbar-top-panel-content,
  .rd-navbar-static .rd-navbar-inner {
    max-width: 1700px !important;
  }

  .rd-navbar-static.rd-navbar-transparent .rd-navbar-inner {
    width: calc(100% - 40px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Wider logo section */
  .rd-navbar-static.rd-navbar-transparent .rd-navbar-panel {
    min-width: 320px !important;
    max-width: 320px !important;
    width: 320px !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  /* Adjust angled white shape */
  .rd-navbar-static.rd-navbar-transparent .rd-navbar-panel-background {
    right: -110px !important;
  }

  .rd-navbar-static.rd-navbar-transparent .rd-navbar-panel-background-inner {
    left: -70px !important;
    right: 90px !important;
  }

  /* Larger logo */
  .rd-navbar-static .rd-navbar-brand {
    max-width: 260px !important;
    width: 260px !important;
  }

  .rd-navbar-static .rd-navbar-brand img,
  .rd-navbar-static.rd-navbar-transparent .rd-navbar-brand img {
    max-width: 260px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Menu spacing */
  .rd-navbar-static .rd-navbar-nav>li+li {
    margin-left: 26px !important;
  }

  .rd-navbar-static.rd-navbar-transparent .rd-navbar-nav>li>a {
    font-size: 15px !important;
    white-space: nowrap !important;
  }
}

/* =========================
   EXTRA LARGE DESKTOP
   1700px+
   ========================= */
@media (min-width: 1700px) {

  .rd-navbar-static .rd-navbar-top-panel-content,
  .rd-navbar-static.rd-navbar-transparent .rd-navbar-inner {
    max-width: 1750px !important;
  }

  .rd-navbar-static.rd-navbar-transparent .rd-navbar-panel {
    min-width: 360px !important;
    max-width: 360px !important;
    width: 360px !important;
  }

  .rd-navbar-static .rd-navbar-brand {
    max-width: 300px !important;
    width: 300px !important;
  }

  .rd-navbar-static .rd-navbar-brand img,
  .rd-navbar-static.rd-navbar-transparent .rd-navbar-brand img {
    max-width: 300px !important;
  }

  .rd-navbar-static .rd-navbar-nav>li+li {
    margin-left: 32px !important;
  }

  .rd-navbar-static.rd-navbar-transparent .rd-navbar-nav>li>a {
    font-size: 16px !important;
  }
}

@media (min-width: 992px) {
  .service-hero {
    aspect-ratio: 1920 / 760;
    min-height: 0;
    height: auto;
  }
}

@media (min-width: 992px) {

  .slider-section #heroSlider,
  .slider-section #heroSlider .swiper-wrapper,
  .slider-section #heroSlider .swiper-slide {
    height: auto !important;
  }

  .slider-section #heroSlider {
    aspect-ratio: 1920 / 760;
  }

  .slider-section #heroSlider .swiper-slide {
    background-size: cover;
    background-position: center 25%;
    aspect-ratio: 1920 / 760;
  }
}

/* Back to top button */
.ui-to-top {
  background-color: #2f67a5;
  /* H2Oil blue */
}

.ui-to-top:hover {
  background-color: #f47b20;
  /* H2Oil orange */
}

.services-summary ul {
  list-style-type: disc !important;
  list-style-position: outside;
  padding-left: 20px;
  margin-left: 0;
}

.services-summary ul li {
  display: list-item !important;
}

/* Keep header above hero cleanly on laptop and up */
.page-header,
.rd-navbar-wrap {
  position: relative;
  z-index: 20;
}

/* Remove forced spacing changes globally */
.slider-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Desktop and laptop only */
@media (min-width: 1200px) {
  .rd-navbar-static {
    position: relative !important;
  }

  .rd-navbar-static .rd-navbar-inner {
    position: relative !important;
  }

  .page-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .rd-navbar-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .slider-section,
  .breadcrumbs-custom,
  .section-first {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 1200px) {
  .page-header + .slider-section,
  .page-header + .service-hero {
    margin-top: -80px !important;
    padding-top: 0 !important;
  }

  .slider-section .swiper-container,
  .slider-section .swiper,
  .slider-section .swiper-wrapper,
  .service-hero {
    margin-top: 0 !important;
  }
}