/* ==========================================================
   RESET & THEME VARIABLES
   ========================================================== */
:root {
  --bg-primary: #132039;
  --accent-gold: #c78e38;
  --accent-gold-hover: #b37d2e;
  --nav-text-color: #c9d2e3;
  --nav-active-color: #c78e38;
  --text-white: #ffffff;
  --text-muted: #8b99b3;

  /* Accordion Theme Colors */
  --faq-bg: #fdf5e6;             /* Warm cream section background */
  --faq-bar-bg: #fdedd6;         /* Soft peach/apricot bar background */
  --faq-border-active: #191c24;  /* Dark border on expanded card */
  --faq-text: #191c24;           /* Deep dark title text */
  --faq-content-text: #4a5568;   /* Slate body copy */

  /* Thematic Category Brand Accents */
  --banner-bg: #141610;          /* Deep dark banner background */
  --puzzle-green: #68ab43;       /* Category 2 puzzle green */
  --tni-cutlery: #d8dec9;        /* Category 3 metallic cutlery */
  --author-blue: #4b8cb6;        /* Category 4 avatar sky blue */
  --rocket-red: #ff5b5b;         /* Category 5 rocket coral red */

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   NAVIGATION BAR & HAMBURGER (DESKTOP & MOBILE)
   ========================================================== */
.navbar-header {
  width: 100%;
  padding: 24px 0;
  background-color: var(--bg-primary);
  position: relative;
  z-index: 1000;
}

.nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 36px;
  position: relative;
}

/* Desktop Navigation Menu */
.nav-menu,
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Menu Links Specificity & Colors */
.navbar-header .nav-wrapper .nav-menu a,
.navbar-header .nav-wrapper .nav-links a,
.navbar-header a.nav-item,
.navbar-header a.nav-link {
  color: var(--nav-text-color) !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.25s ease, padding-left 0.2s ease;
}

.navbar-header .nav-wrapper .nav-menu a:hover,
.navbar-header .nav-wrapper .nav-links a:hover,
.navbar-header a.nav-item:hover,
.navbar-header a.nav-link:hover {
  color: var(--nav-active-color) !important;
}

.navbar-header .nav-wrapper .nav-menu a.active,
.navbar-header .nav-wrapper .nav-links a.active,
.navbar-header a.nav-item.active,
.navbar-header a.nav-link.active {
  color: var(--nav-active-color) !important;
  font-weight: 600;
}

/* Buy Button */
.nav-btn-buy {
  background-color: var(--accent-gold);
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
}

.nav-btn-buy:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.desktop-only-buy {
  display: inline-block;
}

.mobile-only-buy {
  display: none;
}

/* Hamburger Trigger Button */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--nav-text-color);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background-color 0.25s ease;
}

.nav-hamburger:hover .hamburger-line {
  background-color: var(--nav-active-color);
}

/* Hamburger Active / Animated "X" State */
.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: var(--nav-active-color);
}

.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: var(--nav-active-color);
}

/* Mobile Dimmed Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 17, 30, 0.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Slide-Out Drawer */
@media (max-width: 900px) {
  .nav-wrapper {
    padding: 0 24px;
    justify-content: space-between;
  }

  .nav-hamburger {
    display: flex;
    order: 2;
  }

  .desktop-only-buy {
    display: none;
  }

  .nav-menu,
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #101c32;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-menu.is-active,
  .nav-links.is-active {
    transform: translateX(0);
  }

  .nav-menu a.nav-item,
  .nav-menu a.nav-link,
  .nav-links a.nav-item,
  .nav-links a.nav-link {
    color: var(--nav-text-color) !important;
    font-size: 1.02rem;
    font-weight: 500;
    padding: 10px 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(201, 210, 227, 0.1);
  }

  .nav-menu a.nav-item:hover,
  .nav-menu a.nav-item.active,
  .nav-links a.nav-item:hover,
  .nav-links a.nav-item.active {
    color: var(--nav-active-color) !important;
    padding-left: 6px;
  }

  .mobile-only-buy {
    display: inline-block;
    width: 100%;
    margin-top: 24px;
    padding: 13px 0;
    font-size: 0.88rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ==========================================================
   FAQ HERO BANNER
   ========================================================== */
.faq-hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: 
    linear-gradient(rgba(19, 32, 57, 0.88), rgba(19, 32, 57, 0.92)),
    url("image/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 90px 20px;
  overflow: hidden;
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.faq-hero-title {
  font-family: var(--font-sans);
  font-size: 3.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ==========================================================
   THEMATIC BLOCK HEADERS (CATEGORIES 02–05)
   ========================================================== */
.faq-banner-header {
  background-color: var(--banner-bg);
  padding: 38px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Category Icons */
.puzzle-icon {
  width: 28px;
  height: 28px;
  color: var(--puzzle-green);
  flex-shrink: 0;
}

.tni-icon {
  width: 28px;
  height: 28px;
  color: var(--tni-cutlery);
  flex-shrink: 0;
}

.author-icon {
  width: 28px;
  height: 28px;
  color: var(--author-blue);
  flex-shrink: 0;
}

.rocket-icon {
  width: 28px;
  height: 28px;
  color: var(--rocket-red);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(255, 91, 91, 0.3));
}

/* ==========================================================
   ACCORDION SYSTEM (SHARED ACROSS ALL 25 QUESTIONS)
   ========================================================== */
.faq-accordion-section,
.relevance-faq-section {
  width: 100%;
  background-color: var(--faq-bg);
  font-family: var(--font-sans);
}

.faq-accordion-section {
  padding: 90px 24px 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-content-wrap {
  padding: 80px 24px 120px;
}

.faq-accordion-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base Item Bar */
.accordion-item {
  background-color: var(--faq-bar-bg);
  border: 1.5px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Active Highlight Border */
.accordion-item.active {
  border-color: var(--faq-border-active);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Clickable Header Button */
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.accordion-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-text);
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.accordion-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--faq-text);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-chevron svg {
  width: 100%;
  height: 100%;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

/* Body / Expandable Content */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content {
  padding: 0 24px 22px 24px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--faq-content-text);
}

/* ==========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================== */
@media (max-width: 992px) {
  .faq-hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .faq-hero-banner {
    min-height: 300px;
    padding: 70px 16px;
  }

  .faq-hero-title {
    font-size: 2.2rem;
  }

  .faq-banner-header {
    padding: 26px 16px;
  }

  .banner-title {
    font-size: 1.15rem;
    letter-spacing: 0.8px;
  }

  .puzzle-icon,
  .tni-icon,
  .author-icon,
  .rocket-icon {
    width: 22px;
    height: 22px;
  }

  .faq-accordion-section {
    padding: 60px 16px 80px;
  }

  .faq-content-wrap {
    padding: 50px 16px 80px;
  }

  .accordion-header {
    padding: 16px 18px;
  }

  .accordion-title {
    font-size: 0.94rem;
  }

  .accordion-content {
    padding: 0 18px 18px 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .faq-hero-title {
    font-size: 1.85rem;
  }
}