/* ============================================
   FAQ PAGE
   Styles for faq.ejs
   ============================================ */

/* FAQ Page Container */
.faq-page {
  min-height: 100vh;
}

/* ============================================
   HERO SECTION WITH WAVE PATTERN
   ============================================ */
.faq-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 60px 0 80px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .faq-hero-section {
    padding: 80px 0 100px;
  }
}

/* Wave Pattern (top of hero) */
.faq-hero-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

@media (min-width: 768px) {
  .faq-hero-section::before {
    height: 80px;
  }
}



@media (min-width: 768px) {
  .faq-hero-section::after {
    height: 80px;
  }
}

.faq-hero-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .faq-hero-headline {
    font-size: 48px;
    margin-bottom: 20px;
  }
}

.faq-hero-subheadline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .faq-hero-subheadline {
    font-size: 22px;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: var(--section-spacing) 0;
  background-color: #FFFFFF;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 80px 0;
  }
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   FAQ ITEM
   ============================================ */
.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-medium);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-blue);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .faq-item {
    margin-bottom: 20px;
  }
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item.active {
  border-left-color: var(--secondary-blue);
}

@media (min-width: 768px) {
  .faq-item.active {
    border-left-color: var(--secondary-blue);
  }
}

/* ============================================
   FAQ QUESTION (BUTTON)
   ============================================ */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(43, 127, 191, 0.05);
}

@media (min-width: 768px) {
  .faq-question {
    padding: 24px 28px;
    gap: 20px;
  }
}

.faq-question-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
}

@media (min-width: 768px) {
  .faq-question-text {
    font-size: 18px;
  }
}

.faq-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(43, 127, 191, 0.1);
  border-radius: var(--radius-circle);
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .faq-icon {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--primary-blue);
  color: var(--text-on-blue);
}

@media (min-width: 768px) {
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
  }
}

/* ============================================
   FAQ ANSWER
   ============================================ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

@media (min-width: 768px) {
  .faq-item.active .faq-answer {
    max-height: 600px;
  }
}

.faq-answer-text {
  padding: 0 20px 20px 20px;
  font-size: var(--font-small);
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .faq-answer-text {
    padding: 0 28px 24px 28px;
    font-size: var(--font-body);
    line-height: 1.8;
  }
}

/* ============================================
   CTA SECTION WITH WAVE
   ============================================ */
.faq-cta-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .faq-cta-section {
    padding: 100px 0;
  }
}

/* Wave Pattern (top of CTA) */
.faq-cta-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: rotate(180deg);
}



@media (min-width: 768px) {
  .faq-cta-section::before {
    height: 80px;
  }
}

.faq-cta-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.faq-cta-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-on-blue);
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .faq-cta-headline {
    font-size: 42px;
    margin-bottom: 40px;
  }
}

.faq-cta-container .btn {
  min-width: 200px;
  background-color: #FFFFFF;
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-cta-container .btn:hover {
  background-color: var(--bg-main);
  color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .faq-cta-container .btn {
    min-width: 240px;
  }
}

@media (min-width: 768px) {
  .faq-cta-container .btn:hover {
    transform: translateY(-2px);
  }
}