/* TailAdmin-inspired homepage — card layout, progressive disclosure */

.btn-outline-dark {
  background: transparent;
  color: var(--maroon-deep);
  border: 2px solid var(--line);
}
.btn-outline-dark:hover {
  border-color: var(--maroon-bright);
  color: var(--maroon);
  background: #fdf5f6;
}

.page-home { background: #f8f9fb; }
.home-main { padding-bottom: 24px; }

.ta-section { padding: 48px 0; }
.ta-section-head { margin-bottom: 28px; max-width: 640px; }
.ta-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--maroon-deep);
  margin-bottom: 8px;
}
.ta-section-head p { color: var(--muted); font-size: 0.95rem; }
.ta-kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--maroon-bright); margin-bottom: 8px;
}

/* Hero */
.home-hero {
  background: linear-gradient(145deg, var(--maroon-deep) 0%, var(--maroon) 55%, #8b1a2e 100%);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}
.home-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  opacity: 0.85; margin-bottom: 16px;
}
.home-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.home-hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.home-hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 16px;
}
.home-hero .btn-outline-dark {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.home-hero .btn-outline-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}
.home-learn-link {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit;
}
.home-learn-link:hover { color: #fff; }

/* Cards */
.ta-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(21, 22, 26, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(127, 20, 36, 0.1);
  border-color: rgba(160, 26, 48, 0.25);
}
.ta-card-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.ta-card h3 { color: var(--maroon-deep); margin-bottom: 8px; font-size: 1.15rem; }
.ta-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.ta-card-action {
  display: inline-block; margin-top: 16px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--maroon-bright); color: #fff;
  font-weight: 700; font-size: 0.88rem;
}
.ta-card--intl .ta-card-action { background: #1a4d8f; }

.home-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.home-mission-swiper { display: none; }

.ta-card--program { padding: 0; overflow: hidden; }
.ta-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.ta-card-body { padding: 18px; }
.ta-text-link {
  color: var(--maroon-bright); font-weight: 700;
  text-decoration: none; font-size: 0.9rem;
}
.ta-text-link:hover { text-decoration: underline; }

/* Founder */
.ta-founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(21, 22, 26, 0.07);
}
.ta-founder-photo {
  overflow: hidden; border-radius: 16px;
}
.ta-founder-photo img {
  width: 100%; border-radius: 16px;
  object-fit: cover; object-position: top center; aspect-ratio: 1;
  box-shadow: 0 8px 24px rgba(127, 20, 36, 0.12);
}
.ta-founder-body h2 { color: var(--maroon-deep); margin-bottom: 4px; }
.ta-founder-role { color: var(--maroon-bright); font-weight: 700; margin-bottom: 12px; }
.ta-founder-mission { color: var(--muted); margin-bottom: 20px; max-width: 480px; }
.ta-founder-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Program preview */
.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Stats */
.ta-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ta-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(21, 22, 26, 0.05);
}
.ta-stat-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.ta-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--maroon-deep);
  line-height: 1.2;
}
.ta-stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.home-impact-link { margin-top: 20px; text-align: center; }

/* Accordion */
.ta-accordion { display: grid; gap: 10px; }
.ta-accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ta-accordion-item summary {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--maroon-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ta-accordion-item summary::-webkit-details-marker { display: none; }
.ta-accordion-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--maroon-bright);
  transition: transform 0.2s;
}
.ta-accordion-item[open] summary::after { content: '−'; }
.ta-accordion-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.ta-accordion-body .ta-list { margin: 14px 0; }
.ta-list { padding-left: 1.2rem; }
.ta-list li { margin-bottom: 6px; }
.ta-list--ordered { list-style: decimal; }

/* Modal */
.ta-modal {
  border: none;
  padding: 0;
  max-width: min(640px, 92vw);
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(21, 22, 26, 0.25);
  background: transparent;
}
.ta-modal::backdrop {
  background: rgba(21, 22, 26, 0.55);
  backdrop-filter: blur(4px);
}
.ta-modal-inner {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.ta-modal-inner--wide { max-width: 720px; }
.ta-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: var(--paper-alt); border: none;
  width: 36px; height: 36px; border-radius: 10px;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--muted);
}
.ta-modal-close:hover { background: #eee; color: var(--ink); }
.ta-modal h2 { color: var(--maroon-deep); margin-bottom: 16px; padding-right: 40px; }
.ta-modal-footer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.ta-founder-modal-head {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ta-founder-modal-thumb { border-radius: 12px; object-fit: cover; object-position: top center; }
.ta-founder-modal-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 20px 0;
}
.ta-founder-modal-body h3 {
  color: var(--maroon);
  font-size: 1rem;
  margin: 18px 0 8px;
}
.ta-quote {
  margin-top: 20px; padding: 18px 20px;
  background: #fdf5f6; border-left: 4px solid var(--maroon-bright);
  border-radius: 0 12px 12px 0;
}
.ta-quote cite { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--muted); }

/* Sticky donate bar */
.sticky-donate-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 76px;
  z-index: 84;
  padding: 8px 12px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(21, 22, 26, 0.08);
  backdrop-filter: blur(8px);
}
.sticky-donate-form {
  display: flex; align-items: center; gap: 8px;
  max-width: 1140px; margin: 0 auto;
}
.sticky-donate-btns {
  display: flex; flex: 1; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
}
.sticky-amt {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--maroon-deep);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.sticky-amt.is-active,
.sticky-amt:hover {
  border-color: var(--maroon-bright);
  background: #fdf5f6;
  color: var(--maroon);
}
.sticky-donate-submit {
  flex: 0 0 auto;
  padding: 10px 16px !important;
  font-size: 0.85rem !important;
}

/* Founder page */
.page-founder .founder-intro { padding-top: 36px; }
.founder-back {
  display: inline-block; margin-bottom: 22px;
  color: var(--maroon); font-weight: 700; font-size: 0.92rem; text-decoration: none;
}
.founder-back:hover { text-decoration: underline; }
.founder-hero-card {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 36px;
  align-items: start; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; box-shadow: var(--shadow);
}
.founder-hero-photo {
  overflow: hidden; border-radius: 16px;
  border: 3px solid #f3e6e8;
  box-shadow: 0 12px 32px rgba(127, 20, 36, 0.12);
}
.founder-hero-photo img {
  width: 100%; display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: top center;
}
.founder-hero-body h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: var(--maroon-deep); margin-bottom: 8px;
}
.founder-hero-role {
  color: var(--maroon-bright); font-weight: 700; margin-bottom: 14px;
}
.founder-hero-lead {
  color: var(--ink); font-weight: 600; line-height: 1.55; margin-bottom: 14px; max-width: 58ch;
}
.founder-hero-bio {
  color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 62ch;
}
.founder-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.founder-story-grid,
.founder-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.founder-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: 0 8px 24px rgba(21, 22, 26, 0.05);
}
.founder-panel h2 {
  color: var(--maroon-deep); font-size: 1.2rem; margin-bottom: 12px;
}
.founder-panel p { color: var(--muted); line-height: 1.7; }
.founder-panel--accent {
  background: linear-gradient(180deg, #fff 0%, #fdf8f9 100%);
}
.founder-mission-list {
  margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7;
}
.founder-mission-list li + li { margin-top: 8px; }
.founder-quote { max-width: 760px; margin: 32px auto 0; }
.founder-bottom-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 36px;
}
@media (max-width: 920px) {
  .founder-hero-card { grid-template-columns: 1fr; text-align: center; }
  .founder-hero-photo { max-width: 280px; margin: 0 auto; }
  .founder-hero-lead, .founder-hero-bio { margin-left: auto; margin-right: auto; }
  .founder-hero-actions, .founder-bottom-cta { justify-content: center; }
  .founder-story-grid, .founder-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .founder-hero-card { padding: 22px 18px; }
  .founder-hero-actions .btn, .founder-bottom-cta .btn { width: 100%; justify-content: center; }
}

/* Mobile */
@media (max-width: 920px) {
  .home-mission-grid { display: none; }
  .home-mission-swiper { display: block; }
  .home-preview-grid { display: flex !important; }
  .ta-founder-card { grid-template-columns: 1fr; text-align: center; }
  .ta-founder-photo { max-width: 240px; margin: 0 auto; }
  .ta-founder-actions { justify-content: center; }
  .ta-stat-grid { grid-template-columns: 1fr; }
  .ta-founder-modal-split { grid-template-columns: 1fr; }
  body.has-sticky-donate { padding-bottom: 130px; }
  .donate-fab { bottom: 140px; }
}

@media (min-width: 921px) {
  .sticky-donate-bar { display: none !important; }
  body.has-sticky-donate { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .ta-card:hover { transform: none; }
}
