/* FAQ Page Styles */
body {
  color: var(--light) !important;
  background: var(--base-background);
}

/* Hero Section */
.heroSection {
  min-height: 50vh;
  padding-top: 100px;
  text-align: center;
}

.heroSection h1 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 100px;
  line-height: 70px;
  font-weight: 700;
  color: var(--light);
}

.heroSection p {
  font-size: 20px;
  line-height: 44px;
  color: var(--lighter-light);
  max-width: 950px;
  margin: 0 auto;
}

/* FAQ Content Layout */
.faqContent {
  background: var(--base-background);
  min-height: 600px;
}

.faq-wrapper {
  display: flex;
  gap: 80px;
  max-width: 1920px;
  margin: 0 auto;
}

/* Sidebar Styles */
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 30px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-sidebar::-webkit-scrollbar {
  width: 5px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--base-color);
  border-radius: 5px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  color: var(--light);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  color: var(--lighter-light);
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
}

.sidebar-nav a.active {
  background: var(--base-color);
  color: var(--light);
}

.sidebar-nav i {
  font-size: 14px;
  opacity: 0.7;
}

/* Main Content Area */
.faq-content {
  flex: 1;
  max-width: 1200px;
}

.faq-category {
  margin-bottom: 80px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--lighter-border);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--base-color) 0%,
    var(--hover-color) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.5rem;
}

.category-header h2 {
  color: var(--light);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.faqContent {
  background-color: var(--card-background);
}

/* FAQ Items */
.faq-item {
  background: var(--base-background);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--lighter-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--base-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(176, 160, 254, 0.1);
}

.faq-question {
  padding: 24px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--base-color-lighter);
}

.faq-question h3 {
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.faq-question i {
  color: var(--base-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background: var(--base-color-light);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--card-background);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 20px 30px 24px 30px;
}

.faq-answer p {
  color: var(--lighter-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.contact-btn {
  display: inline-block;
  background-color: var(--base-color);
  color: var(--light);
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 500px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.faqAction {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 0;
}

.faqAction h2 {
  font-family: var(--font-heading);
  color: var(--light);
  font-size: 80px;
  line-height: 72px;
  margin: 0;
}

.faqAction p {
  color: var(--lighter-light);
  font-size: 18px;
  line-height: 32px;
}

/* Responsive Design */
@media (max-width: 1600px) {
  .faq-wrapper {
    max-width: 1400px;
    gap: 60px;
  }

  .faq-sidebar {
    width: 280px;
  }

  .faq-content {
    max-width: 1000px;
  }
}

@media (max-width: 1200px) {
  .faqAction h2 {
    font-size: 68px !important;
    line-height: 63px !important;
  }
  .faq-wrapper {
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    padding: 0 20px;
  }

  .faq-sidebar {
    width: 100%;
    position: static;
  }

  .sidebar-section {
    margin-bottom: 20px;
  }

  .faq-content {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
    .faqAction .spacer-100
    {
        height: 80px !important;
    }
  .heroSection p {
    font-size: 18px !important;
    line-height: 35px !important;
  }
  .faqAction h2 {
    font-size: 63px !important;
  }
  .faqAction h2,
  .faqAction p {
    width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .faqAction
  {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .heroSection .spacer-30
  {
    font-size: 15px !important;
  }
}

@media (max-width: 768px) {
    .faqAction .spacer-100
    {
        height: 80px !important;
    }
    .faqAction .padding-spacer
    {
        padding-top: 0 !important;
    }
  .faqAction h2,
  .faqAction p {
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .heroSection p {
    font-size: 16px !important;
    line-height: 32px !important;
  }
  .faqAction h2 {
    font-size: 58px !important;
    line-height: 58px !important;
  }
  .faq-wrapper {
    padding: 0 15px;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .faq-question {
    gap: 15px !important;
  }
  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .faq-category {
    margin-bottom: 60px !important;
  }
  .category-header h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .faqAction h2 {
    font-size: 2rem;
  }

  .faqAction p {
    font-size: 1rem;
  }
  .faqContent .spacer-50:last-child {
    display: none !important;
  }
  .contact-btn
  {
    font-size: 16px !important;
  }
}

@media (max-width: 680px) {
  .heroSection {
    padding-top: 80px !important;
  }
}
@media (max-width: 510px) {
  .faqAction h2 {
    font-size: 53px !important;
    line-height: 53px !important;
  }
}
@media (max-width: 480px) {
  .faq-wrapper {
    padding: 0 10px;
  }

  .faq-question {
    padding: 16px;
  }

  .faq-item.active .faq-answer {
    padding: 16px 16px 16px 16px;
  }
}

/* Animation for FAQ items */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer {
  animation: slideDown 0.3s ease;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
}

/* Focus states for accessibility */
.faq-question:focus {
  outline: 2px solid var(--base-color);
  outline-offset: 2px;
}

.sidebar-nav a:focus {
  outline: 2px solid var(--base-color);
  outline-offset: 2px;
}

/* Loading state for dynamic content */
.faq-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success state for form submissions */
.faqAction.success {
  background: linear-gradient(
    135deg,
    var(--success-green) 0%,
    var(--success-green-light) 100%
  );
}

/* Error state for form submissions */
.faqAction.error {
  background: linear-gradient(
    135deg,
    var(--error-color) 0%,
    var(--light-red) 100%
  );
}

@media (max-width: 1400px) {
  .heroSection h1 {
    font-size: 105px !important;
    line-height: 100px !important;
  }
}
@media (max-width: 1250px) {
  .heroSection h1 {
    font-size: 95px !important;
    line-height: 90px !important;
  }
}
@media (max-width: 1024px) {
  .heroSection h1 {
    font-size: 85px !important;
    line-height: 80px !important;
  }
}
@media (max-width: 767px) {
  .heroSection h1 {
    font-size: 75px !important;
    line-height: 70px !important;
  }
}
@media (max-width: 680px) {
  .heroSection h1 {
    font-size: 65px !important;
    line-height: 60px !important;
  }
}
@media (max-width: 600px) {
  .heroSection h1 {
    font-size: 55px !important;
    line-height: 50px !important;
  }
}
@media (max-width: 510px) {
  .heroSection h1 {
    font-size: 50px !important;
    line-height: 50px !important;
  }
}

@media (max-width: 510px) {
  .heroSection h1 {
    width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 510px) {
  .subscribeEmail,
  .heroSection p,
  .heroSection h1 {
    width: calc(100% - 20px) !important;
  }
}
@media (max-width: 470px) {
  .heroSection h1 {
    font-size: 45px !important;
    line-height: 45px !important;
  }
}
