/* FAQ PAGE SPECIFIC STYLES */

/* FAQ Hero Section */
.faq-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="faq-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23faq-pattern)"/></svg>');
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

/* Search Box */
.search-box {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 15px 20px;
  font-size: 1.1em;
  border-radius: 45px;
  outline: none;
  color: #333;
}

.search-box input::placeholder {
  color: #999;
}

.search-box button {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.search-box button:hover {
  transform: scale(1.1);
}

.search-box button i {
  color: white;
  font-size: 1.2em;
}

/* FAQ Navigation Tabs */
.faq-nav {
  background: #f8f9fa;
  padding: 30px 0;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 100px;
  z-index: 100;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: white;
  border: 2px solid #e9ecef;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.tab-btn:hover {
  border-color: #1abc9c;
  color: #1abc9c;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  border-color: #1abc9c;
  color: white;
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

/* FAQ Content */
.faq-content {
  padding: 80px 0;
  background: white;
}

.faq-category {
  margin-bottom: 80px;
  opacity: 1;
  transition: all 0.3s ease;
}

.faq-category.hidden {
  display: none;
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(26, 188, 156, 0.05) 50%, transparent 70%);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.category-icon i {
  font-size: 2em;
  color: white;
}

.category-header h2 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.category-header p {
  font-size: 1.1em;
  color: #666;
  position: relative;
  z-index: 2;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 30px;
  text-align: left;
  font-size: 1.1em;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.faq-question:hover::before,
.faq-question.active::before {
  transform: scaleY(1);
}

.faq-question:hover {
  background: linear-gradient(90deg, rgba(26, 188, 156, 0.05) 0%, transparent 100%);
  padding-left: 35px;
}

.faq-question.active {
  background: linear-gradient(90deg, rgba(26, 188, 156, 0.1) 0%, transparent 100%);
  color: #1abc9c;
  padding-left: 35px;
}

.faq-question i {
  font-size: 1em;
  transition: transform 0.3s ease;
  color: #1abc9c;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8f9fa;
  opacity: 0;
  display: block;
}

.faq-answer.active {
  padding: 25px 30px;
  max-height: 2000px;
  opacity: 1;
  display: block;
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.faq-answer ul {
  color: #555;
  line-height: 1.7;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer strong {
  color: #1abc9c;
  font-weight: 600;
}

/* FAQ CTA Section */
.faq-cta {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.faq-cta .cta-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.faq-cta .cta-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: white;
  color: #1abc9c;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: #1abc9c;
  transform: translateY(-2px);
}

/* Search Functionality */
.search-highlight {
  background: yellow;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results i {
  font-size: 3em;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #999;
}

/* Responsive Design */
@media (max-width: 900px) {
  .faq-nav {
    top: 70px;
  }
  
  .hero-content h1 {
    font-size: 2.5em;
  }
  
  .nav-tabs {
    gap: 8px;
    padding: 0 10px;
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 0.9em;
  }
  
  .category-header {
    padding: 30px 15px;
  }
  
  .category-header h2 {
    font-size: 1.8em;
  }
  
  .faq-question {
    padding: 20px 20px;
    font-size: 1em;
  }
  
  .faq-answer.active {
    padding: 20px 20px;
  }
}

@media (max-width: 600px) {
  .faq-hero {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 2em;
  }
  
  .search-box {
    margin: 0 20px;
  }
  
  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 200px;
    justify-content: center;
  }
  
  .faq-question {
    padding: 15px;
    font-size: 0.95em;
  }
  
  .faq-answer.active {
    padding: 15px;
  }
}

/* Animation Enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    max-height: 1000px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

.faq-answer.active {
  animation: slideDown 0.4s ease-out;
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1abc9c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.faq-question:focus {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

.tab-btn:focus {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .faq-hero, .faq-nav, .faq-cta, footer, .whatsapp-float {
    display: none;
  }
  
  .faq-answer {
    max-height: none !important;
    padding: 15px 0 !important;
    page-break-inside: avoid;
  }
  
  .faq-item {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
}