/* ===================================================================
   FAQ Page Styling (Accordion Mode)
   Highly premium, glassmorphic accordion, curved hero, and responsive layout
   =================================================================== */

.faq-page {
  position: relative;
  width: 100%;
  background-color: #0F1125;
  /* White background below the hero */
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* Curved Hero Banner */
.faq-page .page-hero {
  position: relative;
  width: 100%;
  height: clamp(350px, 50vh, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-align: center;
}



.faq-page .page-hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.faq-page .page-hero-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
}

.faq-page .page-hero-body h1 {
  font-family: "29LT Bukra", "Inter", -apple-system, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.faq-page .page-hero-body p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.8rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Main content wrapper */
.faq-page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  box-sizing: border-box;
}

/* Accordion Styling */
.faq-accordion-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  width: 100%;
  background: #0f1125;
  /* Dark navy blue card */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(15, 17, 37, 0.06);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(15, 17, 37, 0.12);
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.22);
  background: #141730;
  box-shadow: 0 12px 30px rgba(15, 17, 37, 0.16);
}

/* Accordion Header */
.faq-header {
  padding: 1.75rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 1.5rem;
  text-align: left;
}

.faq-header span {
  font-family: "29LT Bukra", "Inter", -apple-system, sans-serif;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.8rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  transition: color 0.3s ease;
}



.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.faq-item:hover .faq-icon {
  color: #ffffff;
}

.faq-icon svg {
  width: 12px;
  height: 8px;
}

/* Accordion Content */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-content-inner {
  padding: 0 2.25rem 2rem 2.25rem;
  text-align: left;
}

.faq-content-inner p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: clamp(1.4rem, 0.5vw + 1.3rem, 1.6rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Call-to-Action support card */
.faq-cta-card {
  margin-top: 5rem;
  width: 100%;
  background: linear-gradient(135deg, #0f1125 0%, #080a18 100%);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(3rem, 6vh, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 35px rgba(8, 10, 24, 0.25);
  position: relative;
  overflow: hidden;
}

/* Decorative backdrop glow for premium aesthetic */
.faq-cta-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 114, 178, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.faq-cta-card h2,
.faq-cta-card p,
.faq-cta-card .faq-cta-buttons {
  position: relative;
  z-index: 2;
}

.faq-cta-card h2 {
  font-family: "29LT Bukra", "Inter", -apple-system, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.faq-cta-card p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 1.7rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 1.25rem 0 2.5rem 0;
}

.faq-cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.faq-btn-primary,
.faq-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1vw, 14px) clamp(24px, 2.2vw, 36px);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: clamp(1.4rem, 0.5vw + 1.3rem, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.faq-btn-primary {
  background: linear-gradient(135deg, #4A72B2 0%, #355282 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(74, 114, 178, 0.25);
  border: 1px solid transparent;
}

.faq-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(74, 114, 178, 0.4);
  filter: brightness(1.1);
}

.faq-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.faq-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ===================================================================
   RTL Layout Overrides (Arabic Language Switcher)
   =================================================================== */

html[dir="rtl"] .faq-header,
html[dir="rtl"] .faq-content-inner {
  text-align: right;
}

html[dir="rtl"] .faq-header span {
  font-family: "29LT Bukra", "Noto Naskh Arabic", -apple-system, sans-serif;
}

html[dir="rtl"] .faq-content-inner p {
  font-family: "Noto Naskh Arabic", -apple-system, sans-serif;
}

html[dir="rtl"] .faq-cta-card h2 {
  font-family: "29LT Bukra", "Noto Naskh Arabic", -apple-system, sans-serif;
}

html[dir="rtl"] .faq-cta-card p {
  font-family: "Noto Naskh Arabic", -apple-system, sans-serif;
}


/* Responsive adjust */
@media (max-width: 768px) {
  .faq-page .page-hero {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    height: 380px;
  }

  .faq-page-container {
    padding: 3.5rem 1.5rem;
  }

  .faq-header {
    padding: 1.5rem 1.75rem;
  }

  .faq-content-inner {
    padding: 0 1.75rem 1.5rem 1.75rem;
  }

  .faq-cta-card {
    border-radius: 24px;
    padding: 3rem 1.5rem;
    margin-top: 3.5rem;
  }
}