/* =======================
   Astrea 8 IPO - Styling
========================== */

.astrea8-landing-page {
  /* ------------------------
     Hero Banner
  ------------------------ */
  .hero-banner {
    position: relative;
    height: 360px;
    color: #000;
    background-size: cover;
    background-position: center;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.6);
      z-index: 0;
    }

    .container {
      position: relative;
      z-index: 1;
    }
  }

  .richcontent table {
    min-width: 100%;
  }

  @media (min-width: 768px) {
    .richcontent table {
      min-width: auto;
    }
  }

  /* ------------------------
     Tabs Navigation
  ------------------------ */
  .astrea8-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      display: none;
    }

    .nav-tabs {
      display: inline-flex;
      flex-wrap: nowrap;
      white-space: nowrap;
      /* justify-content: center; */
      border-bottom: none;
      min-width: 100%;
      justify-content: space-between;
    }

    /* .nav-item {
      margin: 0 10px;
    } */

    .nav-link {
      /* font-weight: 600; */
      color: #000;
      border: none;
      border-bottom: 5px solid transparent;
      transition: all 0.3s;
      padding: 1.5rem;

      &.active {
        color: #cb2586;
        border-bottom-color: #cb2586;
      }
    }

    .scroll-hint {
      font-size: 0.8rem;
      color: #aaa;
      text-align: center;
      margin: -10px 0 10px;
    }
  }

  /* ------------------------
     Event List
  ------------------------ */
  div[data-load="news"]:hover {
    color: #9e9e9e !important;
    .event-title-link {
      color: #9e9e9e !important;
    }
  }
  .astrea8-event-list {
    .event-item {
      /* margin-bottom: 1rem; */
      margin-bottom: 40px;
      /* padding-bottom: 0.3rem; */
      position: relative;
      &:hover {
        color: #414141 !important;
        .event-title-link {
          color: #414141 !important;
        }
      }
    }

    .event-meta {
      color: #adb5bd !important;
      opacity: 0.4;

      flex-shrink: 1;
      font-size: 0.75rem;
      line-height: 1rem;

      @media (min-width: 992px) {
        font-size: 1.125rem;
      }
    }

    @media (min-width: 768px) {
      .richcontent table {
        min-width: auto;
      }
    }

    .event-link a {
      color: #e31c79;
      font-size: 1.2rem;
    }

    .gold-underline {
      height: 1px;
      background-color: #cdb98a;
      width: 100%;
    }
  }

  .event-title-link {
    width: 100%;
    text-decoration: none;
    color: #000;
    padding-top: 0.5rem;
    padding-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;
    transition: all 0.2s ease-in-out;

    @media (min-width: 1024px) {
      font-size: 1.25rem;
    }
  }

  /* ------------------------
     Pagination
  ------------------------ */
  .pager {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;

    .pager__item {
      a,
      &.is-active {
        padding: 0.4rem 0.8rem;
        text-decoration: none;
        border-radius: 4px;
      }

      a:hover {
        background-color: #f0f0f0;
      }

      &.is-active {
        background-color: #e31c79;
        color: white;
        font-weight: bold;
      }
    }
  }

  /* ------------------------
     Video Tab
  ------------------------ */
  .video-block {
    .card {
      border: 1px solid #adb5bd;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
      transition: transform 0.2s ease;

      &:hover {
        transform: translateY(-4px);
      }

      .card-body {
        padding: 1rem;
        text-align: center;
      }

      .card-title {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0;
      }

      .ratio {
        background-color: #000;
      }

      iframe {
        width: 100%;
        height: 100%;
        border: none;
      }
    }

    .text-muted {
      background: #fafafa;
      border: 1px dashed #ccc;
      padding: 2rem;
      font-style: italic;
    }
  }

 /* ------------------------
   FAQ Tab Styling
  ------------------------ */
  .astrea8-faq-section {
    margin-top: 2rem;
  }

  /* FAQ side navigation */
  #faq-tabs {
    /* border-left: 3px solid #eee;
    padding-left: 1rem; */
    border-left: 1px solid #adb5bd;
    margin-bottom: 2rem;

    .nav-link {
      font-weight: bold;
      color: #555;
      text-align: left;
      background-color: transparent;
      border: none;
      border-left: 3px solid transparent;
      border-radius: 0;
      padding: 0.5rem 1rem;
      transition: background 0.3s, color 0.3s, border-color 0.3s;
      cursor: pointer;

      &:hover {
        background-color: #fef4fa;
        color: #b21675;
        border-left-color: #b21675;
      }

      &.active {
        color: #b21675;
        background-color: #fff;
        border-left-color: #b21675;
        font-weight: 600;
      }
    }
  }

  /* FAQ accordion styles */
  .accordion-item {
    border: none;
  
    + .accordion-item {
      margin-top: 1rem;
    }
  
    .accordion-button {
      font-weight: 600;
      font-size: 1rem;
      color: #333;
      background-color: #fff;
      box-shadow: none;
  
      transition: border-color 0.2s ease-in-out;
  
      border: 1px solid #333;
      border-radius: 0.5rem 0.5rem 0 0;
  
      &.collapsed {
        border-color: #adb5bd;
        border-radius: 0.5rem !important;
      }
  
      &:hover {
        background-color: #fdf6f9;
      }
  
      &:not(.collapsed) {
        color: #b21675;
        background-color: #fdf6f9;
        border-radius: 0.5rem 0.5rem 0 0;
      }
    }
  
    .accordion-body {
      color: #333;
      padding-top: 0.5rem;
      border-radius: 0.5rem;
    }
  
    .accordion-collapse {
      border: 1px solid #adb5bd;
      border-top: none !important;
      border-radius: 0 0 0.5rem 0.5rem;
      /* transition: border-color 0.5s ease-in-out; */
  
      &.show {
        border-color: #333;
      }
    }
  }
  

  .astrea8-faq-section {
    h4.faq-heading {
      color: #b21675;
      font-weight: 700;
      margin-bottom: 0;
    }

    .gold-underline {
      height: 1px;
      width: 100%;
      background-color: #cdb98a;
      margin-top: 4px;
      margin-bottom: 1rem;
    }

    .text-uppercase.text-muted {
      letter-spacing: 0.05em;
    }
  }

  .modal-content {
    border-radius: 8px;
  }

  .modal-header {
    border-bottom: 1px solid #adb5bd;
  }

  .modal-footer {
    border-top: 1px solid #adb5bd;
  }


  #footlink-content {
    .btn {
      min-width: 140px;
    }
  }

  #prospectus-container {
    max-width: 720px;
    margin: 0 auto;

    #prospectus-content {
      transition: opacity 0.3s ease-in-out;
    }

    &.fade-out #prospectus-content {
      opacity: 0;
    }

    #prospectus-buttons {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    .btn {
      min-width: 120px;
    }
  }
}

#block-azaleabs-page-title {
  display: none;
}

/* video adjustment */
.video-thumbs {
  padding: .5rem;
  border-top: 1px solid #dedfdf;
}
.video-thumbs:first-child {
  border-top: none;
}
.video-thumbs:hover {
  /* cursor: pointer; */
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 245 / var(--tw-bg-opacity));
}
.video-thumbs:hover img {
  cursor: pointer;
}