#questions {
  #sec-title {
    position: relative;
    height: 35dvh;
    background-color: white;

    .background-img {
      height: 100%;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .title-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;

      &.with-overlay {
        backdrop-filter: blur(2px);
        background: rgba(255, 255, 255, 0.6);
      }

      .title-text {
        padding: 0 40px;
        margin: auto 0;

        & h1 {
          text-transform: uppercase;
          font-family: "Bayon", sans-serif;
          font-size: 50px;
          color: black;
        }

        .subtitle-container {
          margin-top: 10px;
          padding: 8px;
          /* background: rgba(0, 0, 0, 1); */
          width: fit-content;
          background: linear-gradient(to right, #fe5000, #ffc175);

          h2 {
            text-transform: uppercase;
            font-size: 18px;
            color: white;
          }
        }
      }
    }
  }

  #sec-container {
    display: flex;
    flex-direction: row;
    padding: 20px 20px;
    gap: 20px;

    & > :nth-child(1) {
      margin-top: 60px;
      width: 35%;
    }

    & > :nth-child(2) {
      flex: 1;
    }
  }

  #sec-pickup {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;

    & h3 {
      font-size: 18px;
      font-family: "Hiragino Kaku Gothic Pro W6", sans-serif;
      margin-bottom: 30px;
    }

    .pickup-list {
      display: flex;
      flex-direction: column;
      gap: 30px;
      width: 100%;

      .pickup-item {
        background: #f5f5f5;
        padding: 15px;
        width: 100%;
        border: 0.5px solid black;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        cursor: pointer;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
          background-color: #fff8f6;
        }

        .pickup-header {
          display: flex;
          flex-direction: column;
          align-items: center;
          cursor: pointer;

          & h4 {
            color: black;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.5;
            flex: 1;
            text-align: center;
          }

          .arrow-icon {
            width: 24px;
            height: 24px;
            color: #ff5900;
            transition: all 0.3s ease;
            opacity: 1;
            flex-shrink: 0;
            margin-top: 10px;
          }
        }

        &.expanded .pickup-header .arrow-icon {
          opacity: 0;
          height: 15px;
          margin: 0;
          /* transform: rotate(180deg); */
        }

        .pickup-answer {
          color: #666;
          font-size: 14px;
          line-height: 1.5;
          max-height: 0;
          overflow: hidden;
          opacity: 0;
          text-align: center;
          transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
          padding-top: 0;
        }

        .pickup-number {
          position: absolute;
          top: 0;
          left: 0;
          transform: translate(-50%, -50%);
          background: #ff7b00;
          color: white;
          border-radius: 50%;
          width: 36px;
          height: 36px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          font-weight: 600;
        }

        &.expanded {
          .pickup-answer {
            max-height: 200px;
            opacity: 1;
            padding-top: 10px;
          }
        }
      }
    }
  }

  #sec-questions {
    width: 100%;
    padding: 0;

    .title-container {
      padding-bottom: 20px;
      margin-bottom: 30px;
      display: flex;
      justify-content: center;
      align-items: center;

      & h3 {
        font-size: 24px;
        font-family: "Hiragino Kaku Gothic Pro W6", sans-serif;
        border-bottom: 5px solid #ff5900;
        width: fit-content;
        padding: 10px 20px;
        color: black;
      }
    }

    .questions {
      .question-category {
        margin-bottom: 30px;

        .category-header {
          margin-bottom: 20px;
          padding: 15px 20px;
          background: #f3f3f3;

          h3 {
            font-size: 20px;
            font-weight: 800;
            text-align: center;
          }
        }

        .category-questions {
          .question {
            display: flex;
            flex-direction: column;
            /* margin: 0 10px 15px; */
            border-radius: 10px;
            padding: 20px;
            /* border: 1px solid #e0e0e0; */
            transition: all 0.3s ease;
            cursor: pointer;

            &:hover {
              background-color: #f5f5f5;
              border-color: #ff5900;
              /* transform: translateY(-1px); */
              /* box-shadow: 0 4px 12px rgba(255, 89, 0, 0.1); */
            }

            .question-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              transition: all 0.3s ease;

              & h4 {
                font-size: 18px;
                color: black;
                margin: 0;
                flex: 1;
              }

              &::before {
                content: "Q";
                font-size: 24px;
                color: #ff5900;
                font-family: "Hiragino Kaku Gothic Pro W6", sans-serif;
                margin-right: 20px;
              }

              &::after {
                content: "＋";
                font-size: 24px;
                margin-left: 20px;
                transition: transform 0.3s ease;
              }
            }

            .question-answer {
              max-height: 0;
              overflow: hidden;
              opacity: 0;
              transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
              padding-top: 0;

              & p {
                font-size: 14px;
                line-height: 1.5;
                margin: 0;
                color: #333;
                padding-left: 44px; /* Align with question text */
              }
            }

            &.expanded {
              .question-answer {
                max-height: 300px;
                opacity: 1;
                padding-top: 20px;
              }

              .question-header::after {
                content: "－";
                transform: rotate(0deg);
              }
            }
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  #questions {
    #sec-container {
      flex-direction: column;

      & > :nth-child(1) {
        width: 100%;
        margin-top: 0;
      }

      #sec-questions {
        .questions {
          .question-category {
            .category-questions {
              .question {
                padding: 15px;

                .question-header h4 {
                  font-size: 16px;
                }

                &.expanded {
                  .question-answer {
                    padding-top: 10px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
