/* FAQ Section Styles */
.faq-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38b2ac, transparent);
}

.faq-section::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(56, 178, 172, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-item {
  background: rgba(45, 55, 72, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 178, 172, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38b2ac 0%, #4caf50 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover::before,
.faq-item.active::before {
  opacity: 1;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 178, 172, 0.15);
  border-color: rgba(56, 178, 172, 0.3);
}

.faq-question {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(56, 178, 172, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::before {
  content: "❓";
  margin-right: 1rem;
  font-size: 1.2rem;
  opacity: 0.7;
}

.faq-question::after {
  content: "+";
  font-size: 1.8rem;
  color: #4caf50;
  transition: all 0.3s ease;
  font-weight: 300;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: rotate(180deg);
  color: #38b2ac;
}

.faq-question:hover {
  background: linear-gradient(135deg, #38b2ac 0%, #2c9d98 100%);
  padding-left: 2.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(26, 32, 44, 0.8);
  position: relative;
}

.faq-answer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 178, 172, 0.3),
    transparent
  );
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem 2rem;
}

.faq-answer p {
  color: #e2e8f0;
  line-height: 1.7;
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.faq-answer a {
  color: #4caf50;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-weight: 500;
}

.faq-answer a:hover {
  color: #38b2ac;
  text-decoration: none;
}

/* FAQ Page Specific Styles */
.faq-page {
  padding-top: 80px;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  position: relative;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: rgba(26, 32, 44, 0.8);
  border-bottom: 1px solid rgba(56, 178, 172, 0.2);
  padding: 1rem 0;
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: #e2e8f0;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #4a5568;
}

.breadcrumb a {
  color: #38b2ac;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #4caf50;
  text-decoration: underline;
}

.faq-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(56, 178, 172, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(76, 175, 80, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: backgroundFloat 20s ease-in-out infinite;
}

.faq-hero {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 178, 172, 0.2);
}

.faq-hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(56, 178, 172, 0.1) 0%,
    transparent 70%
  );
  top: -50%;
  left: -50%;
  animation: rotate 20s linear infinite;
}

.faq-hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #fff 0%, #4caf50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-hero p {
  font-size: 1.2rem;
  color: #e2e8f0;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.faq-content {
  padding: 4rem 0;
}

/* Table of Contents */
.toc-container {
  background: rgba(45, 55, 72, 0.6);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(56, 178, 172, 0.3);
}

.toc-container h2 {
  color: #4caf50;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.table-of-contents li {
  text-align: center;
}

.table-of-contents a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  background: rgba(56, 178, 172, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 178, 172, 0.2);
}

.table-of-contents a:hover {
  background: rgba(56, 178, 172, 0.2);
  color: #4caf50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 178, 172, 0.2);
}

.faq-categories {
  display: grid;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  background: rgba(45, 55, 72, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 178, 172, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.faq-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38b2ac 0%, #4caf50 100%);
}

.faq-category h2 {
  color: #4caf50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.faq-category h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #38b2ac, #4caf50);
  border-radius: 2px;
}

.category-description {
  color: #e2e8f0;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group-title {
  color: #38b2ac;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #4caf50;
  font-weight: 600;
}

.faq-cta {
  background: linear-gradient(135deg, #38b2ac 0%, #4caf50 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
  color: white;
  box-shadow: 0 10px 30px rgba(56, 178, 172, 0.3);
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

.faq-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.faq-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.faq-cta .cta-btn {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.faq-cta .cta-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Navigation active state */
.nav-links a.active {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Search Box Styling */
#faq-search {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#faq-search:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  transform: scale(1.02);
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes backgroundFloat {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(200%) translateY(200%) rotate(45deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.6s;
}
.faq-item:nth-child(7) {
  animation-delay: 0.7s;
}
.faq-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-hero h1 {
    font-size: 2.5rem;
  }

  .faq-hero p {
    font-size: 1.1rem;
  }

  .faq-category {
    padding: 1.5rem;
  }

  .faq-category h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }

  .faq-question::before {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .faq-question::after {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }

  .faq-item.active .faq-answer {
    padding: 1rem 1.5rem;
  }

  .faq-cta {
    padding: 2rem;
  }

  .faq-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-question::after {
    right: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 1rem;
  }

  .faq-section {
    padding: 4rem 0;
  }

  .faq-content {
    padding: 2rem 0;
  }
}
