/* ═══════════════════════════════════════════════════
   PRO AGE EDU — Trainer Subpage Styles
   ═══════════════════════════════════════════════════ */

/* ── Page entrance (CSS-only, no JS dependency) ── */
body.page-enter {
  animation: pageEnter 0.5s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Shared wide container (matches header width) ── */
.tp-cont {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Back link ── */
.tp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s ease, gap 0.25s cubic-bezier(0.16,1,0.3,1);
}
.tp-back:hover { color: var(--accent); gap: 12px; }
.tp-back svg { flex-shrink: 0; transition: transform 0.25s ease; }
.tp-back:hover svg { transform: translateX(-3px); }

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.tp-hero {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.tp-hero::before {
  content: '';
  position: absolute;
  right: -8%;
  top: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,114,72,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tp-hero__grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.tp-hero__left {
  display: flex;
  flex-direction: column;
}
.tp-label { margin-bottom: 28px; }

/* ── Hero keyframes ── */
@keyframes tpSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes tpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tpSlideRight {
  from { opacity: 0; transform: translateX(36px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

/* Name */
.tp-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 16px;
  overflow: hidden;
}
.tp-line-inner {
  display: block;
  animation: tpSlideUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

/* Staggered fade-up elements */
.tp-role    { animation: tpFadeUp 0.7s ease 0.30s both; font-size: 1.0625rem; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.tp-since   { animation: tpFadeUp 0.7s ease 0.40s both; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.tp-short   { animation: tpFadeUp 0.7s ease 0.50s both; font-size: 1.0625rem; color: var(--brown); line-height: 1.72; max-width: 520px; margin-bottom: 24px; }
.tp-certs   { animation: tpFadeUp 0.7s ease 0.60s both; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tp-actions { animation: tpFadeUp 0.7s ease 0.70s both; display: flex; gap: 12px; flex-wrap: wrap; }

/* Photo column */
.tp-hero__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: tpSlideRight 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.tp-photo {
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-dk);
  position: relative;
}
.tp-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.tp-initials {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 600;
  color: var(--brown);
  opacity: 0.35;
}
.tp-photo-caption {
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-s);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-photo-caption strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.tp-photo-caption span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ════════════════════════════════
   BIO
   ════════════════════════════════ */
.tp-bio { background: var(--cream-lt); }
.tp-bio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.tp-bio__text p {
  font-size: 1.0625rem;
  color: var(--brown);
  line-height: 1.76;
  margin-top: 20px;
}
.tp-bio__text p:first-of-type { margin-top: 28px; }

.tp-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Career */
.tp-career { margin-bottom: 48px; }
.career-list { display: flex; flex-direction: column; }
.career-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-s);
}
.career-item:first-child { padding-top: 0; }
.career-item:last-child { border-bottom: none; }
.career-item__period {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 2px;
  line-height: 1.4;
}
.career-item__content strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.career-item__content span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.career-item__content p {
  font-size: 0.84rem;
  color: var(--brown);
  line-height: 1.55;
  margin: 0;
}

/* Education */
.edu-list { display: flex; flex-direction: column; gap: 12px; }
.edu-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.5;
}
.edu-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ════════════════════════════════
   TRAINING PROGRAM CARDS
   ════════════════════════════════ */
.tp-trainings { background: var(--cream-lt); }
.tp-trainings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tpc {
  background: white;
  border: 1px solid var(--border-s);
  border-radius: 20px;
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.tpc:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(26,18,9,0.08);
}
.tpc__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: rgba(26,18,9,0.07);
  line-height: 1;
  margin-bottom: 16px;
}
.tpc__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.tpc__desc {
  font-size: 0.9375rem;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tpc__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.tpc__topics li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown);
  background: rgba(26,18,9,0.05);
  border: 1px solid rgba(26,18,9,0.07);
  padding: 5px 12px;
  border-radius: 100px;
}
.tpc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-s);
  transition: color 0.2s ease, gap 0.25s cubic-bezier(0.16,1,0.3,1);
}
.tpc__cta:hover { color: var(--accent); gap: 12px; }

/* ════════════════════════════════
   OTHER TRAINERS
   ════════════════════════════════ */
.tp-others { background: var(--cream-lt); }
.tp-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.tp-other-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border-s);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.tp-other-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(26,18,9,0.1);
}
.tp-other-card__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dk);
}
.tp-other-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.tp-other-card:hover .tp-other-card__photo img { transform: scale(1.06); }
.tp-other-card__init {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brown);
  opacity: 0.35;
}
.tp-other-card__info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-other-card__info strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.tp-other-card__info span {
  font-size: 0.75rem;
  color: var(--muted);
}
.tp-other-card__info em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* ════════════════════════════════
   DARK CTA SECTION
   ════════════════════════════════ */
.tp-cta-section { background: var(--charcoal); }
.tp-cta {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tp-cta p {
  font-size: 1.0625rem;
  color: rgba(244,239,230,0.5);
  line-height: 1.72;
  margin-bottom: 40px;
}
.tp-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost-dark {
  background: transparent;
  color: rgba(244,239,230,0.55);
  border-color: rgba(244,239,230,0.15);
}
.btn-ghost-dark:hover {
  border-color: rgba(244,239,230,0.4);
  color: var(--cream-lt);
  background: rgba(244,239,230,0.05);
}

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 1100px) {
  .tp-cont            { padding: 0 40px; }
  .tp-hero__grid      { grid-template-columns: 1fr 320px; gap: 52px; }
  .tp-bio__grid       { gap: 48px; }
}
@media (max-width: 960px) {
  .tp-hero__grid      { grid-template-columns: 1fr; padding: 0 40px; }
  .tp-hero__right     { display: none; }
  .tp-bio__grid       { grid-template-columns: 1fr; gap: 40px; }
  .tp-trainings-grid  { grid-template-columns: 1fr; }
  .tp-others-grid     { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 768px) {
  .tp-cont            { padding: 0 24px; }
  .tp-hero            { padding: 100px 0 60px; }
  .tp-hero__grid      { padding: 0 24px; }
  .tpc                { padding: 28px 24px 22px; }
  .career-item        { grid-template-columns: 80px 1fr; gap: 12px; }
  .tp-cta p           { font-size: 0.9375rem; }
}
@media (max-width: 480px) {
  .tp-cont            { padding: 0 18px; }
  .tp-hero__grid      { padding: 0 18px; }
  .tp-others-grid     { grid-template-columns: repeat(2, 1fr); }
}
