/* =========================================================
   MAGAZINE HOMEPAGE SECTIONS
   Ported from the Entrepreneurship One theme, recoloured to the
   Institution India palette. Markup lives in home_component/magazine/.

   Footer styles were intentionally left out — Institution India keeps
   its own footer and header.
   ========================================================= */

/* ---- Design tokens (originally in the source theme's header.css) ---- */
.eo-main {
  --eo-accent:        #e4002b;   /* Institution India red */
  --eo-accent-dark:   #8a1538;   /* maroon, used for hovers */
  --eo-ink:           #16161d;
  --eo-ink-soft:      #222;
  --eo-muted:         #747474;
  --eo-line:          #ededed;
  --eo-line-strong:   #dcdcdc;
  --eo-container:     1460px;
  --eo-gutter:        20px;
  --eo-font:          "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --eo-font-serif:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --eo-shadow:        0 2px 6px rgba(0, 0, 0, .12);
  --eo-shadow-lg:     0 12px 30px rgba(0, 0, 0, .14);
}

/* ---- Integration resets ----
   style.css sets `body { text-transform: uppercase }` site-wide and Bootstrap
   adds its own heading sizes. Both would fight these sections, so neutralise
   them here rather than editing the global rules. */
.eo-main,
.eo-main h1, .eo-main h2, .eo-main h3, .eo-main h4,
.eo-main p, .eo-main a, .eo-main span, .eo-main li {
  text-transform: none;
}

.eo-main .eo-badge,
.eo-main .eo-readmore,
.eo-main .eo-more span,
.eo-main .eo-video__time {
  text-transform: uppercase;
}

.eo-main h1, .eo-main h2, .eo-main h3, .eo-main h4 {
  font-family: var(--eo-font-serif);
  margin-top: 0;
}

.eo-main img { max-width: 100%; padding: 0; }

.eo-container {
  width: 100%;
  max-width: var(--eo-container);
  margin: 0 auto;
  padding: 0 var(--eo-gutter);
}

/* =========================================================
   Entrepreneurship One Magazine -- homepage sections
   Hero, engagement band, column band, category blocks, footer.
   Design tokens come from header.css.
   ========================================================= */

:root {
  --eo-accent-bright: #ff4d54;   /* red that holds up on the dark footer */
  --eo-gap:           30px;
}

.eo-main { padding-top: 26px; }

.eo-main ul,
.eo-footer ul { list-style: none; margin: 0; padding: 0; }
.eo-main a,
.eo-footer a { text-decoration: none; }

/* ---------------------------------------------------------
   Shared pieces that lived in the source theme's header.css
   and inner.css, pulled in because the homepage sections use them
   --------------------------------------------------------- */
.eo-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 8px;
  background: var(--eo-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.eo-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--eo-line-strong);
}
.eo-empty i { font-size: 34px; color: var(--eo-line-strong); }
.eo-empty h2 {
  margin: 14px 0 6px;
  font-family: var(--eo-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--eo-ink-soft);
}
.eo-empty p { margin: 0 0 18px; font-size: 14px; color: var(--eo-muted); }
.eo-empty .eo-more { margin-top: 0; }

/* ---------------------------------------------------------
   Shared pieces
   --------------------------------------------------------- */
.eo-block-title {
  border-bottom: 1px solid var(--eo-line);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.eo-block-title h2 {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--eo-accent);
  font-family: var(--eo-font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--eo-accent);
}

.eo-block-title h2 a { color: inherit; }
.eo-block-title h2 a:hover { color: var(--eo-ink-soft); }

/* article card */
.eo-post__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-post__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.eo-post:hover .eo-post__thumb img { transform: scale(1.04); }

.eo-post__title {
  font-family: var(--eo-font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 7px;
}

.eo-post__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-post__title a:hover { color: var(--eo-accent); }


.eo-post__excerpt {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5a5a;
}

/* lead story: image on top, headline under it */
.eo-post--lg .eo-post__thumb { aspect-ratio: 21 / 9; }
.eo-post--lg .eo-post__body { padding-top: 16px; }
.eo-post--lg .eo-post__title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.16; }

/* medium card */
.eo-post--md { margin-bottom: 26px; }
.eo-post--md .eo-post__thumb { aspect-ratio: 16 / 10; }
.eo-post--md .eo-post__body { padding-top: 11px; }
.eo-post--md .eo-post__title { font-size: 17px; }

/* list row (title + date, thumb right) */
.eo-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--eo-line);
}

.eo-row:first-child { padding-top: 0; }
.eo-row:last-child { border-bottom: 0; padding-bottom: 0; }

.eo-row__body { flex: 1; min-width: 0; }

.eo-row__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.eo-row__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-row__title a:hover { color: var(--eo-accent); }


.eo-row__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-row:hover .eo-row__thumb img { transform: scale(1.06); }

/* wide row (image left, text right) */
.eo-wide {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--eo-line);
}

.eo-wide:first-child { padding-top: 0; }
.eo-wide:last-child { border-bottom: 0; }

.eo-wide__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 3 / 2;
}

.eo-wide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-wide:hover .eo-wide__thumb img { transform: scale(1.05); }

.eo-wide__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.26;
}

.eo-wide__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-wide__title a:hover { color: var(--eo-accent); }


/* "More from X" button */
.eo-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 15px;
  background: var(--eo-ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .3px;
  border-radius: 3px;
  transition: background .2s ease;
}

.eo-more:hover { background: var(--eo-accent); color: #fff; }
.eo-more i { font-size: 11px; opacity: .8; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
/* a quarter-width rail of stacked stories beside a three-up grid */
.eo-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr);
  gap: var(--eo-gap);
  align-items: stretch;
  padding-bottom: 40px;
}

.eo-hero__rail {
  display: grid;
  gap: 26px;
  /* match the grid's height and push the leftover into the gap between
     the cards, so both halves of the hero end on the same line */
  height: 100%;
  align-content: space-between;
  /* a rule keeps the rail reading as a side column, not a wider fourth one */
  padding-right: var(--eo-gap);
  border-right: 1px solid var(--eo-line);
}

/* taller images so the two rail cards stand roughly as tall as the two
   grid rows beside them; still narrower, so it reads as a side column */
.eo-hero__rail .eo-post__thumb { aspect-ratio: 2 / 1; }
.eo-hero__rail .eo-post__body { padding-top: 11px; }
.eo-hero__rail .eo-badge { font-size: 9px; padding: 3px 6px; letter-spacing: .4px; }

.eo-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eo-gap);
  align-items: start;
}

.eo-hero__rail .eo-post--md,
.eo-hero__grid .eo-post--md { margin-bottom: 0; }

/* the rail is narrow, the grid cards are not */
.eo-hero__rail .eo-post__title { font-size: 16px; line-height: 1.32; }
.eo-hero__grid .eo-post__title { font-size: clamp(17px, 1.3vw, 20px); }

/* sidebar */
/* The column fills the row so the inner block has somewhere to travel. */
.eo-sidebar { align-self: stretch; }

.eo-sidebar__inner {
  position: sticky;
  /* header.js keeps this in step with the real sticky bar, and pulls it
     negative when the sidebar is taller than the window, so its foot can
     still be reached by scrolling. */
  top: var(--eo-sticky-top, 74px);
}
.eo-widget { margin-bottom: 32px; }
.eo-widget:last-child { margin-bottom: 0; }


/* ---------------------------------------------------------
   Engagement band
   --------------------------------------------------------- */
.eo-engage { padding: 10px 0 44px; }

.eo-engage__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--eo-line);
  background: #fcfcfc;
}

.eo-engage__box {
  padding: 22px;
  border-right: 1px solid var(--eo-line);
}

.eo-engage__box:last-child { border-right: 0; }

/* podcast */
.eo-podcast { display: flex; gap: 14px; align-items: flex-start; }
.eo-podcast__body { flex: 1; min-width: 0; }

.eo-podcast__title {
  margin: 0 0 6px;
  font-family: var(--eo-font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.eo-podcast__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-podcast__title a:hover { color: var(--eo-accent); }

.eo-podcast__art {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
}

.eo-podcast__player { width: 100%; margin-top: 16px; height: 34px; }

/* newsletter */
.eo-newsletter__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a5a;
}

.eo-newsletter { display: flex; }

.eo-newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--eo-line-strong);
  border-right: 0;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.eo-newsletter input:focus { border-color: var(--eo-accent); }

.eo-newsletter button {
  border: 0;
  background: var(--eo-accent);
  color: #fff;
  padding: 0 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}

.eo-newsletter button:hover { background: var(--eo-accent-dark); }

/* social counters */
.eo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.eo-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 6px 13px;
  color: #fff;
  text-align: center;
  transition: transform .2s ease, filter .2s ease;
}

.eo-stat:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.eo-stat i { font-size: 17px; margin-bottom: 6px; }
.eo-stat__count { font-size: 17px; font-weight: 700; line-height: 1; }
.eo-stat__label { font-size: 11px; opacity: .9; }

.eo-stat.is-fb { background: #3b5998; }
.eo-stat.is-x  { background: #111; }
.eo-stat.is-yt { background: #cd201f; }

/* ---------------------------------------------------------
   Showcase band: list column | two photos | card grid
   --------------------------------------------------------- */
.eo-showcase { padding-bottom: 46px; }

/* The tracks were swapped along with the columns, so the card grid
   keeps the wider share it needs for two cards abreast and the list
   keeps the narrower one. */
.eo-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: var(--eo-gap);
  align-items: start;
}

/* --- 2 x 2 cards --- */
.eo-showcase__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.eo-shcard {
  background: #fff;
  border: 1px solid var(--eo-line);
  transition: box-shadow .25s ease, transform .25s ease;
}

.eo-shcard:hover { box-shadow: var(--eo-shadow-lg); transform: translateY(-2px); }

.eo-shcard__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 4 / 3;
}

.eo-shcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-shcard:hover .eo-shcard__thumb img { transform: scale(1.05); }

.eo-shcard__body { padding: 16px 18px 18px; }

.eo-shcard__title {
  margin: 0 0 8px;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
}

.eo-shcard__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-shcard__title a:hover { color: var(--eo-accent); }

.eo-shcard__meta {
  font-size: 12px;
  color: var(--eo-muted);
  margin-bottom: 12px;
}

/* the homepage cards show no author/date line, so the title carries the gap */
.eo-shcard__title,
.eo-shrow__title { margin-bottom: 12px; }

.eo-readmore {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--eo-accent);
  transition: color .2s ease;
}

.eo-readmore:hover { color: var(--eo-accent-dark); }

/* --- two stacked photos --- */
.eo-photos { display: grid; gap: 22px; }

.eo-photo {
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-photo:hover img { transform: scale(1.04); }

/* the counters sit under the photos in the middle showcase column */
.eo-stats--showcase { margin-top: 22px; gap: 2px; }
.eo-stats--showcase .eo-stat { padding: 14px 4px 11px; }
.eo-stats--showcase .eo-stat i { font-size: 15px; margin-bottom: 5px; }
.eo-stats--showcase .eo-stat__count { font-size: 15px; }
.eo-stats--showcase .eo-stat__label { font-size: 10px; }

/* --- list column --- */
.eo-shrow {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--eo-line);
  margin-bottom: 18px;
  transition: box-shadow .25s ease;
}

.eo-shrow:last-child { margin-bottom: 0; }
.eo-shrow:hover { box-shadow: var(--eo-shadow-lg); }

.eo-shrow__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
}

.eo-shrow__thumb img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
}

.eo-shrow__body { padding: 16px 18px; }

.eo-shrow__title {
  margin: 0 0 7px;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
}

.eo-shrow__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-shrow__title a:hover { color: var(--eo-accent); }

/* ---------------------------------------------------------
   Three-column band
   --------------------------------------------------------- */
.eo-columns { padding-bottom: 44px; }

.eo-columns__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.15fr);
  gap: var(--eo-gap);
  align-items: start;
}

.eo-col--boxed {
  border: 1px solid var(--eo-line);
  padding: 20px;
}

.eo-col--boxed .eo-more { margin-bottom: 2px; }

.eo-row--text { padding: 12px 0; }

/* the big grey "Latest" word behind the heading */
.eo-col__head { position: relative; }

.eo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  font-family: var(--eo-font);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* ---------------------------------------------------------
   Category blocks
   --------------------------------------------------------- */
.eo-blocks { padding-bottom: 50px; }

.eo-blocks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--eo-gap);
  align-items: start;
}

.eo-block {
  border: 1px solid var(--eo-line);
  padding: 20px;
}

.eo-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.eo-block__lead .eo-post--md { margin-bottom: 0; }

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */
.eo-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: var(--eo-accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
  z-index: 95;
}

.eo-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.eo-top:hover { background: var(--eo-accent-dark); }

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Spotlight grid: one lead story | six cards
   --------------------------------------------------------- */
.eo-spotlight { padding-bottom: 54px; }

.eo-spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.5fr);
  gap: var(--eo-gap);
  align-items: start;
}

.eo-spotlight__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--eo-gap);
}

/* --- the lead --- */
.eo-splead {
  background: #fff;
  border: 1px solid var(--eo-line);
}

.eo-splead__thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.eo-splead__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.eo-splead:hover .eo-splead__thumb img { transform: scale(1.04); }

.eo-splead__body {
  padding: 22px 24px 26px;
  text-align: center;
}

.eo-splead__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 22px;
  line-height: 1.3;
}

.eo-splead__title a { color: inherit; }
.eo-splead__title a:hover { color: var(--eo-accent); }

.eo-splead__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--eo-muted);
}

.eo-splead__excerpt {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--eo-muted);
}

.eo-splead .eo-readmore { margin-top: 16px; }

@media (max-width: 1200px) {
  .eo-hero__split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); }
  .eo-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .eo-spotlight__grid { grid-template-columns: 1fr; }
  .eo-splead__thumb { aspect-ratio: 16 / 9; }
  .eo-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-showcase__col--photos { grid-column: 1 / -1; }
  .eo-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-columns__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eo-col--latest { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 900px) {
  .eo-engage__grid { grid-template-columns: 1fr; }
  .eo-engage__box { border-right: 0; border-bottom: 1px solid var(--eo-line); }
  .eo-engage__box:last-child { border-bottom: 0; }
  .eo-blocks__grid { grid-template-columns: 1fr; }
  .eo-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
  /* stack the halves: the rail becomes its own row of cards */
  .eo-hero__split { grid-template-columns: 1fr; }
  .eo-hero__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    height: auto;
    align-content: start;
    padding-right: 0;
    padding-bottom: var(--eo-gap);
    border-right: 0;
    border-bottom: 1px solid var(--eo-line);
  }
  .eo-hero__rail .eo-post__thumb { aspect-ratio: 16 / 10; }
  .eo-hero__rail .eo-post__title { font-size: 16px; }
}

@media (max-width: 760px) {
  :root { --eo-gap: 24px; }
  .eo-hero__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-showcase__grid { grid-template-columns: 1fr; }
  .eo-showcase__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eo-spotlight__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eo-columns__grid { grid-template-columns: 1fr; }
  .eo-block__body { grid-template-columns: 1fr; }
  .eo-wide { grid-template-columns: 110px 1fr; gap: 14px; }
  .eo-wide__title { font-size: 16px; }
  .eo-footer__bar-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .eo-hero__rail,
  .eo-hero__grid { grid-template-columns: 1fr; }
  .eo-showcase__cards { grid-template-columns: 1fr; }
  .eo-spotlight__cards { grid-template-columns: 1fr; }
  .eo-photos { grid-template-columns: 1fr; }
  .eo-shrow { grid-template-columns: 110px minmax(0, 1fr); }
  .eo-footer__grid { grid-template-columns: 1fr; }
  .eo-stats { grid-template-columns: 1fr; }
  .eo-stat { flex-direction: row; justify-content: center; gap: 10px; padding: 12px; }
  .eo-stat i { margin-bottom: 0; }
}

/* ---------------------------------------------------------
   Videos
   --------------------------------------------------------- */
.eo-videoband { padding-bottom: 46px; }

.eo-videos {
  display: grid;
  /* auto-fit, not auto-fill: on a wide homepage auto-fill would lay out six
     tracks and leave half of them empty when only three videos are on. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--eo-gap);
  padding-bottom: 8px;
}

.eo-video {
  background: #fff;
  border: 1px solid var(--eo-line);
  transition: box-shadow .25s ease, transform .25s ease;
}

.eo-video:hover { box-shadow: var(--eo-shadow-lg); transform: translateY(-2px); }

.eo-video__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d0d0d;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.eo-video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .25s ease;
}

.eo-video:hover .eo-video__play img { transform: scale(1.04); opacity: .85; }

.eo-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eo-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  padding-left: 3px;
  transition: transform .25s ease, background .2s ease;
}

.eo-video__play:hover .eo-video__icon { transform: translate(-50%, -50%) scale(1.08); background: var(--eo-accent-dark); }
.eo-video__play:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 2px; }

.eo-video__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* the iframe that replaces the thumbnail */
.eo-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.eo-video__body { padding: 14px 16px 16px; }

.eo-video__title {
  margin: 0;
  font-family: var(--eo-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--eo-ink-soft);
}

.eo-video__text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a5a5a;
}

@media (max-width: 520px) {
  .eo-videos { grid-template-columns: 1fr; }
}

/* =========================================================
   COVER BAND — four full-bleed tiles with a label overlay
   ========================================================= */

.eo-covers { padding: 0 0 18px; }

.eo-covers__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.eo-cover {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.eo-cover__img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
}

/* dark wash so a white cover still carries white type */
.eo-cover__img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 42%);
}

.eo-cover__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    padding: 0;
    transition: transform .45s ease;
}

/* a magazine cover is letterboxed rather than cropped */
.eo-cover__img--contain { background: #0d0d0d; }
.eo-cover__img--contain img { object-fit: contain; }

.eo-cover:hover .eo-cover__img img { transform: scale(1.04); }

.eo-cover__title {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 16px 18px;
    font-family: var(--eo-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

@media (max-width: 900px) {
    .eo-covers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .eo-cover__title { font-size: .9rem; padding: 12px 14px; }
}
