/*
 * LICENSE: This file is part of the SideQuest Tech theme.
 * Copyright (c) SideQuest Philippines. All rights reserved.
 */
:root {
  --faq-accent: #9247d7;
  --faq-bg-dark: #0a0a0a;
  --faq-border: rgba(255, 255, 255, 0.1);
}

.faq-hero {
  height: 60vh;
  min-height: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(146, 71, 215, 0.2) 0%,
    rgba(7, 7, 45, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faq-accent);
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  background: linear-gradient(to right, #fff, #e6c1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.faq-section {
  padding: 80px 0;
  background-color: #000000;
  position: relative;
  z-index: 10;
  min-height: 800px;
}


.faq-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  position: relative;
}


.faq-sidebar {
  position: relative;
}

.faq-nav-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.faq-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 120px;
}

.faq-nav-btn {
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: #888;
  padding: 1rem 1.5rem;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 8px 8px 0;
}

.faq-nav-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.02);
}

.faq-nav-btn.active {
  border-left-color: var(--faq-accent);
  color: white;
  background: linear-gradient(90deg, rgba(146, 71, 215, 0.1) 0%, transparent 100%);
}

.nav-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-size: 0.8rem;
  color: var(--faq-accent);
}

.faq-nav-btn.active .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}


.faq-content-area {
  min-height: 500px;
}

.faq-category-panel {
  display: none;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.faq-category-panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-panel-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--faq-border);
  padding-bottom: 2rem;
}

.faq-panel-header h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.faq-section-desc {
  color: #888;
  font-size: 1.1rem;
}


.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--faq-bg-dark);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(146, 71, 215, 0.3);
}

.faq-item.active {
  border-color: var(--faq-accent);
  background: rgba(146, 71, 215, 0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  padding: 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--faq-accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
  background: var(--faq-accent);
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px; 
}

.faq-answer p {
  color: #ccc;
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}


@media (max-width: 991px) {
  .faq-layout-container {
    display: block;
  }

  .faq-sidebar {
    margin-bottom: 2rem;
    position: sticky;
    top: 80px; 
    z-index: 100;
    background: #000; 
    padding: 1rem 0;
    margin: 0 -15px 2rem; 
    padding: 1rem 15px;
  }

  .faq-nav-title {
    display: none;
  }

  .faq-nav-items {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    position: static;
    gap: 1rem;
    padding-bottom: 5px;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
  }

  .faq-nav-items::-webkit-scrollbar {
    display: none;
  }

  .faq-nav-btn {
    flex: 0 0 auto;
    border-left: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    color: #888;
  }

  .faq-nav-btn:hover {
    background: transparent;
    color: white;
  }

  .faq-nav-btn.active {
    border-bottom-color: var(--faq-accent);
    background: transparent;
    color: white;
  }

  .nav-arrow {
    display: none;
  }
  
  .faq-panel-header h2 {
      font-size: 2rem;
  }
}
