/* ══════════════════════════════════════════
   Dhammacakka Foundation — Website Styles
   ══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:   #1a3a5c;
  --blue:   #2e6da4;
  --gold:   #f0a500;
  --gold-d: #c07800;
  --light:  #f4f0eb;
  --white:  #ffffff;
  --text:   #2c2c2c;
  --muted:  #666666;
  --border: #e0dbd3;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.nav-logo .dhamma-wheel { font-size: 22px; }
.nav-logo .logo-text { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.2; }
.nav-logo .logo-sub { font-size: 10px; opacity: 0.65; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,0.12); color: white; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 200px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: var(--navy) !important;
  padding: 11px 18px !important;
  font-size: 13px !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #f0ece7;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #f4f0eb; color: var(--navy) !important; }
.dropdown-menu .dd-sub {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--gold-d) !important; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: white;
  padding: 52px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '☸';
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 15px; opacity: 0.85; max-width: 620px; margin: 0 auto; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION ── */
.section { padding: 48px 0; }
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── INTRO BLOCK ── */
.intro-block {
  background: white;
  border-radius: 14px;
  padding: 32px 36px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
.intro-block h2 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.intro-block p { font-size: 14px; color: #444; line-height: 1.75; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  background: #eef3fb;
  color: var(--navy);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 600;
}
.tag.gold { background: #fff3d0; color: var(--gold-d); }
.tag.green { background: #e8f8ee; color: #1a5c30; }

/* ── TABS ── */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  gap: 4px;
}
.tab-btn {
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tab-btn:hover { color: var(--navy); background: rgba(0,0,0,0.03); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); background: white; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13px; color: #555; line-height: 1.65; }
.card ul { list-style: none; margin-top: 10px; }
.card ul li {
  font-size: 13px;
  color: #444;
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid #f5f5f5;
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── PLACEHOLDER ── */
.placeholder {
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  border: 2px dashed var(--border);
}
.placeholder .ph-icon { font-size: 40px; margin-bottom: 14px; }
.placeholder h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.placeholder p { font-size: 13px; color: var(--muted); max-width: 400px; margin: 0 auto; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.stat-box {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 160px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-box .stat-num { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-box .stat-num.gold { color: var(--gold-d); }
.stat-box .stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── QUOTE ── */
.quote-block {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  margin-bottom: 20px;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: 8px; left: 18px;
  font-size: 52px;
  color: rgba(255,255,255,0.12);
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-block p { font-size: 14px; line-height: 1.7; font-style: italic; position: relative; z-index: 1; padding-top: 8px; }
.quote-block .q-src { font-size: 11px; opacity: 0.6; margin-top: 10px; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.data-table thead th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tbody td { padding: 11px 16px; border-bottom: 1px solid #f0ece7; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f9f7f4; }

/* ── PILL ── */
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.pill-blue { background: #e8f0fb; color: var(--navy); }
.pill-gold { background: #fff3d0; color: var(--gold-d); }
.pill-green { background: #e8f8ee; color: #1a5c30; }
.pill-red { background: #fdecea; color: #b71c1c; }

/* ── CONTACT TABS ── */
.contact-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.contact-sidebar { display: flex; flex-direction: column; gap: 8px; }
.contact-option {
  background: white;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.contact-option:hover { border-color: var(--border); background: #faf8f5; }
.contact-option.active { border-color: var(--gold); background: #fffbf0; }
.contact-option .co-icon { font-size: 20px; margin-bottom: 6px; }
.contact-option .co-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.contact-option .co-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.contact-content { background: white; border-radius: 12px; padding: 32px 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.contact-content h2 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.contact-content .cc-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  background: #faf9f7;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); background: white; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-secondary { background: var(--navy); color: white; }

/* ── FOOTER ── */
footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.55);
  padding: 28px 24px;
  margin-top: 60px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
}
