/* FAQ Page Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f4ea;
  color: #223126;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

/* ===== FAQ HEADER ===== */

.faq-header {
  position: relative;
  color: #ffffff;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #1b5e20;
}

.faq-carousel {
  position: absolute;
  inset: 0;
}

.faq-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.faq-carousel-slide.active {
  opacity: 1;
}

.faq-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
}

.faq-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 59, 24, 0.82) 0%, rgba(17, 59, 24, 0.55) 100%);
  z-index: 1;
}

.faq-header-content {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px;
  min-height: clamp(320px, 45vh, 430px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.faq-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.faq-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-4px);
}

.back-arrow {
  font-size: 1.2rem;
}

.faq-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.faq-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  line-height: 1.6;
}

/* ===== FAQ SECTION ===== */

.faq-section {
  padding: 80px 0;
  background: #f7f4ea;
  min-height: 100vh;
}

.faq-search-container {
  position: relative;
  margin-bottom: 60px;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-search-input {
  width: 100%;
  max-width: 500px;
  padding: 16px 40px 16px 16px;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
}

.faq-search-input:focus {
  outline: none;
  border-color: #1b5e20;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #2e7d32;
  pointer-events: none;
}

/* ===== FAQ CONTAINER ===== */

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.faq-category {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.faq-category:nth-child(1) { animation-delay: 0.1s; }
.faq-category:nth-child(2) { animation-delay: 0.2s; }
.faq-category:nth-child(3) { animation-delay: 0.3s; }
.faq-category:nth-child(4) { animation-delay: 0.4s; }
.faq-category:nth-child(5) { animation-delay: 0.5s; }
.faq-category:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-category-title {
  font-size: 1.8rem;
  color: #2e7d32;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #2e7d32;
  font-weight: 700;
}

/* ===== FAQ ITEMS ===== */

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 16px;
  border-left: 4px solid transparent;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.15);
  border-left-color: #2e7d32;
}

/* FAQ Question Button */

.faq-question {
  width: 100%;
  padding: 20px;
  background: #f9f9f9;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #2e7d32;
  text-align: left;
}

.faq-question:hover {
  background: #efefef;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #ffffff;
}

.question-text {
  flex: 1;
  font-size: 1.05rem;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* FAQ Answer */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 0 20px 20px 20px;
  color: #666;
  line-height: 1.7;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease 0.15s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.faq-answer strong {
  color: #2e7d32;
  font-weight: 700;
}

/* ===== FAQ FOOTER ===== */

.faq-footer {
  background: linear-gradient(135deg, #1b3a26 0%, #2e5f3f 100%);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
  border-top: 2px solid #2e7d32;
}

.faq-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.faq-footer p {
  flex: 1;
  margin: 0;
}

.faq-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-footer-links a {
  color: #66bb6a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 2px solid #66bb6a;
  border-radius: 6px;
}

.faq-footer-links a:hover {
  background: #66bb6a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== HIDDEN STATE ===== */

.faq-item.hidden {
  display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 900px) {
  .faq-header {
    padding: 40px 0 30px;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-subtitle {
    font-size: 1rem;
  }

  .faq-search-input {
    max-width: 100%;
  }

  .faq-section {
    padding: 60px 0;
  }

  .faq-category {
    margin-bottom: 30px;
  }

  .faq-category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .faq-question {
    padding: 18px;
    font-size: 0.95rem;
  }

  .question-text {
    font-size: 1rem;
  }

  .faq-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .faq-footer p {
    flex: 1 100%;
  }

  .faq-footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .faq-header {
    padding: 30px 0 20px;
  }

  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .faq-subtitle {
    font-size: 0.95rem;
  }

  .faq-back-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .faq-section {
    padding: 40px 0;
  }

  .faq-search-input {
    padding: 14px 36px 14px 14px;
    font-size: 0.95rem;
  }

  .search-icon {
    font-size: 1.1rem;
  }

  .faq-container {
    gap: 40px;
  }

  .faq-category-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.9rem;
    gap: 12px;
  }

  .question-text {
    font-size: 0.95rem;
  }

  .faq-icon {
    font-size: 1.3rem;
  }

  .faq-answer p {
    padding: 0 16px 16px 16px;
    font-size: 0.9rem;
  }

  .faq-footer {
    padding: 30px 0;
  }

  .faq-footer p {
    font-size: 0.9rem;
  }

  .faq-footer-links {
    gap: 10px;
  }

  .faq-footer-links a {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 450px) {
  .faq-header {
    padding: 20px 0 15px;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-subtitle {
    font-size: 0.9rem;
  }

  .faq-back-btn {
    font-size: 0.85rem;
  }

  .faq-section {
    padding: 30px 0;
  }

  .faq-search-input {
    padding: 12px 32px 12px 12px;
    font-size: 0.9rem;
  }

  .faq-container {
    gap: 30px;
  }

  .faq-category-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .faq-question {
    padding: 14px;
    font-size: 0.85rem;
    gap: 10px;
  }

  .question-text {
    font-size: 0.9rem;
  }

  .faq-icon {
    font-size: 1.1rem;
  }

  .faq-answer p {
    padding: 0 14px 14px 14px;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .faq-footer {
    padding: 20px 0;
  }

  .faq-footer .container {
    flex-direction: column;
  }

  .faq-footer p {
    font-size: 0.85rem;
  }

  .faq-footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .faq-footer-links a {
    font-size: 0.8rem;
    width: 100%;
    padding: 8px 12px;
  }
}
