/* =========================================
   FAQ PAGE STYLES
   ========================================= */

/* --- HERO SECTION (Standardized) --- */
.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    to top,
    rgba(241, 198, 112, 0.4787) 32%,
    rgba(255, 236, 199, 0.6444) 48%,
    #fff 63%
  );
  padding: 30px 20px 60px;
  gap: 30px; /* Spacing between content and breadcrumb */
}

.content-wrapper {
  z-index: 10;
  max-width: 700px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.content-wrapper h1 {
  margin: 0;
  color: #000;
}

.content-wrapper p {
  font-size: 28px; /* Larger subtitle for FAQ Hero */
  margin: 0;
  padding: 0 40px;
  max-width: 900px;
  color: #000;
}

/* Decorative Images */
.hero-deco-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero-deco-container img {
  max-width: 185px;
  height: auto;
  display: block;
}

.hero-deco-container.left-deco {
  left: 20px;
}

.hero-deco-container.right-deco {
  right: 0;
}

.breadcrumb {
  bottom: -20px;
}

/* --- SECTION 2: FAQ GRID --- */
.faq-section {
  padding: 90px 20px 80px;
  max-width: 1380px;
  margin: 0 auto;
}

.faq-container {
  width: 100%;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px; /* Row Gap, Column Gap */
  align-items: start;
}

.faq-card {
  display: flex;
  align-items: flex-start;
  padding: 30px 25px 20px;
  width: 100%;
  gap: 20px;
  min-height: 100%; /* Equal height rows */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-6px); /* Lifts the card */
  /* Adds a soft, deep shadow to make it pop */
  box-shadow: 0 15px 30px rgba(210, 126, 43, 0.15);
  z-index: 2; /* Ensures it sits on top of neighbors */
}

/* Zebra striping for cards */
.faq-card:nth-child(even) {
  background: linear-gradient(to left, #fff4e8 40%, #ffffff);
}

.faq-card:nth-child(odd) {
  background: linear-gradient(to right, #fff4e8 30%, #ffffff);
}

.faq-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-icon img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* When hovering the CARD, animate the ICON */
.faq-card:hover .faq-icon img {
  transform: scale(1.03);
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-content h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.faq-content p {
  /* main.css Desktop P */
  line-height: 1.6;
  margin: 0;
  color: #000;
}

/* ================= MEDIA QUERY: TABLET (max-width: 1024px) ================= */
@media (max-width: 1024px) {
  /* Hero */
  .hero-section {
    padding: 10px 20px 50px;
  }

  .content-wrapper {
    gap: 18px;
  }

  .content-wrapper p {
    font-size: 22px;
    padding: 0;
  }

  .hero-deco-container.left-deco img {
    max-width: 106px;
  }
  .hero-deco-container.right-deco img {
    max-width: 115px;
  }

  /* FAQ Section */
  .faq-section {
    padding: 60px 40px;
  }

  .faq-grid {
    grid-template-columns: 1fr; /* 1 Column on Tablet */
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-content h2 {
    font-size: 24px; /* Slightly larger heading for single col */
  }
}

/* ================= MEDIA QUERY: MOBILE (max-width: 767px) ================= */
@media (max-width: 767px) {
  /* Global */
  /* Hero */
  .hero-section {
    padding: 15px 20px 70px 20px; /* Bottom padding for breadcrumb */
    min-height: auto;
  }

  .content-wrapper p {
    font-size: 20px;
  }

  /* Hide decos on mobile */
  .hero-deco-container {
    display: none;
  }

  /* FAQ Section */
  .faq-section {
    padding: 50px 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-card {
    padding: 20px 17px;
    gap: 15px;
  }

  .faq-icon {
    width: 40px;
    height: 40px;
  }

  .faq-content h2 {
    font-size: 22px;
  }
}
