/* ============================================================
   K3i Knowledge Hub — Main Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --charcoal:       #1f2937;
  --charcoal-light: #374151;
  --gold:           #d4a017;
  --gold-dark:      #b8860b;
  --gold-pale:      #fef9e7;
  --white:          #ffffff;
  --gray-50:        #f9fafb;
  --gray-100:       #f3f4f6;
  --gray-200:       #e5e7eb;
  --gray-400:       #9ca3af;
  --gray-600:       #6b7280;
  --text:           #1f2937;
  --text-muted:     #6b7280;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 28px rgba(0,0,0,0.13);
  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img  { max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--gold);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', serif;
}
.nav-logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo-text span { color: var(--gold); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.09); }
.nav-links a.active { color: var(--gold); background: rgba(212,160,23,0.10); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  padding: 90px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212,160,23,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,160,23,0.14);
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.30);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 58px);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 38px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.30);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.55);
}
.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--charcoal-light);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.section     { padding: 68px 28px; }
.section-alt { background: var(--gray-50); }
.section-center { text-align: center; }
.container   { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}
.section-header { margin-bottom: 44px; }

/* ============================================================
   CATEGORY CARDS  (Homepage grid)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.category-card:hover::after { transform: scaleX(1); }

.category-icon {
  width: 54px;
  height: 54px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
}
.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 9px;
  line-height: 1.3;
}
.category-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}
.category-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-link svg { transition: transform 0.2s; }
.category-card:hover .category-link svg { transform: translateX(5px); }

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-100);
}
.resource-card-top {
  background: var(--gray-50);
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: #7a5500;
  white-space: nowrap;
}
.badge-blue  { background: #eff6ff; color: #1e40af; }
.badge-green { background: #f0fdf4; color: #15803d; }
.badge-purple{ background: #faf5ff; color: #7e22ce; }
.badge-red   { background: #fff1f2; color: #be123c; }

.resource-date { font-size: 12px; color: var(--gray-400); white-space: nowrap; }

.resource-card-body {
  padding: 20px 24px;
  flex: 1;
}
.resource-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 10px;
}
.resource-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.resource-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resource-author {
  font-size: 12px;
  color: var(--text-muted);
}
.resource-author strong { color: var(--charcoal); font-weight: 600; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--charcoal);
  padding: 54px 28px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 60%);
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--gold); }
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.60);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   FILTER / SEARCH BAR
   ============================================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 28px;
  position: sticky;
  top: 73px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.search-wrap svg { color: var(--gray-400); flex-shrink: 0; }
.search-wrap input {
  border: none;
  background: none;
  width: 100%;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.search-wrap input::placeholder { color: var(--gray-400); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.chip:hover { background: var(--gray-100); }
.chip.active {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
  font-weight: 600;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 36px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 52px;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

/* ============================================================
   FEATURED BLOCK (Homepage)
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}
.featured-main {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 42px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.featured-main::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.featured-main .badge { background: rgba(212,160,23,0.18); color: var(--gold); margin-bottom: 18px; }
.featured-main h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.featured-main p {
  font-size: 15px;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  margin-bottom: 28px;
  flex: 1;
}

.featured-sidebar { display: flex; flex-direction: column; gap: 16px; }
.featured-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
}
.featured-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}
.featured-item .badge { font-size: 10px; margin-bottom: 8px; }
.featured-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}
.featured-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ============================================================
   MEDIA CARDS  (Podcasts / Interviews)
   ============================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.media-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.media-thumb {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d3f55 100%);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-thumb-icon {
  width: 62px;
  height: 62px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--transition);
  cursor: pointer;
}
.media-card:hover .media-thumb-icon { transform: scale(1.1); }
.media-label {
  position: absolute;
  top: 14px; left: 14px;
}
.media-duration {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}
.media-body { padding: 20px 22px; }
.media-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.4;
}
.media-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================================
   TOOLKIT CARDS
   ============================================================ */
.toolkit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.toolkit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.toolkit-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
}
.toolkit-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.toolkit-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}
.toolkit-card-body {
  padding: 20px 24px;
}
.toolkit-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.toolkit-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.toolkit-includes li {
  font-size: 13px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolkit-includes li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 52px; margin-bottom: 18px; opacity: 0.45; }
.empty-state h3 { font-size: 20px; color: var(--charcoal); margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 56px 28px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ============================================================
   DIVIDERS & HELPERS
   ============================================================ */
.divider { height: 1px; background: var(--gray-200); margin: 0; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.hidden { display: none !important; }
.results-count {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.results-count strong { color: var(--charcoal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 73px;
    left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 14px;
    border-bottom: 3px solid var(--gold);
    align-items: stretch;
    gap: 3px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle      { display: block; }

  /* Sections */
  .section { padding: 48px 20px; }
  .hero    { padding: 60px 20px; }
  .categories-grid { grid-template-columns: 1fr; }
  .filter-bar { top: 73px; padding: 14px 20px; }
  .stats-row  { gap: 28px; }

  /* Footer */
  .footer-top    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .resources-grid { grid-template-columns: 1fr; }
  .media-grid     { grid-template-columns: 1fr; }
  .hero-cta       { flex-direction: column; align-items: center; }
}

/* ============================================================
   AUTH — NAV LOGIN BUTTON & USER MENU
   ============================================================ */

/* Container injected as last <li> in nav-links */
.nav-auth-li {
  list-style: none;
  padding-left: 14px;
  margin-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
}

/* Login button */
.auth-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: var(--radius);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}
.auth-open-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* User pill (logged-in state) */
.user-nav { position: relative; }
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}
.user-pill:hover { background: rgba(255,255,255,0.18); }

.user-avatar-circle {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--charcoal);
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.user-avatar-circle.lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  z-index: 500;
  overflow: hidden;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.dropdown-user-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropdown-user-info strong {
  font-size: 14px;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-user-info span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--charcoal); }
.dropdown-item.danger:hover { background: #fff1f2; color: #be123c; }

/* Mobile nav auth li */
@media (max-width: 768px) {
  .nav-auth-li {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .auth-open-btn { width: 100%; justify-content: center; }
  .user-pill     { width: 100%; justify-content: flex-start; border-radius: var(--radius); }
  .user-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    margin-top: 8px;
    animation: none;
  }
  .dropdown-user-info {
    background: transparent;
    border-color: rgba(255,255,255,0.10);
  }
  .dropdown-user-info strong,
  .dropdown-user-info span { color: rgba(255,255,255,0.85); }
  .dropdown-item { color: rgba(255,255,255,0.7); }
  .dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .dropdown-item.danger:hover { background: rgba(190,18,60,0.15); color: #fca5a5; }
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.auth-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px 36px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 28px 64px rgba(0,0,0,0.28);
}
.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

/* Close */
.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-400);
  transition: var(--transition);
}
.auth-close:hover { background: var(--gray-200); color: var(--charcoal); }

/* Brand block */
.auth-brand {
  text-align: center;
  margin-bottom: 26px;
}
.auth-logo-mark {
  width: 46px; height: 46px;
  background: var(--charcoal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 14px;
  letter-spacing: -0.5px;
}
.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 26px;
  gap: 2px;
}
.auth-tab {
  flex: 1;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.auth-tab.active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.14);
}
.form-group input::placeholder { color: var(--gray-400); }
.form-group input.invalid { border-color: #f43f5e; }

/* Password wrapper */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: var(--gray-400);
  padding: 4px; display: flex;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--charcoal); }

/* Messages */
.auth-msg {
  font-size: 13px;
  line-height: 1.5;
  border-radius: 7px;
  min-height: 0;
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
}
.auth-msg.show { display: flex; }
.auth-msg.error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.auth-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Submit button row */
.auth-submit {
  margin-top: 2px;
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.k3i-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2000;
  white-space: nowrap;
  border-left: 3px solid var(--gold);
}
.k3i-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Extra auth UI elements ---- */
.auth-form-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: -4px;
}
.auth-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
  text-decoration: underline;
  margin-top: -6px;
  align-self: flex-start;
  transition: color 0.2s;
}
.auth-link-btn:hover { color: var(--gold-dark); }
.auth-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0 0;
  font-family: inherit;
  text-align: center;
  width: 100%;
  transition: color 0.2s;
}
.auth-back-btn:hover { color: var(--charcoal); }
/* ============================================================
   ABOUT PAGE — People Cards
   ============================================================ */

.about-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.about-intro h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--charcoal);
  margin-bottom: .75rem;
}
.about-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-section {
  padding: 3rem 0 0;
}
.about-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.about-section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--charcoal);
  white-space: nowrap;
}
.about-section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.person-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.person-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.person-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  letter-spacing: .04em;
}
.person-avatar.placeholder {
  background: var(--gray-200);
  color: var(--text-muted);
  font-size: 1rem;
  font-family: inherit;
}

.person-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: .3rem;
}
.person-role {
  display: inline-block;
  background: #fef9ec;
  color: #92670a;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: .9rem;
}
.person-bio {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.person-links {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 1rem;
}
.person-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.person-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* placeholder add-person card */
.person-card.add-card {
  border-style: dashed;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 220px;
  color: var(--text-muted);
  font-size: .9rem;
}
.person-card.add-card::before { display: none; }
.person-card.add-card svg { opacity: .35; }

@media (max-width: 600px) {
  .people-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ── end About styles ─────────────────────────────────────── */

/* ============================================================
   LEAVE A NOTE — Contact Band
   ============================================================ */
.note-section {
  background: var(--charcoal);
  padding: 4.5rem 1.5rem;
  margin-top: 3.5rem;
}
.note-inner {
  max-width: 620px;
  margin: 0 auto;
}
.note-header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.note-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: .6rem;
}
.note-header p {
  color: rgba(255,255,255,.62);
  font-size: .97rem;
  line-height: 1.65;
}

.note-form .form-group {
  margin-bottom: 1.1rem;
}
.note-form .form-group label {
  color: rgba(255,255,255,.8);
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .03em;
  display: block;
  margin-bottom: .4rem;
}
.note-form input,
.note-form textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: .7rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.note-form input::placeholder,
.note-form textarea::placeholder {
  color: rgba(255,255,255,.3);
}
.note-form input:focus,
.note-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.11);
}
.note-form textarea {
  resize: vertical;
  min-height: 120px;
}
.note-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.note-submit {
  width: 100%;
  margin-top: .5rem;
  padding: .85rem;
  font-size: 1rem;
}
.note-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.note-feedback {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 8px;
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.note-feedback.success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.35);
  color: #86efac;
}
.note-feedback.error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}
.note-feedback svg { flex-shrink: 0; margin-top: 1px; }

@media (max-width: 540px) {
  .note-form-row { grid-template-columns: 1fr; }
}
/* ── end Leave a Note styles ──────────────────────────────── */

/* ============================================================
   CMS — Admin add / delete panel
   ============================================================ */
.cms-add-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.25rem;
}
.cms-panel {
  background: #f8fafc;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.25rem;
  margin-bottom: 2rem;
}
.cms-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cms-panel-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--charcoal);
}
.cms-panel-close {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.cms-panel-close:hover { border-color: var(--charcoal); color: var(--charcoal); }
.cms-panel .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cms-panel .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.cms-panel .form-group  { margin-bottom: 1rem; }
.cms-panel .form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .35rem;
  letter-spacing: .02em;
}
.cms-panel input,
.cms-panel select,
.cms-panel textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .55rem .85rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--charcoal);
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.cms-panel input:focus,
.cms-panel select:focus,
.cms-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,.12);
}
.cms-panel textarea { resize: vertical; min-height: 82px; }
.cms-panel-actions { display: flex; gap: .75rem; margin-top: .25rem; }
.cms-delete-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.cms-delete-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.cms-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: .93rem;
  padding: 2.5rem 1rem;
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  line-height: 1.7;
  grid-column: 1 / -1;
}
.cms-sample-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin: 2.25rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cms-sample-label::before,
.cms-sample-label::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
@media (max-width: 640px) {
  .cms-panel .form-row-2,
  .cms-panel .form-row-3 { grid-template-columns: 1fr; }
}
/* ── end CMS styles ───────────────────────────────────────── */

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
