/* FAQ PAGE – LOG11DX
   Dark, glassy, responsive, WOW factor 💎
*/

:root {
  --faq-bg: #050810;
  --faq-bg-alt: #0b101a;
  --faq-card-bg: rgba(9, 15, 28, 0.9);
  --faq-border-soft: rgba(131, 146, 185, 0.4);
  --faq-accent: #5b8cff;
  --faq-accent-soft: rgba(91, 140, 255, 0.25);
  --faq-text-main: #e9edf8;
  --faq-text-muted: #a4b0cc;
  --faq-danger: #ff4d6a;
  --faq-radius-lg: 18px;
  --faq-radius-xl: 26px;
  --faq-blur: 18px;
}

/* BODY + MAIN LAYOUT */

.faq-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, #102342 0%, transparent 55%),
    radial-gradient(circle at bottom right, #20385d 0%, transparent 55%),
    linear-gradient(180deg, var(--faq-bg) 0%, #05070d 100%);
  color: var(--faq-text-main);
  
  min-height: 100vh;
}

/* The navbar script sets body padding-top = nav height.
   We add a little extra breathing room here. */
.faq-main {
  padding: 24px 16px 40px;
}

.faq-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

/* HERO SECTION */

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.faq-hero-text {
  background: radial-gradient(circle at top, rgba(91, 140, 255, 0.18), transparent 55%) ,
              linear-gradient(145deg, rgba(16, 24, 45, 0.95), rgba(6, 10, 22, 0.98));
  border-radius: var(--faq-radius-xl);
  border: 1px solid rgba(155, 179, 232, 0.45);
  box-shadow:
    0 28px 60px rgba(1, 4, 16, 0.95),
    0 0 0 1px rgba(39, 60, 115, 0.4);
  padding: 20px 24px 22px;
  position: relative;
  overflow: hidden;
}

/* subtle glow line */
.faq-hero-text::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: conic-gradient(
    from 210deg,
    rgba(91, 140, 255, 0.0),
    rgba(91, 140, 255, 0.33),
    rgba(255, 255, 255, 0.0),
    rgba(0, 0, 0, 0.0)
  );
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
}

/* subtle overlay gradient at bottom */
.faq-hero-text::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(2, 5, 15, 0.95), transparent);
  pointer-events: none;
}

.faq-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--faq-text-muted);
  margin: 0 0 6px;
}

.faq-title {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.35rem);
  font-weight: 700;
}

.faq-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--faq-text-muted);
}

/* Pills */

.faq-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 158, 210, 0.45);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--faq-text-main);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--faq-text-muted);
}

.dot-live {
  background: var(--faq-danger);
  box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.7);
  animation: pulse-dot 1.8s infinite;
}

.dot-small {
  width: 4px;
  height: 4px;
  opacity: 0.6;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 77, 106, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 106, 0);
  }
}

/* Anchor links under hero */

.faq-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.8rem;
  color: var(--faq-text-muted);
  position: relative;
  z-index: 1;
}

.faq-anchor-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 1px;
}

.faq-anchor-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--faq-accent), transparent);
  transition: width 0.2s ease-out;
}

.faq-anchor-link:hover::after {
  width: 100%;
}

/* VIDEO CARD */

.faq-video-card {
  position: relative;
  z-index: 1;
}
/* Space between multiple video cards (EN + FR) */
.faq-video-card .faq-card-inner + .faq-card-inner {
  margin-top: 14px;
}
.faq-card-inner {
  background: radial-gradient(circle at top right, rgba(91, 140, 255, 0.22), transparent 60%),
              linear-gradient(145deg, rgba(7, 12, 24, 0.95), rgba(3, 7, 18, 0.98));
  border-radius: var(--faq-radius-xl);
  border: 1px solid rgba(147, 167, 220, 0.55);
  box-shadow:
    0 24px 50px rgba(1, 3, 12, 0.95),
    0 0 0 1px rgba(55, 92, 178, 0.4);
  padding: 14px 14px 12px;
  backdrop-filter: blur(var(--faq-blur));
  -webkit-backdrop-filter: blur(var(--faq-blur));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.faq-video-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faq-text-main);
}

.faq-video-sub {
  font-size: 0.78rem;
  color: var(--faq-text-muted);
}

.faq-lang-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(3, 8, 24, 0.9));
}

.faq-video-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(113, 137, 208, 0.5);
  background: radial-gradient(circle at center, #10192f 0%, #050810 100%);
}

.faq-video-ratio {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.faq-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.faq-video-footer {
  margin-top: 4px;
}

.faq-video-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--faq-text-muted);
}

.faq-video-text a {
  color: var(--faq-accent);
  text-decoration: none;
}

.faq-video-text a:hover {
  text-decoration: underline;
}

/* FAQ ACCORDION SECTION */

.faq-section {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-accordion {
  border-radius: var(--faq-radius-lg);
  border: 1px solid rgba(103, 122, 183, 0.45);
  background: linear-gradient(160deg, rgba(5, 10, 20, 0.98), rgba(6, 10, 20, 0.96));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

/* Bootstrap accordion overrides */

.faq-accordion .accordion-item {
  border: none;
  background: transparent;
}

.faq-accordion .accordion-item + .accordion-item {
  border-top: 1px solid rgba(70, 86, 135, 0.7);
}

.faq-accordion .accordion-header {
  background: transparent;
}

.faq-accordion .accordion-button {
  background: radial-gradient(circle at top left, rgba(91, 140, 255, 0.18), transparent 60%);
  color: var(--faq-text-main);
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 0;
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.85;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.25), transparent);
  box-shadow: inset 0 -1px 0 rgba(91, 140, 255, 0.4);
}

.faq-accordion .accordion-body {
  padding: 12px 18px 16px;
  font-size: 0.9rem;
  color: var(--faq-text-main);
}

.faq-accordion p {
  margin-bottom: 0.55rem;
}

.faq-accordion ul,
.faq-accordion ol {
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
}

.faq-accordion li {
  margin-bottom: 0.25rem;
}

.faq-accordion code {
  font-size: 0.84em;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 4px;
  padding: 1px 4px;
  color: #1fb56f;
}

/* FOOTNOTE */

.faq-footnote {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--faq-text-muted);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  .faq-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-hero-text,
  .faq-card-inner {
    border-radius: 18px;
  }
}

@media (max-width: 767.98px) {
  .faq-main {
    padding: 18px 10px 32px;
  }

  .faq-hero-text {
    padding: 18px 16px 18px;
  }

  .faq-title {
    font-size: 1.7rem;
  }

  .faq-pill-row {
    gap: 6px;
  }

  .faq-accordion .accordion-button {
    padding: 11px 14px;
  }

  .faq-accordion .accordion-body {
    padding: 10px 14px 14px;
  }
}

@media (max-width: 480px) {
  .faq-wrapper {
    max-width: 100%;
  }

  .faq-hero-text {
    padding: 16px 13px 16px;
  }

  .faq-quick-links {
    font-size: 0.76rem;
  }

  .faq-card-inner {
    padding: 12px 10px 10px;
  }
}
