/* ==========================================================================
   jmTeaches.com — content page components
   Loaded by Tutoring, Coaching, Leadership Foundations, About, and Contact
   (after styles.css). Ported from the Bandzoogle / Netlify page code, which
   used the same card, proof-bar, and process patterns on every page, so they
   are defined once here.
   ========================================================================== */

/* Page intro variants ---------------------------------------------------- */

/* Intro with a framed portrait on the right (Coaching) */
.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.75rem;
  align-items: center;
}
.intro-portrait {
  width: 250px;
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}
.intro-portrait img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; background: #fff; }

/* Intro with a wide program banner on the right (English Language Development) */
.intro-split.intro-split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
.intro-banner {
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}
.intro-banner img { width: 100%; height: auto; border-radius: 10px; }

/* Intro over a full photo (Leadership Foundations) */
.page-intro.intro-photo {
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  background-color: var(--cardinal-deep);
  background-image:
    linear-gradient(90deg, rgba(38, 0, 0, 0.97) 0%, rgba(107, 0, 0, 0.9) 45%, rgba(107, 0, 0, 0.32) 74%, rgba(0, 0, 0, 0.05) 100%),
    url("/assets/images/leadership-hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
}
.page-intro.intro-photo .container { width: min(100% - 2.5rem, var(--container)); }
.page-intro.intro-photo h1 em { color: #fff; }

/* Proof bar under the intro --------------------------------------------- */
.pg-proofbar { background: #fff; border-bottom: 1px solid var(--line); }
.pg-proofbar-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.pg-proof { padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); }
.pg-proof:first-child { padding-left: 0; }
.pg-proof:last-child { border-right: 0; }
.pg-proof strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cardinal);
}
.pg-proof span { display: block; font-size: 0.9375rem; color: var(--ink-soft); }

/* Cards ------------------------------------------------------------------ */
.pg-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.pg-card {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.pg-card.gold {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), transparent 45%), #fff;
  border-color: rgba(153, 0, 0, 0.14);
  box-shadow: 0 10px 24px rgba(153, 0, 0, 0.08);
}
.pg-card h3 { margin-bottom: 0.5rem; font-size: 1.35rem; line-height: 1.2; }
.pg-card p { color: var(--ink-soft); font-size: 0.9375rem; }
.pg-card p + p { margin-top: 0.75rem; }
.pg-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cardinal);
}
.pg-card .pg-label { color: var(--cardinal); }

/* Red card / panel variant */
.pg-card.red {
  background: linear-gradient(135deg, var(--cardinal), var(--cardinal-deep));
  border-color: transparent;
  color: #fff;
}
.pg-card.red h3 { color: var(--gold); }
.pg-card.red p { color: #f8e7e7; }
.pg-card.red .btn-row { margin-top: 1.25rem; }
.pg-card.red a:focus-visible { outline-color: var(--gold); }

/* Gold-dot list */
.pg-list { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.pg-list li { position: relative; padding: 0.45rem 0 0.45rem 1.5rem; font-size: 0.97rem; }
.pg-list li::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.22);
}
.pg-list li strong { font-family: var(--font-ui); }
.pg-card.red .pg-list li,
.pg-side .pg-list li { color: #fff; }
.pg-card.red .pg-list li strong,
.pg-side .pg-list li strong { color: var(--gold); }

/* Pill row */
.pg-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pg-pills li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(153, 0, 0, 0.15);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--cardinal);
}

/* Split: lead card + red aside ------------------------------------------ */
.pg-split { display: grid; grid-template-columns: 1fr 0.78fr; gap: 1.4rem; align-items: start; }
.pg-lead {
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.13), transparent 45%), #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 10px 24px rgba(153, 0, 0, 0.07);
}
.pg-lead h2 { margin-bottom: 0.6rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.8rem); }
.pg-lead p { font-size: 1.0625rem; }
.pg-lead p + p { margin-top: 0.9rem; }
.pg-lead strong { color: var(--cardinal); }
.pg-plain p { font-size: 1.0625rem; }
.pg-plain p + p { margin-top: 0.9rem; }
.pg-side {
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--cardinal), var(--cardinal-deep));
  border-radius: var(--radius-m);
  color: #fff;
}
.pg-side h3 { margin-bottom: 0.5rem; font-size: 1.35rem; line-height: 1.22; color: var(--gold); }
.pg-side p { color: #f8e7e7; font-size: 0.97rem; }

/* Process steps ---------------------------------------------------------- */
.pg-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin: 0; padding: 0; list-style: none; counter-reset: pgstep; }
.pg-step {
  counter-increment: pgstep;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.pg-step::before {
  content: counter(pgstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--cardinal);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--gold);
}
.pg-step h3 { margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.2; }
.pg-step p { color: var(--ink-soft); font-size: 0.9375rem; }

/* Short testimonial quotes ---------------------------------------------- */
.pg-quote {
  margin: 0;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid rgba(153, 0, 0, 0.14);
  border-radius: var(--radius-m);
  box-shadow: 0 10px 24px rgba(153, 0, 0, 0.07);
}
.pg-quote blockquote { margin: 0 0 0.9rem; }
.pg-quote blockquote p { font-size: 1.25rem; line-height: 1.45; }
.pg-quote figcaption { font-family: var(--font-ui); font-size: 0.9375rem; color: var(--ink-soft); }

/* Articles & Insights: post list ---------------------------------------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 16px 34px rgba(153, 0, 0, 0.14); transform: translateY(-2px); }
.post-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.4rem 1.4rem; }
.post-date {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.post-card h2 { margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.25; }
.post-card h2 a { color: var(--cardinal); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-card:hover h2 a { text-decoration: underline; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.post-sub { margin-bottom: 0.6rem; font-family: var(--font-ui); font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.post-card-body > p:not(.post-date):not(.post-sub) { color: var(--ink-soft); font-size: 0.95rem; }
.post-more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--cardinal);
}

/* Articles & Insights: single post ------------------------------------- */
.post-intro h1 { max-width: 26ch; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); }
.post-cover {
  max-width: 48rem;
  margin: 0 auto 2.25rem;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(60, 10, 10, 0.18);
}
.post-cover img { width: 100%; height: auto; }
.post-body { max-width: 42rem; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; }
.post-body p { margin-bottom: 1.1rem; }
.post-body h2 { margin: 2.4rem 0 0.9rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); line-height: 1.25; }
.post-body h3 { margin: 1.8rem 0 0.6rem; font-size: 1.25rem; color: var(--cardinal-deep); }
.post-body ul, .post-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.35rem; }
.post-body li::marker { color: var(--gold-deep); }
.post-body blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--paper-warm);
  border-left: 5px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr {
  width: 64px;
  height: 3px;
  margin: 2.4rem auto;
  background: var(--gold);
  border: 0;
}
.post-body strong { color: var(--ink); }
.post-body a { color: var(--cardinal); }
.post-back { max-width: 42rem; margin: 2.5rem auto 0; font-family: var(--font-ui); font-weight: 800; }
.post-back a { text-decoration: none; }

/* About page ------------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: center; }
.about-portrait { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(153, 0, 0, 0.16); }
.about-hero p { font-size: 1.03rem; line-height: 1.62; }
.about-hero .hl { font-weight: 700; color: var(--cardinal); }
.about-pullquote {
  margin: 1.6rem 0 1.4rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 5px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--cardinal);
}
.about-prose { max-width: 46rem; }
.about-prose p { font-size: 1rem; line-height: 1.66; }
.about-prose p + p { margin-top: 0.9rem; }
.about-block-title {
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  font-size: 1.15rem;
}
.about-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: focus; }
.about-focus li {
  counter-increment: focus;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.93rem;
  line-height: 1.45;
}
.about-focus li::before {
  content: counter(focus, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold-deep);
}
.about-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-creds .pg-card h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-creds ul { margin: 0; padding: 0; list-style: none; }
.about-creds li { position: relative; padding: 0.45rem 0 0.45rem 1.25rem; font-size: 0.93rem; line-height: 1.45; }
.about-creds li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cardinal);
}
.about-creds li.usc { font-weight: 700; color: var(--cardinal); }
.about-creds li.usc::before { width: 8px; height: 8px; left: 1px; top: 0.9rem; background: var(--gold-deep); }

/* Contact page ----------------------------------------------------------- */
.contact-cn {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--cardinal);
}
.contact-connect {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: linear-gradient(135deg, var(--cardinal-deep), var(--cardinal));
  border-radius: 14px;
  color: #fff;
}
.contact-connect h2 { color: #fff; }
.contact-connect p { color: #f8e7e7; max-width: 52ch; }
.contact-connect .btn-row { margin-top: 1.1rem; }
.contact-connect a:focus-visible { outline-color: var(--gold); }
.contact-qr {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: 220px;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
}
.contact-qr img { width: 180px; height: 180px; }
.contact-qr strong { font-family: var(--font-ui); color: var(--cardinal); }
.contact-qr span { font-size: 0.8rem; color: var(--ink-soft); }
.contact-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.contact-mini {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 53.75rem) {
  .intro-split, .intro-split.intro-split-wide, .pg-split, .pg-grid2, .about-hero, .contact-form-wrap, .post-list { grid-template-columns: 1fr; }
  .intro-portrait { width: min(100%, 250px); }
  .pg-proofbar-row { grid-template-columns: 1fr; }
  .pg-proof { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-proof:last-child { border-bottom: 0; }
  .pg-grid3, .pg-process { grid-template-columns: 1fr 1fr; }
  .contact-connect { grid-template-columns: 1fr; }
  .page-intro.intro-photo { min-height: 520px; background-position: center, 62% center; }
}
@media (max-width: 40rem) {
  .about-focus, .about-creds { grid-template-columns: 1fr; }
  .about-pullquote { font-size: 1.25rem; }
}
@media (max-width: 35rem) {
  .pg-grid3, .pg-process { grid-template-columns: 1fr; }
  .page-intro .btn { width: 100%; }
  .page-intro.intro-photo { min-height: 500px; background-position: center, 66% center; }
}
