/* FAQ Page Styles */

/* Mobile Background Image */
@media (max-width: 767px) {
  .faq-page-header {
    background-image: url('../images/faq_sp.jpg') !important;
  }
}

/* FAQ Card Design */
.faq-card {
  background: #ffffff !important;
  border: none !important;
  border-left: 4px solid #E4405F !important;
  border-radius: 0 !important;
  margin-bottom: 25px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  overflow: hidden !important;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 64, 95, 0.15);
}

.faq-question {
  padding: 25px 30px !important;
  background: rgba(255, 240, 245, 0.3) !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #201818 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.6 !important;
  border-bottom: 1px solid rgba(228, 64, 95, 0.1) !important;
}

.faq-answer {
  padding: 25px 30px !important;
  margin: 0 !important;
  font-size: 15px !important;
  color: #333333 !important;
  line-height: 1.9 !important;
  background: #ffffff !important;
}

.faq-answer a {
  color: #E4405F;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 64, 95, 0.3);
  transition: all 0.3s ease;
}

.faq-answer a:hover {
  color: #c7354f;
  border-bottom-color: #E4405F;
}

.faq-section {
  margin-bottom: 50px;
}

.faq-tabs {
  border-bottom: 2px solid #E4405F;
  margin-bottom: 40px;
}

.faq-tabs li a {
  padding: 15px 30px;
  font-size: 16px;
  color: #666;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  border-bottom: 3px solid transparent;
  position: relative;
}

.faq-tabs li.active a,
.faq-tabs li a:hover {
  color: #E4405F;
  background: transparent;
  border-bottom-color: #E4405F;
}

/* Tab Content Animation */
.tab-content {
  position: relative;
  min-height: 200px;
}

.tab-pane {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.tab-pane.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* Reset animation for cards when tab becomes active */
.tab-pane:not(.active) .faq-card {
  opacity: 0;
  animation: none;
}

.tab-pane.active .faq-card {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tab-pane.active .faq-card:nth-child(1) {
  animation-delay: 0.1s;
}

.tab-pane.active .faq-card:nth-child(2) {
  animation-delay: 0.15s;
}

.tab-pane.active .faq-card:nth-child(3) {
  animation-delay: 0.2s;
}

.tab-pane.active .faq-card:nth-child(4) {
  animation-delay: 0.25s;
}

.tab-pane.active .faq-card:nth-child(5) {
  animation-delay: 0.3s;
}

.tab-pane.active .faq-card:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Styles */
@media (max-width: 767px) {
  .faq-question {
    padding: 20px;
    font-size: 14px !important;
  }
  .faq-answer {
    padding: 20px;
    font-size: 12px !important;
    line-height: 1.8;
  }
  .faq-tabs li a {
    padding: 12px 20px;
    font-size: 13px !important;
  }
  .module-title {
    font-size: 24px !important;
  }
  .module-subtitle {
    font-size: 12px !important;
  }
}


