/* ==========================================================================
   FAQpage.css — Standalone FAQ Page Stylesheet for Kompact.AI (website_kai)
   Single CSS file, fully responsive across Mobile, Tablet, and Desktop.
   ========================================================================== */

/* Page Container & Background */


.faq-page-wrapper {
  min-height: 100vh;
  background-color: var(--bg, #120F0F);
  color: var(--text-white, #FFFFFF);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  padding-top: clamp(100px, 14vw, 150px);
  padding-bottom: clamp(60px, 10vw, 120px);
  width: 100%;
}

.faq-container {
  width: 100%;
  max-width: clamp(340px, 92%, 1120px);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Page Header Section
   -------------------------------------------------------------------------- */
.faq-header-section {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.faq-title {
  font-family: var(--font-head, 'Sora', sans-serif) !important;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-white, #FFFFFF);
  letter-spacing: -0.02em;
  margin: 0;
}

.faq-title .accent-yellow {
  color: var(--primary, #FFCE1B);
  font-weight: 300;
  font-family: var(--font-head, 'Sora', sans-serif) !important;
}

/* --------------------------------------------------------------------------
   2. Category Filter Tabs
   -------------------------------------------------------------------------- */
.faq-categories-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding: 4px 4px 12px 4px;
}

.faq-categories-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.faq-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: transparent;
  background-color: var(--bg, #120F0F);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 10px 22px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  outline: none;
}

.faq-tab-btn .tab-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
}

.faq-tab-btn .tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--secondary, #FB1650);
  transition: background-color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.faq-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  background-color: var(--bg, #120F0F);
}

.faq-tab-btn:focus-visible {
  outline: 2px solid var(--primary, #FFCE1B);
  outline-offset: 2px;
}

/* Active Category Tab */
.faq-tab-btn.active {
  background-color: rgba(251, 22, 80, 0.50);
  border-color: rgba(251, 22, 80, 0.85);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(251, 22, 80, 0.20);
}

.faq-tab-btn.active .tab-dot {
  background-color: #FFFFFF;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   3. FAQ Accordion List
   -------------------------------------------------------------------------- */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-card {
  background-color: rgba(52, 32, 31, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(52, 32, 31, 0.50);
}

.faq-card.is-open {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(52, 32, 31, 0.50);
  box-shadow: none;
}

.faq-card-heading {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: normal;
  font-family: var(--font-head, 'Sora', sans-serif) !important;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 32px);
  color: var(--text-white, #FFFFFF);
  font-family: var(--font-head, 'Sora', sans-serif) !important;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  gap: 16px;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.faq-trigger:focus,
.faq-trigger:focus-visible,
.faq-trigger:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.faq-question-text {
  flex: 1;
  font-family: var(--font-head, 'Sora', sans-serif) !important;
}

.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.faq-card.is-open .faq-toggle-icon {
  background: transparent;
  color: #FFFFFF;
  transform: none;
}

/* Accordion Answer Panel */
.faq-answer-panel {
  padding: 0 clamp(20px, 3.5vw, 32px) clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 32px);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  overflow: hidden;
  pointer-events: auto !important;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.3s ease;
}

.faq-answer-content {
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  pointer-events: auto !important;
}

.faq-answer-content p {
  margin: 0;
  white-space: pre-line;
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  pointer-events: auto !important;
}

.faq-answer-content a,
.faq-link {
  color: var(--primary, #FFCE1B) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 500 !important;
  word-break: break-all !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(255, 206, 27, 0.4) !important;
  transition: opacity 0.2s ease, color 0.2s ease !important;
}

.faq-answer-content a:hover,
.faq-answer-content a:focus,
.faq-answer-content a:active,
.faq-link:hover,
.faq-link:focus,
.faq-link:active {
  opacity: 0.85 !important;
  color: #FFE680 !important;
}

/* --------------------------------------------------------------------------
   4. Empty & Error States
   -------------------------------------------------------------------------- */
.faq-empty-msg,
.faq-error-msg {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Mobile Viewports (< 768px) */
@media (max-width: 767px) {
  .faq-page-wrapper {
    padding-top: 110px;
  }

  .faq-container {
    padding: 0 16px;
  }

  .faq-header-section {
    text-align: center;
  }

  .faq-categories-wrapper {
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .faq-tab-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .faq-trigger {
    padding: 18px 20px;
  }

  .faq-toggle-icon {
    width: 28px;
    height: 28px;
  }

  /* Hide Download Kompact AI button on mobile per mobile reference frame (Group 1686552925.png) */
  .navbar .navbar-inner .nav-cta,
  .navbar .nav-cta,
  header.navbar .nav-cta,
  #nav-cta,
  a.nav-cta {
    display: none !important;
  }
}

/* Tablet Viewports (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .faq-page-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .faq-container {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 64px !important;
    box-sizing: border-box !important;
  }

  .faq-header-section {
    text-align: center;
    margin-bottom: 40px;
  }

  .faq-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem) !important;
    line-height: 1.2 !important;
  }

  .faq-categories-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 40px !important;
    overflow-x: auto !important;
    padding: 4px 4px 12px 4px !important;
  }

  .faq-tab-btn {
    padding: 10px 20px !important;
    font-size: 0.8rem !important;
  }

  .faq-accordion-list {
    gap: 16px !important;
    width: 100% !important;
  }

  .faq-card {
    border-radius: 4px !important;
  }

  .faq-trigger {
    padding: 22px 28px !important;
    font-size: 1.1rem !important;
  }

  .faq-answer-panel {
    padding: 0 28px 22px 28px !important;
  }
}


/* Desktop Viewports (>= 1200px) */
@media (min-width: 1200px) {
  .faq-header-section {
    text-align: center;
  }

  .faq-categories-wrapper {
    justify-content: center;
  }
}



  /* ════════════════════════════════════════════════
     UPPER LINE REMOVAL & FOOTER LOWER LINE RESTORATION (<= 1024px)
  ════════════════════════════════════════════════ */
  /* 1. Restore Footer's own Top Border (Lower Line) */
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* 2. Hide horizontal line dividers directly above footer */
  .line-horizontal,
  .line-horizontal:last-of-type,
  main > .line-horizontal:last-child {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Hide dummy/glow sections right above footer */
  .why-section[style*="min-height:0"],
  .get-started-section[style*="min-height:0"],
  .why-section:last-of-type,
  .get-started-section:last-of-type {
    border-top: none !important;
    border-bottom: none !important;
    display: none !important;
  }

  /* 4. Remove section bottom borders right above footer on mobile (Upper Line) */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .models-section,
  .faq-accordion-list,
  .dev-section,
  .tribute-section,
  .community-section,
  .jobs-grid,
  .dynamic-jd-wrapper,
  .phil2-contact-section,
  .phil-status-contact,
  .related-videos,
  .event-detail-body,
  .gallery-large,
  .event-quote,
  .event-meta,
  .md-code-tablet,
  .session-header-row {
    border-bottom: none !important;
  }


/* ════════════════════════════════════════════════
   MOBILE FOOTER OVERRIDES (<= 1024px)
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    background: #1c1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 10 !important;
  }

  
  /* Remove section bottom border right above footer on mobile to eliminate upper line */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .phil2-mobile-page-wrapper > main > section:last-of-type,
  .phil-mobile-page-wrapper > main > section:last-of-type,
  .sbox-page section:last-of-type,
  .page-section:last-of-type,
  .faq-section,
  .get-started-section,
  .community-section,
  .related-videos,
  .phil2-contact-section {
    border-bottom: none !important;
  }

  body .footer .footer-inner,
  body footer#footer-mobile .footer-inner,
  .footer-inner {
    width: calc(100% - calc(var(--px, 24px) * 2)) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Top Nav Row */
  body .footer .footer-nav-row,
  body footer#footer-mobile .footer-nav-row,
  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-links,
  body footer#footer-mobile .footer-nav-links,
  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-link,
  body footer#footer-mobile .footer-nav-link,
  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Social Icons */
  body .footer .footer-socials,
  body footer#footer-mobile .footer-socials,
  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body .footer .social-icon,
  body footer#footer-mobile .social-icon,
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .social-icon svg path,
  body .footer .social-icon svg circle,
  body footer#footer-mobile .social-icon svg path,
  body footer#footer-mobile .social-icon svg circle,
  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  body .footer .social-icon svg path[fill="none"],
  body footer#footer-mobile .social-icon svg path[fill="none"],
  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  /* Middle Row: Addresses & Logos */
  body .footer .footer-bottom-row,
  body footer#footer-mobile .footer-bottom-row,
  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Addresses: Left (Bengaluru) & Right (Palo Alto) */
  body .footer .footer-addresses,
  body footer#footer-mobile .footer-addresses,
  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-address:first-child,
  body footer#footer-mobile .footer-address:first-child,
  .footer-address:first-child {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-address:last-child,
  body .footer .footer-address:nth-child(2),
  body footer#footer-mobile .footer-address:last-child,
  body footer#footer-mobile .footer-address:nth-child(2),
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-city,
  body footer#footer-mobile .footer-city,
  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  body .footer .footer-addr-text,
  body footer#footer-mobile .footer-addr-text,
  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ZIROHLabs Logo: Below Addresses, Left Aligned */
  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Big K. Square Logo: Below ZIROHLabs Logo, Left Aligned */
  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  /* Bottom Legal Section */
  body .footer .footer-legal,
  body footer#footer-mobile .footer-legal,
  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-legal-links,
  body footer#footer-mobile .footer-legal-links,
  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  body .footer .footer-legal-links a,
  body footer#footer-mobile .footer-legal-links a,
  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .footer-copyright,
  body footer#footer-mobile .footer-copyright,
  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    order: 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
}




/* ════════════════════════════════════════════════
   ACTIVE FOOTER LINK HIGHLIGHT (#FFCE1B)
════════════════════════════════════════════════ */
.footer-nav-link.active,
.footer-nav-link.active-page,
a.footer-nav-link.active {
  color: #FFCE1B !important;
}

@media (max-width: 1024px) {

  /* High specificity active footer link color override */
  body .footer .footer-nav-link.active,
  body footer#footer-mobile .footer-nav-link.active,
  body footer#footer-desktop .footer-nav-link.active,
  .footer-nav-links a.active,
  .footer-nav-link.active,
  .footer-nav-link.active-page,
  a.footer-nav-link.active {
    color: #FFCE1B !important;
  }

}


/* ════════════════════════════════════════════════
   PAGE-SPECIFIC ACTIVE FOOTER LINK HIGHLIGHT (#FFCE1B)
════════════════════════════════════════════════ */
.footer-nav-link.active,
body .footer .footer-nav-link.active,
body footer#footer-mobile .footer-nav-link.active,
body footer#footer-desktop .footer-nav-link.active,
.footer-nav-links a.active {
  color: #FFCE1B !important;
}
