/* ===== MYSTERIES UNVEILED - FAQ SECTION ===== */

.faq-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #FFFFFF 100%);
    padding: 120px 20px;
    overflow: hidden;
}

/* ===== MYSTICAL BACKGROUND ===== */
.faq-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.1;
}

.faq-bg svg {
    width: 100%;
    height: 100%;
}

.faq-pattern {
    fill: none;
    stroke: #B10000;
    stroke-width: 1;
    opacity: 0.3;
}

/* ===== CONTAINER ===== */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.faq-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
}

.faq-icon {
    font-size: 5rem;
    color: #B10000;
    margin-bottom: 20px;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.faq-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    background: linear-gradient(45deg, #B10000, #000000, #B10000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.faq-subtitle {
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #8B0000;
}

/* ===== FAQ ITEMS ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    border: 2px solid rgba(177, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.4s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(177, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:hover {
    border-color: rgba(177, 0, 0, 0.2);

    transform: translateX(5px);
}

.faq-item.active {
    border-color: #B10000;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
}

.faq-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #B10000, #8B0000, #B10000);

}

/* ===== QUESTION ===== */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    cursor: pointer;
    user-select: none;
}

.question-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.question-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #B10000;
    background: rgba(177, 0, 0, 0.1);
    border: 2px solid rgba(177, 0, 0, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-item:hover .question-number {
    background: rgba(177, 0, 0, 0.2);
    border-color: #B10000;
    transform: rotate(360deg);
}

.question-text {
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    color: #B10000;
    font-weight: 600;
}

.question-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #B10000;
    background: rgba(177, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.faq-item.active .question-toggle {
    transform: rotate(180deg);
    background: rgba(177, 0, 0, 0.2);
}

/* ===== ANSWER ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s ease;
    position: relative;
}

.faq-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(177, 0, 0, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 25px 35px 30px 35px;
}

.faq-item.active .faq-answer::before {
    opacity: 1;
}

.answer-content {
    position: relative;
    padding: 30px 35px;
    background: linear-gradient(135deg, rgba(177, 0, 0, 0.05), rgba(255, 255, 255, 0.4));

    overflow: visible;

}

.answer-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, transparent, #B10000, #8B0000, #B10000, transparent);
    border-radius: 2px;

}

.answer-content::after {
    content: '◆';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 1.5rem;
    color: rgba(177, 0, 0, 0.2);
    animation: pulse-rune 3s ease-in-out infinite;
}

@keyframes pulse-rune {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1) rotate(180deg);
    }
}

.answer-text {
    font-size: 1.15rem;
    font-family: 'Cormorant Garamond', serif;
    color: #000000;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    padding-left: 15px;
}

.answer-highlight {
    color: #8B0000;
    font-weight: 600;
    position: relative;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(177, 0, 0, 0.15), rgba(255, 20, 147, 0.1));
    border-radius: 6px;
    border-bottom: 2px solid rgba(177, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: inline-block;
}

.answer-highlight:hover {
    background: linear-gradient(135deg, rgba(177, 0, 0, 0.25), rgba(255, 20, 147, 0.15));
    border-bottom-color: #B10000;
    transform: translateY(-1px);

}

/* ===== MYSTICAL DIVIDER ===== */
.faq-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    opacity: 0;
}

.divider-rune {
    font-size: 2rem;
    color: #B10000;
    animation: pulse-rune 2s ease-in-out infinite;
}

@keyframes pulse-rune {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.divider-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B10000, transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .faq-section {
        padding: 100px 20px 80px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 100px 20px 80px;
        overflow-x: hidden;
    }

    .faq-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .faq-question {
        padding: 20px;
    }

    .question-content {
        gap: 15px;
    }

    .question-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .answer-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
  .faq-container {
      padding: 0 8px;
  }

  .faq-list {
      gap: 16px;
  }

  .faq-item {
      border-radius: 14px;
  }

  .faq-question {
      padding: 16px;
      gap: 10px;
      flex-wrap: wrap;
  }

  .question-content {
      gap: 12px;
      min-width: 0;
      flex: 1;
  }

  .question-number {
      width: 36px;
      height: 36px;
      font-size: 0.95rem;
  }

  .question-text {
      font-size: 1rem;
      line-height: 1.3;
      word-break: break-word;
      hyphens: auto;
      flex: 1;
      min-width: 0;
  }

  .question-toggle {
      width: 34px;
      height: 34px;
      font-size: 1.2rem;
      flex-shrink: 0;
  }

  .faq-item.active .faq-answer {
      padding: 0 16px 16px 16px;
  }

  .answer-content {
      padding: 16px;
  }

  .answer-text {
      font-size: 1rem;
      line-height: 1.55;
      word-break: break-word;
      hyphens: auto;
    }
}

@media (max-width: 360px) {
  .faq-container {
      padding: 0 6px;
  }

  .faq-question {
      padding: 12px;
  }

  .question-number {
      width: 32px;
      height: 32px;
      font-size: 0.9rem;
  }

  .question-toggle {
      width: 32px;
      height: 32px;
      font-size: 1.1rem;
  }

  .question-text {
      font-size: 0.95rem;
  }

  .answer-content {
      padding: 14px;
  }
}
