
/* ── 0. DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink:         #111111;
  --ink-soft:    #444444;
  --ink-muted:   #777777;
  --surface:     #ffffff;
  --surface-off: #f7f7f7;
  --surface-mid: #ececec;
  --border:      rgba(0,0,0,0.08);
  --accent:      #111111;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;

  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);

  --card-pad:    2.25rem;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 1. RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. NAVBAR ────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.church-logo { height: 40px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 600; color: var(--ink); }

.jt-card,
.jt-view-btn,
.jt-card:focus,
.jt-card:focus-visible {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease;
  display: inline-block;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--ink);
  transition: width 0.3s ease;
}

.nav-links li a:hover { color: var(--ink); }
.nav-links li a:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger .line {
  width: 25px; height: 3px;
  background: #333; border-radius: 3px;
  transition: all 0.4s ease;
}
.burger.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active .line:nth-child(2) { opacity: 0; }
.burger.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px; right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    width: 220px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav-links.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; text-align: left; }
  .nav-links li a { padding: 1rem 1.5rem; width: 100%; display: block; }
}

/* ── 3. ABOUT SUB-NAV ─────────────────────────────────────────────────── */
.about-nav {
  background: var(--surface-off);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 61px;
  z-index: 900;
}

.about-nav .container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.about-nav .container::-webkit-scrollbar { display: none; }

.about-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  white-space: nowrap;
  gap: 0;
  padding: 0 1rem;
  min-width: max-content;
}

.about-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.about-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}

.about-nav a:hover { color: var(--ink); }
.about-nav a:hover::after { transform: scaleX(1); }
.about-nav a.active { color: var(--ink); font-weight: 600; }
.about-nav a.active::after { transform: scaleX(1); }

@media (max-width: 600px) {
  .about-nav ul { justify-content: flex-start; padding: 0 0.5rem; }
  .about-nav a  { font-size: 0.82rem; padding: 0.85rem 1rem; }
}

@media (max-width: 380px) {
  .about-nav a  { font-size: 0.78rem; padding: 0.8rem 0.85rem; }
}

/* ── 4. SKELETON LOADER ───────────────────────────────────────────────── */
#about-wrapper { position: relative; min-height: 60vh; }

#loading-buffer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; min-height: 100%;
  z-index: 100;
  background: var(--surface);
  opacity: 1; visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 0; overflow: hidden; pointer-events: all;
}

#loading-buffer[hidden] {
  opacity: 0 !important; visibility: hidden !important;
  pointer-events: none !important; display: none !important;
}

.skeleton-wrapper {
  width: 100%; max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 2rem; gap: 1.5rem;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

.hero-skeleton     { height: 220px; width: 100%; max-width: 1100px; border-radius: var(--radius-md); }
.container-skeleton {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  width: 100%; max-width: 1100px;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--surface-mid);
}
.skeleton-title { height: 30px; width: 55%; }
.skeleton-line  { height: 18px; width: 80%; }
.skeleton-line.short { width: 40%; }
.card-skeleton  { height: 110px; width: 100%; border-radius: var(--radius-sm); }

#about-content {
  opacity: 0; visibility: hidden; display: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: relative; z-index: 90; min-height: 500px;
}

@media (max-width: 768px) {
  .skeleton-wrapper { padding: 0 1rem; }
  .hero-skeleton { height: 160px; }
  .container-skeleton { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .skeleton-title { width: 75%; }
  .skeleton-line { width: 92%; }
  .skeleton-line.short { width: 55%; }
  .card-skeleton { height: 90px; }
}

/* ── 5. SHARED PAGE STRUCTURE ─────────────────────────────────────────── */

.about-page-hero {
  position: relative;
  height: 58vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

@media (max-width: 600px) {
  .about-page-hero {
    height: auto;
    min-height: unset;
    padding: 5rem 1.5rem 3.5rem;
  }
}

.about-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1;
}

.about-page-hero.hero--jesus {
  background: url('../static/images/about-jesus.jpg') center/cover no-repeat;
}

.about-page-hero.hero--church {
  background: url('../static/images/about-church.jpg') center/cover no-repeat;
}

.about-page-hero.hero--team {
  background:
    linear-gradient(155deg, #1a1a1a 0%, #2c2420 55%, #1e1a18 100%);
}

.about-page-hero.hero--testimony {
  background:
    linear-gradient(155deg, #0f1923 0%, #1c2b3a 50%, #111820 100%);
}

.about-page-hero.hero--team::before,
.about-page-hero.hero--testimony::before {
  display: none;
}

.hero-graphic {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.about-page-hero .about-hero-content { z-index: 2; }

.about-hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 2rem;
  animation: heroIn 0.85s var(--ease-out) both;
}

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

.about-hero-content .eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
}

.about-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem; color: #fff;
}

.about-hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.about-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
}

@media (max-width: 600px) {
  .about-page-body { padding: 2.5rem 1rem 4rem; }
}

@media (max-width: 380px) {
  .about-page-body { padding: 2rem 0.75rem 3rem; }
}

.about-intro-text {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.about-intro-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.about-heading {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  position: relative;
}

.about-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.about-heading.centered { text-align: center; }
.about-heading.centered::after { left: 50%; transform: translateX(-50%); }

.about-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-block.accented::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--ink);
  border-radius: 0 2px 2px 0;
}

.about-block p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.about-block p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .about-block { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
}
@media (max-width: 380px) {
  .about-block { padding: 1.25rem 1rem; }
}

.about-cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}

.about-cta-block h3 {
  font-size: 1.7rem; font-weight: 700;
  margin-bottom: 0.7rem;
}

.about-cta-block p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.about-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none; cursor: pointer;
}

.about-cta-btn:hover { background: var(--surface-off); transform: translateY(-2px); }

/* ── 6. FOOTER ─────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  color: #333;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
  max-width: 1200px; margin: auto;
}

.footer-section { flex: 1; min-width: 240px; padding-top: 1rem; border-top: 2px solid #ccc; }
.footer-section h3 { font-size: 1.15rem; margin-bottom: 1rem; font-weight: 600; color: var(--ink); }
.footer-section p,
.footer-section li { font-size: 0.95rem; color: #333; margin: 0.5rem 0; }
.footer-section a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: #0056b3; text-decoration: underline; }
.footer-section ul { list-style: none; }

.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon { font-size: 1.4rem; color: #333; transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: #007bff; transform: translateY(-3px); }

.footer-bottom { margin-top: 2rem; text-align: center; color: var(--ink-muted); font-size: 0.9rem; }
.footer-bottom .divider { height: 1px; background: var(--border); margin-bottom: 1rem; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .social-icons { justify-content: center; }
}

/* ── 7. UTILITY + ERROR ───────────────────────────────────────────────── */
.error-state {
  text-align: center; padding: 4rem 2rem;
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); margin: 2rem auto; max-width: 560px;
}
.error-state i { font-size: 2.8rem; color: #dc3545; margin-bottom: 1.5rem; display: block; }
.error-state h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 0.75rem; font-weight: 600; }
.error-state p { color: var(--ink-muted); margin-bottom: 2rem; font-size: 1rem; }

.retry-btn {
  background: var(--ink); color: #fff; border: none;
  padding: 0.85rem 1.8rem; border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.retry-btn:hover { background: #333; transform: translateY(-2px); }

/* ── 8. KEYFRAMES + ACCESSIBILITY ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 9. PRINT ─────────────────────────────────────────────────────────── */
@media print {
  #loading-buffer, .about-nav, .burger, footer { display: none !important; }
  #about-content { opacity: 1 !important; visibility: visible !important; display: block !important; }
}

/* ==================================================================
   PARTIAL: JESUS
   ================================================================== */

.jesus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.jesus-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}

.jesus-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.jesus-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.jesus-card:hover::before { transform: scaleX(1); }

.jesus-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.jesus-card p  { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.75; }

.jesus-scripture {
  border-left: 4px solid var(--ink);
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
  background: var(--surface-off);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.jesus-scripture p {
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.jesus-scripture .verse-ref {
  font-size: 0.85rem; color: var(--ink-muted);
  font-style: normal; font-weight: 600;
  letter-spacing: 0.05em;
}

.prayer-box {
  background: var(--surface-off);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  line-height: 1.9; margin-top: 1.25rem;
}

.prayer-box p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.prayer-box p:last-child { margin-bottom: 0; }

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

/* ==================================================================
   PARTIAL: CHURCH
   ================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
  list-style: none;
}

.values-grid li {
  background: var(--surface-off);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.values-grid li strong {
  display: block;
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.4rem;
}

.values-grid li p {
  font-size: 0.93rem;
  color: var(--ink-soft); line-height: 1.75; margin: 0;
}

.history-list { list-style: none; margin-top: 1.5rem; }

.history-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  margin-bottom: 0.6rem;
  background: var(--surface-off);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.98rem; line-height: 1.75;
  border: 1px solid var(--border);
  transition: background 0.25s ease;
}

.history-list li:hover { background: var(--surface-mid); }

.history-list li::before {
  content: '✝';
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem; color: var(--ink-muted);
}

.branch-list {
  list-style: none;
  columns: 3;
  column-gap: 2.5rem;
  margin-top: 1.5rem;
}

.branch-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  break-inside: avoid;
  transition: color 0.25s ease, transform 0.25s ease;
}

.branch-list li:hover { color: var(--ink); transform: translateX(4px); }

.branch-list li::before {
  content: '✝';
  position: absolute; left: 0; top: 1px;
  font-size: 0.72rem; color: var(--ink-muted);
}

/* Tablet */
@media (max-width: 900px) {
  .branch-list {
    columns: 2;
    column-gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .branch-list {
    columns: 1;
    column-gap: 0;
  }

  .branch-list li {
    font-size: 0.93rem;
  }
}

/* ==================================================================
   JOURNEY SECTION — Snake Timeline (v3)
   Add this to your about.css — replaces ALL old .journey-grid rules
   ================================================================== */

/* ── Wrapper ── */
.journey-snake-wrap {
  margin-top: 1.75rem;
  overflow: visible;
  position: relative;
}

/* ── Grid ── */
.journey-snake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* ── Cell: card + label stacked vertically ── */
.jt-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.75rem;
  /* top padding leaves space for the year-range label above arrows */
  padding-top: 0.25rem;
}

/* ── Connector row — spacer between grid rows so L-arrow has height ── */
.jt-connector-row {
  grid-column: 1 / -1;
  height: 52px;
  position: relative;
}

/* ── Card shell ── */
.jt-card {
  width: 100%;
  position: relative;
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
  border-radius: var(--radius-md, 14px);
}

/* ── Flip inner ── */
.jt-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  border-radius: var(--radius-md, 14px);
  position: relative;
}

.jt-card:hover .jt-inner {
  transform: rotateY(180deg);
}

/* ── Front & Back shared ── */
.jt-front,
.jt-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
}

/* ── FRONT ── */
.jt-front {
  background: var(--surface-mid, #ececec);
}

.jt-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.jt-card:hover .jt-front img {
  transform: scale(1.04);
}

.jt-front-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.jt-card:hover .jt-front-overlay {
  background: rgba(0, 0, 0, 0.22);
}

.jt-front-icon {
  opacity: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: opacity 0.25s ease;
}

.jt-card:hover .jt-front-icon {
  opacity: 1;
}

/* Year badge — bottom left of image */
.jt-date-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 2px 9px;
  border-radius: 50px;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

/* ── BACK face ── */
.jt-back {
  transform: rotateY(180deg);
  background: var(--surface, #fff);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jt-back-cat {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-muted, #777);
  margin-bottom: 0.25rem;
}

.jt-back-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink, #111);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.jt-back-desc {
  font-size: 0.76rem;
  color: var(--ink-soft, #444);
  line-height: 1.72;
  flex: 1;
}

.jt-back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  border-top: 1px solid var(--border, rgba(0,0,0,0.08));
  padding-top: 0.5rem;
}

.jt-back-date {
  font-size: 0.7rem;
  color: var(--ink-muted, #777);
  font-weight: 500;
}

.jt-view-btn {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink, #111);
  border: 1px solid var(--border, #ddd);
  border-radius: 50px;
  padding: 3px 10px;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}

.jt-view-btn:hover {
  background: var(--ink, #111);
  color: #fff;
}

/* ── Label BELOW the card ── */
.jt-label {
  margin-top: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted, #777);
  text-align: center;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

/* ── SVG arrow overlays (positioned absolute via JS) ── */
.jt-h-arrow,
.jt-l-arrow {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}

/* ── Footer text ── */
.journey-footer-text {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.96rem;
  color: var(--ink-soft, #444);
  line-height: 1.8;
  font-family: 'Poppins', sans-serif;
}

/* ==================================================================
   LIGHTBOX
   ================================================================== */

.jt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.jt-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.jt-lb-inner {
  max-width: min(820px, 100%);
  width: 100%;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.jt-lightbox.active .jt-lb-inner {
  transform: none;
  opacity: 1;
}

.jt-lb-img-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.jt-lb-img {
  flex: 1;
  min-width: 0;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-md, 14px);
  display: block;
}

/* Prev / Next buttons */
.jt-lb-prev,
.jt-lb-next {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: sans-serif;
  user-select: none;
}

.jt-lb-prev:hover:not(:disabled),
.jt-lb-next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.1);
}

.jt-lb-prev:disabled,
.jt-lb-next:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.jt-lb-cap {
  margin-top: 1rem;
  text-align: center;
}

.jt-lb-cap strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: 'Poppins', sans-serif;
}

.jt-lb-cap p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.jt-lb-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.jt-lb-badge {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 10px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
}

.jt-lb-counter {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.jt-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10000;
  font-family: sans-serif;
}

.jt-lb-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */

/* Tablet — 2 columns */
@media (max-width: 720px) {
  .journey-snake-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide connector row and all SVG arrows on non-3-col layouts */
  .jt-connector-row { display: none; }
  .jt-h-arrow,
  .jt-l-arrow       { display: none; }

  .jt-cell { padding: 0 0.5rem; }

  .jt-lightbox { padding: 2rem 1.5rem; }

  .jt-lb-prev,
  .jt-lb-next { width: 38px; height: 38px; font-size: 1rem; }
}

/* Mobile — 1 column */
@media (max-width: 480px) {
  .journey-snake-grid {
    grid-template-columns: 1fr;
  }

  .jt-cell { padding: 0; }

  .jt-card { height: 210px; }

  .jt-lightbox { padding: 1.5rem 0.75rem; }

  .jt-lb-prev,
  .jt-lb-next { width: 34px; height: 34px; font-size: 0.9rem; }

  .journey-footer-text { font-size: 0.88rem; }
}

@media (max-width: 360px) {
  .jt-card { height: 185px; }
  .jt-back  { padding: 0.85rem; }
}

/* ==================================================================
   PARTIAL: TEAM
   ================================================================== */

/* Role group divider label */
.team-group-title {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin: 3rem 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.team-group-title::before,
.team-group-title::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

/* Grid — strict 3 columns on desktop */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

/* ── FIX: Centre-align grids with any number of items ──────────────────
   Uses flexbox so cards are always centred horizontally.
   Each card is sized to match a 3-column layout (≈ 33.33% - gap).
   Works with 1, 2 or 3 cards — and scales naturally if you add more.
   ─────────────────────────────────────────────────────────────────── */
.team-grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.team-grid--center .team-card {
  /* Match width of one column in the 3-col grid above */
  flex: 0 0 calc(33.33% - 0.84rem);   /* 1.25rem gap ÷ 1.5 ≈ 0.84 */
  max-width: calc(33.33% - 0.84rem);
}

/* Card */
.team-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeInUp 0.55s var(--ease-out) forwards;
  animation-delay: var(--delay, 0.05s);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.team-card:nth-child(1)  { --delay: 0.05s; }
.team-card:nth-child(2)  { --delay: 0.10s; }
.team-card:nth-child(3)  { --delay: 0.15s; }
.team-card:nth-child(4)  { --delay: 0.20s; }
.team-card:nth-child(5)  { --delay: 0.25s; }
.team-card:nth-child(6)  { --delay: 0.30s; }
.team-card:nth-child(7)  { --delay: 0.35s; }
.team-card:nth-child(8)  { --delay: 0.40s; }
.team-card:nth-child(9)  { --delay: 0.45s; }
.team-card:nth-child(10) { --delay: 0.50s; }

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.14);
}

.team-card img {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface-mid);
  margin: 0 auto 1rem;
  display: block;
  transition: border-color 0.3s ease;
}

.team-card:hover img { border-color: var(--ink); }

.team-card h3 {
  font-size: 0.98rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.25rem; line-height: 1.35;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--ink-muted); line-height: 1.5;
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .team-grid--center .team-card {
    flex: 0 0 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
  }
}

/* Phone: 1 column */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; gap: 0.9rem; }

  .team-grid--center .team-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==================================================================
   PARTIAL: TESTIMONY + CAROUSEL
   ================================================================== */

.about-testimony-page .about-page-body { padding-top: 2.5rem; }

.testimonies-carousel {
  position: relative;
  width: 100%;
  padding: 0 56px;
}

.testimonies-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.testimonies-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  will-change: transform;
}

.testimony-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.testimony-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.testimony-card::after {
  content: '\201C';
  position: absolute;
  top: 1rem; right: 2rem;
  font-size: 6rem;
  color: rgba(0,0,0,0.04);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimony-content-wrapper {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.testimony-author-sidebar {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.author-avatar-container {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--surface-mid);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.author-initials {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}

.author-name {
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.3rem; line-height: 1.3;
}

.author-role {
  font-size: 0.85rem; color: var(--ink-muted);
  font-weight: 400; margin-bottom: 0.5rem; display: block;
}

.testimony-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: block;
}

.testimony-main-content { flex: 1; }

.testimony-excerpt p {
  font-size: 1.1rem; line-height: 1.85;
  color: var(--ink-soft);
  font-style: italic; font-weight: 300;
  margin-bottom: 1.25rem;
}

.testimony-full p {
  font-size: 1rem; line-height: 1.85;
  color: var(--ink-soft); font-weight: 300;
  margin-bottom: 1rem;
}

.read-more-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  margin-top: 1.25rem;
  font-family: inherit;
}

.read-more-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }

.read-more-arrow {
  font-size: 1rem; line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.read-more-btn.expanded .read-more-arrow { transform: rotate(180deg); }

.carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}

.carousel-nav:hover:not(:disabled) {
  background: var(--ink); color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-md);
}

.carousel-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-indicators {
  display: flex; justify-content: center;
  gap: 0.6rem; margin-top: 2rem;
}

.indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-mid);
  border: none; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.indicator.active { background: var(--ink); transform: scale(1.35); }
.indicator:hover  { background: #888; }

.testimony-counter {
  text-align: center; margin-top: 0.75rem;
  color: var(--ink-muted); font-size: 0.88rem;
}

.loading-testimonies {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; width: 100%;
  color: var(--ink-muted);
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--surface-mid);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 1rem;
}

/* ================================================================
   LANG TOGGLE
   ================================================================ */

.lang-toggle {
  display: flex;
  background: var(--surface-off);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: var(--ink-muted);
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lang-btn.active               { background: var(--ink); color: #fff; }
.lang-btn:hover:not(.active)   { background: var(--surface-mid); color: var(--ink); }
/* ================================================================
   RESPONSIVE — TESTIMONY PAGE
   ================================================================ */

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    flex-wrap: wrap;
    padding: 0.65rem 1.25rem;
  }
  .logo-link  { flex: 1; }
  .burger     { flex-shrink: 0; }
  .lang-toggle {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0.45rem 0 0;
  }
  .nav-links { top: 108px; }

  /* Carousel */
  .testimonies-carousel { padding: 0 40px; }

  /* Card layout stacks vertically */
  .testimony-content-wrapper {
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Author sidebar becomes a horizontal row */
  .testimony-author-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .author-avatar-container {
    margin: 0;
    width: 64px; height: 64px;
    flex-shrink: 0;
  }
  .author-initials { font-size: 1.1rem; }

  .author-info { flex: 1; min-width: 0; }
  .author-name {
    font-size: 0.97rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .author-role    { font-size: 0.8rem; }
  .testimony-date { font-size: 0.78rem; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {

  /* Hero — properly centered with enough height */
  .about-page-hero {
    height: auto;
    min-height: 280px;
    padding: 4rem 1.5rem 3rem;
    align-items: center;
    justify-content: center;
  }
  .about-hero-content {
    padding: 0;
    text-align: center;
    width: 100%;
  }

  /* Outer block — override inline padding so carousel gets full width */
  .about-block {
    padding: 1rem 0.5rem !important;
    border-radius: var(--radius-md);
  }

  /* Carousel arrows tightened */
  .testimonies-carousel { padding: 0 32px; }
  .carousel-nav {
    width: 28px; height: 28px;
    font-size: 0.95rem;
  }

  /* Card */
  .testimony-card { padding: 1.1rem 0.9rem; }

  .testimony-excerpt p {
    font-size: 1rem;
    line-height: 1.8;
  }
  .testimony-full p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* Allow name to wrap instead of truncating */
  .author-name { white-space: normal; }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
  .lang-btn { padding: 4px 11px; font-size: 0.72rem; }

  .testimonies-carousel { padding: 0 28px; }
  .carousel-nav {
    width: 26px; height: 26px;
    font-size: 0.9rem;
  }

  .testimony-card { padding: 1rem 0.75rem; }
}

/* ── Very small (≤360px) ── */
@media (max-width: 360px) {
  .testimonies-carousel { padding: 0 24px; }
  .carousel-nav {
    width: 24px; height: 24px;
    font-size: 0.85rem;
  }
}