/* ===== GLOBAL COLOR VARIABLES - Change these to customize all FAQ colors ===== */
:root {
  --category-bg-color: #f8f9fa;
  --question-bg-color: #ffffff;
  --answer-bg-color: #f9f9f9;
  --border-color: #e9ecef;
  --text-color: #2c2c2c;
  --text-secondary: #666;
  --hover-color: #f1f3f4;
  --accent-color: #d683bd;
}

.amoria-faq-frontend {
  max-width: 900px;
  margin: 0 auto;   
  padding: 20px;
}

/* CATEGORY STYLING - Uses global category color */
.faq-category-section {
  margin-bottom: 50px;
  background: var(--category-bg-color);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  position: relative;
}

.faq-category-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #e24ad5);
  border-radius: 16px 16px 0 0;
}

.faq-category-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 35px;
  color: var(--text-color);
  line-height: 1.2;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.faq-category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.faq-questions {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

/* QUESTION STYLING - Uses global question color */
.faq-item {
  border-bottom: none;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--question-bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.faq-question:hover {
  background: var(--hover-color);
  border-color: var(--accent-color);
}

.faq-question.active {
  background: var(--question-bg-color);
  border-radius: 12px 12px 0 0;
  border-color: var(--accent-color);
}

.faq-question-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.5;
  flex: 1;
  margin-right: 20px;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: var(--category-bg-color);
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.faq-question:hover .faq-toggle {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.faq-question.active .faq-toggle {
  transform: rotate(180deg);
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* ANSWER STYLING - Uses global answer color with proper padding */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--answer-bg-color);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--accent-color);
  border-top: none;
}

.faq-answer.active {
  max-height: 600px;
}

.faq-answer-content {
  padding: 30px 35px 35px 35px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
  position: relative;
}

/* Beautiful separator between question and answer */
.faq-answer-content::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #4a90e2);
  margin-bottom: 20px;
  border-radius: 2px;
}

.faq-answer-content p {
  margin: 0 0 18px 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-category-section {
    padding: 25px 20px;
    margin-bottom: 35px;
  }

  .faq-category-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question-text {
    font-size: 15px;
    margin-right: 15px;
  }

  .faq-answer-content {
    padding: 25px 20px 30px 20px;
    font-size: 14px;
  }

  .faq-toggle {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .amoria-faq-frontend {
    padding: 15px;
  }

  .faq-category-section {
    padding: 20px 15px;
  }

  .faq-category-title {
    font-size: 24px;
  }

  .faq-question {
    padding: 15px 18px;
  }

  .faq-answer-content {
    padding: 20px 18px 25px 18px;
  }
}
