@import url('/static/css/chivo.css');

:root {
  /* SCAHT Colors */
  --scaht-white: rgba(255, 255, 255, 1);
  --scaht-black: rgba(0, 0, 0, 1);

  --scaht-light-blue: rgba(242, 249, 255, 1);
  --scaht-dark-blue: rgba(27, 92, 181, 1);

  --scaht-red: rgba(191, 16, 50, 1);

  --scaht-lighter-gray: rgba(239, 239, 239, 1);
  --scaht-light-gray: rgb(137, 137, 137);
  --scaht-dark-gray: rgb(112, 112, 112);

  /* SCAHT Layout */
  --scaht-sidebar-width: 560px;
  --scaht-sidebar-padding: 50px;
  /* 37.59 = *-1 ((lineheight - fonsize) /2 ) - 47.09 (gewünschter Abstand nach unten) -- ((37-18) / 2) -47.09 */
  --scaht-content-padding: 86px 86px 195px 86px;

  /* SCAHT Typography */
  --scaht-font-family: 'Chivo', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --scaht-hero-font-size: 40px;
  --scaht-hero-line-height: 54px;

  --scaht-font-weight-light: 300;
  --scaht-font-weight-regular: 400;
  --scaht-font-weight-semibold: 600;
  --scaht-font-weight-bold: 700;

  --scaht-hero-bottom-padding: 85px;

  /* Embedded chevron */
  --scaht-chevron-right: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='currentColor' fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/></svg>");

  --bs-breakpoint-xl: 1400px;
}

/* breakpoints: md: 768px lg: 992px xl: 1200px -- bootstrap default */
/* sidebar is shown > 992px maybe d-none up to ~1200 would be more aesthetical - luegsch mol contact site bi 992px - 1250px breiti a */


body {
  font-family: var(--scaht-font-family);
  font-size: var(--scaht-font-size-base);
  color: var(--scaht-black);
  margin: 0;
  height: 100vh;
}

.navbar-toggler {
  border: none;
}

.offcanvas-header {
  padding-top: 30px;
  padding-bottom: 14px;
}

main.content {
  max-width: 1260px;
}

.pattern-background-img {
  background-size: cover;
  background-position: left;
  height: 433px;
}

b,
.event-location {
  letter-spacing: 0.1px;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 100%;
}

/* decided to change to view withpout sidebar, before this would be necessary */
/* Desktop Size with Mobile Sized Content | Sidemenu still visible with narrow content area  */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .content {
    padding-left: 45px !important;
    padding-right: 45px !important;
  }
}

/* up to md */
@media (max-width: 767.98px) {

  .content-section,
  .richtext-block {
    margin-bottom: 68px;
  }

  .content-section {
    padding-bottom: 25px;
  }
}

/* up to lg */
/* Mobile and midsize Design */
@media (max-width: 992px) {
  main.content {
    max-width: 100%;
    padding-top: 45px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  p {
    font-size: 19px !important;
    line-height: 29px !important;
  }

  .content {
    .hero-title {
      font-size: 22px !important;
      line-height: 28px !important;
      padding-bottom: 45px !important;
    }

    .image-wrapper {
      padding-top: 0px;
      padding-left: 12px;
      padding-right: 12px;
    }

    .text-wrapper {
      padding-top: 22px;
      padding-left: 12px;
      padding-right: 12px;
    }

    .map-and-address-section {
      .content-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 22px !important;
        padding-bottom: 8px !important;
        margin-bottom: 0px !important;
      }

      .map-and-address-title {
        padding-bottom: 0px !important;
      }
    }

    .expandable-section {
      h2 {
        padding-top: 20px;
      }
    }

    .generic-two-column-section,
    .publications-section {
      .content-section {
        padding: 22px 15px 22px 15px !important;
        margin-bottom: 0px !important;
      }
    }

    .content-section {
      margin-bottom: 20px !important;

      .text-wrapper {
        padding-top: 0px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
      }
    }

    .news-item {
      .card-body {
        padding-top: 11px !important;
        padding-bottom: 0px !important;

        a {
          font-size: 19px !important;
        }

        .news-date {
          font-size: 14px !important;
          padding-top: 0px !important;
        }

        .news-item-category {
          padding-top: 0px !important;
        }

        .news-item-category {
          font-size: 14px !important;
          margin-bottom: 0px !important;
        }
      }
    }

    .event-date {
      font-size: 17px !important;
    }

    .event-location {
      font-size: 17px !important;
    }

    .event-title {
      font-size: 17px !important;
      font-weight: var(--scaht-font-weight-regular) !important;
      line-height: 25px !important;
    }

    .event-section-title {
      font-size: 17px !important;
    }

    .event-section-text {
      font-size: 17px !important;
      line-height: 26px !important;
    }

    .group-name {
      font-size: 17px !important;
    }

    .group-role {
      font-size: 14px !important;
      margin-bottom: 35px !important;
    }

    .member-title-name {
      padding-top: 10px !important;
      padding-bottom: 0px !important;
      font-size: 19px !important;
      line-height: 27px !important;
    }

    .member-role {
      font-size: 17px !important;
      line-height: 28px !important;
    }

    .member-content {
      padding-top: 45px;
      font-size: 19px !important;
      line-height: 29px !important;
    }
  }


  .footer {
    background-color: var(--scaht-light-gray);

    footer {
      margin-top: 22px;
      margin-bottom: 0px;
      margin-left: 15px;
      margin-right: 15px;
    }
  }

  .team-member-page img {
    width: 100%;
    height: 559px;
    object-fit: cover;
  }
}

/* up to xl */
@media (max-width: 1199.98px) {
  .scrollable-column {
    height: auto !important;
    overflow-y: visible !important;
  }

  .pattern-background-img {
    background-size: cover;
    background-position: center;
    height: 160px;
  }

  .scaht-logo {
    padding-top: 22px;
    padding-left: 10px;
    padding-bottom: 29px;
    width: 40vw;
    max-width: 175px;
  }
}

/* lg and up */
/*  Desktop Size */
@media (min-width: 992px) {
  h2 {
    padding-top: 72px;
    padding-bottom: 18px;
  }

  .team-member-page img {
    width: 100%;
    height: 619px;
    object-fit: cover;
  }

}



.offcanvas.offcanvas-start {
  background-color: var(--scaht-light-blue) !important;
  border-right: none;
}


/* Utility: add a colored chevron after links */
.chevron-link {
  color: inherit;
  /* keep link text color */
  --chevron-color: var(--scaht-red);
  /* default chevron color */
  --chevron-size: 0.9em;
  /* default chevron size */
  --chevron-offset-y: -0.1em;
  /* vertical nudge (negative lowers) */
}

.chevron-link::after {
  content: '';
  display: inline-block;
  width: var(--chevron-size);
  height: var(--chevron-size);
  margin-left: 6px;
  /* Tint via variable (override with --chevron-color or set to currentColor) */
  background-color: var(--chevron-color);
  /* Mask the SVG so background-color provides the color */
  -webkit-mask-image: var(--scaht-chevron-right);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: var(--chevron-size) var(--chevron-size);
  mask-image: var(--scaht-chevron-right);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: var(--chevron-size) var(--chevron-size);
  vertical-align: var(--chevron-offset-y);
}

.no-chevron-link::after {
  display: none !important;
  /* Hide the chevron entirely */
}

.btn,
.form-control {
  border-radius: 0px;
}

.scrollable-column {
  height: 100vh;
  overflow-y: auto;
}

.container {
  margin-left: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

/* Mobile Menu */
.offcanvas.offcanvas-start {
  width: 100vw;
}

.offcanvas-body {
  background-color: var(--scaht-light-blue);
  width: 100vw;
  padding: 16px 22px 22px 22px;
  color: var(--scaht-red);


  .footer.navigation {
    flex-direction: row;
  }

  .sidebar-logo {
    img {
      width: var(--scaht-sidebar-logo-width, 175px);
    }

    margin-bottom: 202px;
  }

  .sidebar-search {
    margin-bottom: 44px;

    .input-group {
      height: 35px;
    }

    form {
      width: 100%;
      border: 1px solid var(--scaht-red);
      margin-right: 6px;

      button {
        background-color: var(--scaht-white);
        color: var(--scaht-red);
        border: none;
        padding-left: 12px;
        font-size: 20px;
      }

      input {
        border: none;
      }
    }

    .language-selector {
      border: 1px solid var(--scaht-red);
      background-color: var(--scaht-white);
      font-size: 20px;
      font-weight: normal;
      padding: 0 12px;
      max-width: 113px;

      a {
        color: var(--scaht-red);
        text-decoration: none;
        font-weight: 300;
      }

      span {
        padding: 3px;
      }

      span:last-child {
        padding-right: 3px;
      }
    }
  }

  .sidebar-menu {
    margin-bottom: 51px;

    .nav.level-2 {
      padding-left: 32px;
      /* Animation properties for smooth expand/collapse */
      overflow: hidden;
      transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
      max-height: 0;
      opacity: 0;
    }

    .nav.level-2.show {
      max-height: 1000px;
      /* Large enough to accommodate content */
      opacity: 1;
    }

    .nav.level-3 {
      max-width: 50%;
      /* Animation properties for smooth expand/collapse */
      overflow: hidden;
      transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
      max-height: 0;
      opacity: 0;
    }

    .nav.level-3.show {
      max-height: 1000px;
      /* Large enough to accommodate content */
      opacity: 1;
    }

    /* The nav items generally have a border top */
    .nav-item {
      border-top: 3px solid var(--scaht-red);
      height: 42px;
    }

    /* If a level1 item is expanded - either originally active/ancestor OR currently opened via JS */
    .nav.level-1 .nav-item.active.has-children,
    .nav.level-1 .nav-item.ancestor.has-children,
    .nav.level-1 .nav-item.js-expanded.has-children {
      border-bottom: 3px solid var(--scaht-red);
    }

    /* When an item is temporarily closed via JS, remove the border */
    .nav.level-1 .nav-item.js-collapsed.has-children {
      border-bottom: none;
    }

    .nav.level-2 .nav-item:first-child {
      border-top: none;
    }

    /* Add a bottom border to the last item */
    .nav-item:last-child {
      border-bottom: 3px solid var(--scaht-red);
    }

    /* But don't add the bottom border to the last item of a subnav */
    .nav.level-2 .nav-item:last-child,
    .nav.level-3 .nav-item:last-child {
      border-bottom: none;
    }

    a {
      color: var(--scaht-red);
      text-decoration: none;
      font-size: 18px;
      width: 100%;
    }

    a:hover {
      font-weight: bold;
    }

    a.active {
      font-weight: 700;
      /* semibold */
    }

    .cross-icon {
      width: 23px;
      height: 23px;

      img {
        width: 100%;
        height: 100%;
        transform: rotate(-45deg);
        transition: transform 0.2s;
      }
    }

    /* Cross icon rotation for active/ancestor/js-expanded states */
    a.active .cross-icon img,
    a.ancestor .cross-icon img,
    a.js-expanded .cross-icon img {
      transform: none;
    }

    /* Ensure closed items show cross correctly */
    a.js-collapsed .cross-icon img {
      transform: rotate(-45deg);
    }
  }

  .legal-menu {
    nav {
      flex-direction: row;

      a.nav-link+.nav-link::before {
        content: "|";
        display: inline-block;
        padding: 0 0.5rem;
        color: var(--scaht-black);
      }
    }

    .nav-link {
      font-size: 18px !important;
      line-height: 22px;
      /* Feldhöhe in XD anstelle der in XD ausgewiesenen line-height*/
      padding-top: 13px;
      padding-left: 0px;
      padding-right: 0px;
      /* 15px - 2px (half of line-height) */
      color: var(--scaht-red) !important;
      padding-bottom: 0;
    }

  }

  .newsletter-signup a {
    background-color: var(--scaht-red);
    color: var(--scaht-white);
    text-align: center;
    font-size: 20px;
    margin-bottom: 68px;
  }

  .emergency-box {
    padding: 11px 16px 13px 11px;
    line-height: 28px;
  }

  .emergency-info {
    border: 1px solid var(--scaht-black);
    background-color: var(--scaht-white);
    color: var(--scaht-black);
    font-size: 18px;
    margin-bottom: 105px;

    a {
      color: var(--scaht-red);
      text-decoration: none;
    }
  }
}

/* Desktop Menu */
.sidebar {
  background-color: var(--scaht-light-blue);
  width: var(--scaht-sidebar-width);
  padding: var(--scaht-sidebar-padding);
  padding-top: 45px;
  color: var(--scaht-red);

  .sidebar-logo {
    img {
      width: var(--scaht-sidebar-logo-width, 175px);
    }

    margin-bottom: 202px;
  }

  .sidebar-search {
    margin-bottom: 65px;

    .input-group {
      height: 50px;
    }

    form {
      width: 340px;
      border: 1px solid var(--scaht-red);
      margin-right: 6px;

      button {
        background-color: var(--scaht-white);
        color: var(--scaht-red);
        border: none;
        padding-left: 12px;
        font-size: 25px;
      }

      input {
        border: none;
      }
    }

    .language-selector {
      border: 1px solid var(--scaht-red);
      background-color: var(--scaht-white);
      font-size: 20px;
      font-weight: normal;
      padding: 0 12px;

      a {
        color: var(--scaht-red);
        text-decoration: none;
        font-weight: 300;
      }

      span {
        padding: 3px;
      }

      span:last-child {
        padding-right: 3px;
      }
    }
  }

  .sidebar-menu {
    margin-bottom: 132px;

    .nav.level-2 {
      padding-left: 32px;
      /* Animation properties for smooth expand/collapse */
      overflow: hidden;
      transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
      max-height: 0;
      opacity: 0;
    }

    .nav.level-2.show {
      max-height: 1000px;
      /* Large enough to accommodate content */
      opacity: 1;
    }

    .nav.level-3 {
      max-width: 50%;
      /* Animation properties for smooth expand/collapse */
      overflow: hidden;
      transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
      max-height: 0;
      opacity: 0;
    }

    .nav.level-3.show {
      max-height: 1000px;
      /* Large enough to accommodate content */
      opacity: 1;
    }

    /* The nav items generally have a border top */
    .nav-item {
      border-top: 3px solid var(--scaht-red);
      height: 60px;
    }

    /* If a level1 item is expanded - either originally active/ancestor OR currently opened via JS */
    .nav.level-1 .nav-item.active.has-children,
    .nav.level-1 .nav-item.ancestor.has-children,
    .nav.level-1 .nav-item.js-expanded.has-children {
      border-bottom: 3px solid var(--scaht-red);
    }

    /* When an item is temporarily closed via JS, remove the border */
    .nav.level-1 .nav-item.js-collapsed.has-children {
      border-bottom: none;
    }

    .nav.level-2 .nav-item:first-child {
      border-top: none;
    }

    /* Add a bottom border to the last item */
    .nav-item:last-child {
      border-bottom: 3px solid var(--scaht-red);
    }

    /* But don't add the bottom border to the last item of a subnav */
    .nav.level-2 .nav-item:last-child,
    .nav.level-3 .nav-item:last-child {
      border-bottom: none;
    }

    a {
      color: var(--scaht-red);
      text-decoration: none;
      font-size: 22px;
      width: 100%;
    }

    a:hover {
      font-weight: bold;
    }

    a.active {
      font-weight: 600;
      /* semibold */
    }

    .cross-icon {
      width: 23px;
      height: 23px;

      img {
        width: 100%;
        height: 100%;
        transform: rotate(-45deg);
        transition: transform 0.2s;
      }
    }

    /* Cross icon rotation for active/ancestor/js-expanded states */
    a.active .cross-icon img,
    a.ancestor .cross-icon img,
    a.js-expanded .cross-icon img {
      transform: none;
    }

    /* Ensure closed items show cross correctly */
    a.js-collapsed .cross-icon img {
      transform: rotate(-45deg);
    }
  }

  .legal-menu {
    nav {
      flex-direction: column;
    }

    .nav-link {
      font-size: 18px !important;
      line-height: 22px;
      /* Feldhöhe in XD anstelle der in XD ausgewiesenen line-height*/
      padding-top: 13px;
      /* 15px - 2px (half of line-height) */
      color: var(--scaht-red) !important;
      padding-bottom: 0;
    }
  }

  .newsletter-signup a {
    background-color: var(--scaht-red);
    color: var(--scaht-white);
    text-align: center;
    font-size: 20px;
    margin-bottom: 140px;
  }

  .emergency-box {
    padding: 11px 16px 13px 11px;
    line-height: 28px;
  }

  .emergency-info {
    border: 1px solid var(--scaht-black);
    background-color: var(--scaht-white);
    color: var(--scaht-black);
    font-size: 18px;
    margin-bottom: 105px;

    a {
      color: var(--scaht-red);
      text-decoration: none;
    }
  }

}


.content {
  word-break: break-word;

  /* md and up */
  @media (min-width: 768px) {
    padding: var(--scaht-content-padding) !important;

  }

  a {
    text-decoration: none;
    color: inherit;
    /* keep link text color */
    --chevron-color: var(--scaht-red);
    /* default chevron color */
    --chevron-size: 0.9em;
    /* default chevron size */
    --chevron-offset-y: -0.1em;
    /* vertical nudge (negative lowers) */
  }

  b {
    font-weight: 600;
    /* semibold */
  }

  a::after {
    content: '';
    display: inline-block;
    width: var(--chevron-size);
    height: var(--chevron-size);
    margin-left: 6px;
    /* Tint via variable (override with --chevron-color or set to currentColor) */
    background-color: var(--chevron-color);
    /* Mask the SVG so background-color provides the color */
    -webkit-mask-image: var(--scaht-chevron-right);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: var(--chevron-size) var(--chevron-size);
    mask-image: var(--scaht-chevron-right);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: var(--chevron-size) var(--chevron-size);
    vertical-align: var(--chevron-offset-y);
  }

  p {
    font-size: 21px;
    font-weight: 300;
    /* light */
    line-height: 34px;
  }

  .pagination * {
    border-radius: 0px !important;
  }

  .richtext-block {
    h1 {
      font-size: 32px;
      line-height: 38px;
      font-weight: var(--scaht-font-weight-semibold);
      text-transform: uppercase;
      color: var(--scaht-red);
      margin-bottom: 0px;
      padding-bottom: 24px;
    }
  }

  .hero-title {
    color: var(--scaht-red);
    text-transform: uppercase;
    font-size: var(--scaht-hero-font-size);
    line-height: var(--scaht-hero-line-height);
    padding-bottom: var(--scaht-hero-bottom-padding);
  }

  .map-and-address-section {
    background-color: var(--scaht-lighter-gray);
    margin-bottom: 99px;
  }

  .publications-section,
  .generic-two-column-section {
    margin-bottom: 47px;
  }

  .generic-section-text p {
    margin-bottom: 8px;
  }

  .publications-section,
  .contact-section,
  .generic-section-content,
  .generic-two-column-section,
  .map-and-address-section {
    background-color: var(--scaht-lighter-gray);
    word-break: break-word;

    h2 {
      text-transform: uppercase;
      font-size: 18px;
      font-weight: 600;
      /* semibold */
      padding-bottom: 18px;
    }

    p {
      font-size: 18px;
      line-height: 24px;
      font-weight: 300;
      /* light */
    }

    .content-section {
      padding-left: 45px;
      padding-right: 35px;
      padding-top: 45px;
      padding-bottom: 0px;
    }

    .richtext-block {
      padding-bottom: 25px;
    }

    .publication-title a {
      font-size: 18px;
      line-height: 24px;
      text-decoration: none;
      color: inherit;
      font-weight: 300;
      /* light */
    }

    .publication-journal,
    .publication-date {
      font-weight: 600;
      /* semibold */
      font-size: 14px;
      color: var(--scaht-dark-blue);
    }

    .publications-section-link a {
      font-size: 14px;
      text-decoration: none;
      color: var(--scaht-red) !important;
    }

    .publications-bg-image,
    .generic-section-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }

  .richtext-image {
    margin-bottom: 24px;
  }

  .left {
    float: left;
  }

  .right {
    float: right;
  }

  .full-width {
    width: 100% !important;
  }

  .centered {
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .content-section {
    padding-bottom: 60px;

    .image-wrapper {
      width: 100%;
      height: 100%;
      flex: 0 0 345px;
    }

    .text-wrapper {
      padding-left: 45px;
      margin-top: 0px !important;
      font-size: 21px;
      line-height: 34px;
      flex: 1;

      p {
        margin-bottom: 0px !important;
      }
    }

    .image-container {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
    }

    .image-container picture,
    .image-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .image-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-left: 10px;
      padding-right: 10px;
      padding-bottom: 40px;

      .image-title {
        line-height: 36px;
      }
    }

    .image-title {
      font-weight: var(--scaht-font-weight-regular);
      color: var(--scaht-white);
      text-align: center;
      text-transform: uppercase;
      font-size: 34px;
      margin: 0;

      a {
        color: var(--scaht-white);
        text-decoration: none;
      }

      a:hover {
        font-weight: 600;
      }
    }
  }

  .card-body {
    padding-left: 0px;
  }

  .news-item {
    border: none;
    padding-bottom: 40px;

    a {
      color: var(--scaht-black);
      text-decoration: none;
      font-size: 21px;
      line-height: 28px
    }

    .news-item-category {
      padding-top: 9px;
      font-size: 14px;
      line-height: 14px;
      font-weight: var(--scaht-font-weight-light);
      color: var(--scaht-dark-blue);
      margin-bottom: 0.8rem;
      text-transform: uppercase;
    }

    .news-date {
      font-weight: var(--scaht-font-weight-light);
      font-size: 14px;
      line-height: 14px;
      padding-top: 12px;
    }
  }

  .news-page {
    position: relative;

    /* Ensure absolute children (e.g., back button) are positioned relative to this container */
    .close-back-btn {
      position: absolute;
      top: -15px;
      right: 0px;
      width: 50px;
      height: 50px;
      background: none;
      border: none;
      color: var(--scaht-light-gray);
      font-size: 50px;
      text-decoration: none;
      cursor: pointer;
      z-index: 10;
      font-weight: var(--scaht-font-weight-light);
    }

    .news-date {
      padding-bottom: 15px;

      p {
        margin-bottom: 0px;
        font-size: 18px;
        line-height: 28px;
        font-weight: var(--scaht-font-weight-semibold);
        color: var(--scaht-light-gray);
      }
    }

    .news-title {
      padding-bottom: 43px;

      h1 {
        font-size: 24px;
        line-height: 28px;
        font-weight: var(--scaht-font-weight-semibold);
        text-transform: uppercase;
        color: var(--scaht-red);
        margin-bottom: 0px;
      }
    }

    .news-content {
      padding-bottom: 43px;

      p {
        font: 21px/34px var(--scaht-font-family);
        font-weight: var(--scaht-font-weight-light);
      }

      a {
        color: var(--scaht-dark-gray);
        text-decoration: none;
        --chevron-color: var(--scaht-red);
        /* default chevron color */
        --chevron-size: 0.9em;
        /* default chevron size */
        --chevron-offset-y: -0.1em;
        /* vertical nudge (negative lowers) */
      }

      a::after {
        content: '';
        display: inline-block;
        width: var(--chevron-size);
        height: var(--chevron-size);
        margin-left: 6px;
        /* Tint via variable (override with --chevron-color or set to currentColor) */
        background-color: var(--chevron-color);
        /* Mask the SVG so background-color provides the color */
        -webkit-mask-image: var(--scaht-chevron-right);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        -webkit-mask-size: var(--chevron-size) var(--chevron-size);
        mask-image: var(--scaht-chevron-right);
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: var(--chevron-size) var(--chevron-size);
        vertical-align: var(--chevron-offset-y);
      }
    }

    .news-image {
      font-size: 14px;
      line-height: 28px;
      font-weight: var(--scaht-font-weight-light);

      img {
        margin-bottom: 16px;
        max-width: 100%;
        height: auto;
      }
    }
  }

  .search-result-parent-title {
    padding-top: 9px;
    font-size: 14px;
    font-weight: var(--scaht-font-weight-semibold);
    line-height: 14px;
    color: var(--scaht-dark-blue);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
  }

  .news-gutter {
    --bs-gutter-x: 2rem;
  }

  .publication-page {
    position: relative;
    /* Ensure absolute children (e.g., back button) are positioned relative to this container */

    .close-back-btn {
      position: absolute;
      top: -15px;
      right: 0px;
      width: 50px;
      height: 50px;
      background: none;
      border: none;
      color: var(--scaht-light-gray);
      font-size: 50px;
      text-decoration: none;
      cursor: pointer;
      z-index: 10;
      font-weight: var(--scaht-font-weight-light);
    }

    .publication-date {
      padding-bottom: 15px;

      p {
        margin-bottom: 0px;
        font-size: 18px;
        line-height: 28px;
        font-weight: var(--scaht-font-weight-semibold);
        color: var(--scaht-light-gray);
      }
    }

    .publication-title {
      padding-bottom: 43px;

      h1 {
        font-size: 24px;
        line-height: 28px;
        font-weight: var(--scaht-font-weight-semibold);
        text-transform: uppercase;
        color: var(--scaht-red);
        margin-bottom: 0px;
      }
    }

    .publication-image {
      font-size: 14px;
      line-height: 28px;
      font-weight: var(--scaht-font-weight-light);

      img {
        margin-bottom: 16px;
        max-width: 100%;
        height: auto;
      }
    }
  }

  .teamindex-page {
    h2.group-name {
      color: var(--scaht-dark-blue);
      text-transform: uppercase;
      font-size: 18px;
      line-height: 28px;
      font-weight: var(--scaht-font-weight-semibold);
      padding-bottom: 11px;
      margin-bottom: 0px;
    }

    img {
      width: 100%;
    }

    .member-name {
      font-size: 18px;
      line-height: 22px;
      padding-top: 22px;

      a {
        text-decoration: none;
      }
    }

    .group-role {
      font-size: 14px;
      line-height: 18px;
      font-weight: var(--scaht-font-weight-light);
      margin-bottom: 0px;
    }

    .row {
      padding-bottom: 40px;
    }
  }

  .team-member-page {
    position: relative;

    .close-back-btn {
      position: absolute;
      top: -15px;
      right: 0px;
      width: 50px;
      height: 50px;
      background: none;
      border: none;
      color: var(--scaht-light-gray);
      font-size: 50px;
      text-decoration: none;
      cursor: pointer;
      z-index: 10;
      font-weight: var(--scaht-font-weight-light);
    }

    h2.member-title-name {
      font-size: 24px;
      line-height: 28px;
      font-weight: var(--scaht-font-weight-semibold);
      text-transform: uppercase;
      color: var(--scaht-red);
      margin-bottom: 0px;
      padding-bottom: 10px;
      padding-top: 50px;
    }

    .member-role {
      font-size: 18px;
      line-height: 28px;
      font-weight: var(--scaht-font-weight-semibold);
      color: var(--scaht-light-gray);
      margin-bottom: 0px;
    }

    .member-content {
      padding-top: 50px;

      p {
        font-weight: var(--scaht-font-weight-light);
        font-size: 21px;
        padding-bottom: 20px;
      }
    }

    .member-meta {
      padding-top: 50px;

      p {
        color: var(--scaht-dark-gray);
        font-size: 18px;
        line-height: 34px;
        font-weight: var(--scaht-font-weight-regular);
        margin-bottom: 0px;

        a {
          color: var(--scaht-dark-gray);
          text-decoration: none;
          --chevron-color: var(--scaht-red);
          /* default chevron color */
          --chevron-size: 0.9em;
          /* default chevron size */
          --chevron-offset-y: -0.1em;
          /* vertical nudge (negative lowers) */
        }

        a::after {
          content: '';
          display: inline-block;
          width: var(--chevron-size);
          height: var(--chevron-size);
          margin-left: 6px;
          /* Tint via variable (override with --chevron-color or set to currentColor) */
          background-color: var(--chevron-color);
          /* Mask the SVG so background-color provides the color */
          -webkit-mask-image: var(--scaht-chevron-right);
          -webkit-mask-repeat: no-repeat;
          -webkit-mask-position: center;
          -webkit-mask-size: var(--chevron-size) var(--chevron-size);
          mask-image: var(--scaht-chevron-right);
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: var(--chevron-size) var(--chevron-size);
          vertical-align: var(--chevron-offset-y);
        }
      }
    }
  }

  .expandable-section {
    h2 {
      color: var(--scaht-dark-blue);
      text-transform: uppercase;
      font-size: 18px;
      margin-top: -30px;
      padding-bottom: 30px;
      font-weight: 600;
      /* semibold */
    }

    .accordion-body {
      line-height: 34px;
    }

    .accordion-item {
      border: none;
      border-radius: 0px;
      border-top: 1px solid var(--scaht-light-gray);

      h3 button {
        text-transform: uppercase;
        font-size: 21px;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 0px;
        padding-right: 0px;
        font-weight: var(--scaht-font-weight-light);
        /* light */
      }

      .accordion-header {
        .event-date {
          display: block;
          font-size: 18px;
          color: var(--scaht-dark-blue);
          text-transform: uppercase;
          font-weight: var(--scaht-font-weight-regular);
        }

        .event-title {
          display: block;
          font-size: 21px;
          font-weight: var(--scaht-font-weight-regular);
          color: var(--scaht-black);
        }

        .event-location {
          display: block;
          font-size: 18px;
          color: var(--scaht-light-gray);
          font-weight: var(--scaht-font-weight-bold);
          text-transform: initial;
        }
      }

      .accordion-body {
        .event-section-description {
          font-size: 18px;
          line-height: 34px;
          font-weight: var(--scaht-font-weight-light);
        }

        .event-section-title {
          color: var(--scaht-dark-blue);
          text-transform: uppercase;
          font-size: 18px;
          line-height: 22px;
          font-weight: var(--scaht-font-weight-regular);
        }

        .event-section-text,
        .event-section-text p,
        .event-section-text a {
          font-size: 18px;
          line-height: 26px;
          margin-bottom: 24px;
          color: var(--scaht-dark-gray);
          font-weight: var(--scaht-font-weight-regular);
        }
      }
    }

    .accordion-item:last-child {
      border-bottom: 1px solid var(--scaht-light-gray);
    }

    .accordion-button.collapsed {
      line-height: 26px;
    }

    .event-item-header .accordion-button:not(.collapsed),
    .event-item-header .accordion-button.collapsed {
      line-height: 28px !important;
    }

    .accordion-button::after {
      margin-left: auto;
      padding-left: 20px;
      width: 22px;
      height: 22px;
      background-size: 22px 22px;
      background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='rgb(112, 112, 112)' fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2'/></svg>");
    }

    .accordion-button:focus {
      box-shadow: none;
    }

    .accordion-button:not(.collapsed) {
      background-color: transparent;
      box-shadow: none;
      color: var(--scaht-red);
      border-radius: 0px;
      font-size: 24px;
      line-height: 34px;
      font-weight: var(--scaht-font-weight-semibold);

      .event-title {
        color: var(--scaht-red);
      }
    }

    .accordion-button:not(.collapsed)::after {
      background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='rgb(112, 112, 112)' fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8'/></svg>");
    }

    .accordion-body {
      padding: 5px 0px 45px 0px;
      font-size: 21px;
      font-weight: 300;

      b {
        font-weight: 600;
        /* semibold */
      }
    }
  }

  .active>.page-link,
  .page-link.active {
    z-index: 1;
    color: #fff;
    background-color: #00a5db !important;
    border-color: #00a5db !important;
  }

}

.footer {
  background-color: var(--scaht-light-gray);

  .container {
    margin-left: auto;
  }

  footer {
    margin-top: 45px;
    margin-bottom: 33px;
  }
}

h2.directions-title {
  font-size: 24px;
  color: var(--scaht-red);
  font-weight: var(--scaht-font-weight-semibold);
}

.rich-text-content {
  b {
    font-weight: var(--scaht-font-weight-semibold);
  }
}

#map {
  height: 367px;
}

.publications-item {
  padding-bottom: 24px;

  .publications-date {
    color: var(--scaht-dark-blue);
    padding-top: 8px;
    margin-bottom: 13px;
    font-weight: var(--scaht-font-weight-light);
    font-size: 14px;
    line-height: 14px;
    padding-top: 12px;
  }

  a {
    color: var(--scaht-black);
    text-decoration: none;
    font-weight: var(--scaht-font-weight-semibold);
    font-size: 21px;
    line-height: 28px;
  }

}

hr {
  opacity: 0.3;
}

.close-back-btn {
  content: none;
}

.btn-close-custom {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF0000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

/* Optional: to ensure the hover state is also the custom color */
.btn-close-custom:hover {
  opacity: 1;
  /* Reset default opacity change on hover if needed */
}