/* FAQ Page Specific Fixes */

/* Ensure FAQ content is visible and properly spaced */
.faq-page {
  min-height: 100vh;
}

.faq-categories-section {
  padding: 4rem 0;
}

.faq-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Enhanced FAQ category buttons */
.faq-category-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 2rem 1.5rem !important;
  color: var(--text) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  min-height: 140px !important;
  position: relative !important;
}

.faq-category-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(230, 190, 0, 0.4) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.faq-category-btn.active {
  background: rgba(230, 190, 0, 0.15) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-2px) !important;
}

.faq-category-btn i {
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
  color: var(--primary) !important;
  display: block !important;
}

.faq-category-btn span {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  display: block !important;
}

/* FAQ Items visibility and styling */
.faq-items-container {
  min-height: 400px;
  position: relative;
}

.faq-category-section {
  margin-bottom: 3rem;
  display: block !important;
}

.faq-item-expandable {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item-expandable:hover {
  border-color: rgba(230, 190, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.faq-question-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  flex-grow: 1;
}

.faq-toggle {
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 2rem 2rem;
  color: rgba(224, 224, 224, 0.85);
  line-height: 1.7;
  font-size: 0.95rem;
  display: none; /* Initially hidden */
}

.faq-answer.visible {
  display: block;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.faq-answer li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.faq-answer li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: var(--secondary);
}

/* Search functionality improvements */
.faq-search-section {
  padding: 3rem 0;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.search-box input:focus {
  border-color: var(--primary);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* No results message */
.faq-no-results {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.faq-no-results i {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 968px) {
  .faq-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .faq-category-btn {
    padding: 1.5rem 1rem !important;
    min-height: 120px !important;
  }
  
  .faq-category-btn i {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .faq-category-btn span {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .faq-categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .faq-category-btn {
    padding: 1.25rem 1rem !important;
    min-height: 100px !important;
  }
  
  .faq-question-header {
    padding: 1.25rem 1.5rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1.5rem;
  }
}