/* Make sure the word wrappers display correctly */
#title-block-header h1.title .word {
  display: inline-block;
}

.nav-footer-left {
    text-align: left;
}

.nav-footer-right {
    text-align: right;
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  color: white;
  text-align: center;
  padding: 60px 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  /* background-image: url('img/vaximm_bg.jpg'); */
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 1; /* Layer 1: The very bottom */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2; /* Layer 2: The middle (overlay) */
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3; /* Layer 3: The top (text) */
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  border-bottom: none;
  text-transform: none;
  letter-spacing: normal;
}

.hero-text h5 {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.9;
}

/* Target the letter spans inside the title for the animation */
#title-block-header h1.title .word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.5s forwards;
}

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The initial "hidden" state for sections */
main section.level2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* The final "visible" state */
main section.level2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide anchor links inside accordion headers */
.accordion-header .anchorjs-link {
  display: none !important;
}

/* Remove background color and border from active accordion button */
.accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
  color: inherit;
  border: none;
}

/* Intro block on technology page */
.intro-block {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--bs-light-bg-subtle);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.5rem;
  box-shadow: var(--bs-box-shadow-sm);
}

/* Content Section Styling */
.content-section {
  padding: 4rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.content-section h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

/* Sections with background images */
.section-pioneering,
.section-pipeline,
.section-leadership {
  color: white;
}

.section-pioneering::before,
.section-pipeline::before,
.section-leadership::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.section-pioneering .container,
.section-pipeline .container,
.section-leadership .container {
  position: relative;
  z-index: 1;
}

.section-pioneering h2,
.section-pipeline h2,
.section-leadership h2 {
  color: white;
}

.section-pioneering { background-image: url('img/back1.jpg'); }
.section-pipeline { background-image: url('img/back3.jpg'); }
.section-leadership { background-image: url('img/back2.jpg'); }

.section-news {
  background-color: #ffffff;
}

.section-news .card-title a {
  color: var(--bs-body-color) !important;
}

/* Hides the accordion arrow */
.accordion-button.non-collapsible::after {
  display: none;
}

/* Prevents the blue box-shadow on click */
.accordion-button.non-collapsible:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

/* Optional: Keep the cursor as default */
.accordion-button.non-collapsible {
  cursor: default;
}

/* Smaller font for specific legal pages */
.small-font-page p,
.small-font-page li {
  font-size: 0.8rem !important; /* ~14px */
}

.small-font-page h1 {
  font-size: 1.5rem !important;
}

.small-font-page h2 {
  font-size: 1.3rem !important;
}

.small-font-page h3 {
  font-size: 1.1rem !important;
}

.small-font-page h4 {
  font-size: 1rem !important;
}

.small-font-page h5 {
  font-size: 0.9rem !important;
}

.small-font-page h6 {
  font-size: 0.8rem !important;
}

.nav-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.nav-footer-left, .nav-footer-right {
  flex: 1 1 45%; /* Allow growing and shrinking, with a base of 45% */
}

.nav-footer-center {
  flex-basis: 100%;
  text-align: center;
  margin-top: 1rem;
  order: 3; /* Push to the end of the flex order */
}
