/**
 * Kontrii FAQ Stylesheet
 * Brand color: #ff4800 (Orange)
 * Text color: #182028
 */

/* Main Container & Layout */
.faq_section_container {
  font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #182028;
  background-color: #f9fafb;
}

/* Audience Navigation Pills */
.faq-tabs {
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.faq-pill {
  border-radius: 30px !important;
  color: #6c757d !important;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 24px !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-pill:hover {
  border-color: #ff4800 !important;
  color: #ff4800 !important;
}

.faq-pill.active {
  background-color: #ff4800 !important;
  border-color: #ff4800 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 72, 0, 0.2) !important;
}

#faq-audience-desc {
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Cards Grid */
.faq-category-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  cursor: pointer;
}

.faq-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 72, 0, 0.3);
}

.faq-cat-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 72, 0, 0.08);
  color: #ff4800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.faq-category-card .card-title {
  color: #182028;
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.faq-category-card:hover .card-title {
  color: #ff4800;
}

.faq-cat-meta {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #ff4800 !important;
}

.faq-cat-meta i {
  transition: transform 0.3s ease;
}

.faq-category-card:hover .faq-cat-meta i {
  transform: translateX(4px);
}

/* Category View - Back Button & Header */
#faq-back-btn {
  color: #6c757d;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

#faq-back-btn:hover {
  color: #ff4800;
}

.category-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #ff4800;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 72, 0, 0.2);
}

.category-header-icon {
  font-size: 26px;
}

/* Accordion Section */
.faq-accordion-container {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.faq-accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
  outline: none;
}

.faq-accordion-trigger:hover,
.faq-accordion-trigger:focus {
  background-color: rgba(255, 72, 0, 0.02);
}

.faq-accordion-trigger:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: -2px;
}

.faq-trigger-text {
  font-size: 18px;
  font-weight: 600;
  color: #182028;
  padding-right: 15px;
  transition: color 0.2s ease;
}

.faq-accordion-trigger[aria-expanded="true"] .faq-trigger-text {
  color: #ff4800;
}

.faq-trigger-icon {
  color: #6c757d;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-trigger[aria-expanded="true"] .faq-trigger-icon {
  transform: rotate(180deg);
  color: #ff4800;
}

/* Panel Contents */
.faq-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #fff;
}

.faq-panel-inner {
  padding: 0 24px 24px 24px;
}

.faq-answer-summary {
  font-size: 16px;
  line-height: 1.6;
  color: #495057;
}

/* Lists styling */
.faq-steps-list {
  font-size: 15px;
  line-height: 1.6;
  color: #495057;
}

.faq-steps-list li::marker {
  color: #ff4800;
  font-weight: bold;
}

/* Badges and tags */
.badge-light-primary {
  background-color: rgba(255, 72, 0, 0.08);
  color: #ff4800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* Alert blocks for Important note */
.faq-important-block {
  background-color: #fffbeb;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.faq-important-block h6 {
  font-size: 14px;
  color: #182028;
}

.faq-important-block ul li {
  line-height: 1.5;
}

/* Buttons / Videos */
.faq-video-block .btn {
  border-radius: 30px;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  border-color: #ff4800;
  color: #ff4800;
}

.faq-video-block .btn:hover {
  background-color: #ff4800;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 72, 0, 0.15);
}

/* Empty or Loader states */
.faq-empty-state {
  padding: 15px 0;
  font-style: italic;
}

/* Focus styles */
.faq-tabs a:focus-visible,
.faq-category-card:focus-visible,
#faq-back-btn:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .faq-pill {
    font-size: 14px;
    padding: 8px 16px !important;
  }
  
  .faq-trigger-text {
    font-size: 16px;
  }
  
  .faq-panel-inner {
    padding: 0 16px 16px 16px;
  }
  
  .category-header-icon {
    font-size: 20px;
  }
  
  .category-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 8px;
  }
  
  .faq-accordion-trigger {
    padding: 16px;
  }
}