.homepage-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.homepage-header .navbar-default {
  background: transparent !important;
  border-bottom: none;
  box-shadow: none;
}

/* Inner Bootstrap .navbar can have its own background - force transparent at top */
header.homepage-header:not(.scrollHeader) .navbar-default .navbar,
header.homepage-header:not(.scrollHeader) .navbar-default .menu_area {
  background: transparent !important;
}

/* Ensure transparent when at top (no scrollHeader) - override any template default */
header.homepage-header:not(.scrollHeader) .navbar-default {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* When scrolled: white fixed navbar */
.homepage-header.scrollHeader .navbar-default {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 49, 58, 0.08);
  box-shadow: 0 6px 18px rgba(15, 49, 58, 0.1);
}

.homepage-header .navbar-nav > li > a,
.homepage-header .attr-nav > ul > li > a {
  color: #fff;
}

.homepage-header.scrollHeader {
  position: fixed;
}

.homepage-header.scrollHeader .navbar-nav > li > a,
.homepage-header.scrollHeader .attr-nav > ul > li > a {
  color: #0f313a;
}

/* Logo size adjustment - balanced size */
#logo {
  max-height: 50px;
  width: auto;
  transform: scale(0.95);
  transform-origin: left center;
}

.navbar-brand {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Hiring Banner Styles */
.hiring-banner {
  background: #BF3A3E;
  color: white;
  padding: 10px 0;
  text-align: center;
  /* In the page flow, above the header: it scrolls away with the page and
     never shares a row with the logo, however many lines it wraps to. */
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.hiring-banner .btn-light {
  background: white;
  border: none;
  color: #BF3A3E;
  font-weight: 600;
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.hiring-banner .btn-light:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.hiring-banner .text-white {
  font-size: 14px;
  font-weight: 500;
}

.hiring-banner .fas {
  font-size: 13px;
}

/* The homepage header floats over the hero. Anchor it to the page below the
   hiring bar rather than to the top of the window. The hero's -120px top
   margin (below) collapses through .main-wrapper, so the wrapper starts 120px
   above the bar's bottom edge and the header steps down by the same amount. */
.has-hiring-banner .main-wrapper {
  position: relative;
}
.has-hiring-banner .homepage-header:not(.scrollHeader) {
  top: 120px;
}
/* Adjust header position for banner */
.header-style1 {
  margin-top: 0;
  z-index: 1000;
}
.homepage-header {
  z-index: 1000;
}
/* Phones: the bar wraps to two lines, text above the button. */
@media (max-width: 767.98px) {
  .hiring-banner {
    padding: 8px 0;
  }
  .hiring-banner .d-flex {
    gap: 6px !important;
  }
  .hiring-banner .text-white {
    font-size: 13px;
    line-height: 1.35;
  }
  .hiring-banner .btn-light {
    padding: 4px 12px;
    font-size: 12px;
  }
}

/* Hero banner carousel */
.hero-banner-section {
  position: relative;
  min-height: 85vh;
}

/* Bump hero up so it sits right under the hiring banner; imagery behind navbar, no gap.
   The theme gives every section 120px of top padding; without the banner the
   photo starts at the very top of the page. */
body .main-wrapper .hero-banner-section {
  margin-top: -120px;
}


.hero-banner-carousel .owl-stage-outer,
.hero-banner-carousel .owl-stage,
.hero-banner-carousel .owl-item,
.hero-slide {
  min-height: 85vh;
}

.hero-slide {
  display: flex;
  align-items: center;
  position: relative;
}

.hero-banner-carousel .owl-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
}

.hero-banner-carousel .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.hero-banner-carousel .owl-dots .owl-dot.active span,
.hero-banner-carousel .owl-dots .owl-dot:hover span {
  background: #fff;
  transform: scale(1.2);
}

.hero-banner-carousel .banner-content h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-banner-carousel .owl-item.active .banner-content h1,
.hero-banner-carousel .owl-item.active .banner-content .butn-style1 {
  opacity: 1;
  transform: translateY(0);
}

.hero-banner-carousel .banner-content .butn-style1 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

@media (max-width: 768px) {
  .hero-banner-section,
  .hero-banner-carousel .owl-item,
  .hero-slide {
    min-height: 70vh;
  }
}

/* About history simple timeline */
.history-style01 .history-simple {
  overflow-x: auto;
  padding: 3rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.history-style01 .history-track {
  display: flex;
  gap: 2rem;
  position: relative;
  width: max-content;
  min-width: 100%;
  padding-bottom: 1.5rem;
}

.history-style01 .history-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #d3dae0;
  transform: translateY(-50%);
}

.history-style01 .history-item {
  position: relative;
  padding-left: 1.5rem;
  min-width: 240px;
  min-height: 210px;
  flex: 0 0 auto;
}

.history-style01 .history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #d3dae0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.history-style01 .history-year {
  font-weight: 700;
  color: #15395A;
  margin-bottom: 0.25rem;
}

.history-style01 .history-top {
  align-self: flex-start;
  padding-bottom: 4.75rem;
}

.history-style01 .history-bottom {
  align-self: flex-end;
  padding-top: 4.75rem;
}

@media (max-width: 768px) {
  .history-style01 .history-track::before {
    display: none;
  }

  .history-style01 .history-item {
    min-height: auto;
    padding-left: 1.5rem;
  }

  .history-style01 .history-item::before {
    top: 0.4rem;
    transform: translateY(0);
  }

  .history-style01 .history-top,
  .history-style01 .history-bottom {
    align-self: stretch;
    padding: 0;
  }
}

/* Careers: live openings from the console */
.job-card {
  transition: all 0.3s ease-in-out;
}

.job-card:hover {
  transform: translate3d(0, -3px, 0);
}

.job-card h3 {
  transition: color 0.25s ease;
}

.job-card:hover h3 {
  color: #BF3A3E;
}

/* The theme pins every .form-control to 46px, which flattens a textarea. */
.careers-apply textarea.form-control {
  height: auto;
}

.careers-apply .form-select {
  height: 46px;
}

@media (min-width: 992px) {
  .careers-apply-sticky {
    position: sticky;
    top: 100px;
  }
}

/* Posting body, written in the console. */
.careers-description h2,
.careers-description h3,
.careers-description h4 {
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.careers-description h2 { font-size: 1.4rem; }
.careers-description h3 { font-size: 1.2rem; }
.careers-description h4 { font-size: 1.1rem; }

.careers-description p,
.careers-description ul,
.careers-description ol {
  margin-bottom: 1rem;
}

.careers-description ul,
.careers-description ol {
  padding-left: 1.25rem;
}

.careers-description li {
  margin-bottom: 0.4rem;
}

/* Contact form on /contact */
.contact-message-form textarea.form-control {
  height: auto;
}

/* The contact form's robot trap: off screen, never shown to people. */
.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
