:root {
  --primary-color: #e63946;
  --secondary-color: #e63946;
  --background-dark: #000000;
  --background-gray: #111111;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --border-color: #333333;
  --hover-color: #ff4d5e;
  --card-bg: #1a1a1a;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  --gradient-dark: linear-gradient(to right, #000000, #222222);
  
  --header-height: 80px;
  --footer-height: 300px;
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}
/* Search Bar */
.faq-search-container {
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: center;
}

.search-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.faq-search {
  width: 100%;
  padding: 12px 40px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
}

.faq-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
}

.search-icon::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 13px;
  width: 7px;
  height: 2px;
  background-color: var(--text-muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  opacity: 0.7;
}

.clear-search:hover {
  opacity: 1;
  color: var(--primary-color);
}

.search-results {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
  margin-bottom: 8px;
}

.keyboard-shortcuts {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shortcut-hint {
  display: inline-flex;
  align-items: center;
}

kbd {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  display: inline-block;
  font-family: monospace;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1;
  padding: 3px 5px;
  margin: 0 5px;
  vertical-align: middle;
}

.highlight {
  background-color: rgba(230, 57, 70, 0.2);
  color: var(--text-color);
  border-radius: 3px;
  padding: 0 2px;
}

/* FAQ Item Active State */
.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.faq-question {
  padding: 1rem 1.5rem;
  background-color: #202020;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  margin: 0;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #555;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  top: 6px;
  left: 11px;
  width: 2px;
  height: 12px;
  transform: rotate(0);
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #f9f9f9;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Adjust as needed */
  padding: 1rem 1.5rem;
}

.faq-item.active .faq-question h4 {
  color: #ff0000; /* Change to your primary color */
}

.faq-item.active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Quick Navigation */
.quick-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.nav-category {
  min-width: 200px;
}

.nav-category h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  display: inline-block;
}

.nav-links {
  list-style-type: none;
  padding: 0;
}

.nav-links li {
  margin-bottom: 10px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary-color);
  transition: width var(--transition-medium);
}

.nav-links a:hover::after {
  width: 100%;
}

/* FAQ Container */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 40px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.faq-category h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.faq-category h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
}

/* FAQ Items */
.faq-item {
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-question h4 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-color);
  font-weight: 600;
  flex-grow: 1;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 15px;
  position: relative;
  transition: transform var(--transition-medium);
}

.faq-icon {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-medium);
}

.faq-icon:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transition: all var(--transition-medium);
}

.faq-item.active .faq-icon:before {
  transform: translateX(-50%) scaleY(0);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0 20px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  height: auto; /* Will be set dynamically by JavaScript */
  padding: 20px;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
  margin-bottom: 15px;
}

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.faq-answer ul, .faq-answer ol {
  padding-left: 20px;
}

.faq-answer ul li, .faq-answer ol li {
  margin-bottom: 8px;
}

/* Additional Resources Section */
.additional-resources {
  background-color: var(--background-gray);
  padding: 60px 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.resource-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.resource-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-icon::before {
  content: '';
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e63946' viewBox='0 0 24 24'%3E%3Cpath d='M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.discord-icon::before {
  content: '';
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e63946' viewBox='0 0 24 24'%3E%3Cpath d='M19.54 0c1.356 0 2.46 1.104 2.46 2.472v21.528l-2.58-2.28-1.452-1.344-1.536-1.428.636 2.22h-13.608c-1.356 0-2.46-1.104-2.46-2.472v-16.224c0-1.368 1.104-2.472 2.46-2.472h16.08zm-4.632 15.672c2.652-.084 3.672-1.824 3.672-1.824 0-3.864-1.728-6.996-1.728-6.996-1.728-1.296-3.372-1.26-3.372-1.26l-.168.192c2.04.624 2.988 1.524 2.988 1.524-1.248-.684-2.472-1.02-3.612-1.152-.864-.096-1.692-.072-2.424.024l-.204.024c-.42.036-1.44.192-2.724.756-.444.204-.708.348-.708.348s.996-.948 3.156-1.572l-.12-.144s-1.644-.036-3.372 1.26c0 0-1.728 3.132-1.728 6.996 0 0 1.008 1.74 3.66 1.824 0 0 .444-.54.804-.996-1.524-.456-2.1-1.416-2.1-1.416l.336.204.048.036.047.027.014.006.047.027c.3.168.6.3.876.408.492.192 1.08.384 1.764.516.9.168 1.956.204 3.108.012.564-.096 1.14-.264 1.74-.516.42-.156.888-.384 1.38-.708 0 0-.6.984-2.172 1.428.36.456.792.972.792.972zm-5.58-5.604c-.684 0-1.224.6-1.224 1.332 0 .732.552 1.332 1.224 1.332.684 0 1.224-.6 1.224-1.332.012-.732-.54-1.332-1.224-1.332zm4.38 0c-.684 0-1.224.6-1.224 1.332 0 .732.552 1.332 1.224 1.332.684 0 1.224-.6 1.224-1.332 0-.732-.54-1.332-1.224-1.332z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.download-icon::before {
  content: '';
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e63946' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.resource-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.resource-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* Support CTA Section */
.support-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/carshow2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 80px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.btn-cta {
  background-color: transparent;
  color: white;
  border: 2px solid var(--primary-color);
  padding: 12px 30px;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--hover-color);
  transform: translateY(-5px);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-category {
    padding: 20px 15px;
  }
  
  .faq-question h4 {
    font-size: 1.1rem;
  }
  
  .quick-nav {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }
  
  .nav-category {
    width: 100%;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .faq-category h3 {
    font-size: 1.5rem;
  }
  
  .faq-question h4 {
    font-size: 1rem;
  }
  
  .faq-question {
    padding: 12px 15px;
  }
  
  .faq-item.active .faq-answer {
    padding: 15px;
  }
}
