/* Marcellus = main headings (same as the home page + Admissions page) */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");

/* =========================================================================
   Blogs > Index — same design system as the Admissions page

     main headings = Marcellus, capitals, weight 400, underline
     sub headings  = var(--font-head), weight 400
     card names    = var(--font-head), bold
     paragraphs    = var(--font-body), weight 400 + 0.15px stroke
   Cards are 3D blocks with a thin green outline (same as Admissions steps).
   ========================================================================= */

/* ---------- Banner (1920 x 600) — hides itself if the image is missing ---------- */
.blogs-page .bl-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 31.25vw, 600px);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #4A1D5C 0%, #7B3FA0 100%);
}
.bl-hero-img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* ---------- Tight vertical spacing between sections ---------- */
.blogs-page > section,
.blogs-page > [class*="intro"],
.blogs-page > [class*="cta"] {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.blogs-page > .bl-hero { padding: 0 !important; }
.blogs-page > [class*="intro"] { padding-bottom: 8px !important; }
.sp-page [class*="intro"] [class*="crumb"] { margin-bottom: 12px; }

/* ---------- Intro (from the shared kit): breadcrumb, title, line under it ---------- */
.sp-page [class*="intro"] h1 {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 3px solid currentColor;     /* underline = text width, same colour as the title */
}
.sp-page [class*="intro"] p:not([class*="crumb"]) {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.9;
  -webkit-text-stroke: 0.15px currentColor;
}
.sp-page [class*="intro"] [class*="crumb"] {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
}
.sp-page [class*="intro"] h1::before,
.sp-page [class*="intro"] h1::after,
.sp-page [class*="intro"] hr,
.sp-page [class*="intro"] [class*="rule"],
.sp-page [class*="intro"] [class*="bar"],
.sp-page [class*="intro"] [class*="divider"],
.sp-page [class*="intro"] [class*="underline"] {
  display: none !important;
}

/* ---------- Section headings: eyebrow = main heading, h2 = sub heading ---------- */
.sp-page .eyebrow {
  display: inline-block !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #D32F2F !important;                 /* same red as the home page headings */
  padding: 0 0 4px !important;
  margin: 0 0 10px;
  border: 0;
  border-bottom: 3px solid #D32F2F;
}
.sp-page .eyebrow i { display: none; }

.sp-page .section-head { max-width: 820px; margin: 0 auto 22px; text-align: center; }
.sp-page .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 0;
}

/* ---------- Leader cards: 3D green blocks ---------- */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px 10px 0;
}

.blog-card {
  --line: #1F4D3A;                 /* thin outline colour (forest green) */
  --edge: #A8CDB9;                 /* colour of the solid 3D side (right + bottom) */
  position: relative;
  display: block;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(120% 80% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #FAFFFC 0%, #DDEFE4 100%);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 24px;
  transform-style: preserve-3d;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(31, 77, 58, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    16px 22px 30px -6px rgba(31, 77, 58, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(31, 77, 58, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    22px 34px 40px -8px rgba(31, 77, 58, 0.5);
}
.blog-card:active {
  transform: translate(5px, 5px);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(31, 77, 58, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 1px var(--line),
    8px 10px 14px -6px rgba(31, 77, 58, 0.4);
}

.blog-card .sp-avatars {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 12px;
}
.blog-card .sp-avatar {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--forest-tint); color: var(--forest);
  font-size: 2rem;
  box-shadow: 0 14px 26px -14px rgba(31, 77, 58, 0.6);
  overflow: hidden;
}
.blog-card .sp-avatar + .sp-avatar { margin-left: -22px; }
.blog-card:nth-child(2) .sp-avatar { background: var(--orange-tint); color: var(--orange); }
.blog-card .sp-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.blog-card .sp-role {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--forest-tint);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.blog-card:nth-child(2) .sp-role { background: var(--orange-tint); color: var(--orange); }

.blog-card h4 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.3px currentColor;
  color: var(--ink);
}
.blog-card p {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 400; line-height: 1.75;
  -webkit-text-stroke: 0.15px currentColor;
}
.blog-card .sp-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  color: var(--orange);
}
.blog-card .sp-readmore i { transition: transform 0.25s ease; }
.blog-card:hover .sp-readmore i { transform: translateX(5px); }

/* ---------- Entrance animation (respects reduced motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  .blogs-page *, .blogs-page *::before, .blogs-page *::after {
    animation: none !important; transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .bl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sp-page [class*="intro"] p:not([class*="crumb"]) { font-size: 1.05rem; }
  .blog-card h4 { font-size: 1.4rem; }
  .blog-card p { font-size: 1rem; }
}