/* ════════════════════════════════════════════════════════════════════
   MARKET STREET DIAMONDS — edu.css  (blog post layout)
   Luxury editorial · Mobile-first · All classes prefixed with  edu-
   Fonts: Judson (headings) · Newsreader (body) · Jost (UI chrome)

   NOTE: If Jost, Judson, and Newsreader are already loaded in your
   main stylesheet, remove the @import below to avoid duplicate loads.
════════════════════════════════════════════════════════════════════ */




/* ── 2. Custom Properties ────────────────────────────────────────── */
:root {
  /* Typefaces */
  --edu-ff-heading : 'Judson',     Georgia, serif;
  --edu-ff-body    : 'Newsreader', Georgia, serif;
  --edu-ff-ui      : 'Jost',       system-ui, sans-serif;

  /* Palette — extended from brand tokens */
  --edu-navy       : #07112C;
  --edu-navy-deep  : #020610;
  --edu-gold       : #B08D57;
  --edu-gold-light : #C8A96B;
  --edu-accent     : #2E2E48;
  --edu-ink        : #3C3C3C;
  --edu-ink-soft   : #5A5A5A;
  --edu-grey-lt    : #EDEDED;
  --edu-grey-line  : #D9D9D9;
  --edu-grey-mid   : #858585;
  --edu-bg         : #FAFAFA;
  --edu-white      : #FFFFFF;

  /* Layout widths */
  --edu-max-w      : 1200px;   /* outer wrapper               */
  --edu-article-w  :  860px;   /* body — float images + text  */
  --edu-prose-w    :  680px;   /* centered elements           */

  /* Misc */
  --edu-radius     :   5px;
  --edu-radius-lg  :  10px;
  --edu-ease       : 0.25s ease;
}


/* ══════════════════════════════════════════════════════════════════
   3. PAGE SHELL
══════════════════════════════════════════════════════════════════ */
.edu-page {
  background: var(--edu-bg);
}

.edu-wrapper {
  max-width: var(--edu-max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}


/* ══════════════════════════════════════════════════════════════════
   4. BREADCRUMB
══════════════════════════════════════════════════════════════════ */
.edu-breadcrumb {
  padding-top: 1.75rem;
}

.edu-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
  font-family: var(--edu-ff-ui);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--edu-grey-mid);
}

.edu-breadcrumb__item {
  display: flex;
  align-items: center;
}

/* › separator — injected via CSS, not markup */
.edu-breadcrumb__item + .edu-breadcrumb__item::before {
  content: '›';
  margin-right: 0.25rem;
  color: var(--edu-grey-line);
  font-size: 0.85em;
}

.edu-breadcrumb__link {
  color: var(--edu-grey-mid);
  text-decoration: none;
  transition: color var(--edu-ease);
}

.edu-breadcrumb__link:hover {
  color: var(--edu-gold);
}

.edu-breadcrumb__link:focus-visible {
  color: var(--edu-gold);
  outline: 2px solid var(--edu-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.edu-breadcrumb__current {
  color: var(--edu-ink);
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════════
   5. ARTICLE HEADER — Title + Byline
══════════════════════════════════════════════════════════════════ */
.edu-article__header {
  max-width: var(--edu-prose-w);
  margin-inline: auto;
  text-align: center;
  padding: 2.75rem 0 2rem;
}

.edu-article__title {
  font-family: var(--edu-ff-heading);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--edu-navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

/* Thin gold rule — signature detail beneath every title */
.edu-article__title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--edu-gold);
  margin: 1rem auto 0;
}


/* ── Author Byline ───────────────────────────────────────────────── */
.edu-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  font-family: var(--edu-ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--edu-grey-mid);
}

.edu-byline__name {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--edu-navy);
}

/* Vertical pipe separator */
.edu-byline__sep {
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: var(--edu-grey-line);
  flex-shrink: 0;
}

.edu-byline__date {
  font-style: italic;
}

.edu-byline__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pipe before share cluster */
.edu-byline__share::before {
  content: '';
  display: block;
  width: 1px;
  height: 0.8em;
  background: var(--edu-grey-line);
  flex-shrink: 0;
}

.edu-byline__share a {
  display: flex;
  align-items: center;
  opacity: 0.45;
  transition: opacity var(--edu-ease), transform var(--edu-ease);
}

.edu-byline__share a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.edu-byline__share a:focus-visible {
  opacity: 1;
  outline: 2px solid var(--edu-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.edu-share-icon {
  display: block;
  width: 16px;
  height: 16px;
}


/* ══════════════════════════════════════════════════════════════════
   6. HERO FIGURE (optional — remove block if article starts with text)
══════════════════════════════════════════════════════════════════ */
.edu-hero {
  margin: 0 0 3rem;
  padding: 0;
  border-radius: var(--edu-radius-lg);
  overflow: hidden;
}

.edu-hero picture,
.edu-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: cover;
}

.edu-hero figcaption {
  font-family: var(--edu-ff-ui);
  font-size: 0.73rem;
  color: var(--edu-grey-mid);
  font-style: italic;
  text-align: center;
  padding: 0.55rem 1rem 0;
}


/* ══════════════════════════════════════════════════════════════════
   7. ARTICLE BODY
══════════════════════════════════════════════════════════════════ */
.edu-body {
  max-width: var(--edu-article-w);
  margin-inline: auto;
  padding-bottom: 3.5rem;
}


/* ── Body Typography ─────────────────────────────────────────────── */
.edu-body p {
  font-family: var(--edu-ff-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--edu-ink);
  margin: 0 0 1.4rem;
  -webkit-font-smoothing: antialiased;
  letter-spacing: unset;
  padding: unset;
  font-weight: unset;
}

/* Drop cap — opening paragraph only */
.edu-drop-cap::first-letter {
  font-family: var(--edu-ff-heading);
  font-size: 4.2em;
  font-weight: 700;
  color: var(--edu-gold);
  float: left;
  line-height: 0.78;
  margin: 0.06em 0.12em 0 0;
}

/* H2 — section headings with gold left bar */
.edu-h2, h2.edu-h2 {
  font-family: var(--edu-ff-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--edu-navy);
  margin: 3rem 0 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--edu-gold);
  clear: both;           /* always starts below any float */
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;

  text-align:unset;
  font-weight:unset;

  letter-spacing:unset;

}
 h3.edu-h3{
  font-family: var(--edu-ff-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: ;
  line-height: 1.2;
   margin: 2rem 0 1.1rem;
 }

/* ══════════════════════════════════════════════════════════════════
   8. FLOAT BLOCKS — images that sit beside text
══════════════════════════════════════════════════════════════════ */
.edu-fig {
  margin: 0;
  padding: 0;
}

.edu-float-block {
  margin-bottom: 0.25rem;
}

/* Clearfix — contains the float so the next element starts clean */
.edu-float-block::after {
  content: '';
  display: table;
  clear: both;
}


.edu-fig--float-right {
  float: right;
  width: 40%;
  max-width: 360px;
  margin: 0.25rem 0 1.75rem 1.5rem;

  shape-outside: margin-box;
}

.edu-fig--float-left {
  float: left;
  width: 40%;
  max-width: 360px;
  margin:0.25rem;
  shape-outside: border-box;
}


/* ══════════════════════════════════════════════════════════════════
   9. FIGURES & IMAGES
══════════════════════════════════════════════════════════════════ */


.edu-fig picture,
.edu-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--edu-radius);
}

.edu-fig figcaption {
  font-family: var(--edu-ff-ui);
  font-size: 0.72rem;
  color: var(--edu-grey-mid);
  font-style: italic;
  text-align: center;
  padding: 0.45rem 0.25rem 0;
}


/* ══════════════════════════════════════════════════════════════════
   10. 3-COLUMN MEDIA GRID
══════════════════════════════════════════════════════════════════ */
.edu-media-trio {
  display: grid;
  grid-template-columns: 1fr;   /* stacked on mobile */
  gap: 0.875rem;
  margin: 2.75rem 0;
  clear: both;
}

/* Ensure all grid cells share consistent height */
.edu-media-trio .edu-fig,
.edu-media-trio .edu-video-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--edu-radius);
}

.edu-media-trio .edu-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* parent already clips */
}


/* ══════════════════════════════════════════════════════════════════
   11. VIDEO
══════════════════════════════════════════════════════════════════ */

/* Self-hosted — portrait ratio suits ring close-ups */
.edu-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--edu-radius);
  background: var(--edu-navy-deep);
}

.edu-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube / landscape embed */
.edu-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--edu-radius);
  background: var(--edu-navy-deep);
  margin: 2rem 0;
  clear: both;
}

.edu-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ══════════════════════════════════════════════════════════════════
   12. LISTS
══════════════════════════════════════════════════════════════════ */

/* Standard bullet list */
.edu-list {
  font-family: var(--edu-ff-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--edu-ink);
  margin: 0 0 1.5rem 1.1rem;
  padding: 0;
}

.edu-list li {
  margin-bottom: 0.4rem;
  padding-left: 0.3rem;
}

.edu-list li::marker {
  color: var(--edu-gold);
}

/* Ruled list — bold term + descriptor */
.edu-list--ruled {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.edu-list--ruled li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--edu-grey-line);
  font-family: var(--edu-ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--edu-ink);
}

.edu-list--ruled li:first-child {
  border-top: 1px solid var(--edu-grey-line);
}

/* Gold dot accent */
.edu-list--ruled li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--edu-gold);
  margin-top: 0.55em;
}


/* ══════════════════════════════════════════════════════════════════
   13. CTA BLOCK
══════════════════════════════════════════════════════════════════ */
.edu-cta {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  margin: 3.5rem 0;
  background: var(--edu-navy);
  border-radius: var(--edu-radius-lg);
  overflow: hidden;
}

/* Gold accent line at top */
.edu-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--edu-gold);
}

.edu-cta__headline {
  font-family: var(--edu-ff-heading);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--edu-white);
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

.edu-cta__btn {
  display: inline-block;
  font-family: var(--edu-ff-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--edu-navy);
  background: var(--edu-gold);
  padding: 0.9rem 2.5rem;
  border-radius: var(--edu-radius);
  transition: background var(--edu-ease), transform var(--edu-ease), box-shadow var(--edu-ease);
}

.edu-cta__btn:hover {
  background: var(--edu-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.edu-cta__btn:focus-visible {
  outline: 3px solid var(--edu-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--edu-gold);
}


/* ══════════════════════════════════════════════════════════════════
   14. AUTHOR PROFILE
══════════════════════════════════════════════════════════════════ */
.edu-author-profile {
  max-width: var(--edu-prose-w);
  margin-inline: auto;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--edu-grey-line);
  border-bottom: 1px solid var(--edu-grey-line);
  text-align: center;       /* center photo on mobile */
  overflow: hidden;         /* clearfix for float at wide breakpoint */
}

.edu-author-profile__photo {
  display: inline-block;   /* respects text-align: center */
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  outline: 2px solid var(--edu-gold);
  outline-offset: 4px;
  margin-bottom: 1.25rem;
  vertical-align: top;
}

.edu-author-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-author-profile__bio {
  font-family: var(--edu-ff-body);
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--edu-ink-soft);
  text-align: left;        /* bio text always left-aligned */
}

.edu-author-profile__bio p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.edu-author-profile__bio strong {
  font-weight: 700;
  color: var(--edu-navy);
}


/* ══════════════════════════════════════════════════════════════════
   15. RELATED ARTICLES
══════════════════════════════════════════════════════════════════ */
.edu-related {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--edu-grey-line);
  margin-top: 0.5rem;
}

.edu-related__heading {
  font-family: var(--edu-ff-heading);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--edu-navy);
  text-align: center;
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.edu-related__heading::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--edu-gold);
  margin: 0.65rem auto 0;
}

.edu-related__grid {
  display: grid;
  grid-template-columns: 1fr;  /* mobile: full-width stack */
  gap: 1.5rem;
}


/* ── Related Article Card ────────────────────────────────────────── */
.edu-card {
  background: var(--edu-white);
  border-radius: var(--edu-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(2, 6, 16, 0.07);
  transition: transform var(--edu-ease), box-shadow var(--edu-ease);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(2, 6, 16, 0.13);
}

.edu-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.edu-card__fig {
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.edu-card__fig picture,
.edu-card__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.edu-card:hover .edu-card__fig img {
  transform: scale(1.05);
}

.edu-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.5rem;
}

.edu-card__title {
  font-family: var(--edu-ff-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--edu-navy);
  margin: 0 0 0.55rem;
  transition: color var(--edu-ease);
  -webkit-font-smoothing: antialiased;
}

.edu-card:hover .edu-card__title {
  color: var(--edu-gold);
}

.edu-card__excerpt {
  font-family: var(--edu-ff-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--edu-ink-soft);
  margin: 0 0 auto;
  padding-bottom: 1rem;
}

.edu-card__read-more {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--edu-ff-ui);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--edu-gold);
}

.edu-card__read-more::after {
  content: '→';
  transition: transform var(--edu-ease);
}

.edu-card:hover .edu-card__read-more::after {
  transform: translateX(4px);
}


/* ══════════════════════════════════════════════════════════════════
   16. RESPONSIVE BREAKPOINTS  (mobile-first)
══════════════════════════════════════════════════════════════════ */

/* ── Mobile only: flatten float figures ─────────────────────────── */
@media (max-width: 599px) {

  .edu-fig--float-right,
  .edu-fig--float-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
    shape-outside: none;
  }

  .edu-drop-cap::first-letter {
    font-size: 3.5em;
  }

  .edu-h2 {
    margin-top: 2.25rem;
  }

  .edu-cta {
    padding: 2rem 1.25rem;
  }

  .edu-media-trio .edu-fig,
  .edu-media-trio .edu-video-wrap {
    aspect-ratio: 4 / 3;   /* landscape on mobile stack */
  }
}

/* ── Phablet 600px+: 3-col media grid, 2-col cards ──────────────── */
@media (min-width: 600px) {

  .edu-wrapper {
    padding-inline: 1.75rem;
  }

  .edu-media-trio {
    grid-template-columns: repeat(3, 1fr);
  }

  .edu-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet 768px+ ───────────────────────────────────────────────── */
@media (min-width: 768px) {

  .edu-wrapper {
    padding-inline: 2.5rem;
  }

  .edu-article__header {
    padding: 3.5rem 0 2.25rem;
  }

  .edu-body p {
    font-size: 1.125rem;
  }
}

/* ── Desktop 1024px+: 4-col related cards ───────────────────────── */
@media (min-width: 1024px) {

  .edu-related__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Wide 1300px+: author photo floats left (matching original) ──── */
@media (min-width: 1300px) {

  .edu-wrapper {
    padding-inline: 3rem;
  }

  .edu-author-profile {
    text-align: left;
    padding: 2.25rem 0.25rem;
  }

  .edu-author-profile__photo {
    display: block;
    float: left;
    margin: 0 1.75rem 0.5rem 0;
    shape-outside: circle(50% at 50% 50%);
  }
}


/* ══════════════════════════════════════════════════════════════════
   17. REDUCED MOTION — honour the OS/browser preference
       Disables all transforms and transitions for users who have
       requested reduced motion (vestibular disorders, epilepsy, etc.)
══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  /* Kill all transitions globally within the edu namespace */
  .edu-card,
  .edu-card__fig img,
  .edu-card__title,
  .edu-card__read-more::after,
  .edu-cta__btn,
  .edu-byline__share a,
  .edu-breadcrumb__link {
    transition: none;
  }

  /* No lift on card hover */
  .edu-card:hover {
    transform: none;
  }

  /* No image zoom on card hover */
  .edu-card:hover .edu-card__fig img {
    transform: none;
  }

  /* No arrow slide on card hover */
  .edu-card:hover .edu-card__read-more::after {
    transform: none;
  }

  /* No lift on CTA button */
  .edu-cta__btn:hover {
    transform: none;
  }

  /* No lift on share icons */
  .edu-byline__share a:hover {
    transform: none;
  }
}
