/* ============================================================
   DATTABHAKTI.ORG - Main Stylesheet
   Spiritual / Devotional Theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #CC5500;
  --primary-dark:   #993F00;
  --primary-light:  #E8742A;
  --secondary:      #D4A017;
  --secondary-dark: #B8860B;
  --accent:         #8B1A1A;
  --gold:           #FFD700;
  --cream:          #FDF8F0;
  --cream-dark:     #F5EDD8;
  --bg-white:       #FFFFFF;
  --text-dark:      #2C1810;
  --text-medium:    #6B4C3B;
  --text-light:     #A07060;
  --border:         #E8D5B7;
  --border-dark:    #C9A87A;
  --shadow-sm:      0 2px 8px rgba(139,68,19,.12);
  --shadow-md:      0 4px 20px rgba(139,68,19,.18);
  --shadow-lg:      0 8px 40px rgba(139,68,19,.22);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --transition:     all .25s ease;
  --font-heading:   'Cinzel', Georgia, serif;
  --font-body:      'Lato', 'Segoe UI', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
}

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #1A0A00 0%, #2C1810 60%, #3D200F 100%);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  border-bottom: 3px solid var(--secondary);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 20px;
}
.site-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.om-symbol { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 0 8px var(--secondary)); }
.site-logo { height: 52px; width: auto; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--secondary); letter-spacing: .05em; line-height: 1.1;
}
.brand-tagline { font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }

.site-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.site-nav ul li a {
  color: rgba(255,255,255,.85); font-size: .82rem; padding: 7px 10px;
  border-radius: var(--radius-sm); transition: var(--transition);
  font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.site-nav ul li a:hover,
.site-nav ul li a.active {
  background: var(--primary); color: #fff;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px; transition: var(--transition);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A0A00 0%, #3D200F 40%, #CC5500 100%);
  color: white; padding: 100px 20px; text-align: center;
  min-height: 480px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-om { font-size: 3.5rem; margin-bottom: 20px; display: block; animation: pulse-glow 3s infinite; }
@keyframes pulse-glow {
  0%,100% { filter: drop-shadow(0 0 8px var(--secondary)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 20px var(--secondary)); transform: scale(1.05); }
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--secondary); letter-spacing: .08em; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 700;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-decoration: none; letter-spacing: .03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-color: var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: white; background: var(--primary-dark); }
.btn-secondary {
  background: transparent; color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary); color: var(--text-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Section Headings ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: linear-gradient(135deg, #1A0A00, #2C1810); color: white; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); background: rgba(204,85,0,.1);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-dark); margin-bottom: 14px;
}
.section-dark .section-header h2 { color: var(--secondary); }
.section-header p { color: var(--text-medium); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.divider {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; margin: 16px 0;
}
.divider span { color: var(--secondary); font-size: 1.4rem; }
.divider::before, .divider::after {
  content: ''; flex: 1; max-width: 100px; height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-dark));
}
.divider::after { background: linear-gradient(to left, transparent, var(--secondary-dark)); }

/* ── Guru Cards (Homepage) ─────────────────────────────────── */
.guru-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.guru-card {
  background: var(--bg-white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
  display: flex; flex-direction: column;
}
.guru-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.guru-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 24px; text-align: center; position: relative;
}
.guru-card-header.adi-guru {
  background: linear-gradient(135deg, var(--secondary-dark), var(--accent));
}
.guru-photo-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto 14px; overflow: hidden;
  border: 4px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15);
}
.guru-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.guru-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.8rem; color: rgba(255,255,255,.8);
  font-weight: 700;
}
.guru-card-title-block .guru-title { font-size: .72rem; color: rgba(255,255,255,.7); letter-spacing: .08em; text-transform: uppercase; }
.guru-card-title-block h3 { font-family: var(--font-heading); color: white; font-size: 1.05rem; margin-top: 4px; }
.guru-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; margin-top: 8px; letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-adi { background: rgba(255,215,0,.25); color: var(--gold); border: 1px solid rgba(255,215,0,.4); }
.badge-shishya { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.3); }
.badge-incarnation { background: rgba(212,160,23,.25); color: var(--secondary); border: 1px solid rgba(212,160,23,.5); }
.guru-card-body { padding: 20px; flex: 1; }
.guru-years { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-light); margin-bottom: 10px; }
.guru-card-body p { font-size: .9rem; color: var(--text-medium); line-height: 1.6; }
.guru-card-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.guru-lineage-label { font-size: .78rem; color: var(--text-light); }
.guru-lineage-label strong { color: var(--primary); }

/* Connector Arrow between cards */
.guru-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 0;
}
.connector-line {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.connector-line .line { width: 2px; height: 20px; background: var(--secondary); }
.connector-arrow { color: var(--secondary); font-size: 1.2rem; animation: bounce-down 1.5s infinite; }
.connector-label {
  font-size: .7rem; color: var(--text-light); text-align: center;
  letter-spacing: .04em;
}
@keyframes bounce-down {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Branch connector for multiple disciples */
.branch-group { display: flex; flex-direction: column; align-items: center; }
.branch-siblings { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.branch-siblings .guru-card { max-width: 300px; }

/* ── PARAMPARA TREE PAGE ────────────────────────────────────── */
.tree-page-hero {
  background: linear-gradient(135deg, #1A0A00, #3D200F);
  padding: 60px 20px; text-align: center;
  border-bottom: 4px solid var(--secondary);
}
.tree-page-hero h1 { font-family: var(--font-heading); color: var(--secondary); font-size: 2.8rem; margin-bottom: 10px; }
.tree-page-hero p { color: rgba(255,255,255,.7); font-size: 1rem; }

.tree-section { padding: 60px 0; background: var(--cream); }
.tree-controls {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap;
}
.tree-controls button {
  padding: 8px 20px; border-radius: 50px; border: 2px solid var(--border);
  background: white; color: var(--text-medium); cursor: pointer;
  font-size: .85rem; font-weight: 600; transition: var(--transition);
}
.tree-controls button:hover,
.tree-controls button.active {
  border-color: var(--primary); background: var(--primary); color: white;
}

/* Tree Container */
#tree-container {
  position: relative; width: 100%; overflow-x: auto; overflow-y: hidden;
  cursor: grab; user-select: none;
  background: radial-gradient(ellipse at center, #fff 0%, var(--cream) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.05);
}
#tree-container:active { cursor: grabbing; }
#tree-canvas {
  position: relative; /* JS sets width/height */
}
#tree-svg {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
}

/* Tree Node */
.tree-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, 0);
  cursor: pointer; transition: var(--transition);
  z-index: 10;
}
.tree-node:hover { z-index: 20; }
.tree-node-inner {
  background: white; border-radius: var(--radius-md);
  border: 2px solid var(--border); padding: 16px 14px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  text-align: center; width: 160px;
}
.tree-node:hover .tree-node-inner {
  border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(212,160,23,.15), var(--shadow-md);
  transform: translateY(-4px);
}
.tree-node.root-node .tree-node-inner {
  border-color: var(--secondary); border-width: 3px;
  background: linear-gradient(to bottom, #fff9ee, #fff);
}
.tree-node-photo {
  width: 70px; height: 70px; border-radius: 50%;
  margin: 0 auto 10px; overflow: hidden;
  border: 3px solid var(--border); background: var(--cream);
}
.tree-node.root-node .tree-node-photo { border-color: var(--secondary); width: 84px; height: 84px; }
.tree-node-photo img { width: 100%; height: 100%; object-fit: cover; }
.tree-node-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.tree-node.root-node .tree-node-initials { font-size: 1.7rem; }
.tree-node-label {
  font-family: var(--font-heading); font-size: .72rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.3; text-align: center;
  word-break: break-word; hyphens: auto;
  min-height: 2.6em;
}
.tree-node.root-node .tree-node-label { font-size: .9rem; }
.tree-node-years { font-size: .65rem; color: var(--text-light); margin-top: 4px; }
.tree-node-badge {
  font-size: .6rem; font-weight: 700; padding: 2px 8px; border-radius: 50px;
  margin-top: 6px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(204,85,0,.1); color: var(--primary); border: 1px solid rgba(204,85,0,.2);
}
.tree-node.root-node .tree-node-badge {
  background: rgba(212,160,23,.15); color: var(--secondary-dark); border-color: rgba(212,160,23,.3);
}
.tree-node-tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--text-dark); color: white; padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .78rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s; z-index: 100;
  box-shadow: var(--shadow-md);
}
.tree-node-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--text-dark);
}
.tree-node:hover .tree-node-tooltip { opacity: 1; }

/* ── Guru Detail Page ──────────────────────────────────────── */
.guru-detail-hero {
  background: linear-gradient(135deg, #1A0A00 0%, #2C1810 50%, #4A2210 100%);
  padding: 60px 20px; color: white;
  border-bottom: 4px solid var(--secondary);
}
.guru-detail-hero-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.guru-detail-photo {
  width: 160px; height: 160px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; border: 5px solid var(--secondary);
  box-shadow: 0 0 30px rgba(212,160,23,.4);
}
.guru-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.guru-detail-info { flex: 1; min-width: 250px; }
.guru-detail-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 10px;
  background: rgba(212,160,23,.2); color: var(--secondary); border: 1px solid rgba(212,160,23,.4);
  letter-spacing: .1em; text-transform: uppercase;
}
.guru-detail-title { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.guru-detail-name {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--secondary); margin-bottom: 12px;
}
.guru-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.guru-detail-meta span { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: rgba(255,255,255,.7); }
.guru-detail-desc { font-size: 1rem; color: rgba(255,255,255,.8); line-height: 1.7; }

/* 3-card lineage layout */
.lineage-cards-section { padding: 60px 0; background: var(--cream-dark); }
.lineage-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 960px; margin: 0 auto;
}
.lineage-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: var(--transition);
}
.lineage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lineage-card-header {
  padding: 16px 20px; text-align: center; font-size: .7rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.lc-guru   .lineage-card-header { background: linear-gradient(135deg, #004e89, #003d6b); color: white; }
.lc-current .lineage-card-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.lc-shishya .lineage-card-header { background: linear-gradient(135deg, #1e7e34, #155724); color: white; }
.lc-empty   .lineage-card-header { background: #f0f0f0; color: #999; }
.lineage-card-body { padding: 24px 20px; text-align: center; }
.lineage-card-photo {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 14px; border: 3px solid var(--border);
}
.lineage-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.lineage-card h4 {
  font-family: var(--font-heading); font-size: 1rem; color: var(--text-dark); margin-bottom: 8px;
}
.lineage-card p { font-size: .84rem; color: var(--text-medium); line-height: 1.6; margin-bottom: 16px; }
.lineage-arrows {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.lineage-arrow {
  font-size: 2rem; color: var(--secondary); animation: bounce-right 1.5s infinite;
  flex-shrink: 0; margin: 0 -8px;
}
@keyframes bounce-right {
  0%,100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

/* Parampara Chain */
.parampara-chain { max-width: 700px; margin: 0 auto; }
.chain-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; background: white; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 4px;
  transition: var(--transition); cursor: pointer;
}
.chain-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.chain-item.current {
  border-color: var(--secondary); border-width: 2px;
  background: linear-gradient(to right, #fff9ee, white);
  box-shadow: 0 0 0 3px rgba(212,160,23,.15);
  animation: pulse-chain 2s infinite;
}
@keyframes pulse-chain {
  0%,100% { box-shadow: 0 0 0 3px rgba(212,160,23,.15); }
  50%      { box-shadow: 0 0 0 6px rgba(212,160,23,.1); }
}
.chain-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--cream-dark); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: var(--text-medium);
}
.chain-item.current .chain-num { background: var(--secondary); border-color: var(--secondary); color: var(--text-dark); }
.chain-photo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--border);
}
.chain-photo img { width: 100%; height: 100%; object-fit: cover; }
.chain-info { flex: 1; }
.chain-info .chain-name { font-family: var(--font-heading); font-size: .92rem; color: var(--text-dark); }
.chain-info .chain-years { font-size: .78rem; color: var(--text-light); }
.chain-here { font-size: .72rem; font-weight: 700; color: var(--primary); }
.chain-connector { display: flex; justify-content: center; padding: 2px 0; }
.chain-connector svg { color: var(--secondary); }

/* ── Biography Section ─────────────────────────────────────── */
.biography-section { padding: 60px 0; }
.biography-content {
  max-width: 800px; margin: 0 auto;
  font-size: 1.02rem; line-height: 1.8; color: var(--text-medium);
}
.biography-content h2, .biography-content h3 { color: var(--text-dark); margin: 28px 0 12px; font-family: var(--font-heading); }
.biography-content p { margin-bottom: 18px; }
.biography-content blockquote {
  border-left: 4px solid var(--secondary); padding-left: 20px; margin: 24px 0;
  font-style: italic; color: var(--text-medium);
}

/* ── Video Grid ─────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb {
  position: relative; padding-bottom: 56.25%; overflow: hidden; cursor: pointer;
  background: #1a0a00;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); transition: var(--transition);
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,.15); }
.play-icon {
  width: 56px; height: 56px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: var(--transition);
}
.video-card:hover .play-icon { transform: scale(1.1); background: var(--primary-dark); }
.play-icon svg { color: white; margin-left: 4px; }
.video-card-body { padding: 16px; }
.video-category { font-size: .7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.video-card-body h3 { font-size: .95rem; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.video-card-body p { font-size: .84rem; color: var(--text-medium); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: white; font-size: 2rem; cursor: pointer; background: none; border: none;
  transition: var(--transition); line-height: 1;
}
.lightbox-close:hover { color: var(--secondary); transform: rotate(90deg); }
.lightbox-content { width: 100%; max-width: 900px; padding: 20px; }
.lightbox-video { position: relative; padding-bottom: 56.25%; }
.lightbox-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-sm); }

/* ── Photo Gallery ─────────────────────────────────────────── */
.photo-grid { columns: 4 240px; gap: 16px; }
.photo-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.photo-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.photo-item img { width: 100%; display: block; }

/* ── Documents ─────────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 16px;
  background: white; border-radius: var(--radius-sm); padding: 16px 20px;
  border: 1px solid var(--border); transition: var(--transition);
}
.doc-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem;
}
.doc-info { flex: 1; }
.doc-info h4 { font-size: .95rem; color: var(--text-dark); margin-bottom: 4px; }
.doc-info p { font-size: .82rem; color: var(--text-medium); }
.doc-meta { display: flex; gap: 12px; margin-top: 4px; font-size: .75rem; color: var(--text-light); }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 40px 0; color: white;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-item h3 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--gold); margin-bottom: 6px; }
.stat-item p { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(135deg, #0D0500, #1A0A00, #0D0500);
  color: rgba(255,255,255,.8); padding-top: 60px;
  border-top: 4px solid var(--secondary);
}
.footer-inner { }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-link { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.footer-logo-link .om-symbol { font-size: 1.8rem; }
.footer-site-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--secondary); }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 16px; font-style: italic; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-links h4, .footer-tradition h4 {
  font-family: var(--font-heading); color: var(--secondary); font-size: .95rem; margin-bottom: 16px;
  letter-spacing: .05em;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--secondary); padding-left: 6px; }
.footer-tradition p { font-size: .86rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-mantra { font-family: 'Noto Sans Devanagari', sans-serif; color: var(--secondary) !important; font-size: .9rem !important; }

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-body {
  font-family: var(--font-body); background: #f0f2f5; color: #333; min-height: 100vh;
}
.admin-layout { display: flex; min-height: 100vh; }

/* Admin Sidebar */
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: linear-gradient(180deg, #1A0A00, #2C1810);
  min-height: 100vh; position: sticky; top: 0; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-logo {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
}
.admin-logo .om { font-size: 1.8rem; }
.admin-logo span { font-family: var(--font-heading); color: var(--secondary); font-size: 1.1rem; }
.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav-section { margin-bottom: 8px; }
.admin-nav-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 8px 20px 4px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600;
  transition: var(--transition); text-decoration: none; border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: white; border-left-color: var(--primary); }
.admin-nav a.active { background: rgba(204,85,0,.2); color: white; border-left-color: var(--primary); }
.admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-user-bar {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.admin-user-bar strong { display: block; color: rgba(255,255,255,.8); margin-bottom: 2px; }

/* Admin Main */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: white; padding: 16px 28px; border-bottom: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100;
}
.admin-topbar h1 { font-size: 1.2rem; color: #333; font-family: var(--font-heading); font-weight: 600; }
.admin-topbar-actions { display: flex; gap: 10px; align-items: center; }
.admin-content { padding: 28px; flex: 1; }

/* Admin Cards */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.admin-stat-card {
  background: white; border-radius: var(--radius-md); padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #eee;
  display: flex; align-items: center; gap: 16px; transition: var(--transition);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.stat-icon.orange { background: rgba(204,85,0,.1); }
.stat-icon.gold   { background: rgba(212,160,23,.12); }
.stat-icon.green  { background: rgba(40,167,69,.1); }
.stat-icon.blue   { background: rgba(0,78,137,.1); }
.stat-val h3 { font-size: 2rem; font-weight: 700; color: #333; line-height: 1; margin-bottom: 4px; }
.stat-val p { font-size: .82rem; color: #888; }

.admin-card {
  background: white; border-radius: var(--radius-md); padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #eee; margin-bottom: 24px;
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #eee;
}
.admin-card-header h2 { font-size: 1rem; font-family: var(--font-heading); color: #333; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  background: #f8f9fa; text-align: left; padding: 10px 16px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #666; border-bottom: 2px solid #eee;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; }
.admin-table .thumb-placeholder {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: white; font-size: .9rem; font-weight: 700;
}

/* Admin Form */
.admin-form { max-width: 800px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: .85rem; font-weight: 700; color: #444; margin-bottom: 6px; }
label .required { color: var(--primary); }
input[type="text"], input[type="email"], input[type="url"], input[type="number"],
input[type="password"], select, textarea {
  width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: #333; background: white;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204,85,0,.1);
}
textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .78rem; color: #888; margin-top: 4px; }

/* Admin Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-active  { background: rgba(40,167,69,.12); color: #1e7e34; }
.badge-inactive { background: rgba(220,53,69,.1); color: #b02a37; }
.badge-editor { background: rgba(0,123,255,.1); color: #0056b3; }
.badge-admin  { background: rgba(204,85,0,.1); color: var(--primary-dark); }

/* Action buttons in table */
.action-btns { display: flex; gap: 6px; }
.btn-edit, .btn-delete, .btn-view {
  padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-edit  { background: rgba(0,78,137,.1); color: #004e89; }
.btn-edit:hover  { background: #004e89; color: white; }
.btn-delete { background: rgba(220,53,69,.1); color: #dc3545; }
.btn-delete:hover { background: #dc3545; color: white; }
.btn-view  { background: rgba(40,167,69,.1); color: #1e7e34; }
.btn-view:hover  { background: #28a745; color: white; }

/* Flash messages */
.flash { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.flash-success { background: rgba(40,167,69,.12); color: #1e7e34; border: 1px solid rgba(40,167,69,.25); }
.flash-error   { background: rgba(220,53,69,.1); color: #b02a37; border: 1px solid rgba(220,53,69,.2); }
.flash-info    { background: rgba(0,123,255,.08); color: #0056b3; border: 1px solid rgba(0,123,255,.2); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-light); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }

/* ── 404 ────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 100px 20px; }
.not-found .om-404 { font-size: 5rem; margin-bottom: 24px; opacity: .3; }
.not-found h1 { font-family: var(--font-heading); font-size: 2rem; color: var(--text-dark); margin-bottom: 12px; }
.not-found p { color: var(--text-medium); margin-bottom: 28px; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-light); font-size: .88rem; }
.mt-auto     { margin-top: auto; }
.mb-0        { margin-bottom: 0; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; align-items: center;
}
.filter-bar select, .filter-bar input {
  padding: 9px 14px; border: 2px solid var(--border); border-radius: 50px;
  font-size: .88rem; background: white; cursor: pointer;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); outline: none; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); font-size: .88rem; font-weight: 600;
  transition: var(--transition);
}
.pagination a { color: var(--text-medium); background: white; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lineage-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .lineage-arrows { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-tradition { display: none; }
  .admin-sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #1A0A00; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul li a { padding: 12px 24px; border-radius: 0; }
  .header-inner { position: relative; }
  .guru-detail-hero-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; position: static; }
  .admin-nav { display: none; }
  .tree-node-inner { width: 130px; padding: 12px 10px; }
  .tree-node-photo { width: 55px; height: 55px; }
  .photo-grid { columns: 2 160px; }
  .branch-siblings { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 20px; }
  .section { padding: 50px 0; }
  .guru-cards-grid { grid-template-columns: 1fr; }
  .photo-grid { columns: 2; }
}

/* ── Sacred Connection Cards ──────────────────────────────────────── */
.sc-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.sc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }

.sc-card-top {
  background: linear-gradient(135deg, #1A0A00, #3D200F);
  padding: 22px 20px 18px;
  text-align: center;
}
.sc-photo {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #993F00);
  border: 3px solid rgba(212,160,23,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(212,160,23,.3);
}
.sc-photo img { width: 100%; height: 100%; object-fit: cover; }
.sc-name { font-family: var(--font-heading); font-size: 1rem; color: var(--secondary); margin-bottom: 4px; }
.sc-title { font-size: .72rem; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.sc-type-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: 3px 12px; border-radius: 50px; letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(212,160,23,.4);
  color: var(--gold); background: rgba(212,160,23,.12);
}
.sc-card-body { padding: 18px 20px; flex: 1; }
.sc-card-body p { font-size: .88rem; color: var(--text-medium); line-height: 1.7; }
.sc-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); }

/* Type color overrides */
.type-initiation .sc-type-badge { background: rgba(139,0,0,.15); border-color: rgba(200,50,50,.4); color: #FF8080; }
.type-blessings  .sc-type-badge { background: rgba(212,160,23,.15); border-color: rgba(212,160,23,.4); color: var(--gold); }
.type-darshan    .sc-type-badge { background: rgba(40,100,200,.15); border-color: rgba(40,100,200,.4); color: #7EB8F7; }
.type-teachings  .sc-type-badge { background: rgba(40,167,69,.15); border-color: rgba(40,167,69,.4); color: #6FCF97; }
.type-satsang    .sc-type-badge { background: rgba(155,89,182,.15); border-color: rgba(155,89,182,.4); color: #C39BD3; }
.type-other      .sc-type-badge { background: rgba(150,150,150,.15); border-color: rgba(150,150,150,.4); color: #ccc; }

/* ── Did You Know Card ────────────────────────────────────────────── */
.dyk-inline {
  background: var(--cream, #FDF8F0);
  border-radius: 16px;
  padding: 28px 32px;
  border-left: 5px solid var(--secondary, #D4A017);
  box-shadow: 0 3px 14px rgba(139,68,19,.08);
  border: 1px solid var(--border, #E8D5B7);
  border-left: 5px solid var(--secondary, #D4A017);
}

/* ── Incarnation Tree Nodes ───────────────────────────────────────── */
.tree-node.incarnation-node .tree-node-inner {
  border: 2px solid var(--secondary) !important;
  background: linear-gradient(to bottom, #fffbee, white) !important;
  box-shadow: 0 0 0 2px rgba(212,160,23,.15), 0 4px 16px rgba(212,160,23,.2) !important;
}
.tree-node.incarnation-node .tree-node-photo {
  border-color: var(--secondary) !important;
  background: linear-gradient(135deg, #B8860B, #8B4513) !important;
  box-shadow: 0 0 0 3px rgba(212,160,23,.2) !important;
}
.tree-node.incarnation-node .tree-node-badge {
  background: rgba(212,160,23,.15);
  color: #8B6914;
  border: 1px solid rgba(212,160,23,.4);
}

/* ── Sacred Places Type Badges ────────────────────────────────────── */
.type-temple   { background:rgba(204,85,0,.12); color:#993F00; border:1px solid rgba(204,85,0,.3); }
.type-ashram   { background:rgba(40,167,69,.1); color:#1e7e34; border:1px solid rgba(40,167,69,.25); }
.type-samadhi  { background:rgba(40,100,200,.1); color:#1a5276; border:1px solid rgba(40,100,200,.25); }
.type-math     { background:rgba(155,89,182,.1); color:#7d3c98; border:1px solid rgba(155,89,182,.25); }
.type-trust    { background:rgba(212,160,23,.15); color:#8B6914; border:1px solid rgba(212,160,23,.3); }
.type-birthplace { background:rgba(231,76,60,.1); color:#922b21; border:1px solid rgba(231,76,60,.25); }
.type-sacred   { background:rgba(46,213,115,.1); color:#1e8449; border:1px solid rgba(46,213,115,.25); }
