/*
 * ============================================================
 * YAHYA AGRICOLA — FAQ Section Styles
 * Developer: Mohammed Imran, Softomatic BD Limited
 * ============================================================
 */

/* ── Section wrapper ──────────────────────────────────────── */
.faq-section {
  background: var(--bg-secondary);
  padding: var(--space-20) 0;
  overflow: hidden;
}

/* ── Section header (centered, above the 2-col layout) ───── */
.faq-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.faq-eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-3);
}

.faq-header h2 {
  margin-bottom: var(--space-4);
}

/* ── 2-col grid: image left, accordion right ─────────────── */
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-12);
  align-items: start;
}

/* ── Image side ───────────────────────────────────────────── */
.faq-image-wrap {
  position: sticky;
  top: 100px; /* sticks while scrolling accordion */
}

.faq-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Floating stat cards — same as hero */
.faq-stat-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.faq-stat-card.card-top-right {
  top: 8%;
  right: -5%;
  animation-delay: 0.6s;
}

.faq-stat-card.card-bottom-left {
  bottom: 8%;
  left: -5%;
  animation-delay: 1.4s;
}

.faq-stat-card .stat-card-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.faq-stat-card .stat-card-text .num {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  letter-spacing: 1px;
}

.faq-stat-card .stat-card-text .lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
  white-space: nowrap;
}

/* ── Accordion side ───────────────────────────────────────── */
.faq-content {
  display: flex;
  flex-direction: column;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Each item */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.faq-item.open {
  border-color: var(--border-gold);
  box-shadow: 0 4px 20px var(--gold-glow);
}

/* Question button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-item.open .faq-question {
  background: var(--badge-bg);
}

.faq-question-text {
  font-family: 'Noto Serif Bengali', 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
}

body.lang-en .faq-question-text {
  font-family: var(--font-heading);
}

/* Chevron icon */
.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.open .faq-icon {
  background: var(--gold);
  color: #0D1F0F;
  transform: rotate(180deg);
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
}

.faq-answer-inner p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.9;
  margin: var(--space-4) 0 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .faq-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
  }
}

@media (max-width: 900px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }
  .faq-image-wrap {
    display: none; /* hide image on mobile, accordion full width */
  }
  .faq-section {
    padding: var(--space-12) 0;
  }
}