/* Custom CSS file */


/* Office content type. */
.node--type-office .views-field-field-office-address-locality,
.node--type-office .field--name-field-name,
.node--type-office .field--name-field-function,
.node--type-office .field--name-field-sd-team,
.node--type-office .views-field-field-phone {
  padding-bottom: 1rem;
}

/* Language switcher */
.dropdown-menu-end[data-bs-popper] {
  right: unset;
}

.dropdown-menu {
  --bs-dropdown-min-width: 4rem;
}

/* Styling for seafarers block on frontpage - sidebar second */
.block-seafarers-fp {
  padding-top: 0;
  padding-left: 1.5rem;
  border-top: none;
  border-left: 1px dotted #D9D9D9;
}

.block-seafarers-fp {
  display: block;
  margin-bottom: 3rem;
}

.block-seafarers-fp h2:before,
.block-seafarers-fp .h2:before {
  font-size: 25px;
  margin-right: 0.5rem;
}

.block-seafarers-fp h2::before,
.block-seafarers-fp .h2::before {
  content: "\f13d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  line-height: 1;
}

/* Styling for professional homepage */
#block-views-block-menu-children-block-menu-children-pro {
  padding-bottom: 1rem;
}

.footer--bottom. a.btn.btn-secondary.nav-link {
  border: 2px;
}

/* Different background color for active target */
.list-inline-item:has(a.is-active) {
  background-color: #FFC107;
}

/* Vertical align icon and navbar combination */
.navbar-toggler {
  display: flex;
  align-items: center;
  /* Vertically center the contents of the button */
}

.navbar-toggler i.targets {
  line-height: 0;
  /* Reset line-height to avoid extra spacing */
  vertical-align: middle;
  /* Ensure the icon aligns with the hamburger */
}

/* Optional: Fine-tune the hamburger icon alignment if needed */
.navbar-toggler .navbar-toggler-icon {
  vertical-align: middle;
}

/* Bootstrap carousel - caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  padding: 0;
  color: #fff;
  text-align: center;
  width: 100%;
  right: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.75);
}

.carousel-caption h3 {
  margin: 10px 0 5px;
  line-height: 1.2;
  font-size: calc(1.325rem + 0.9vw);;
  font-weight: 500;
  padding-left: .8rem;
  padding-right: .8rem;
}

.carousel-caption h3 a {
  display: block;
  color: #000;
  text-align: center;
  text-decoration: none;
}

/* Bootstrap carousel - prev/next controls */
.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 36px;
  height: 36px;
  background-image: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  position: relative;
  transition: background-color .2s ease;
}

/* Chevron */
.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid rgba(55, 70, 91, 0.85); /* slightly transparent dark */
  border-right: 3px solid rgba(55, 70, 91, 0.85);
  transition: border-color .2s ease;
}

/* Previous */
.carousel-control-prev-icon::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}

/* Next */
.carousel-control-next-icon::after {
  transform: translate(-65%, -50%) rotate(45deg);
}

/* Hover */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: #37465b;
}

/* Make chevron lighter on hover (so it stays visible) */
.carousel-control-prev:hover .carousel-control-prev-icon::after,
.carousel-control-next:hover .carousel-control-next-icon::after {
  border-color: rgba(255, 255, 255, 0.9);
}

.node--type-office .fieldset-legend {
  border-bottom: 1px solid #1E1E1E;
  margin-bottom: 1rem;
  padding-top: 16px;
  padding-bottom: 16px;
  font-weight: 600;
}
