@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
  --color-primary:    #4a6fa5;
  --color-primary-h:  #3a5a8e;
  --color-accent:     #6b8cba;
  --color-bg:         #f4f2ef;
  --color-surface:    #ffffff;
  --color-border:     #ddd8d0;
  --color-text:       #3d3a35;
  --color-muted:      #7a7369;
  --color-footer-bg:  #3a3630;
  --color-footer-txt: #c8c2b8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

/* ── Utilities ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prose {
  color: var(--color-text);
  line-height: 1.75;
}
.prose p  { margin-top: .75rem; margin-bottom: .75rem; }
.prose h2 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.5rem; font-weight: 700; }

/* ── Section backgrounds — neutral palette ── */
.section-bg {
  background-size: 200% 200%;
  animation: sectionGradient 20s ease infinite;
}

.section-bg-dots,
.section-bg-lines {
  position: relative;
  overflow: hidden;
}
.section-bg-dots > *,
.section-bg-lines > * {
  position: relative;
  z-index: 1;
}

.section-bg-sky {
  background-image: linear-gradient(120deg, #eef1f7, #e4eaf4, #eef3f8);
}
.section-bg-mint {
  background-image: linear-gradient(120deg, #f0f5ee, #e6f0e3, #eef3f0);
}
.section-bg-sand {
  background-image: linear-gradient(120deg, #f8f4ee, #f2ece0, #f5f0e8);
}
.section-bg-slate {
  background-image: linear-gradient(120deg, #f4f2ef, #ede9e3, #f0ede8);
}
.section-bg-sunset {
  background-image: linear-gradient(120deg, #f7f0ee, #f2e8e4, #f5ede8);
}

.section-bg-dots {
  background-color: #f0ede8;
}
.section-bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74, 111, 165, 0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  animation: dotsDrift 32s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.section-bg-dots::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(120deg, rgba(74, 111, 165, 0.08) 0%, rgba(107, 140, 186, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
  animation: linesSweep 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.section-bg-lines {
  background-color: #f4f2ef;
}
.section-bg-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(122, 115, 105, 0.15) 0px,
    rgba(122, 115, 105, 0.15) 1px,
    transparent 1px,
    transparent 18px
  );
  animation: linesDrift 26s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── Keyframes ── */
@keyframes sectionGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes dotsDrift {
  0%   { background-position: 0 0; }
  50%  { background-position: 40px 30px; }
  100% { background-position: 0 0; }
}
@keyframes linesSweep {
  0%   { transform: translateX(-10%) translateY(0); }
  50%  { transform: translateX(10%) translateY(-5%); }
  100% { transform: translateX(-10%) translateY(0); }
}
@keyframes linesDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 160px 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-bg,
  .section-bg-dots::before,
  .section-bg-dots::after,
  .section-bg-lines::before {
    animation: none;
  }
}

/* ── Header ── */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(61,58,53,.06);
}

/* ── Nav links ── */
.nav-link {
  color: var(--color-text);
  font-weight: 500;
  transition: color .15s;
}
.nav-link:hover { color: var(--color-primary); }

/* ── Primary button ── */
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  padding: .6rem 1.4rem;
  font-weight: 600;
  transition: background-color .15s, transform .1s;
  display: inline-block;
}
.btn-primary:hover {
  background-color: var(--color-primary-h);
  transform: translateY(-1px);
}

/* ── Cards ── */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(61,58,53,.05);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(61,58,53,.1);
  transform: translateY(-2px);
}

/* ── Footer ── */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-txt);
}
.site-footer a:hover { color: #ffffff; }
.site-footer-divider { border-color: #4e4a45; }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home page redesign */
.home-page {
  position: relative;
  overflow: clip;
  padding: 1.5rem 0 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(244, 126, 90, 0.14), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(47, 119, 191, 0.14), transparent 24%),
    linear-gradient(180deg, #f7efe5 0%, #fbf7f1 18%, #f5f8fc 60%, #eef4fb 100%);
  color: #142739;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.home-page__aura {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.65;
  pointer-events: none;
}

.home-page__aura--one {
  top: 3rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 141, 102, 0.18);
  animation: homeFloat 14s ease-in-out infinite;
}

.home-page__aura--two {
  top: 14rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(68, 129, 199, 0.16);
  animation: homeFloat 18s ease-in-out infinite reverse;
}

.home-page__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 39, 57, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 39, 57, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 75%);
  pointer-events: none;
}

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-section {
  padding-top: 1.5rem;
}

.home-section--last {
  padding-top: 2rem;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1e4f78;
}

.home-kicker::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8d66, #2f77bf);
  box-shadow: 0 0 0 0.35rem rgba(255, 141, 102, 0.12);
}

.home-section__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.home-section__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #10233b;
}

.home-section__subtitle,
.home-hero__lead,
.home-hero__text,
.home-contact__text,
.home-richtext,
.home-resource-card__body p,
.home-journal__featured-body p,
.home-journal__item-body p,
.home-category-card__body p,
.home-empty-state p {
  color: #4b6278;
}

.home-section__subtitle,
.home-hero__lead,
.home-contact__text {
  max-width: 42rem;
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.75;
}

.home-section__meta {
  flex-shrink: 0;
  border: 1px solid rgba(18, 46, 76, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  color: #1d476c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  padding: 0.5rem 0 0.5rem;
}

.home-hero__panel,
.home-story,
.home-resource-card,
.home-journal__featured,
.home-journal__item,
.home-quote,
.home-contact,
.home-fallback,
.home-empty-state {
  --home-panel-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 241, 0.72));
  --home-panel-border: rgba(18, 46, 76, 0.1);
  --home-panel-glow: rgba(255, 141, 102, 0.14);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--home-panel-border);
  background: var(--home-panel-bg);
  box-shadow:
    0 18px 50px rgba(20, 39, 57, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.home-hero__panel::before,
.home-story::before,
.home-resource-card::before,
.home-journal__featured::before,
.home-journal__item::before,
.home-quote::before,
.home-contact::before,
.home-fallback::before,
.home-empty-state::before {
  content: "";
  position: absolute;
  inset: auto auto -3.5rem -2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--home-panel-glow) 0%, transparent 70%);
  z-index: -1;
}

.home-hero__panel::after,
.home-story::after,
.home-resource-card::after,
.home-journal__featured::after,
.home-journal__item::after,
.home-quote::after,
.home-contact::after,
.home-fallback::after,
.home-empty-state::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 36%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.18), transparent 28%);
  z-index: -2;
}

.home-tone--default {
  --home-panel-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.74));
  --home-panel-glow: rgba(255, 141, 102, 0.16);
}

.home-tone--sky {
  --home-panel-bg: linear-gradient(145deg, rgba(244, 249, 255, 0.95), rgba(228, 240, 255, 0.74));
  --home-panel-glow: rgba(76, 141, 210, 0.2);
}

.home-tone--mint {
  --home-panel-bg: linear-gradient(145deg, rgba(242, 255, 250, 0.94), rgba(227, 244, 237, 0.72));
  --home-panel-glow: rgba(90, 176, 145, 0.18);
}

.home-tone--sand {
  --home-panel-bg: linear-gradient(145deg, rgba(255, 249, 239, 0.95), rgba(248, 235, 216, 0.72));
  --home-panel-glow: rgba(206, 150, 82, 0.18);
}

.home-tone--slate {
  --home-panel-bg: linear-gradient(145deg, rgba(245, 247, 250, 0.95), rgba(225, 232, 240, 0.74));
  --home-panel-glow: rgba(101, 124, 150, 0.18);
}

.home-tone--sunset {
  --home-panel-bg: linear-gradient(145deg, rgba(255, 244, 239, 0.95), rgba(255, 227, 219, 0.74));
  --home-panel-glow: rgba(236, 123, 94, 0.18);
}

.home-tone--dots::after,
.home-tone--lines::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.18), transparent 28%);
}

.home-tone--dots::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 20%, rgba(84, 141, 211, 0.14), transparent 25%),
    radial-gradient(circle, rgba(20, 39, 57, 0.08) 1.2px, transparent 1.2px);
  background-size: auto, 20px 20px;
  opacity: 0.7;
}

.home-tone--lines::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 157, 113, 0.08), transparent 34%),
    repeating-linear-gradient(
      120deg,
      rgba(20, 39, 57, 0.08) 0,
      rgba(20, 39, 57, 0.08) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.55;
}

.home-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  padding: clamp(1.5rem, 2.8vw, 3rem);
  border-radius: 2rem;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #0c2137;
}

.home-hero__text {
  max-width: 38rem;
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.85;
}

.home-hero__actions,
.home-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button--primary {
  background: linear-gradient(135deg, #143455, #2f77bf);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 119, 191, 0.22);
}

.home-button--primary:hover {
  background: linear-gradient(135deg, #122e4c, #255e98);
}

.home-button--ghost {
  border: 1px solid rgba(20, 52, 85, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: #143455;
}

.home-button--ghost:hover {
  border-color: rgba(20, 52, 85, 0.24);
  background: rgba(255, 255, 255, 0.82);
}

.home-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.home-metric,
.home-glass-card,
.home-preview-card {
  border: 1px solid rgba(20, 52, 85, 0.1);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.home-metric {
  padding: 1rem 1rem 0.95rem;
}

.home-metric strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  color: #0e2640;
}

.home-metric span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: #4b6278;
}

.home-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 30rem;
}

.home-hero__visual-card {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(11, 30, 49, 0.9), rgba(23, 60, 99, 0.8));
  box-shadow: 0 24px 45px rgba(11, 30, 49, 0.18);
}

.home-hero__media,
.home-journal__featured-media,
.home-journal__item-media,
.home-story__media,
.home-resource-card__media {
  overflow: hidden;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.2);
}

.home-hero__media {
  height: 100%;
  min-height: 24rem;
}

.home-hero__media img,
.home-journal__featured-media img,
.home-journal__item-media img,
.home-story__media img,
.home-resource-card__media img,
.home-category-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__note {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 1rem 1.1rem;
}

.home-note__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.home-glass-card strong,
.home-glass-card p {
  display: block;
  color: #f8fbff;
}

.home-glass-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.home-glass-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(240, 247, 255, 0.78);
}

.home-preview-card {
  padding: 1rem;
}

.home-preview-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1f4f78;
}

.home-preview-card__items {
  display: grid;
  gap: 0.65rem;
}

.home-preview-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.home-preview-chip strong,
.home-category-card__badge,
.home-resource-card__placeholder,
.home-category-card__visual span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ff8d66, #2f77bf);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(47, 119, 191, 0.18);
}

.home-preview-chip span {
  color: #17304d;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-hero__fallback-art {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.8rem;
  min-height: 24rem;
  padding: 1.6rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(255, 141, 102, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(21, 57, 93, 0.82), rgba(12, 27, 44, 0.95));
}

.home-hero__fallback-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__fallback-art strong {
  max-width: 18rem;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
}

.home-hero__fallback-art p {
  max-width: 18rem;
  margin: 0;
  color: rgba(237, 245, 252, 0.82);
  line-height: 1.7;
}

.home-category-grid,
.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  grid-column: span 4;
  padding: 1.3rem;
  border: 1px solid rgba(18, 46, 76, 0.1);
  border-radius: 1.7rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(245, 250, 255, 0.66)),
    linear-gradient(135deg, rgba(255, 141, 102, 0.05), transparent 55%);
  box-shadow: 0 16px 34px rgba(20, 39, 57, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-category-card:hover,
.home-resource-card:hover,
.home-journal__featured:hover,
.home-journal__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(20, 39, 57, 0.12);
}

.home-category-card:hover {
  border-color: rgba(47, 119, 191, 0.2);
}

.home-category-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.home-category-card__body {
  max-width: 15rem;
  padding-top: 3.8rem;
}

.home-category-card__body h3 {
  margin: 0;
  color: #10233b;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.home-category-card__body p {
  margin: 0.9rem 0 0;
  line-height: 1.75;
}

.home-category-card__visual {
  display: flex;
  align-items: end;
  justify-content: end;
  min-height: 5.5rem;
}

.home-category-card__visual img {
  width: min(9rem, 100%);
  max-height: 6.5rem;
  object-fit: contain;
}

.home-story {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.3vw, 2.2rem);
  border-radius: 1.9rem;
}

.home-story--with-media {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.home-story--reverse .home-story__media {
  order: 2;
}

.home-story__media {
  min-height: 21rem;
}

.home-story__body {
  max-width: 42rem;
}

.home-richtext {
  margin-top: 1rem;
  line-height: 1.85;
}

.home-richtext p:first-child {
  margin-top: 0;
}

.home-richtext p:last-child {
  margin-bottom: 0;
}

.home-richtext h2,
.home-richtext h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
  color: #10233b;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}

.home-richtext ul,
.home-richtext ol {
  padding-left: 1.2rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: #143455;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-link::after {
  content: "->";
  color: #ff8d66;
}

.home-link--inline {
  margin-top: 0.95rem;
  font-size: 0.92rem;
}

.home-resource-card {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  border-radius: 1.6rem;
  padding: 0.9rem;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-resource-card__media {
  aspect-ratio: 4 / 3;
}

.home-resource-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem 0.35rem 0.2rem;
}

.home-resource-card__body h3,
.home-journal__featured-body strong,
.home-journal__item-body strong {
  color: #10233b;
  font-family: "Fraunces", Georgia, serif;
}

.home-resource-card__body h3 {
  margin: 0.75rem 0 0;
  font-size: 1.45rem;
  line-height: 1.08;
}

.home-resource-card__body p {
  margin: 0.7rem 0 0;
  line-height: 1.7;
}

.home-resource-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  border-radius: 1.1rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 52, 85, 0.08);
  color: #1f4f78;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-journal {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.home-journal__featured,
.home-journal__item {
  display: grid;
  gap: 1rem;
  border-radius: 1.7rem;
  padding: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-journal__featured {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
  min-height: 100%;
}

.home-journal__featured-media {
  min-height: 21rem;
}

.home-journal__featured-body,
.home-journal__item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-journal__featured-body strong {
  margin-top: 0.85rem;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1;
}

.home-journal__featured-body p,
.home-journal__item-body p {
  margin: 0.85rem 0 0;
  line-height: 1.75;
}

.home-journal__stack {
  display: grid;
  gap: 1rem;
}

.home-journal__item {
  grid-template-columns: 9rem minmax(0, 1fr);
}

.home-journal__item-media {
  min-height: 9rem;
}

.home-journal__item-body strong {
  font-size: 1.45rem;
  line-height: 1.08;
}

.home-journal__date {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.8rem;
  color: #4b6278;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-quote,
.home-contact,
.home-fallback,
.home-empty-state {
  border-radius: 1.9rem;
  padding: clamp(1.4rem, 2.2vw, 2.3rem);
}

.home-contact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-contact__mail {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid rgba(20, 52, 85, 0.12);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.6);
  color: #143455;
  font-size: 0.92rem;
  font-weight: 800;
}

.home-empty-state strong {
  display: block;
  color: #10233b;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.home-empty-state p {
  margin: 0.75rem 0 0;
  line-height: 1.75;
}

@keyframes homeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 18px, 0);
  }
}

@media (max-width: 1100px) {
  .home-hero__panel,
  .home-journal,
  .home-journal__featured,
  .home-story--with-media {
    grid-template-columns: 1fr;
  }

  .home-resource-card {
    grid-column: span 6;
  }

  .home-category-card {
    grid-column: span 6;
  }

  .home-contact {
    flex-direction: column;
    align-items: start;
  }

  .home-hero__visual {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .home-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .home-shell {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .home-section__intro {
    flex-direction: column;
    align-items: start;
  }

  .home-hero__metrics {
    grid-template-columns: 1fr;
  }

  .home-category-grid,
  .home-resource-grid {
    grid-template-columns: 1fr;
  }

  .home-category-card,
  .home-resource-card {
    grid-column: auto;
  }

  .home-journal__item {
    grid-template-columns: 1fr;
  }

  .home-story__media,
  .home-journal__featured-media,
  .home-hero__media,
  .home-hero__fallback-art {
    min-height: 16rem;
  }

  .home-hero__note {
    position: static;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page__aura--one,
  .home-page__aura--two,
  .home-button,
  .home-category-card,
  .home-resource-card,
  .home-journal__featured,
  .home-journal__item {
    animation: none;
    transition: none;
  }
}

/* MEBI-inspired home */
.home-mebi-body {
  background-color: #ffffff !important;
  color: #040308 !important;
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.home-mebi-body .site-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.home-mebi-body .site-header > div {
  height: 5.5rem !important;
}

.home-mebi-body .site-header .max-w-7xl {
  margin-top: 1.35rem;
  border: 1px solid #b6c5e9;
  border-radius: 999px;
  background: rgba(253, 254, 255, 0.96);
  box-shadow: 0 4px 10px rgba(0, 51, 179, 0.16);
}

.home-mebi-body .site-header .nav-link,
.home-mebi-body .site-header .text-xs,
.home-mebi-body .site-header .text-xl {
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.home-mebi-body .site-header .nav-link {
  color: #040308 !important;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.home-mebi-body .site-header .nav-link:hover {
  color: #0033b3 !important;
}

.home-mebi-body .site-header .btn-primary {
  background: linear-gradient(180deg, #0033b3 0%, #132b93 100%);
  box-shadow: 0 0 0 1px #132b93, inset 0 4px 12px #2450be, inset 0 1px 0.5px rgba(109, 138, 212, 0.64), inset 0 -1px 1px #132b93;
}

.home-mebi-body .site-header img {
  pointer-events: auto;
}

.mebi-home {
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(36, 80, 190, 0.08), transparent 18%),
    radial-gradient(circle at 85% 8%, rgba(253, 152, 67, 0.12), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 48%, #f7faff 100%);
  color: #040308;
  font-family: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.mebi-home a {
  text-decoration: none;
}

.mebi-container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.mebi-section,
.mebi-hero {
  scroll-margin-top: 7rem;
}

.mebi-hero {
  position: relative;
  padding: 7.75rem 0 3.5rem;
}

.mebi-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 36rem;
  background:
    radial-gradient(circle at top right, rgba(253, 152, 67, 0.15), transparent 22%),
    linear-gradient(180deg, #eef4ff 0%, #f7faff 44%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.mebi-hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: 2.5rem;
}

.mebi-eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdfeff 0%, #dfe6f5 100%);
  box-shadow: inset 0 1px 1px #dfe6f5, inset 0 -1px 1px #b6c5e9;
  color: #0284c7;
  font-size: 14px;
  font-weight: 400;
}

.mebi-hero__title,
.mebi-section-title,
.mebi-module-card h3,
.mebi-resource-card__body h3,
.mebi-feature-card__body h4,
.mebi-feedback-card__body strong,
.mebi-support-card strong {
  margin: 0;
  color: #040308;
  font-weight: 600;
}

.mebi-hero__title {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.mebi-hero__subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #0033b3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 500;
}

.mebi-hero__description,
.mebi-section-description,
.mebi-info-card__body p,
.mebi-resource-card__body p,
.mebi-feature-card__body p,
.mebi-module-card p,
.mebi-support-card p,
.mebi-feedback-card__body p {
  color: #3b3d3f;
  font-size: 14px;
  line-height: 1.8;
}

.mebi-hero__description {
  max-width: 40rem;
  margin: 1rem 0 0;
}

.mebi-hero__actions,
.mebi-cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.mebi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 42px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mebi-button:hover {
  transform: translateY(-1px);
}

.mebi-button--primary {
  background: linear-gradient(180deg, #0033b3 0%, #132b93 100%);
  color: #f5f5f5;
  box-shadow: 0 0 0 1px #132b93, inset 0 4px 12px #2450be, inset 0 1px 0.5px rgba(109, 138, 212, 0.64), inset 0 -1px 1px #132b93;
}

.mebi-button--secondary {
  border: 1px solid #b6c5e9;
  background: #ffffff;
  color: #0033b3;
}

.mebi-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 38rem;
  margin-top: 2rem;
}

.mebi-stat-card,
.mebi-info-card,
.mebi-feature-card,
.mebi-module-card,
.mebi-support-card,
.mebi-feedback-card,
.mebi-empty-card {
  border: 1px solid #b6c5e9;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  box-shadow: 0 4px 12px rgba(0, 51, 179, 0.06);
}

.mebi-stat-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 24px;
}

.mebi-stat-card strong,
.mebi-wave-stat strong {
  display: block;
  color: #0033b3;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
}

.mebi-stat-card span,
.mebi-wave-stat span {
  display: block;
  margin-top: 0.45rem;
  color: #3b3d3f;
  font-size: 12px;
  line-height: 20px;
}

.mebi-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mebi-hero__visual-surface {
  position: relative;
  min-height: 29rem;
  padding: 1.25rem;
  border-radius: 36px;
  background: linear-gradient(180deg, #1d44b1 0%, #132b93 100%);
  box-shadow: 0 12px 36px rgba(0, 51, 179, 0.24);
}

.mebi-hero__visual-surface img,
.mebi-resource-stack__top img,
.mebi-feature-card__media img,
.mebi-feedback-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mebi-hero__visual-surface img {
  border-radius: 28px;
}

.mebi-hero__fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.75rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(253, 152, 67, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #f5f5f5;
}

.mebi-hero__fallback span {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
}

.mebi-hero__fallback strong {
  max-width: 16rem;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 600;
}

.mebi-hero__fallback p {
  max-width: 18rem;
  margin: 0;
  color: rgba(245, 245, 245, 0.86);
  font-size: 13px;
  line-height: 1.8;
}

.mebi-hero__note {
  padding: 1rem 1.1rem;
  border: 1px solid #b6c5e9;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 51, 179, 0.06);
}

.mebi-hero__note-label,
.mebi-support-card__eyebrow,
.mebi-module-card__label,
.mebi-resource-card__meta,
.mebi-feedback-card__body span {
  display: inline-flex;
  color: #0284c7;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}

.mebi-hero__note strong {
  display: block;
  margin-top: 0.35rem;
  color: #040308;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.mebi-hero__note p {
  margin: 0.45rem 0 0;
  color: #3b3d3f;
  font-size: 13px;
  line-height: 1.75;
}

.mebi-section {
  padding: 4.5rem 0;
}

.mebi-section--compact {
  padding-top: 0.5rem;
}

.mebi-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.mebi-tag {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fdfeff 0%, #dfe6f5 100%);
  box-shadow: inset 0 1px 1px #dfe6f5, inset 0 -1px 1px #b6c5e9;
  color: #0284c7;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.mebi-section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.35;
}

.mebi-section-description {
  max-width: 46rem;
  margin: 0;
}

.mebi-section-description--left {
  max-width: 38rem;
  margin-left: 0;
}

.mebi-about-grid,
.mebi-module-grid,
.mebi-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.mebi-info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 36px;
}

.mebi-info-card__icon,
.mebi-feature-card__media span,
.mebi-feedback-card__media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0033b3 0%, #132b93 100%);
  color: #f5f5f5;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 51, 179, 0.18);
}

.mebi-info-card__body h3 {
  margin: 0;
  color: #040308;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.mebi-info-card__body p {
  margin: 0.5rem 0 0;
}

.mebi-resource-grid,
.mebi-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.mebi-resource-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.25rem 1.25rem;
  border-radius: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mebi-resource-card:hover,
.mebi-feature-card:hover,
.mebi-module-card:hover,
.mebi-feedback-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 51, 179, 0.12);
}

.mebi-resource-stack {
  position: relative;
  width: 196px;
  height: 210px;
  margin: 0 auto;
}

.mebi-resource-stack__ghost,
.mebi-resource-stack__top {
  position: absolute;
  top: 0;
  width: 130px;
  border: 1px solid #b6c5e9;
  border-radius: 18px;
}

.mebi-resource-stack__ghost {
  height: 176px;
  background: linear-gradient(180deg, #fdfeff 0%, #eef4ff 100%);
}

.mebi-resource-stack__ghost--left {
  left: 16px;
  transform: rotate(-2deg);
}

.mebi-resource-stack__ghost--right {
  right: 16px;
  transform: rotate(2deg);
}

.mebi-resource-stack__top {
  top: -11px;
  left: 50%;
  height: 192px;
  transform: translateX(-50%);
  overflow: hidden;
  background: linear-gradient(180deg, #fdfeff 0%, #eef4ff 100%);
}

.mebi-resource-stack__top span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #0033b3;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.mebi-resource-card__body h3 {
  font-size: 17px;
  line-height: 1.45;
}

.mebi-resource-card__body p {
  margin: 0.45rem 0 0;
}

.mebi-resource-card__meta {
  margin-top: 0.65rem;
}

.mebi-wave-section {
  padding: 0 0 1rem;
}

.mebi-wave-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(253, 152, 67, 0.2), transparent 18%),
    linear-gradient(180deg, #0033b3 0%, #132b93 100%);
  box-shadow: 0 16px 32px rgba(0, 51, 179, 0.18);
}

.mebi-wave-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58px;
  background:
    radial-gradient(50px 26px at 8% 0, #ffffff 98%, transparent 100%) bottom/90px 58px repeat-x;
  opacity: 0.18;
  pointer-events: none;
}

.mebi-wave-stat {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
}

.mebi-wave-stat strong,
.mebi-wave-stat span {
  color: #f5f5f5;
}

.mebi-feature-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mebi-feature-nav__item {
  display: inline-flex;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #dfe6f5;
  background: #ffffff;
  color: #3b3d3f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.mebi-feature-nav__item--active {
  border-color: #b6c5e9;
  background: rgba(0, 51, 179, 0.08);
  color: #0033b3;
}

.mebi-feature-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mebi-feature-card__media,
.mebi-feedback-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.mebi-feature-card__body,
.mebi-feedback-card__body {
  padding: 1rem 0.2rem 0.1rem;
}

.mebi-feature-card__body h4 {
  font-size: 16px;
  line-height: 1.45;
}

.mebi-feature-card__body p {
  margin: 0.45rem 0 0;
}

.mebi-module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mebi-module-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mebi-module-card h3 {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  line-height: 1.35;
}

.mebi-module-card p {
  margin: 0.75rem 0 0;
}

.mebi-module-card__list {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: #0033b3;
  font-size: 13px;
  line-height: 1.9;
}

.mebi-module-card__list li::marker {
  color: #fd9843;
}

.mebi-support-panel,
.mebi-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
}

.mebi-support-card,
.mebi-cta-panel {
  padding: 1.8rem;
  border-radius: 36px;
}

.mebi-support-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.6rem;
  line-height: 1.35;
}

.mebi-support-card p {
  margin: 0.75rem 0 0;
}

.mebi-support-card__mail {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #dfe6f5;
  background: #ffffff;
  color: #0033b3;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.mebi-feedback-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mebi-feedback-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mebi-feedback-card__body strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

.mebi-feedback-card__body span {
  margin-top: 0.4rem;
}

.mebi-feedback-card__body p {
  margin: 0.65rem 0 0;
}

.mebi-empty-card,
.mebi-cta-panel {
  border-radius: 36px;
}

.mebi-empty-card {
  padding: 1.4rem 1.5rem;
  color: #3b3d3f;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.mebi-cta-panel {
  border: 1px solid #b6c5e9;
  background: linear-gradient(180deg, #fdfeff 0%, #f4f9ff 100%);
  box-shadow: 0 4px 12px rgba(0, 51, 179, 0.06);
}

@media (max-width: 1100px) {
  .mebi-hero__panel,
  .mebi-support-panel,
  .mebi-cta-panel,
  .mebi-module-grid,
  .mebi-feedback-grid,
  .mebi-resource-grid,
  .mebi-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mebi-hero__visual {
    order: -1;
  }
}

@media (max-width: 820px) {
  .home-mebi-body .site-header > div {
    height: 4.75rem !important;
  }

  .home-mebi-body .site-header .max-w-7xl {
    margin-top: 0.85rem;
    border-radius: 24px;
  }

  .mebi-hero {
    padding-top: 6.5rem;
  }

  .mebi-about-grid,
  .mebi-module-grid,
  .mebi-feedback-grid,
  .mebi-support-panel,
  .mebi-cta-panel,
  .mebi-wave-panel,
  .mebi-hero__stats {
    grid-template-columns: 1fr;
  }

  .mebi-hero__panel,
  .mebi-resource-grid,
  .mebi-feature-grid {
    grid-template-columns: 1fr;
  }

  .mebi-hero__visual-surface {
    min-height: 22rem;
  }

  .mebi-section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 640px) {
  .mebi-container {
    width: min(1240px, calc(100% - 1.25rem));
  }

  .home-mebi-body .site-header .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .mebi-hero {
    padding-top: 6rem;
  }

  .mebi-hero__visual-surface {
    min-height: 18rem;
    padding: 0.85rem;
    border-radius: 24px;
  }

  .mebi-resource-card,
  .mebi-info-card,
  .mebi-module-card,
  .mebi-support-card,
  .mebi-feedback-card,
  .mebi-cta-panel {
    border-radius: 24px;
  }

  .mebi-resource-stack {
    width: 176px;
    height: 192px;
  }

  .mebi-resource-stack__ghost,
  .mebi-resource-stack__top {
    width: 118px;
  }

  .mebi-resource-stack__ghost {
    height: 164px;
  }

  .mebi-resource-stack__top {
    height: 180px;
  }
}


/* =====================================================
   EBA-inspired Home Page  (.eba-body / .eba-page)
   ===================================================== */

.eba-body .site-header {
  background: linear-gradient(90deg, #0A2D6E 0%, #1557BF 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(10,45,110,.3) !important;
}
.eba-body .site-header .nav-link,
.eba-body .site-header .text-xl {
  color: rgba(255,255,255,.9) !important;
}
.eba-body .site-header .nav-link:hover { color: #fff !important; }
.eba-body .site-header .btn-primary {
  background: #E86817 !important;
  box-shadow: 0 3px 12px rgba(232,104,23,.35) !important;
}

.eba-page {
  background: #eef1f7;
  font-family: "Rubik", "Segoe UI", system-ui, sans-serif;
  color: #0c1f40;
}
.eba-page a { text-decoration: none; }

.eba-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.eba-hero {
  position: relative;
  padding: 5.5rem 0 0;
  background: linear-gradient(135deg, #0A2D6E 0%, #1557BF 55%, #1E6FD9 100%);
  color: #fff;
  overflow: hidden;
}
.eba-hero__bg-shapes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,120,40,.18), transparent 30%),
    radial-gradient(circle at 8%  80%, rgba(30,100,220,.25), transparent 28%);
  pointer-events: none;
}
.eba-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding-bottom: 5rem;
}
.eba-hero__copy { max-width: 680px; }
.eba-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.eba-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff;
}
.eba-hero__sub {
  margin: .9rem 0 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.eba-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.75rem;
}
.eba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .18s, background-color .18s, box-shadow .18s, border-color .18s;
}
.eba-btn:hover { transform: translateY(-2px); }
.eba-btn--orange { background: #E86817; color: #fff; box-shadow: 0 4px 16px rgba(232,104,23,.35); }
.eba-btn--orange:hover { background: #cf5c13; box-shadow: 0 6px 20px rgba(232,104,23,.42); }
.eba-btn--ghost { border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(6px); }
.eba-btn--ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.65); }
.eba-btn--white { background: #fff; color: #0A2D6E; box-shadow: 0 2px 8px rgba(10,45,110,.12); }
.eba-btn--white:hover { background: #f0f4ff; }
.eba-btn--ghost-light { border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.9); }
.eba-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

.eba-hero__stats-col { display: flex; flex-direction: column; gap: .75rem; }
.eba-stat-box {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 120px;
}
.eba-stat-box strong { display: block; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.eba-stat-box span { display: block; margin-top: .3rem; font-size: .8rem; color: rgba(255,255,255,.72); }
.eba-hero__wave { margin-bottom: -2px; line-height: 0; }
.eba-hero__wave svg { display: block; width: 100%; height: 72px; }

.eba-section { padding: 3.5rem 0; background: #eef1f7; }
.eba-section--white { background: #fff; }
.eba-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.eba-section-title { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; color: #0A2D6E; letter-spacing: -.015em; }
.eba-link-more { flex-shrink: 0; font-size: .88rem; font-weight: 600; color: #1557BF; }
.eba-link-more:hover { color: #0A2D6E; }

.eba-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.eba-cat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cdd5e8;
  box-shadow: 0 2px 6px rgba(10,45,110,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  color: inherit;
}
.eba-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,45,110,.12); border-color: #1557BF; }
.eba-cat-card__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.eba-cat-card__icon span { color: #fff; font-size: 1.3rem; font-weight: 700; }
.eba-cat-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.eba-cat-card__info { flex: 1; min-width: 0; }
.eba-cat-card__info strong { display: block; font-size: .97rem; font-weight: 600; color: #0A2D6E; line-height: 1.35; }
.eba-cat-card__info p { margin: .2rem 0 0; font-size: .8rem; color: #546887; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eba-cat-card__arrow { flex-shrink: 0; font-size: 1.35rem; color: #cdd5e8; line-height: 1; }
.eba-cat-card:hover .eba-cat-card__arrow { color: #1557BF; }

.eba-act-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.1rem; }
.eba-act-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cdd5e8;
  box-shadow: 0 2px 6px rgba(10,45,110,.05);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.eba-act-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,45,110,.12); }
.eba-act-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e0e8f7, #cdd5e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eba-act-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.eba-act-card__placeholder { color: #1557BF; font-size: .85rem; font-weight: 600; text-align: center; padding: .5rem; }
.eba-type-chip {
  position: absolute;
  top: .55rem;
  right: .55rem;
  padding: .22rem .6rem;
  border-radius: 6px;
  background: rgba(10,45,110,.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
}
.eba-act-card__body { padding: .85rem 1rem 1rem; }
.eba-act-card__body h4 { margin: 0; font-size: .93rem; font-weight: 600; color: #0A2D6E; line-height: 1.4; }
.eba-act-card__body p { margin: .3rem 0 0; font-size: .8rem; color: #546887; }

.eba-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.eba-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cdd5e8;
  box-shadow: 0 2px 6px rgba(10,45,110,.05);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.eba-blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,45,110,.12); }
.eba-blog-card__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dce6f8, #c8d4ed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eba-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.eba-blog-card__letter { font-size: 1.75rem; font-weight: 700; color: #1557BF; }
.eba-blog-card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.eba-blog-card__body time { font-size: .78rem; color: #E86817; font-weight: 600; }
.eba-blog-card__body h4 { margin: 0; font-size: .97rem; font-weight: 600; color: #0A2D6E; line-height: 1.4; }
.eba-blog-card__body p { margin: 0; font-size: .84rem; color: #546887; line-height: 1.65; }

.eba-cta-strip { padding: 3.5rem 0 4rem; background: linear-gradient(135deg, #0A2D6E 0%, #1557BF 100%); }
.eba-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.eba-cta-copy h2 { margin: 0; font-size: clamp(1.4rem,3vw,2rem); font-weight: 700; color: #fff; line-height: 1.2; }
.eba-cta-copy p { margin: .65rem 0 0; max-width: 46ch; font-size: .95rem; color: rgba(255,255,255,.8); line-height: 1.65; }
.eba-cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; flex-shrink: 0; }

.eba-empty-note { padding: 2rem; text-align: center; color: #546887; font-size: .93rem; background: #fff; border-radius: 12px; border: 1px solid #cdd5e8; }

@media (max-width: 1024px) { .eba-act-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 820px) {
  .eba-hero__inner { grid-template-columns: 1fr; padding-bottom: 4rem; }
  .eba-hero__stats-col { flex-direction: row; flex-wrap: wrap; }
  .eba-stat-box { flex: 1; min-width: 100px; }
  .eba-cat-grid { grid-template-columns: repeat(2,1fr); }
  .eba-blog-grid { grid-template-columns: 1fr; }
  .eba-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .eba-hero { padding-top: 4rem; }
  .eba-act-grid { grid-template-columns: 1fr; }
  .eba-cat-grid { grid-template-columns: 1fr; }
  .eba-wrap { width: min(1200px, calc(100% - 1.25rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .eba-btn, .eba-cat-card, .eba-act-card, .eba-blog-card { transition: none; }
}
