/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --primary:      #5C7A6E;   /* muted sage green */
  --primary-dark: #3D5A50;
  --accent:       #E8845A;   /* warm saffron-orange */
  --accent-light: #F5A57A;
  --bg:           #F7F3ED;   /* warm cream */
  --bg-card:      #FFFFFF;
  --text:         #2C2C2C;
  --text-muted:   #6B6B6B;
  --border:       #E0D9CF;
  --crisis:       #D94F4F;
  --crisis-bg:    #FFF0F0;
  --user-bubble:  #5C7A6E;
  --bot-bubble:   #EEF4F2;
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --radius:       12px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --navbar-height: 65px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #d07348;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,132,90,0.35);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.35);
  text-decoration: none;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #7BA898 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 2.5rem;
  opacity: 0.75;
  font-size: 0.9rem;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--bg-card);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Crisis Banner ────────────────────────────────────────────────────────── */
.crisis-banner {
  background: linear-gradient(135deg, #8B1A1A, #C0392B);
  color: #fff;
  padding: 3.5rem 0;
}

.crisis-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.crisis-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.crisis-banner p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.crisis-lines {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.crisis-line {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ── Chat Page ────────────────────────────────────────────────────────────── */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height));
}

.chat-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chat-header-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-status {
  font-size: 0.82rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg);
}

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
  animation: fadeUp 0.3s ease;
}

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

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: var(--bot-bubble);
}

.message.user .msg-avatar {
  background: var(--accent-light);
}

.bubble {
  background: var(--bot-bubble);
  padding: 0.85rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user .bubble {
  background: var(--user-bubble);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  padding: 0 0.5rem;
}

/* Crisis alert inside chat */
.crisis-alert {
  background: var(--crisis-bg);
  border: 2px solid var(--crisis);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0;
  animation: fadeUp 0.3s ease;
}

.crisis-alert-title {
  color: var(--crisis);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.crisis-alert p {
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 1rem;
}

.crisis-alert .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 80%;
  animation: fadeUp 0.3s ease;
}

.typing-dots {
  background: var(--bot-bubble);
  padding: 0.85rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%            { transform: scale(1.2); opacity: 1; }
}

/* Chat input area */
.chat-input-area {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

#messageInput {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.75rem 1.2rem;
  font-size: 0.97rem;
  font-family: var(--font);
  color: var(--text);
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

#messageInput:focus {
  border-color: var(--primary);
}

#messageInput::placeholder {
  color: var(--text-muted);
}

#sendBtn {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#sendBtn:hover { background: #d07348; transform: scale(1.05); }
#sendBtn:disabled { background: var(--border); cursor: not-allowed; transform: none; }

.input-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}

.quick-replies {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.quick-reply {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
}
.quick-reply:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Support / Booking Page ───────────────────────────────────────────────── */
.support-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.support-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.support-hero p {
  opacity: 0.9;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.support-content {
  padding: 3.5rem 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* Booking form */
.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.booking-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.booking-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 8px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Info cards on support page */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-card li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.helpline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.helpline-item:last-child { border-bottom: none; }

.helpline-item strong {
  color: var(--text);
  font-weight: 600;
}

.helpline-number {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 0; }
  .hero-buttons { flex-direction: column; }
  .chat-messages { padding: 1rem; }
  .message { max-width: 92%; }
  .crisis-banner .container { flex-direction: column; }
  .booking-card { padding: 1.5rem; }
}

/* ── Page transitions ─────────────────────────────────────────────────────── */
body { animation: pageFade 0.3s ease; }

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Wisdom Page ─────────────────────────────────────────────────────────── */

/* Wisdom hero */
.wisdom-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5a4a6e 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.wisdom-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.75rem 0 1rem;
}
.wisdom-hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
}

/* Wisdom content grid */
.wisdom-content {
  padding: 3rem 0 4rem;
}
.wisdom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .wisdom-grid { grid-template-columns: 1fr; }
}

/* Wisdom cards */
.wisdom-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wisdom-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.gita-card .wisdom-card-header { background: linear-gradient(135deg, #fff8f0, #fef3e2); }
.naval-card .wisdom-card-header { background: linear-gradient(135deg, #f0f4ff, #e8f0fe); }

.wisdom-icon {
  font-size: 2.25rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
.wisdom-card-header h2 { font-size: 1.4rem; margin-bottom: 0.15rem; }
.wisdom-subtitle { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Wisdom body */
.wisdom-body { padding: 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }

/* Verse meta */
.verse-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.verse-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.chapter-name { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Shloka */
.shloka-block {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--primary-dark);
  font-weight: 600;
  background: #f9f4ec;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  white-space: pre-line;
}
.transliteration {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: pre-line;
}

/* Language tabs */
.lang-tabs { display: flex; gap: 0.5rem; }
.lang-tab {
  padding: 0.35rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s;
}
.lang-tab.active, .lang-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Meaning text */
.meaning-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text);
}

/* Theme tags */
.theme-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.theme-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* Wisdom refresh button */
.wisdom-refresh-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

/* Naval quote */
.category-badge-row { display: flex; }
.category-badge {
  background: #e8f0fe;
  color: #3b5bdb;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
}
.naval-quote {
  font-size: 1.12rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text);
  border-left: 4px solid #5a7bdb;
  padding-left: 1rem;
  margin: 0;
}
.naval-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Category filter */
.filter-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-tag {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag:hover, .filter-tag.active {
  background: #3b5bdb;
  color: #fff;
  border-color: #3b5bdb;
}

/* Loading indicator */
.wisdom-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
  color: var(--text-muted);
}
.loading-dots { display: flex; gap: 0.4rem; }
.loading-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.2s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* Error state */
.wisdom-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
  color: var(--crisis);
  text-align: center;
}

/* About section */
.wisdom-about {
  background: var(--primary-dark);
  color: #fff;
  padding: 3.5rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1.75rem; }
.about-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.about-card p { font-size: 0.92rem; opacity: 0.85; line-height: 1.7; }

/* Active nav link */
.nav-links a.active { color: var(--accent); font-weight: 700; }

/* ── Wisdom Banner (homepage) ─────────────────────────────────────────────── */
.wisdom-banner {
  background: linear-gradient(135deg, #3d5a50 0%, #5a4a6e 100%);
  color: #fff;
  padding: 4rem 0;
}
.wisdom-banner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 760px) {
  .wisdom-banner-content { grid-template-columns: 1fr; gap: 2rem; }
}
.wisdom-banner-text h2 { font-size: 1.9rem; margin: 0.5rem 0 0.85rem; }
.wisdom-banner-text p { opacity: 0.88; line-height: 1.7; }
.wisdom-banner-quote {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.wisdom-banner-quote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.wisdom-banner-quote cite {
  font-size: 0.88rem;
  opacity: 0.75;
}
