.service-offerings-block {
  position: relative;
  overflow: hidden;
  background: #151316;
  color: #FFFFFF;

  padding-top: 128px;
  /* padding-bottom: 128px; */
  padding-bottom: 0;

  min-height: calc(450px + 128px + 128px); /* min height of offerings area + padding */
  display: flex;

  &::before {
    content: "";
    position: absolute;
    width: 1111px;
    max-width: 80%;
    height: 293px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -281px;
    background: radial-gradient(
      ellipse at 13.08% 81.13%, 
      #4500F9 0%, 
      #8752FA 30.29%, 
      #CD83FF 67.31%, 
      #FF5001 100%
    ), #D9D9D9;
    filter: blur(150px);
    z-index: 1;


    @media screen and (max-width: 600px) {
      height: 97.06px;
      bottom: -95.49px;
      filter: blur(100px);
      max-width: 90%;
    }
  }

  .service-offerings-block-wrapper {
    display: flex;
    align-items: center;

    position: relative;
    z-index: 2;

    max-height: 450px;
    max-height: calc(128px + 450px);

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      width: 150vw;
      height: 2px;
      background: #5A575D;
      pointer-events: none;
      z-index: -1;
      transform: translateX(-50%);
    }

    &::after {
      content: "";
      position: absolute;
      top: 0;
      /* left: 36%; */
      /* left: calc(24.5% + 38px); */
      left: 325px;
      width: 2px;
      height: 150vh;
      background: #5A575D;
      pointer-events: none;
      z-index: -1;
    }

    @media screen and (max-width: 600px) {
      flex-direction: column;
      max-height: unset;
      min-height: calc(100svh - 256px);

      &::after,
      &::before {
        content: none;
      }

    }
  }

  .service-offerings-header {
    padding: 48px;
    padding-left: 0;
    /* flex: 0 0 36%;
    max-width: 36%;
    flex: 0 0 24.5%;
    max-width: 24.5%; */
    flex: 0 0 300px;
    max-width: 300px;
    /* min-width: min-content; */

    

    @media screen and (max-width: 600px) {
      flex: none;
      max-width: 100%;
      min-width: unset;
      padding: 24px;
      z-index: 5;

      &::before {
        left: -4px;
        right: unset;
        top: -130px;
        background: #312D34;
      }
    }
  }

  /* Title styling */
  .service-offerings-title {
    font-size: 4.8rem;
    line-height: 1.1;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-wrap-style: balance;
    padding-right: 24px;
  }

  /* Service filter dropdown */
  .service-filter-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
    position: relative;
    z-index: 2;
  }

  /* Custom Select Styling */
  .custom-select {
    position: relative;
    min-width: 250px;
    background: transparent;
    cursor: pointer;
    user-select: none;
    width: 100%;
    z-index: 2;

    /* Focus styles */
    /* &:focus-within {
      outline: 2px solid #FF5001;
      outline-offset: 2px;
    } */
  }

  .custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0px;
    padding-top: 14px;
    border-bottom: 2px solid;
    border-image: var(--rc-grad-warmth) 1;
    transition: all 0.3s ease;
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 500;
    color: #FFFFFF;

    &:hover {

    }

    .custom-select.open & {
      
      .custom-select-arrow {
        transform: rotate(180deg);
      }
    }
  }

  .custom-select-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .custom-select-arrow {
    margin-left: 12px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      width: 12px;
      height: 8px;
    }
  }

  .custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151316;
    /* border: 2px solid #FF5001;
    border-top: none; */
    /* max-height: 220px; */
    max-height: 170px;
    overflow-y: auto;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;

    /* hide scrollbar */
    &::-webkit-scrollbar {
      display: none;
    }
    scrollbar-width: none;
    -ms-overflow-style: none;  

    .custom-select.open & {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* Custom scrollbar */
    /* &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
    }

    &::-webkit-scrollbar-thumb {
      background: var(--rc-grad-warmth-180);
      border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #CD83FF;
    } */
  }

  .custom-select-option {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    /* font-size: 1rem; */
    font-weight: 400;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    &:last-child {
      border-bottom: none;
    }

    &:hover {
      /* background: rgba(255, 80, 1, 0.1);
      color: #FF5001; */
    }

    &.active {
      /* background: rgba(255, 80, 1, 0.2);
      color: #FF5001; */
      font-weight: 600;
      position: relative;

      /* &::after {
        content: "✓";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
      } */
    }

    &.highlighted {
      /* background: rgba(255, 80, 1, 0.15); */
    }
  }

  /* Responsive adjustments */
  @media screen and (max-width: 600px) {
    .service-filter-wrapper {
      justify-content: center;
    }

    .custom-select {
      min-width: 200px;
      width: 100%;
      max-width: 300px;

      @media screen and (max-width: 600px) {
        max-width: 100%;
      }
    }

    .custom-select-trigger {
    }

    .custom-select-option {
      padding: 14px 16px;
    }
  }

  /* Animation for opening */
  .custom-select.opening .custom-select-options {
    animation: slideDown 0.3s ease forwards;
  }

  .custom-select.closing .custom-select-options {
    animation: slideUp 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
    }
  }

  /* Hide native select */
  .service-filter-native {
    display: none !important;
  }

  .offerings-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    padding: 48px 24px;
    /* flex: 0 0 64%; */
    /* flex: 0 0 74.5%; */
    flex: 1;

    max-height: 450px;
    max-height: calc(128px + 450px);
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
    &::-webkit-scrollbar {
      display: none; 
    }

    .offering {
      border: 1px solid currentColor;
      padding: 14px;
      line-height: 1.25;
      font-size: 1.4rem;
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
      margin: 1px;
      text-align: center;

      @media screen and (min-width: 600px) {
        &:hover {
          margin: 0;
          box-shadow: 0px 0px 14px rgba(255, 80, 1, 0.7);
          border: 2px solid;
          border-image: linear-gradient(135.25deg, #4500F9 0%, #8752FA 30.29%, #CD83FF 67.31%, #FF5001 100%) 1;
        }
      }
    }

    .no-results-message {
      text-align: center;
      color: #D9D9D9;
      font-style: italic;
      width: 100%;
      margin-top: 2rem;
    }
  }

  .offering-modal {
    display: none;
    position: relative;
    z-index: 3;
    margin: 0 auto;

    &.active {
      display: block;
    }

    .offering-modal-body {
      display: flex;
      gap: 64px;
      align-items: flex-start;
      justify-content: center;

      @media screen and (max-width: 600px) {
        flex-direction: column;
        gap: 32px;
        max-width: 590px;
        margin: 0 auto;
      }

      .offering-modal-header {
        box-shadow: 0px 0px 14px rgba(255, 80, 1, 0.7);
        border: 2px solid;
        border-image: linear-gradient(135.25deg, #4500F9 0%, #8752FA 30.29%, #CD83FF 67.31%, #FF5001 100%) 1;
        padding: 16px;
        line-height: 1.25;
        font-weight: 700;
        background: #151316;
        flex: 0 0 340px;
        max-width: fit-content;

        @media screen and (max-width: 600px) {
          flex: 1;
          order: 2;
        }

        .offering-modal-title {
          text-align: center;
          text-wrap-style: balance;
        }
      }

      .offering-modal-text {
        max-width: 590px;
        flex: 1;

        @media screen and (max-width: 600px) {
          order: 3;
        }
      }

      button.offering-modal-close {
        appearance: none;
        border: none;
        background: none;
        cursor: pointer;

        @media screen and (max-width: 600px) {
          align-self: flex-end;
          order: 1;
        }

        svg path {
          fill: #D9D9D9;
        }

        &:hover svg path {
          fill: #FFFFFF;
        }
      }
    }
  }

  .service-offerings-block-wrapper:has(.offering-modal.active) {

    justify-content: center;

    &::before,
    &::after,
    .service-offerings-header,
    .offerings-tags-wrapper {
      display: none;
    }
  }
}