@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --orange: #FF5200;
  --orange-hover: #e04800;
  --dark: #111111;
  --text: #333333;
  --muted: #888888;
  --border: #e8e8e8;
  --bg: #ffffff;
  --light-bg: #f9f9f9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ========================================
   PAGE HEADER
======================================== */
.page-header {
  position: relative;
  background: var(--dark);
  padding: 80px 80px 0;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.page-header-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #0d0d0d 100%);
}
.page-header-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,82,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,82,0,0.05) 0%, transparent 40%);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.header-watermark {
  position: absolute;
  right: -20px; bottom: -30px;
  font-family: 'Playfair Display', serif;
  font-size: 200px; font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none; user-select: none;
  letter-spacing: -10px;
}
.header-orange-bar {
  position: absolute; left: 0; bottom: 0;
  height: 4px; width: 120px;
  background: var(--orange);
}
.page-header-content {
  position: relative; z-index: 2;
  padding-bottom: 60px;
  animation: fadeUp .8s ease both;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  background: transparent; padding: 0; list-style: none;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }
.breadcrumb span:last-child { color: var(--orange); }
.page-header-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 16px;
}
.page-header-content p {
  font-size: 16px; color: rgba(255,255,255,0.6);
  max-width: 500px; line-height: 1.7;
}

/* ========================================
   SEARCH
======================================== */
.search-bar {
  background: white;
  padding: 32px 80px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.search-inner { max-width: 600px; position: relative; }
.search-inner input {
  width: 100%; height: 52px;
  padding: 0 52px 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-family: 'Poppins', sans-serif;
  color: var(--dark); outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--light-bg);
}
.search-inner input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,82,0,0.08);
  background: white;
}
.search-inner input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  display: flex; align-items: center;
}

/* ========================================
   MAIN LAYOUT
======================================== */
.faq-main {
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* ========================================
   SIDEBAR
======================================== */
.faq-sidebar {
  background: var(--light-bg);
  border-right: 1px solid var(--border);
  padding: 48px 32px;
  position: sticky; top: 89px;
  height: fit-content;
}
.sidebar-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: all .2s;
  border: 1.5px solid transparent;
}
.sidebar-nav li a:hover { background: white; color: var(--orange); border-color: var(--border); }
.sidebar-nav li a.active { background: white; color: var(--orange); border-color: rgba(255,82,0,0.2); font-weight: 600; }
.cat-icon {
  width: 28px; height: 28px;
  background: rgba(255,82,0,0.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-nav li a.active .cat-icon { background: rgba(255,82,0,0.15); }
.cat-count {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--border);
  padding: 2px 7px; border-radius: 20px;
}
.sidebar-nav li a.active .cat-count { background: rgba(255,82,0,0.1); color: var(--orange); }
.sidebar-cta {
  margin-top: 40px; background: var(--dark);
  border-radius: 12px; padding: 24px 20px; text-align: center;
}
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; }
.sidebar-cta a {
  display: inline-block; width: 100%;
  padding: 11px 0; background: var(--orange);
  border-radius: 30px; font-size: 13px;
  font-weight: 700; color: white; text-decoration: none;
  transition: background .2s;
}
.sidebar-cta a:hover { background: var(--orange-hover); }

/* ========================================
   FAQ CONTENT
======================================== */
.faq-content { padding: 56px 72px; }
.faq-section { margin-bottom: 64px; }
.faq-section:last-child { margin-bottom: 0; }
.faq-section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.section-icon {
  width: 36px; height: 36px;
  background: rgba(255,82,0,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--dark);
  line-height: 1; margin: 0; padding: 0;
}

/* ========================================
   ACCORDION
======================================== */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  background: white;
}
.acc-item:hover { border-color: rgba(255,82,0,0.25); }
.acc-item.open { border-color: rgba(255,82,0,0.35); box-shadow: 0 8px 32px rgba(255,82,0,0.07); }

.acc-trigger {
  width: 100%; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: none; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; text-align: left;
}
.acc-trigger-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.acc-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--light-bg); border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
  transition: all .25s; font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.acc-item.open .acc-num { background: var(--orange); border-color: var(--orange); color: white; }

.acc-trigger h3 {
  font-size: 15px; font-weight: 600;
  color: var(--dark); line-height: 1.4;
  margin: 0; padding: 0;
  flex: 1; min-width: 0;
}
.acc-item.open .acc-trigger h3 { color: var(--orange); }

.acc-toggle {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%; background: var(--light-bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.acc-item.open .acc-toggle { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.acc-toggle svg { transition: all .25s; color: var(--muted); }
.acc-item.open .acc-toggle svg { color: white; }

.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(0.4,0,0.2,1);
}
.acc-item.open .acc-body { max-height: 800px; }

.acc-body-inner {
  padding: 16px 24px 24px 70px;
  font-size: 14px; color: var(--muted); line-height: 1.85;
}

.acc-body-inner > *:first-child { margin-top: 0 !important; }
.acc-body-inner > *:last-child  { margin-bottom: 0 !important; }

.acc-body-inner p { margin-bottom: 10px; }
.acc-body-inner p:last-child { margin-bottom: 0; }
.acc-body-inner ul { margin-top: 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.acc-body-inner li { font-size: 14px; color: var(--muted); }
.acc-body-inner strong { color: var(--text); }
.acc-body-inner a { color: var(--orange); text-decoration: none; }
.acc-body-inner a:hover { text-decoration: underline; }

/* ========================================
   STATS BANNER
======================================== */
.stats-banner {
  background: var(--dark);
  margin: 0 72px 64px;
  border-radius: 16px; padding: 40px 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; overflow: hidden;
}
.stats-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,82,0,0.12) 0%, transparent 60%);
}
.stat-item { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 800;
  color: var(--orange); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ========================================
   CTA
======================================== */
.faq-cta {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  padding: 80px; text-align: center;
}
.faq-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 800;
  color: var(--dark); margin-bottom: 16px;
}
.faq-cta p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-cta-primary {
  padding: 14px 36px; background: var(--orange);
  border: none; border-radius: 30px;
  font-size: 15px; font-weight: 700; color: white;
  cursor: pointer; transition: all .25s;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.btn-cta-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,82,0,0.3); color: white; }
.btn-cta-outline {
  padding: 14px 36px; background: transparent;
  border: 1.5px solid var(--border); border-radius: 30px;
  font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all .25s;
  text-decoration: none; display: inline-block;
  font-family: 'Poppins', sans-serif;
}
.btn-cta-outline:hover { border-color: var(--dark); color: var(--dark); transform: translateY(-2px); }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   RTL
======================================== */
[dir="rtl"] .page-header { padding: 80px 80px 0 80px; }
[dir="rtl"] .header-orange-bar { left: auto; right: 0; }
[dir="rtl"] .header-watermark { right: auto; left: -20px; }

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

[dir="rtl"] .page-header-content { text-align: right; }
[dir="rtl"] .page-header-content p { text-align: right; margin-right: 0; margin-left: auto; }

[dir="rtl"] .search-bar { direction: rtl; }
[dir="rtl"] .search-inner { margin-right: 0; margin-left: auto; }
[dir="rtl"] .search-inner input {
  padding: 0 20px 0 52px;
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .search-icon { right: auto; left: 16px; }

[dir="rtl"] .faq-main {
  grid-template-columns: 280px 1fr;
  direction: rtl;
}
[dir="rtl"] .faq-sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
  text-align: right;
}
[dir="rtl"] .faq-content { direction: rtl; }

[dir="rtl"] .sidebar-label { text-align: right; }
[dir="rtl"] .sidebar-nav li a {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}
[dir="rtl"] .cat-icon { order: 1; }
[dir="rtl"] .cat-count { order: -1; margin-left: 0; margin-right: auto; }
[dir="rtl"] .sidebar-cta { text-align: right; }
[dir="rtl"] .sidebar-cta a { text-align: center; }

[dir="rtl"] .faq-section-header {
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}
[dir="rtl"] .faq-section-header h2 { text-align: right; }

[dir="rtl"] .acc-trigger {
  flex-direction: row;
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .acc-trigger-left {
  flex-direction: row;
  direction: rtl;
  margin-left: auto;
}
[dir="rtl"] .acc-toggle {
  order: unset;
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 0;
}
[dir="rtl"] .acc-trigger h3 { text-align: right; }

[dir="rtl"] .acc-body-inner {
  padding: 16px 70px 24px 24px;
  text-align: right;
  direction: rtl;
}
[dir="rtl"] .acc-body-inner ul {
  padding-left: 0;
  padding-right: 18px;
}
[dir="rtl"] .acc-body-inner > *:first-child { margin-top: 0 !important; }
[dir="rtl"] .acc-body-inner > *:last-child  { margin-bottom: 0 !important; }

[dir="rtl"] .stats-banner {
  direction: rtl;
}
[dir="rtl"] .stats-banner::before {
  background: linear-gradient(225deg, rgba(255,82,0,0.12) 0%, transparent 60%);
}
[dir="rtl"] .stat-item:not(:last-child) {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.1);
}

[dir="rtl"] .faq-cta { direction: rtl; }
[dir="rtl"] .faq-cta h2 { text-align: center; }
[dir="rtl"] .faq-cta p  { text-align: center; }
[dir="rtl"] .btn-cta-primary svg { transform: rotate(180deg); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 960px) {
  .page-header { padding: 60px 24px 0; }
  .search-bar { padding: 24px; }

  .faq-main { grid-template-columns: 1fr !important; }
  .faq-sidebar {
    order: 1 !important;
    position: static;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }
  .faq-content { order: 2 !important; padding: 40px 24px; }

  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sidebar-nav li { flex: 1; min-width: 140px; }
  [dir="rtl"] .sidebar-nav li a { flex-direction: row-reverse; }

  .stats-banner { margin: 0 24px 48px; grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .stat-item { border-right: none !important; border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }

  .faq-cta { padding: 60px 24px; }
  .acc-body-inner { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (max-width: 480px) {
  .sidebar-nav li { min-width: 100%; }
  .faq-cta h2 { font-size: 28px; }
  .stat-value { font-size: 36px; }
}
