/* ===================================
   FAQ PAGE - PROFESSIONAL DESIGN
   ===================================
   
   TABLE OF CONTENTS:
   
   1. Hero Section with Animated Background
   2. Professional Search Box
   3. Professional Category Cards
   4. Professional FAQ Accordion Section
   5. Responsive Design
   
   =================================== */

/* ===================================
   1. HERO SECTION WITH ANIMATED BACKGROUND
   =================================== */

.faq-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 107, 53, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 140, 66, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 107, 53, 0.12) 0%,
      transparent 50%
    );
  animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.2),
    rgba(255, 140, 66, 0.2)
  );
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 50px;
  color: #ff8c42;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.faq-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
  }
  to {
    filter: drop-shadow(0 0 25px rgba(255, 140, 66, 0.5));
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   2. PROFESSIONAL SEARCH BOX
   =================================== */

/* Professional Search Box */
.faq-search {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  animation: searchAppear 0.6s ease-out;
}

@keyframes searchAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6b35;
  z-index: 2;
  transition: color 0.3s ease;
}

.faq-search:focus-within .search-icon {
  color: #ff8c42;
}

#faqSearch {
  width: 100%;
  padding: 22px 28px 22px 68px;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  outline: none;
  color: #2d2d2d;
  font-weight: 400;
}

#faqSearch:focus {
  background: #ffffff;
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 12px 48px rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

#faqSearch::placeholder {
  color: #999;
  font-weight: 400;
}

/* ===================================
   3. PROFESSIONAL CATEGORY CARDS
   =================================== */

/* Professional Category Cards */
.faq-categories {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.faq-categories::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.2),
    transparent
  );
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6c757d, #495057);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-card:hover::before,
.category-card.active::before {
  transform: scaleX(1);
}

.category-card:hover,
.category-card.active {
  transform: translateY(-4px);
  border-color: rgba(108, 117, 125, 0.3);
  box-shadow: 0 12px 32px rgba(108, 117, 125, 0.12);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #f8f9fa;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.category-icon svg {
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  letter-spacing: -0.2px;
}

.category-card:hover h3,
.category-card.active h3 {
  color: #495057;
}

.category-count {
  display: inline-block;
  padding: 6px 16px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
}

.category-card:hover .category-count,
.category-card.active .category-count {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: #ffffff;
}

/* Category-Specific Color Coding for Filter Cards */
.category-card[data-category="products"]::before {
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
}

.category-card[data-category="products"]:hover,
.category-card[data-category="products"].active {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.12);
}

.category-card[data-category="products"]:hover .category-icon,
.category-card[data-category="products"].active .category-icon {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
  border-color: transparent;
}

.category-card[data-category="products"]:hover .category-icon svg,
.category-card[data-category="products"].active .category-icon svg {
  transform: translateY(-1px);
}

.category-card[data-category="products"]:hover h3,
.category-card[data-category="products"].active h3 {
  color: #ff6b35;
}

.category-card[data-category="products"]:hover .category-count,
.category-card[data-category="products"].active .category-count {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
}

.category-card[data-category="installation"]::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.category-card[data-category="installation"]:hover,
.category-card[data-category="installation"].active {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
}

.category-card[data-category="installation"]:hover .category-icon,
.category-card[data-category="installation"].active .category-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  border-color: transparent;
}

.category-card[data-category="installation"]:hover .category-icon svg,
.category-card[data-category="installation"].active .category-icon svg {
  transform: translateY(-1px);
}

.category-card[data-category="installation"]:hover h3,
.category-card[data-category="installation"].active h3 {
  color: #3b82f6;
}

.category-card[data-category="installation"]:hover .category-count,
.category-card[data-category="installation"].active .category-count {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.category-card[data-category="maintenance"]::before {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.category-card[data-category="maintenance"]:hover,
.category-card[data-category="maintenance"].active {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
}

.category-card[data-category="maintenance"]:hover .category-icon,
.category-card[data-category="maintenance"].active .category-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
  border-color: transparent;
}

.category-card[data-category="maintenance"]:hover .category-icon svg,
.category-card[data-category="maintenance"].active .category-icon svg {
  transform: translateY(-1px);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.category-card[data-category="maintenance"]:hover h3,
.category-card[data-category="maintenance"].active h3 {
  color: #22c55e;
}

.category-card[data-category="maintenance"]:hover .category-count,
.category-card[data-category="maintenance"].active .category-count {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

.category-card[data-category="warranty"]::before {
  background: linear-gradient(90deg, #a855f7, #9333ea);
}

.category-card[data-category="warranty"]:hover,
.category-card[data-category="warranty"].active {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.12);
}

.category-card[data-category="warranty"]:hover .category-icon,
.category-card[data-category="warranty"].active .category-icon {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
  border-color: transparent;
}

.category-card[data-category="warranty"]:hover .category-icon svg,
.category-card[data-category="warranty"].active .category-icon svg {
  transform: translateY(-1px);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.category-card[data-category="warranty"]:hover h3,
.category-card[data-category="warranty"].active h3 {
  color: #a855f7;
}

.category-card[data-category="warranty"]:hover .category-count,
.category-card[data-category="warranty"].active .category-count {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
}

/* ===================================
   4. PROFESSIONAL FAQ ACCORDION SECTION
   =================================== */

/* Professional FAQ Accordion Section */
.faq-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.2),
    transparent
  );
}

.faq-container {
  max-width: 950px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #e9ecef;
  border-left: 4px solid #e9ecef;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out backwards;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.faq-item:nth-child(1) {
  animation-delay: 0.05s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.08s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.11s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.14s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.17s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.08);
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.03) 0%,
    rgba(30, 144, 255, 0.03) 100%
  );
}

/* Category-specific left border colors - Progressive thickness */
.faq-item[data-category="products"] {
  border-left: 2px solid #ff6b35 !important;
  transition: border-left-width 0.3s ease;
}

.faq-item[data-category="products"]:hover {
  border-left: 4px solid #ff6b35 !important;
}

.faq-item[data-category="products"].active {
  border-left: 6px solid #ff6b35 !important;
}

.faq-item[data-category="installation"] {
  border-left: 2px solid #3b82f6 !important;
  transition: border-left-width 0.3s ease;
}

.faq-item[data-category="installation"]:hover {
  border-left: 4px solid #3b82f6 !important;
}

.faq-item[data-category="installation"].active {
  border-left: 6px solid #3b82f6 !important;
}

.faq-item[data-category="maintenance"] {
  border-left: 2px solid #22c55e !important;
  transition: border-left-width 0.3s ease;
}

.faq-item[data-category="maintenance"]:hover {
  border-left: 4px solid #22c55e !important;
}

.faq-item[data-category="maintenance"].active {
  border-left: 6px solid #22c55e !important;
}

.faq-item[data-category="warranty"] {
  border-left: 2px solid #a855f7 !important;
  transition: border-left-width 0.3s ease;
}

.faq-item[data-category="warranty"]:hover {
  border-left: 4px solid #a855f7 !important;
}

.faq-item[data-category="warranty"].active {
  border-left: 6px solid #a855f7 !important;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 26px 80px 26px 32px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d2d2d;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.5;
}

.faq-question:hover {
  color: #ff6b35;
}

.question-text {
  flex: 1;
  padding-right: 20px;
}

.faq-icon {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #6c757d;
}

.faq-question:hover .faq-icon {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
  transform: translateY(-50%) rotate(45deg);
}

.faq-question[aria-expanded="true"] .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 32px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 32px 32px;
}

.faq-answer > div {
  padding: 0 32px 32px;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 18px;
  font-weight: 400;
}

.faq-answer p:first-child {
  margin-top: 0;
  padding-top: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 20px 0 24px 0;
  padding-left: 24px;
}

.faq-answer li {
  margin-bottom: 14px;
  color: #6c757d;
  line-height: 1.8;
  position: relative;
  padding-left: 4px;
  font-weight: 400;
}

.faq-answer li::marker {
  color: #ff6b35;
  font-weight: 600;
}

.faq-answer strong {
  color: #2d2d2d;
  font-weight: 600;
}

/* Professional CTA Section */
.faq-cta {
  margin-top: 100px;
  padding: 80px 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.06),
    rgba(255, 140, 66, 0.06)
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 107, 53, 0.15);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.08);
}

.faq-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 70%
  );
  animation: ctaRotate 20s linear infinite;
}

@keyframes ctaRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.faq-cta h2 {
  position: relative;
  z-index: 2;
  font-size: 2.25rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.faq-cta p {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  color: #6c757d;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.cta-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 42px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: #ff6b35;
  border: 2px solid #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #ff6b35;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: scale(1.2);
}

/* Hidden State for Categories */
.faq-item.hidden {
  display: none;
}

/* ===================================
   OUT-OF-THE-BOX ENHANCEMENTS
   =================================== */

/* 3. Category Icons Integration */
.faq-question .category-icon {
  width: 36px;
  height: 36px;
  margin-right: 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question .category-icon svg {
  color: inherit;
}

.faq-item[data-category="products"] .faq-question .category-icon {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1),
    rgba(255, 140, 66, 0.1)
  );
  color: #ff6b35;
}

.faq-item[data-category="installation"] .faq-question .category-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  color: #3b82f6;
}

.faq-item[data-category="maintenance"] .faq-question .category-icon {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(22, 163, 74, 0.1)
  );
  color: #22c55e;
}

.faq-item[data-category="warranty"] .faq-question .category-icon {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1),
    rgba(147, 51, 234, 0.1)
  );
  color: #a855f7;
}

.faq-question:hover .category-icon,
.faq-question[aria-expanded="true"] .category-icon {
  transform: scale(1.1);
}

.faq-item[data-category="products"] .faq-question:hover .category-icon,
.faq-item[data-category="products"]
  .faq-question[aria-expanded="true"]
  .category-icon {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
}

.faq-item[data-category="installation"] .faq-question:hover .category-icon,
.faq-item[data-category="installation"]
  .faq-question[aria-expanded="true"]
  .category-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}

.faq-item[data-category="maintenance"] .faq-question:hover .category-icon,
.faq-item[data-category="maintenance"]
  .faq-question[aria-expanded="true"]
  .category-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

.faq-item[data-category="warranty"] .faq-question:hover .category-icon,
.faq-item[data-category="warranty"]
  .faq-question[aria-expanded="true"]
  .category-icon {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
}

/* 4. Floating Answer Cards */
.faq-item.active .faq-answer {
  animation: floatIn 0.4s ease-out;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item[data-category="products"] .faq-answer::before {
  background: linear-gradient(180deg, #ff6b35, #ff8c42);
}

.faq-item[data-category="installation"] .faq-answer::before {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.faq-item[data-category="maintenance"] .faq-answer::before {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.faq-item[data-category="warranty"] .faq-answer::before {
  background: linear-gradient(180deg, #a855f7, #9333ea);
}

.faq-item.active .faq-answer::before {
  opacity: 1;
}

.faq-item.active {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.05) 0%,
    rgba(30, 144, 255, 0.05) 100%
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 11. Gradient Section Dividers */
.category-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.3),
    transparent
  );
  margin: 48px 0;
  position: relative;
}

.category-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 6px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
  border-radius: 3px;
}

/* 13. Color-Coded Categories */
.faq-item[data-category="products"] {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item[data-category="products"]:hover,
.faq-item[data-category="products"].active {
  border-left-color: #ff6b35;
}

.faq-item[data-category="installation"] {
  border-left: 3px solid transparent;
}

.faq-item[data-category="installation"]:hover,
.faq-item[data-category="installation"].active {
  border-left-color: #3b82f6;
}

.faq-item[data-category="maintenance"] {
  border-left: 3px solid transparent;
}

.faq-item[data-category="maintenance"]:hover,
.faq-item[data-category="maintenance"].active {
  border-left-color: #22c55e;
}

.faq-item[data-category="warranty"] {
  border-left: 3px solid transparent;
}

.faq-item[data-category="warranty"]:hover,
.faq-item[data-category="warranty"].active {
  border-left-color: #a855f7;
}

/* 14. Show More/Less Pattern */
.show-more-btn {
  width: 100%;
  padding: 16px 32px;
  margin: 24px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.05),
    rgba(255, 140, 66, 0.05)
  );
  border: 2px dashed rgba(255, 107, 53, 0.3);
  border-radius: 12px;
  color: #ff6b35;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.show-more-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1),
    rgba(255, 140, 66, 0.1)
  );
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-2px);
}

.show-more-btn svg {
  transition: transform 0.3s ease;
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* 15. Quick Jump Links */
.quick-jump-links {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jump-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.jump-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.jump-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5);
}

.jump-btn svg {
  width: 24px;
  height: 24px;
}

.jump-btn.back-to-top {
  transition-delay: 0.1s;
}

.jump-btn.jump-to-categories {
  transition-delay: 0.2s;
}

/* ===================================
   5. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
  .faq-hero {
    padding: 140px 0 100px;
  }

  .faq-hero h1 {
    font-size: 3rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .faq-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 120px 0 80px;
  }

  .faq-hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .category-card {
    padding: 28px 20px;
  }

  .category-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
  }

  .category-icon svg {
    width: 34px;
    height: 34px;
  }

  .category-card h3 {
    font-size: 1rem;
  }

  .category-icon {
    width: 64px;
    height: 64px;
  }

  .category-icon svg {
    width: 28px;
    height: 28px;
  }

  .faq-section {
    padding: 70px 0;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 22px 70px 22px 24px;
  }

  .faq-answer {
    padding: 0 24px;
  }

  .faq-item.active .faq-answer {
    padding: 0 24px 24px;
  }

  .faq-answer p:first-child {
    padding-top: 6px;
  }

  .faq-cta {
    padding: 60px 32px;
    margin-top: 70px;
  }

  .faq-cta h2 {
    font-size: 2rem;
  }

  .faq-cta p {
    font-size: 1.05rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .faq-hero {
    padding: 100px 0 60px;
  }

  .faq-hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 12px;
    padding: 8px 20px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 24px 20px;
  }

  .category-icon {
    width: 64px;
    height: 64px;
  }

  .category-icon svg {
    width: 32px;
    height: 32px;
  }

  .faq-section {
    padding: 60px 0;
  }

  .faq-question {
    font-size: 1rem;
    padding: 20px 60px 20px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }

  .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .faq-answer p:first-child {
    padding-top: 4px;
  }

  .faq-answer ul {
    padding-left: 20px;
  }

  .faq-icon {
    width: 36px;
    height: 36px;
    right: 20px;
  }

  .faq-icon svg {
    width: 20px;
    height: 20px;
  }

  #faqSearch {
    padding: 18px 20px 18px 56px;
    font-size: 15px;
  }

  .search-icon {
    left: 22px;
  }

  .faq-cta {
    padding: 48px 24px;
    margin-top: 60px;
  }

  .faq-cta h2 {
    font-size: 1.75rem;
  }

  .faq-cta p {
    font-size: 1rem;
  }

  .btn {
    padding: 16px 32px;
    font-size: 0.95rem;
  }

  /* Mobile adjustments for new features */
  .faq-question .category-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }

  .faq-question .category-icon svg {
    width: 16px;
    height: 16px;
  }

  .quick-jump-links {
    right: 16px;
    bottom: 16px;
  }

  .jump-btn {
    width: 48px;
    height: 48px;
  }

  .jump-btn svg {
    width: 20px;
    height: 20px;
  }

  .category-divider {
    margin: 32px 0;
  }

  .show-more-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-background,
  .hero-badge,
  .category-card,
  .faq-item {
    animation: none !important;
  }

  .category-card:hover,
  .btn:hover,
  .faq-item:hover {
    transform: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===================================
   END OF FAQ PAGE STYLES
   =================================== */
