/* ============================================================
   HUZIHUB DESIGN SYSTEM & VARIABLES
   ============================================================ */
:root {
  --ink: #15132b;
  --ink-soft: #4d4a6b;
  --ink-faint: #8985a8;

  --bg: #fcfbff;
  --bg-soft: #f4f2ff;

  --line: #e7e4f6;
  --line-soft: #f0eefb;

  --primary: #4f46e5;
  --primary-dark: #3b33c4;
  --primary-light: #eeebff;

  --accent: #7c3aed;
  --white: #ffffff;

  --success-bg: #e6f4ea;
  --success-text: #137333;
  --warning-bg: #fef7e0;
  --warning-text: #b06000;
  --danger-bg: #fce8e6;
  --danger-text: #c5221f;

  --shadow-sm: 0 1px 2px rgba(21, 19, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 12px 32px rgba(79, 70, 229, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
  color: var(--ink);
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.skip-link:focus {
  top: 20px;
}

/* ============================================================
   GLOBAL NAVBAR
   ============================================================ */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(252, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle,
.nav-link {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dropdown-toggle:hover,
.nav-link:hover,
.dropdown-toggle.active {
  color: var(--primary);
  background: var(--bg-soft);
}

.dropdown-toggle .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 950;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.search-kbd kbd {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   MOBILE MENU DRAWER & SEARCH MODAL
   ============================================================ */
.mobile-menu-overlay,
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 19, 43, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.open,
.search-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: var(--white);
  z-index: 1050;
  box-shadow: -4px 0 24px rgba(21, 19, 43, 0.15);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.mobile-menu-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-accordion {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.mobile-acc-header {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.mobile-acc-header .arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.mobile-acc-header.active .arrow {
  transform: rotate(180deg);
}

.mobile-acc-content {
  display: none;
  padding-bottom: 12px;
}

.mobile-acc-content a {
  display: block;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.mobile-acc-content a:hover,
.mobile-acc-content a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-links-single {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-links-single a {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

/* Search Modal Styling */
.search-modal {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -20px) scale(0.95);
  width: 90%;
  max-width: 650px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.search-modal-overlay.open .search-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.search-modal-header svg {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.search-modal-header input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
}

.search-close-btn {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.search-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.search-hint {
  text-align: center;
  color: var(--ink-faint);
  padding: 30px 0;
  font-size: 0.95rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--primary-light);
  border-color: var(--line);
}

.search-result-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.search-result-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-content p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.trust-item svg {
  color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.glass-dashboard-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-title {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.dash-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dash-metric-display {
  text-align: center;
  margin-bottom: 24px;
}

.dash-number {
  font-family: "Lexend", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.dash-label {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 4px;
}

.dash-label.normal {
  background: var(--success-bg);
  color: var(--success-text);
}

.dash-progress-track {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.dash-footer-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ============================================================
   BREADCRUMB BAR
   ============================================================ */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.breadcrumb-list a {
  color: var(--ink-soft);
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list .separator {
  color: var(--line);
}

/* ============================================================
   BMI CALCULATOR SECTION
   ============================================================ */
.calculator-section {
  padding: 60px 0;
}

.calculator-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.calculator-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.calc-header-area {
  text-align: center;
  margin-bottom: 30px;
}

.calc-header-area h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.calc-header-area p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.unit-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  border: 1px solid var(--line);
}

.unit-tab {
  background: transparent;
  border: none;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.unit-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-control-wrap {
  margin-bottom: 24px;
}

.form-control-wrap label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  width: 100%;
  padding: 14px 16px;
  padding-right: 50px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.unit-suffix {
  position: absolute;
  right: 16px;
  font-weight: 600;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.imperial-height-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.error-message {
  display: none;
  color: var(--danger-text);
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 500;
}

.form-control-wrap.error input {
  border-color: var(--danger-text);
  background: var(--danger-bg);
}

.form-control-wrap.error .error-message {
  display: block;
}

.calc-action-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background: var(--line-soft);
  color: var(--ink);
}

/* ============================================================
   RESULT DASHBOARD & BMI SCALE
   ============================================================ */
.result-dashboard {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-copy-result {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-copy-result:hover {
  background: var(--primary);
  color: var(--white);
}

.result-display-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.bmi-number-box {
  text-align: center;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.bmi-value-title {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 600;
  display: block;
}

.bmi-big-number {
  font-family: "Lexend", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.bmi-category-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.bmi-interpretation-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* BMI Scale Bar */
.bmi-scale-container {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.bmi-scale-container h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.bmi-scale-bar {
  position: relative;
  height: 24px;
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.scale-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
}

.scale-segment.underweight {
  background: #4285f4;
  flex: 1.85;
}
.scale-segment.normal {
  background: #34a853;
  flex: 2.64;
}
.scale-segment.overweight {
  background: #fbbc05;
  flex: 2.5;
  color: #15132b;
}
.scale-segment.obesity {
  background: #ea4335;
  flex: 3.5;
}

.bmi-scale-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 4px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

.marker-tooltip {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.scale-ranges {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.health-disclaimer-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================================
   ADSENSE & ARTICLE CONTENT
   ============================================================ */
.adsense-container {
  margin: 40px auto;
  text-align: center;
}

.adsense-placeholder {
  background: var(--bg-soft);
  border: 2px dashed var(--line);
  color: var(--ink-faint);
  padding: 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.content-article-section {
  padding: 40px 0;
}

.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

.article-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.article-wrapper h3 {
  font-size: 1.35rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-wrapper p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.article-wrapper ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.article-wrapper li {
  margin-bottom: 8px;
}

.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.seo-data-table th,
.seo-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.seo-data-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-family: "Lexend", sans-serif;
  font-weight: 600;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 60px 0;
}

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-wrapper h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 40px;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
  background: var(--bg-soft);
}

.faq-arrow {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 20px;
  background: var(--white);
}

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

.faq-answer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   RELATED TOOLS & CTA SECTIONS
   ============================================================ */
.related-tools-section {
  padding: 40px 0 60px;
}

.related-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: block;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-card h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.final-cta-section {
  padding: 20px 0 60px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-banner h3 {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-btn {
  background: var(--white);
  color: var(--primary);
  display: inline-block;
  box-shadow: var(--shadow-md);
}

.cta-btn:hover {
  background: var(--bg-soft);
  color: var(--primary-dark);
}

/* ============================================================
   GLOBAL FOOTER
   ============================================================ */
.footer-section {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-bio {
  color: var(--ink-faint);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--ink-faint);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover,
.footer-col a.active-footer-link {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 1200;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust-indicators {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .search-trigger-btn {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .calculator-card {
    padding: 24px;
  }
  .result-display-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .bmi-number-box {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .article-wrapper {
    padding: 24px;
  }
  .cta-banner {
    padding: 30px 20px;
  }
  .cta-banner h3 {
    font-size: 1.75rem;
  }
}
