/* ========================================================================
   Style.css — Full custom CSS for Sukhabhava Pisit Institute
   Converted from Tailwind CSS + React to Vanilla CSS
   ======================================================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors (Purple/Fuchsia palette) */
  --brand-50: #fdf4ff;
  --brand-100: #fae8ff;
  --brand-200: #f5d0fe;
  --brand-300: #f0abfc;
  --brand-400: #e879f9;
  --brand-500: #d946ef;
  --brand-600: #c026d3;
  --brand-700: #a21caf;
  --brand-800: #86198f;
  --brand-900: #74007a;
  --brand-950: #4a044e;

  /* Emerald */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  /* Amber */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  /* Slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  /* Spacing & Sizing */
  --container-max: 1280px;
  --container-md: 1152px;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Prompt", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--slate-50);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

::selection {
  background-color: var(--amber-200);
  color: var(--brand-950);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden-md { display: none; }
.hidden-md-up { display: inline; }

@media (min-width: 768px) {
  .hidden-md { display: inline; }
  .hidden-md-up { display: none; }
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.container-md {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-md { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container-md { padding: 0 2rem; }
}

/* --- Section Common --- */
.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-950);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
}

.section-subtitle.one-line {
  max-width: none;
}

@media (min-width: 900px) {
  .section-subtitle.one-line {
    white-space: nowrap;
  }
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--brand-50);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(74, 4, 78, 0.8),
    rgba(116, 0, 122, 0.7),
    rgba(6, 78, 59, 0.6));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-content { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding: 0 2rem; }
}

.hero-inner {
  max-width: 56rem;
  padding-top: 5rem;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .hero-badge {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero-badge {
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

.hero-logo-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}

@media (min-width: 768px) {
  .hero-logo-img {
    width: 6rem;
    height: 6rem;
  }
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .hero-badge-text {
    align-items: flex-start;
    text-align: left;
  }
}

.hero-badge-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .hero-badge-title { font-size: 1.875rem; }
}

.hero-badge-divider {
  width: 3rem;
  height: 0.25rem;
  background: var(--emerald-400);
  border-radius: var(--radius-full);
  margin: 0.25rem 0;
  display: none;
}

@media (min-width: 640px) {
  .hero-badge-divider { display: block; }
}

.hero-badge-subtitle {
  color: var(--brand-50);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.4;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
  max-width: 280px;
}

@media (min-width: 640px) {
  .hero-badge-subtitle { max-width: none; }
}

@media (min-width: 768px) {
  .hero-badge-subtitle { font-size: 1rem; }
}

/* Hero Heading */
.hero-heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hero-heading { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-heading { font-size: 3.75rem; }
}

.text-emerald {
  color: var(--emerald-400);
}

/* Hero Description */
.hero-description {
  font-size: 1.125rem;
  color: var(--brand-50);
  max-width: 42rem;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 300;
  border-left: 4px solid var(--emerald-400);
  padding-left: 1.5rem;
}

@media (min-width: 768px) {
  .hero-description { font-size: 1.25rem; }
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--emerald-600);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

@media (min-width: 640px) {
  .btn-primary { width: auto; }
}

.btn-primary:hover {
  background: var(--emerald-500);
  box-shadow: 0 0 30px rgba(5, 150, 105, 0.5);
}

.btn-primary-hover-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.btn-primary:hover .btn-primary-hover-bg {
  transform: translateY(0);
}

.btn-text { position: relative; letter-spacing: 0.025em; }
.btn-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}
.btn-primary:hover .btn-icon { transform: translateY(0.25rem); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  width: 100%;
  cursor: pointer;
}

@media (min-width: 640px) {
  .btn-secondary { width: auto; }
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary-line {
  width: 1.5rem;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transition: width 0.3s;
}

.btn-secondary:hover .btn-secondary-line {
  width: 2.5rem;
}

/* ========================================================================
   HISTORY STORY SECTION
   ======================================================================== */
.history-section {
  padding: 1rem 0 6rem;
  background: var(--slate-50);
  position: relative;
  overflow: hidden;
}

.history-section .section-header {
  margin-bottom: 1.25rem;
}

.history-section .section-title {
  margin-top: 0.25rem;
}

.history-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(to bottom, white, transparent);
}

.history-container {
  position: relative;
  z-index: 10;
}

.history-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--amber-600);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.history-stories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

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

.story-grid.reverse {
  direction: ltr;
}

@media (min-width: 768px) {
  .order-img-right { order: 2; }
  .order-text-left { order: 1; }
}

.story-image-wrap {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}

.story-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.story-image-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

.story-image-overlay.green { background: rgba(6, 78, 59, 0.2); }
.story-image-overlay.amber { background: rgba(146, 64, 14, 0.1); }

.story-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-icon-header.white { color: white; }

.icon-box {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box.green {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.icon-box.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}

.icon-box.feature {
  background: var(--amber-500);
  color: var(--brand-950);
}

.story-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-950);
}

.story-heading-light {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.story-text {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.story-text-light {
  font-size: 1.125rem;
  color: var(--brand-100);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.indent { text-indent: 2rem; }

/* Feature Box (Part 3) */
.story-feature-box {
  background: var(--brand-950);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  border: 1px solid var(--brand-900);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .story-feature-box { padding: 3rem; }
}

.story-feature-icon-bg {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2rem;
  opacity: 0.1;
  pointer-events: none;
  color: white;
}

.story-feature-icon-bg svg {
  width: 16rem;
  height: 16rem;
}

.story-feature-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
}

/* ========================================================================
   FOUNDERS SHOWCASE SECTION
   ======================================================================== */
.founders-section {
  padding: 6rem 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.founders-container {
  position: relative;
  z-index: 10;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.icon-badge.green {
  color: var(--emerald-600);
  background: var(--emerald-50);
}

.founders-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .founders-grid { grid-template-columns: repeat(3, 1fr); }
}

.founder-card {
  background: var(--slate-50);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--slate-100);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.founder-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}

.founder-image-wrap {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}

.founder-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.2);
  z-index: 10;
  transition: background 0.3s;
}

.founder-card:hover .founder-image-overlay {
  background: transparent;
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
  transition: all 0.5s ease;
}

.founder-card:hover .founder-image {
  filter: grayscale(0);
  transform: scale(1.05);
}

.founder-image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--brand-950), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 20;
}

.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.founder-role {
  color: var(--amber-400);
  font-weight: 500;
  font-size: 0.875rem;
}

.founder-description {
  padding: 1.5rem;
  background: white;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-title-text {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.75;
  border-left: 2px solid var(--slate-200);
  padding-left: 1rem;
}

/* ========================================================================
   SEARCHABLE TABLE SECTION
   ======================================================================== */
.table-section {
  padding: 5rem 0;
  background: var(--slate-50);
}

/* Search Input */
.search-input-wrap {
  margin-bottom: 2rem;
  position: relative;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.search-icon-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: rgba(116, 0, 122, 0.4);
}

.search-input {
  display: block;
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-xl);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate-800);
  outline: none;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-input::placeholder {
  color: var(--slate-400);
}

.search-input:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--emerald-500);
  border-color: var(--emerald-500);
}

/* Table Container */
.table-container {
  background: white;
  border-radius: var(--radius-3xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--slate-100);
  overflow: hidden;
}

/* Desktop Table */
.table-desktop {
  display: none;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .table-desktop { display: block; }
}

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

.table-header-row {
  background: var(--brand-900);
  border-bottom: 1px solid var(--brand-800);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--brand-50);
  font-weight: 600;
  text-transform: uppercase;
}

.table-header-row th {
  padding: 1.25rem 1.5rem;
}

.th-highlight { color: var(--amber-400) !important; }

.table-row {
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.2s;
}

.table-row:hover { background: var(--slate-50); }

.td-name {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--brand-950);
  transition: color 0.2s;
}

.table-row:hover .td-name { color: var(--emerald-600); }

.td-text {
  padding: 1.25rem 1.5rem;
  color: var(--slate-600);
}

.td-degree {
  padding: 1.25rem 1.5rem;
  color: var(--emerald-800);
  font-weight: 700;
  background: rgba(236, 253, 245, 0.5);
}

/* Mobile Card View */
.table-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--slate-50);
}

@media (min-width: 1024px) {
  .table-mobile { display: none; }
}

.mobile-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-card-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--brand-950);
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 0.75rem;
}

.mobile-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mobile-card-grid { grid-template-columns: 1fr 1fr; }
}

.mobile-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.mobile-card-label.green { color: var(--emerald-600); }
.mobile-card-label.amber { color: var(--amber-600); }
.mobile-card-label.brand { color: var(--brand-900); }

.mobile-card-value {
  color: var(--slate-700);
}

.mobile-card-sub {
  color: var(--slate-500);
  margin-left: 0.5rem;
}

.mobile-card-degree-wrap {
  padding-top: 0.75rem;
}

@media (min-width: 640px) {
  .mobile-card-degree-wrap { grid-column: span 2; }
}

.mobile-card-degree {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--brand-50);
  color: var(--brand-800);
  border-radius: var(--radius-lg);
  font-weight: 700;
  border: 1px solid var(--brand-100);
}

.no-results {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--slate-500);
}

/* ========================================================================
   LEADERSHIP TIMELINE SECTION
   ======================================================================== */
.leadership-section {
  padding: 6rem 0;
  background: white;
}

.leadership-grid {
  display: grid;
  gap: 4rem;
}

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

/* Era Header */
.era-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
  flex-wrap: wrap;
}

.era-icon {
  padding: 0.75rem;
  border-radius: var(--radius-xl);
}

.era-icon.amber {
  background: var(--amber-50);
  color: var(--amber-600);
}

.era-icon.green {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.era-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-950);
}

.era-badge {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
}

.era-badge.amber {
  color: var(--amber-700);
  background: var(--amber-100);
}

.era-badge.green {
  color: var(--emerald-800);
  background: var(--emerald-100);
}

/* Timeline Line */
.timeline-line {
  position: relative;
  border-left: 2px solid;
  padding-left: 2rem;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-line.amber { border-color: var(--amber-100); }
.timeline-line.green { border-color: var(--emerald-200); }

/* Timeline Item */
.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  left: calc(-2rem - 0.625rem - 1px);
  top: 1rem;
}

.timeline-dot.amber {
  background: white;
  border: 4px solid var(--amber-400);
}

.timeline-dot.green {
  background: var(--emerald-600);
  border: 4px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Leader Card */
.leader-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.leader-card.club {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.leader-card.club:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.leader-card.assoc {
  background: white;
  border: 1px solid var(--emerald-100);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.leader-card.assoc:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.leader-card-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  background: var(--emerald-50);
  border-bottom-left-radius: 100%;
  margin-right: -1rem;
  margin-top: -1rem;
  opacity: 0.5;
  z-index: 0;
}

.leader-card-inner {
  position: relative;
  z-index: 10;
}

/* Leader Header */
.leader-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.leader-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
  filter: grayscale(30%);
  transition: filter 0.3s;
}

.leader-card:hover .leader-avatar {
  filter: grayscale(0);
}

.leader-avatar.green-border {
  border-color: var(--emerald-50);
}

.leader-avatar-placeholder {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 700;
  flex-shrink: 0;
}

.leader-avatar-placeholder.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}

.leader-avatar-placeholder.green {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.leader-role {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.leader-role.amber { color: var(--amber-600); }
.leader-role.green { color: var(--emerald-700); }

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-950);
  transition: color 0.3s;
}

.leader-card.club:hover .leader-name {
  color: var(--emerald-700);
}

.leader-name.hover-amber {}
.leader-card.assoc:hover .leader-name {
  color: var(--amber-600);
}

/* Leader Info Rows */
.leader-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  background: white;
}

.info-row.alt {
  background: var(--slate-50);
}

.info-label {
  font-weight: 600;
  color: var(--slate-500);
}

.info-value {
  font-weight: 500;
  color: var(--slate-800);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background: var(--brand-950);
  color: var(--brand-200);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--brand-900);
}

.footer-main {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-sub {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ========================================================================
   SCROLL ANIMATIONS (CSS-only replacement for Framer Motion)
   ======================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Elements start invisible */
.scroll-animate {
  opacity: 0;
}

/* When visible (via Intersection Observer JS) */
.scroll-animate.visible {
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.scroll-animate.visible.fade-up {
  animation-name: fadeUp;
}

.scroll-animate.visible.slide-left {
  animation-name: slideLeft;
}

.scroll-animate.visible.slide-right {
  animation-name: slideRight;
}

/* Hero animations (always play on load) */
.hero-animate {
  opacity: 0;
}

.hero-animate.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-animate[data-delay="0"] { animation-delay: 0ms; }
.hero-animate[data-delay="200"] { animation-delay: 200ms; }
.hero-animate[data-delay="400"] { animation-delay: 400ms; }
.hero-animate[data-delay="800"] { animation-delay: 800ms; }

/* ========================================================================
   RESPONSIVE TWEAKS
   ======================================================================== */
@media (max-width: 767px) {
  .story-image { height: 280px; }
  .era-header { gap: 0.75rem; }
  .era-title { font-size: 1.125rem; }
  .era-badge { margin-left: 0; margin-top: 0.5rem; }
}
