/* Modern FAQ Page Design */
:root {
  /* Color Palette - Black Theme */
  --faq-primary: #212529;
  --faq-accent: #212529;
  --faq-accent-hover: #000000;
  --faq-accent-dark: #000000;
  --faq-success: #10b981;
  --faq-warning: #d1d5db;
  --faq-danger: #ef4444;
  --faq-light: #f8f9fa;
  --faq-dark: #1a1a1a;
  
  /* Background Colors */
  --faq-bg-primary: #ffffff;
  --faq-bg-secondary: #f8f9fa;
  --faq-bg-accent: #f0f0f0;
  --faq-bg-gradient: linear-gradient(135deg, #212529 0%, #000000 100%);
  
  /* Text Colors */
  --faq-text-primary: #2d3748;
  --faq-text-secondary: #718096;
  --faq-text-muted: #a0aec0;
  
  /* Border & Shadow */
  --faq-border: #e2e8f0;
  --faq-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --faq-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --faq-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --faq-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --faq-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --faq-transition-fast: all 0.15s ease;
}

/* Page Wrapper - Full Width */
.faq-page-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.faq-hero {
  background: var(--faq-bg-gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(33, 37, 41, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
  33% { transform: translate(-5%, -15%) rotate(120deg); }
  66% { transform: translate(-15%, -5%) rotate(240deg); }
}

.faq-hero .container {
  max-width: 100%;
  padding: 0 20px;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.faq-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin: 0 0 20px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.faq-hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px;
  line-height: 1.6;
}

/* Search Bar */
.faq-search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.faq-search-box {
  width: 100%;
  padding: 20px 60px 20px 24px;
  font-size: 16px;
  border: 2px solid transparent;
  border-radius: 100px;
  background: var(--faq-bg-primary);
  box-shadow: var(--faq-shadow-lg);
  transition: var(--faq-transition);
  outline: none;
}

.faq-search-box:focus {
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--faq-shadow-xl);
}

.faq-search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faq-text-muted);
  font-size: 20px;
  pointer-events: none;
}

/* Category Tabs */
.faq-categories {
  background: var(--faq-bg-primary);
  padding: 40px 0;
  border-bottom: 1px solid var(--faq-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-categories .container {
  max-width: 100%;
  padding: 0 20px;
}

.faq-categories-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-categories-wrapper::-webkit-scrollbar {
  display: none;
}

.faq-category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--faq-light);
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--faq-transition);
  flex-shrink: 0;
}

.faq-category-tab:hover {
  background: var(--faq-bg-accent);
  color: #000000;
  transform: translateY(-2px);
}

.faq-category-tab.active {
  background: #000000;
  color: white;
  border-color: #000000;
  box-shadow: var(--faq-shadow-md);
}

.faq-category-tab i {
  font-size: 18px;
}

.category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Main FAQ Section */
.faq-main-section {
  padding: 60px 0;
  background: var(--faq-bg-secondary);
  min-height: 500px;
}

.faq-main-section .container {
  max-width: 100%;
  padding: 0 20px;
}

.faq-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* FAQ Items with Modern Card Design */
.faq-items-container {
  display: grid;
  gap: 16px;
}

.faq-card {
  background: var(--faq-bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--faq-shadow-sm);
  transition: var(--faq-transition);
  border: 1px solid var(--faq-border);
}

.faq-card:hover {
  box-shadow: var(--faq-shadow-md);
  transform: translateY(-2px);
}

.faq-card.active {
  box-shadow: var(--faq-shadow-lg);
  border-color: #000000;
}

.faq-card-header {
  padding: 24px;
  cursor: pointer;
  user-select: none;
}

.faq-card-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-question-content {
  flex: 1;
}

.faq-question-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--faq-text-primary);
  line-height: 1.5;
  margin: 0;
}

.faq-question-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--faq-text-muted);
}

.faq-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.faq-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--faq-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--faq-transition);
  flex-shrink: 0;
}

.faq-card.active .faq-toggle-icon {
  background: #000000;
  color: white;
  transform: rotate(180deg);
}

.faq-toggle-icon i {
  font-size: 20px;
}

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

.faq-card.active .faq-card-body {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 24px 24px;
}

.faq-answer-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--faq-text-secondary);
  margin: 0 0 16px;
}

.faq-answer-text strong {
  color: var(--faq-text-primary);
  font-weight: 600;
}

.faq-answer-text a {
  color: var(--faq-accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--faq-transition);
}

.faq-answer-text a:hover {
  border-bottom-color: var(--faq-accent);
}

/* Related Links */
.faq-related-links {
  padding-top: 16px;
  border-top: 1px solid var(--faq-border);
}

.faq-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-text-primary);
  margin: 0 0 12px;
}

.faq-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-link-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--faq-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--faq-text-secondary);
  text-decoration: none;
  transition: var(--faq-transition);
}

.faq-link-item:hover {
  background: var(--faq-accent-hover);
  color: white;
  transform: translateY(-1px);
}

/* Helpful Section */
.faq-helpful {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--faq-border);
}

.faq-helpful-text {
  font-size: 14px;
  color: var(--faq-text-secondary);
  margin: 0;
}

.faq-helpful-buttons {
  display: flex;
  gap: 8px;
}

.faq-helpful-btn {
  padding: 8px 16px;
  border: 2px solid var(--faq-border);
  background: var(--faq-bg-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-text-secondary);
  cursor: pointer;
  transition: var(--faq-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-helpful-btn:hover {
  background-color: #f5f5f5 !important;
  border-color: #000000;
  color: #000000;
}

.faq-helpful-btn.active {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

.faq-helpful-btn.active i {
  color: #fff !important;
}

/* Empty State */
.faq-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.faq-empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: var(--faq-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--faq-text-muted);
}

.faq-empty-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--faq-text-primary);
  margin: 0 0 12px;
}

.faq-empty-text {
  font-size: 16px;
  color: var(--faq-text-secondary);
  margin: 0 0 24px;
}

/* Contact CTA Section */
.faq-contact-section {
  background: var(--faq-bg-primary);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--faq-border);
}

.faq-contact-section .container {
  max-width: 100%;
  padding: 0 20px;
}

.faq-contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--faq-bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #000000;
}

.faq-contact-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--faq-text-primary);
  margin: 0 0 16px;
}

.faq-contact-text {
  font-size: 18px;
  color: var(--faq-text-secondary);
  margin: 0 0 32px;
  line-height: 1.6;
}

.faq-contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--faq-transition);
}

.faq-contact-btn-primary {
  background: #000000;
  color: white;
  box-shadow: var(--faq-shadow-md);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-contact-btn-primary:hover {
  background: #333333;
  box-shadow: var(--faq-shadow-lg);
}

.faq-contact-btn-secondary {
  background: var(--faq-light);
  color: var(--faq-text-primary);
  border: 2px solid #000000;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-contact-btn-secondary:hover {
  background: var(--faq-bg-secondary);
  border-color: #000000;
  color: #000000;
}

/* Loading State */
.faq-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.faq-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--faq-border);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Filter Button and Drawer */
.faq-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #212529;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--faq-transition);
  margin: 0 auto 20px;
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-mobile-filter-btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

.faq-mobile-filter-btn i {
  font-size: 16px;
}

/* Mobile Filter Overlay */
.faq-mobile-filter-overlay {
  display: none;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001 !important;
}

.faq-mobile-filter-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Filter Drawer */
.faq-mobile-filter-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100%;
  width: 100%;
  max-width: 350px;
  height: 100% !important;
  background: white;
  z-index: 10002 !important;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: none; /* Hidden by default */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.faq-mobile-filter-drawer.active {
  display: block;
  right: 0;
}

/* RTL Support for Drawer */
[dir="rtl"] .faq-mobile-filter-drawer {
  right: auto;
  left: -100%;
  transition: left 0.3s ease;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .faq-mobile-filter-drawer.active {
  display: block;
  right: auto;
  left: 0;
}

/* Drawer Header */
.faq-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: var(--faq-bg-secondary);
  position: relative;
  z-index: 10003;
}

.faq-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--faq-text-primary);
}

.faq-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--faq-transition);
}

.faq-drawer-close:hover {
  color: #000;
}

.faq-drawer-close i {
  font-size: 24px;
}

/* Drawer Body */
.faq-drawer-body {
  padding: 20px 0;
}

/* Drawer Items */
.faq-drawer-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--faq-border);
  cursor: pointer;
  transition: var(--faq-transition);
  text-align: left;
  gap: 12px;
}

[dir="rtl"] .faq-drawer-item {
  text-align: right;
  flex-direction: row-reverse;
}

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

.faq-drawer-item.active {
  background: #000000;
  color: white;
}

.faq-drawer-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.faq-drawer-item span {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.faq-drawer-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

[dir="rtl"] .faq-drawer-count {
  margin-left: 0;
  margin-right: auto;
}

.faq-drawer-item.active .faq-drawer-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .faq-content-wrapper {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 991px) {
  .faq-categories-wrapper {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .faq-category-tab {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  .faq-page-wrapper {
    overflow-x: hidden;
  }
  
  .faq-hero {
    padding: 40px 15px;
  }
  
  .faq-hero-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .faq-hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .faq-search-container {
    padding: 0;
    max-width: 100%;
    margin: 0 15px;
  }
  
  .faq-search-box {
    padding: 14px 45px 14px 18px;
    font-size: 15px;
    width: 100%;
    border-radius: 50px;
  }
  
  .faq-search-icon {
    right: 18px;
    font-size: 18px;
  }
  
  /* Show mobile filter button, hide desktop tabs */
  .faq-mobile-filter-btn {
    display: flex;
  }
  
  .faq-categories-wrapper {
    display: none !important;
  }
  
  .faq-categories {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--faq-bg-primary);
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .faq-categories .container {
    text-align: center;
    padding: 0 15px;
  }
  
  .faq-category-tab {
    padding: 10px 12px;
    font-size: 14px;
    flex-shrink: 0;
    min-width: auto;
  }
  
  /* Mobile drawer specific styles */
  .faq-mobile-filter-drawer {
    width: 100%;
    max-width: 100%;
  }
  
  .faq-drawer-header h3 {
    font-size: 16px;
  }
  
  .faq-drawer-item {
    padding: 14px 18px;
  }
  
  .faq-drawer-item i {
    font-size: 18px;
  }
  
  .faq-drawer-item span {
    font-size: 14px;
  }
  
  .faq-main-section {
    padding: 30px 0;
  }
  
  .faq-main-section .container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .faq-content-wrapper {
    padding: 0;
  }
  
  .faq-card-header {
    padding: 20px;
  }
  
  .faq-question-title {
    font-size: 16px;
  }
  
  .faq-answer-text {
    font-size: 15px;
  }
  
  .faq-contact-section {
    padding: 40px 15px;
  }
  
  .faq-contact-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .faq-contact-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .faq-contact-text {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .faq-contact-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .faq-contact-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-hero-title {
    font-size: 28px;
  }
  
  .faq-hero-subtitle {
    font-size: 16px;
  }
  
  .faq-card-header {
    padding: 16px;
  }
  
  .faq-question-title {
    font-size: 15px;
  }
  
  .faq-toggle-icon {
    width: 32px;
    height: 32px;
  }
  
  .faq-toggle-icon i {
    font-size: 16px;
  }
}

/* RTL Support */
[dir="rtl"] .faq-question-content {
  text-align: right;
}

[dir="rtl"] .faq-search-icon {
  right: auto;
  left: 24px;
}

[dir="rtl"] .faq-search-box {
  padding: 20px 24px 20px 60px;
}

[dir="rtl"] .faq-categories-wrapper {
  direction: rtl;
}

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

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

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

[dir="rtl"] .faq-contact-buttons {
  direction: rtl;
}