/* ==========================================================================
   Components - Cards, Buttons, Sections
   ========================================================================== */

/* Override broken img/ references (img folder removed) */
section.video .video-overlay {
  background-image: none !important;
}

/* Override theme's outline:none - restore focus for keyboard nav (WCAG 2.4.12) */
body a:focus-visible,
#header nav a:focus-visible,
#header .nav-main a:focus-visible,
.btn-responsive-nav:focus-visible,
ul.social-icons a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #0576af !important;
  outline-offset: 2px !important;
}

/* Form inputs - override Bootstrap's outline:0 (WCAG 2.4.12) */
.form-control:focus-visible,
input.form-control:focus-visible,
textarea.form-control:focus-visible,
select.form-control:focus-visible {
  outline: 3px solid #0576af !important;
  outline-offset: 2px !important;
}

/* Scroll margin for anchor targets - avoid fixed header overlap */
#home,
#intro,
#discoverrdi,
#purpose-values,
#powerful_values,
#diversity-inclusion,
#services,
#career,
#testimonials,
#contact {
  scroll-margin-top: 120px;
}

/* --------------------------------------------------------------------------
   Country Banner
   -------------------------------------------------------------------------- */
.country-banner {
  background: #1e1e1e;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

.country-banner .container {
  gap: 12px;
  flex-wrap: wrap;
}

.country-banner__link {
  color: #4a9fd4;
  text-decoration: underline;
}

.country-banner__link:hover {
  color: #6bb3e0;
}

.country-banner__dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}

.country-banner__dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Powerful Values - center image
   -------------------------------------------------------------------------- */
.values img,
.values .values__img {
  max-width: 70%;
  width: 70%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Header - flex layout: logo left, menu right
   -------------------------------------------------------------------------- */
#header {
  position: relative;
  z-index: 10002;
  overflow: visible;
}

/* Desktop: single flex row, logo left, nav right */
@media (min-width: 1090px) {
  #header .header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 0;
    height: auto;
  }

  #header .header__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    max-width: none;
    width: auto;
    height: auto;
  }

  #header .header__row .logo {
    flex-shrink: 0;
    margin: 0;
    padding: 5px 0;
  }

  #header .header__row .logo a {
    display: block;
  }

  #header .header__inner .navbar-collapse {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    height: auto;
    overflow: visible;
  }

  #header .header__inner .navbar-collapse .header__nav-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    height: auto;
    min-height: 0;
  }

  /* Nav + social in same row, aligned by bottom (theme gives links padding-top: 46px) */
  #header .header__inner .navbar-collapse .header__nav-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }

  #header .header__inner .navbar-collapse .header__nav-group .nav-main {
    margin: 0;
  }

  #header .header__inner .navbar-collapse .header__nav-group .social-icons {
    margin: 0;
    top: 0;
    padding-bottom: 12px;
  }

  /* Sticky/collapsed: nav links shrink (26px padding), icons need less offset */
  body.sticky-menu-active
    #header
    .header__inner
    .navbar-collapse
    .header__nav-group
    .social-icons {
  }

  body.sticky-menu-active #header.flat-menu .header__row .logo {
    padding-top: 15px;
  }
}

/* Mobile: column layout, menu below header */
@media (max-width: 1089px) {
  #header {
    padding: 8px 0 0 0;
  }

  #header .header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #header .header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 8px;
    flex-shrink: 0;
  }

  #header .navbar-collapse {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
  }

  #header .navbar-collapse.in .header__nav-inner {
    width: 100%;
  }
}

/* Mobile sticky: compact height, logo visible */
@media (max-width: 1089px) {
  body.sticky-menu-active #header {
    overflow: visible;
    top: 0 !important;
    padding: 0;
    min-height: 70px; /* override theme's min-height: 100px so header can collapse */
  }

  body.sticky-menu-active #header .header__inner {
    min-height: 0;
    overflow: visible;
  }

  body.sticky-menu-active #header .header__row {
    min-height: 44px;
    padding: 8px 15px;
    overflow: visible;
  }

  body.sticky-menu-active #header .logo {
    overflow: visible;
    flex-shrink: 0;
    padding-top: 0;
  }

  body.sticky-menu-active #header .logo img {
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* --------------------------------------------------------------------------
   Internal pages (privacy-notice, salary-transparency)
   -------------------------------------------------------------------------- */
.page-internal .main--internal {
  padding-top: 20px; /* prevent title from being hidden under fixed header */
}

/* Internal pages: match home page header height on desktop (theme uses 91px) */
@media (min-width: 1090px) {
  .header--internal .header__inner {
    min-height: 91px;
  }
}

/* Social Icons */
ul.social-icons {
  top: 2px;
}

ul.social-icons li {
  width: 24px;
  height: 24px;
  margin-left: 5px;
}

ul.social-icons li.facebook {
  background-image: url(../assets/images/facebook-blue.svg);
  background-position: 0 0;
  background-size: contain;
  border-radius: 0;
}

ul.social-icons li.facebook:hover {
  background-image: url(../assets/images/facebook-gray.svg);
}

ul.social-icons li.linkedin {
  background-image: url(../assets/images/linkedin-blue.svg);
  background-position: 0 0;
  background-size: contain;
  border-radius: 0;
}

ul.social-icons li.linkedin:hover {
  background-image: url(../assets/images/linkedin-gray.svg);
}

ul.social-icons li.instagram {
  background-image: url(../assets/images/instagram-blue.svg);
  background-position: 0 0;
  background-size: contain;
  border-radius: 0;
}

ul.social-icons li.instagram:hover {
  background-image: url(../assets/images/instagram-gray.svg);
}

ul.social-icons li.glassdoor {
  background-image: url(../assets/images/glassdoor-blue.svg);
  background-position: 0 0;
  background-size: contain;
  border-radius: 0;
}

ul.social-icons li.glassdoor:hover {
  background-image: url(../assets/images/glassdoor-gray.svg);
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */
.slider-container-fullscreen {
  height: 540px !important;
}

@media (max-width: 991px) {
  .slider-container-fullscreen {
    height: 480px !important;
  }
}

@media (max-width: 767px) {
  .slider-container-fullscreen {
    height: 420px !important;
  }
}

.slider-container {
  margin-bottom: 70px !important;
}

/* --------------------------------------------------------------------------
   Typography - PEOPLE branding
   -------------------------------------------------------------------------- */
.people {
  font-weight: bold;
  font-style: italic;
}

.people_p {
  color: #00d8ed;
}
.people_e {
  color: #e749c9;
}
.people_o {
  color: #ef4459;
}
.people_pp {
  color: #ffc600;
}
.people_l {
  color: #873e22;
}
.people_ee {
  color: #313234;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section.white {
  background: #fff;
  border-top: 5px solid #fff;
  margin-top: 0;
  margin-bottom: 50px;
  padding-top: 0;
  padding-bottom: 50px;
}

section.featured {
  margin-top: -70px !important;
  margin-bottom: 70px !important;
}

section.highlight-gray {
  background-color: #333 !important;
  border: 3px solid #222;
  margin: 35px 0 45px;
  padding: 40px 0;
  color: #fff;
}

section.highlight-gray h2 {
  color: #fff;
}

section.highlight-gray.top {
  margin-top: 0;
}

section.highlight.top {
  margin-top: -70px !important;
}

section.midgrey {
  background-color: #666;
}

/* --------------------------------------------------------------------------
   Parallax & Counters
   -------------------------------------------------------------------------- */
.parallax {
  background-repeat: repeat !important;
}

.counters {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  border-color: #fff !important;
  color: #fff;
  background-color: #0576af;
}

.btn-primary:hover {
  border-color: #0576af !important;
}

.tp-revslider-mainul .btn-primary {
  background-color: transparent;
}

.tp-revslider-mainul .btn-primary:hover {
  border-color: #fff;
  background-color: #fff;
}

.btn-apply {
  border-color: #fff !important;
  color: #fff;
  background-color: #0576af;
  margin-right: 20px;
}

.btn-apply:hover {
  border-color: #0576af !important;
  background-color: #fff;
  color: #0576af;
}

.btn-apply:active,
.btn-apply:focus {
  color: #fff;
  border-color: #0576af;
  background-color: #0576af;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
blockquote.testimonial-carousel {
  font-family: Georgia, serif;
  font-style: italic;
  margin: 0;
  padding: 10px 50px;
  position: relative;
  border: none;
}

blockquote.testimonial-carousel::before {
  left: 10px;
  top: 0;
  color: #00adda;
  content: "\201C";
  font-size: 80px;
  font-style: normal;
  line-height: 1;
  position: absolute;
}

blockquote.testimonial-carousel::after {
  right: 10px;
  bottom: -0.5em;
  color: #00adda;
  content: "\201D";
  font-size: 80px;
  font-style: normal;
  line-height: 1;
  position: absolute;
}

blockquote.testimonial-carousel p {
  margin: 10px 0;
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.3;
  text-align: center;
}

.testimonial-from {
  text-align: center;
  margin: 0 auto;
  color: #00adda;
  font-size: 0.9em;
  line-height: 1.2;
}

.testimonial-photo {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto 5px;
}

.testimonial-photo img {
  width: 100px !important;
  height: 100px !important;
  display: block;
  border-radius: 100%;
}

span.testimonial-name {
  font-weight: bold;
}

span.testimonial-location {
  font-style: italic;
  color: #bbb;
}

span.testimonial-location::before {
  padding-left: 3px;
  content: "(";
}

span.testimonial-location::after {
  content: ")";
}

.owl-carousel-testimonials .owl-item {
  height: 100% !important;
}

@media screen and (min-width: 601px) and (max-width: 1000px) {
  .owl-carousel-testimonials .owl-item {
    min-height: 400px !important;
  }
}

@media screen and (max-width: 600px) {
  .owl-carousel-testimonials .owl-item {
    min-height: 500px !important;
  }
}

/* --------------------------------------------------------------------------
   Thumb Info (theme compatibility)
   -------------------------------------------------------------------------- */
.thumb-info .thumb-info-title {
  font-size: 14px !important;
  bottom: 6% !important;
}

ul.history li p {
  margin-left: 0 !important;
}

/* --------------------------------------------------------------------------
   Privacy Notice Page
   -------------------------------------------------------------------------- */
#privacy-notice h4 {
  color: #000;
  margin-top: 40px;
  margin-bottom: 20px;
}

#privacy-notice li {
  color: #777;
}

#privacy-notice ul {
  margin-top: 0;
  margin-bottom: 20px;
}

#privacy-notice ol {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 16px;
  margin-inline-end: 0;
  padding-inline-start: 0;
}

#privacy-notice li::marker {
  color: #0576af;
  display: inline-block;
  font-size: 1.2em;
}

#privacy-notice ol li::marker {
  color: #777;
  display: inline-block;
  font-size: 1.4em;
}

#privacy-notice .tg {
  border-collapse: collapse;
  border-spacing: 0;
}

#privacy-notice .tg td {
  border: 1px solid black;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
  color: #777;
}

#privacy-notice .tg th {
  background-color: #0576af;
  color: #fff;
  border: 1px solid black;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  overflow: hidden;
  padding: 10px 5px;
  word-break: normal;
}

#privacy-notice .tg .tg-0lax {
  text-align: left;
  vertical-align: top;
}

/* --------------------------------------------------------------------------
   Video Player - HTML5 native with play overlay
   -------------------------------------------------------------------------- */
section.video .video-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

section.video .video-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

section.video .video-player video {
  width: calc(100% + 1px);
  max-width: none;
  height: auto;
  display: block;
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: -1px;
  margin-right: -1px;
  outline: none;
  border: none;
  line-height: 0;
  border-radius: 10px;
}

/* Native controls: hide until hover (Chrome, Safari, Edge) */
section.video .video-player video::-webkit-media-controls-enclosure {
  opacity: 0;
  transition: opacity 0.25s ease;
  background-color: transparent !important;
}

section.video .video-player:hover video::-webkit-media-controls-enclosure,
section.video
  .video-player.video-playing
  video::-webkit-media-controls-enclosure {
  opacity: 1;
}

/* Remove white/transparent bar from controls panel */
section.video .video-player video::-webkit-media-controls-panel {
  background-color: transparent !important;
  background-image: linear-gradient(transparent, transparent) !important;
  box-shadow: none !important;
}

@supports (-moz-appearance: none) {
  section.video .video-player video::-webkit-media-controls-enclosure {
    opacity: 1;
  }
}

/* Overlay with large Play button */
section.video .video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.25s ease,
    background 0.25s ease;
  z-index: 2;
}

section.video .video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.35);
}

section.video .video-player.video-playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

section.video .video-player.video-playing:hover .video-play-overlay {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.15);
}

/* Play icon */
section.video .video-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 40px 0 40px 70px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  margin-left: 12px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

section.video .video-play-overlay:hover .video-play-icon {
  transform: scale(1.08);
  border-color: transparent transparent transparent #fff;
}

/* Pause icon */
section.video .video-pause-icon {
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

section.video .video-pause-icon i {
  display: block;
  width: 8px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

section.video .video-player.video-playing .video-play-icon {
  display: none;
}

section.video .video-player.video-playing .video-pause-icon {
  display: flex;
}

/* --------------------------------------------------------------------------
   Office addresses - photo slider next to address
   -------------------------------------------------------------------------- */
.office-addresses .office-row {
  margin-bottom: 24px;
}

.office-addresses .office-row:last-child {
  margin-bottom: 0;
}

.office-addresses .office-address {
  margin-bottom: 12px;
}

.office-addresses .office-address p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.owl-carousel-offices .owl-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.owl-carousel-offices.owl-carousel {
  margin-top: 0;
}

@media (max-width: 767px) {
  .office-addresses .office-row .col-sm-6:first-child {
    margin-bottom: 16px;
  }
}
