/* ==========================================================================
   FAQ Phase 2 - Persian RTL Single-Column Accordion Experience
   ========================================================================== */

:root {
  --emerald-dark: #08241a;
  --emerald-main: #0e3d2e;
  --emerald-subtle: #144d3b;
  --emerald-light: #e8f0ec;
  --gold-primary: #c49826;
  --gold-accent: #d4af37;
  --gold-soft: #f4e8c1;
  --gold-bg: #fffbf0;
  --ivory-bg: #FAF8F5;
  --surface-card: #ffffff;
  --surface-warm: #FAF7F2;
  --text-primary: #122232;
  --text-body: #243648;
  --text-muted: #576b7c;
  --border-light: #E6E0D4;
  --border-emerald: #b8d1c6;
  --border-gold: rgba(196, 152, 38, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(14, 61, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 61, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 61, 46, 0.12);
}

body {
  background: var(--ivory-bg) !important;
  color: var(--text-body) !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  margin: 0;
  direction: rtl;
}

.faq-shell {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}

.faq-main-padding {
  padding: 28px 0 64px;
}

/* ==========================================================================
   1. Compact Cinematic Hero Header (Unified in site-hero-phase2.css)
   ========================================================================== */

/* ==========================================================================
   2. Intro Section
   ========================================================================== */
.faq-intro-header {
  text-align: center;
  margin-bottom: 28px;
}

.faq-intro-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.faq-intro-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   3. Single-Column Accordion List
   ========================================================================== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(14, 61, 46, 0.05);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
}

.faq-item:hover {
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.faq-item.is-open {
  border-color: var(--border-emerald);
  border-right: 4px solid var(--emerald-main);
  background: var(--surface-warm);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  outline: none;
  direction: rtl;
  transition: color 0.18s ease;
}

.faq-trigger:hover,
.faq-item.is-open .faq-trigger {
  color: var(--emerald-main);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.faq-trigger__question {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.faq-trigger__icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-trigger__icon-badge svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.faq-trigger__chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 61, 46, 0.06);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s ease, background 0.22s ease, color 0.22s ease;
}

.faq-trigger__chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
}

.faq-item.is-open .faq-trigger__chevron {
  transform: rotate(180deg);
  background: var(--emerald-main);
  color: #FFFFFF;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, padding 0.28s ease;
  overflow: hidden;
}

.faq-item.is-open .faq-content {
  grid-template-rows: 1fr;
}

.faq-content__inner {
  min-height: 0;
  padding: 0 24px 22px 24px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--text-body);
  border-top: 1px solid transparent;
  transition: border-color 0.22s ease;
}

.faq-item.is-open .faq-content__inner {
  border-top-color: #EFE7DA;
  padding-top: 16px;
}

.faq-content__inner a {
  color: var(--emerald-main);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.faq-content__inner a:hover {
  color: var(--emerald-dark);
}

/* ==========================================================================
   4. Contact CTA Card
   ========================================================================== */
.faq-contact-cta {
  background: linear-gradient(135deg, #0e3d2e 0%, #08241a 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.faq-contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.faq-contact-cta__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.faq-contact-cta__sub {
  font-size: 0.9rem;
  color: #D3E4DC;
  margin: 0 0 12px 0;
}

.faq-contact-cta__info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 0.88rem;
  color: var(--gold-soft);
}

.faq-contact-cta__info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.faq-contact-cta__info-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-accent);
  fill: none;
  stroke-width: 2;
}

.faq-contact-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cta-gold {
  padding: 10px 22px;
  background: var(--gold-primary);
  color: #08241a;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 12px rgba(196, 152, 38, 0.3);
}

.btn-cta-gold:hover {
  background: var(--gold-accent);
  transform: translateY(-2px);
}

.btn-cta-outline {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   5. Closing Pilgrimage Strip
   ========================================================================== */
.news-closing-strip {
  margin-top: 56px;
  background: linear-gradient(90deg, #08241a 0%, #0e3d2e 50%, #08241a 100%);
  border-top: 2px solid var(--gold-primary);
  border-bottom: 1px solid rgba(196, 152, 38, 0.2);
  padding: 22px 16px;
  text-align: center;
  color: #FFFFFF;
}

.news-closing-strip__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--gold-soft);
}

.news-closing-strip__icon {
  color: var(--gold-accent);
}

/* ==========================================================================
   6. Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .faq-hero {
    min-height: 190px;
    padding: 32px 0;
  }
  .faq-hero__title {
    font-size: 1.5rem;
  }
  .faq-trigger {
    padding: 16px 18px;
    font-size: 0.96rem;
  }
  .faq-content__inner {
    padding: 0 18px 18px 18px;
    font-size: 0.9rem;
  }
  .faq-contact-cta {
    padding: 24px 20px;
  }
  .faq-contact-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-contact-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cta-gold,
  .btn-cta-outline {
    text-align: center;
  }
}
