/* ===== FAQ PAGE STYLES ===== */

.rt-faq-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.rt-faq-hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--hero-gradient);
  overflow: hidden;
}

.rt-faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 50%, rgba(41, 86, 141, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 75% 50%, rgba(41, 86, 141, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.rt-faq-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.rt-faq-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rt-faq-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search Section */
.rt-faq-search {
  background: var(--pure-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: -50px;
  z-index: 10;
}

.rt-faq-search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.rt-faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--pale-blue);
  border-radius: 50px;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.rt-faq-search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(41, 86, 141, 0.2);
  background: var(--pure-white);
}

.rt-faq-search-box i {
  color: var(--royal-blue);
  font-size: 1.125rem;
  margin-right: 15px;
}

.rt-faq-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 15px 0;
  font-size: 1rem;
  color: var(--royal-navy);
  outline: none;
}

.rt-faq-search-box input::placeholder {
  color: var(--silver-gray);
}

.rt-faq-search-results {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--silver-gray);
  text-align: center;
}

/* Main Content */
.rt-faq-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Category Sections */
.rt-faq-category {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.rt-faq-category.revealed {
  opacity: 1;
  transform: translateY(0);
}

.rt-faq-category-header {
  margin-bottom: 30px;
  text-align: center;
}

.rt-faq-category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--royal-navy);
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.rt-faq-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--royal-blue);
  border-radius: 2px;
}

/* FAQ List */
.rt-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rt-faq-item {
  background: var(--pure-white);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rt-faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rt-faq-item.active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rt-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  background: var(--pure-white);
}

.rt-faq-question:hover {
  background: #f8f9fa;
}

.rt-faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0b1d3c;
  margin: 0;
  flex: 1;
  padding-right: 20px;
  line-height: 1.4;
}

.rt-faq-toggle {
  background: rgba(74, 168, 218, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4aa8da;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.rt-faq-toggle:hover {
  background: rgba(74, 168, 218, 0.2);
}

.rt-faq-item.active .rt-faq-toggle {
  background: #4aa8da;
  color: var(--pure-white);
}

.rt-faq-toggle i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.rt-faq-item.active .rt-faq-toggle i {
  transform: rotate(180deg);
}

.rt-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--pure-white);
  border-top: 1px solid #f0f0f0;
}

.rt-faq-item.active .rt-faq-answer {
  max-height: 300px;
  padding: 20px 30px 25px;
}

.rt-faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* CTA Section */
.rt-faq-cta {
  background: var(--hero-gradient);
  padding: 80px 20px;
  margin-top: 100px;
}

.rt-faq-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.rt-faq-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 20px;
}

.rt-faq-cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 40px;
}

.rt-faq-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.rt-faq-cta-button {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.rt-faq-cta-button-primary {
  background: var(--pure-white);
  color: var(--royal-navy);
}

.rt-faq-cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.rt-faq-cta-button-secondary {
  background: transparent;
  color: var(--pure-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.rt-faq-cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
}

/* Search Results Styling */
.rt-faq-item.hidden {
  display: none;
}

.rt-faq-item.highlight {
  background: var(--card-gradient);
  border: 2px solid var(--royal-blue);
}

.rt-faq-search-results.show {
  display: block;
  padding: 10px;
  background: var(--muted-blue);
  border-radius: 8px;
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rt-faq-hero {
    padding: 140px 0 80px;
  }
  
  .rt-faq-hero-title {
    font-size: 2rem;
  }
  
  .rt-faq-hero-subtitle {
    font-size: 1.125rem;
  }
  
  .rt-faq-content {
    padding: 60px 20px;
  }
  
  .rt-faq-category-title {
    font-size: 1.5rem;
  }
  
  .rt-faq-question {
    padding: 20px;
  }
  
  .rt-faq-question h3 {
    font-size: 1rem;
  }
  
  .rt-faq-toggle {
    width: 30px;
    height: 30px;
  }
  
  .rt-faq-item.active .rt-faq-answer {
    max-height: 400px;
    padding: 15px 20px 20px;
  }
  
  .rt-faq-answer p {
    font-size: 0.9rem;
  }
  
  .rt-faq-cta-title {
    font-size: 2rem;
  }
  
  .rt-faq-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .rt-faq-cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .rt-faq-category-header {
    margin-bottom: 30px;
  }
  
  .rt-faq-category-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .rt-faq-search-container {
    padding: 30px 15px;
  }
  
  .rt-faq-search-box {
    padding: 0 15px;
  }
  
  .rt-faq-search-box input {
    padding: 12px 0;
  }
}