:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --ink: #06132f;
  --muted: #66748a;
  --line: #dbe4ef;
  --navy: #031631;
  --navy-2: #08244a;
  --green: #04945b;
  --green-dark: #04734d;
  --blue: #1d63d8;
  --gold: #f5b82e;
  --shadow: 0 18px 60px rgba(8, 28, 61, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.academy-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 36px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.academy-hero {
  --academy-bg-image: none;
  --academy-bg-size: 100% auto;
  --academy-bg-position: 50% 50%;
  --academy-overlay-opacity: 0.25;
  --academy-hero-height: 385px;
  position: relative;
  overflow: hidden;
  background-color: #061a3a;
  background-image: var(--academy-bg-image);
  background-position: var(--academy-bg-position);
  background-repeat: no-repeat;
  background-size: var(--academy-bg-size);
  color: #fff;
}

.academy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 18, 41, 0.98) 0%, rgba(3, 18, 41, 0.88) 42%, rgba(3, 18, 41, 0.54) 100%),
    radial-gradient(circle at 76% 38%, rgba(16, 123, 198, 0.22), transparent 34%);
  opacity: var(--academy-overlay-opacity);
}

.academy-nav {
  position: relative;
  z-index: 60;
  min-height: 88px;
  padding: 0 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.academy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: auto;
  min-width: var(--academy-logo-size, 34px);
  height: var(--academy-logo-size, 34px);
  display: inline-flex;
  align-items: center;
  transform: translate(var(--academy-logo-x, 0), var(--academy-logo-y, 0));
}

.brand-mark svg,
.brand-mark img {
  width: auto;
  max-width: 158px;
  height: var(--academy-logo-size, 34px);
  object-fit: contain;
}

.investmony-logo-fallback {
  width: var(--academy-logo-size, 34px);
  height: var(--academy-logo-size, 34px);
  display: inline-grid;
  place-items: center;
  color: #45c488;
}

.investmony-logo-fallback svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.investmony-logo-text {
  margin-left: 6px;
}

.brand-accent {
  color: #45c488;
}

.academy-quick-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  justify-self: end;
  font-size: 14px;
  font-weight: 800;
}

.academy-quick-links a {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 0;
}

.academy-quick-links a:hover {
  color: #fff;
}

.top-search,
.hero-search {
  position: relative;
}

.top-search input,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  outline: none;
}

.top-search input {
  height: 46px;
  padding: 0 48px 0 46px;
  color: #d7e4f7;
  background: rgba(2, 15, 35, 0.48);
}

.top-search input::placeholder,
.hero-search input::placeholder {
  color: #7d8ba1;
}

.top-search button,
.hero-search button {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #0d1a33;
  cursor: pointer;
}

.top-search button {
  color: #8fa0bb;
}

.top-search svg,
.hero-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.login-link {
  justify-self: end;
  min-width: 86px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}

.academy-user-menu {
  position: relative;
  justify-self: end;
  z-index: 80;
}

.academy-user-menu::after {
  content: "";
  display: none;
  position: absolute;
  top: 100%;
  right: -14px;
  width: 270px;
  height: 220px;
  z-index: 1;
}

.academy-user-menu:hover::after,
.academy-user-menu:focus-within::after,
.academy-user-menu.is-open::after {
  display: block;
}

.academy-user-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.academy-user-button img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(4, 148, 91, 0.55);
}

.academy-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 230px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid rgba(219, 228, 239, 0.88);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(3, 22, 49, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.academy-user-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.academy-user-menu:hover .academy-user-dropdown,
.academy-user-menu:focus-within .academy-user-dropdown,
.academy-user-menu.is-open .academy-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.academy-user-info {
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.academy-user-info strong,
.academy-user-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-user-info strong {
  font-size: 13px;
}

.academy-user-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.academy-user-menu-link {
  display: block;
  padding: 9px 8px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.academy-user-menu-link:hover {
  background: #eef8f3;
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: var(--academy-hero-height);
  padding: 48px 58px 58px;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(360px, 560px);
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.hero-search {
  width: min(590px, 100%);
}

.hero-search input {
  height: 64px;
  padding: 0 66px 0 34px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.hero-search button {
  right: 22px;
}

.hero-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-config-image {
  width: min(var(--academy-hero-image-width, 500px), 100%);
  max-height: var(--academy-hero-image-height, 330px);
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.28));
  transform: translate(var(--academy-hero-image-x, 0), var(--academy-hero-image-y, 0));
}

.visual-card {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1.55;
}

.book-stack {
  position: absolute;
  left: 30%;
  bottom: 19%;
  width: 46%;
  height: 42%;
  transform: skewY(-8deg);
}

.book {
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.book-1 { bottom: 0; background: linear-gradient(90deg, #0f766e, #f8fafc 17%, #0f766e); }
.book-2 { bottom: 28px; background: linear-gradient(90deg, #1d63d8, #f8fafc 18%, #1d63d8); }
.book-3 { bottom: 56px; background: linear-gradient(90deg, #0f9f6e, #f8fafc 18%, #0f9f6e); }

.cap {
  position: absolute;
  left: 17%;
  bottom: 82px;
  width: 78%;
  height: 78px;
  background: linear-gradient(145deg, #142948, #07142b);
  clip-path: polygon(50% 0, 100% 36%, 50% 72%, 0 36%);
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.3));
}

.tassel {
  position: absolute;
  left: 76%;
  bottom: 58px;
  width: 4px;
  height: 74px;
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(4deg);
}

.coins {
  position: absolute;
  left: 12%;
  bottom: 12%;
  width: 130px;
  height: 90px;
}

.coins span {
  position: absolute;
  width: 52px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(#ffd978, #d59716);
  box-shadow: inset 0 -3px rgba(128, 82, 0, 0.2), 0 10px 16px rgba(0, 0, 0, 0.18);
}

.coins span:nth-child(1) { left: 0; bottom: 0; }
.coins span:nth-child(2) { left: 30px; bottom: 24px; }
.coins span:nth-child(3) { left: 66px; bottom: 10px; }
.coins span:nth-child(4) { left: 80px; bottom: 42px; }

.plant {
  position: absolute;
  right: 7%;
  bottom: 22%;
  width: 90px;
  height: 155px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(#0d5d5b, #073d43);
}

.plant span {
  position: absolute;
  width: 42px;
  height: 84px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #19a66a, #065f46);
  transform-origin: bottom center;
}

.plant span:nth-child(1) { left: 25px; top: -80px; transform: rotate(18deg); }
.plant span:nth-child(2) { left: -4px; top: -54px; transform: rotate(-28deg); }
.plant span:nth-child(3) { right: -12px; top: -44px; transform: rotate(44deg); }
.plant span:nth-child(4) { left: 28px; top: -116px; transform: rotate(-10deg); }

.content-section {
  padding: 36px 58px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.main-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  --cat-accent: #35d98c;
  --cat-accent-soft: rgba(53, 217, 140, 0.22);
  --cat-ink: rgba(12, 46, 87, 0.9);
  position: relative;
  min-height: 128px;
  border: 1px solid rgba(29, 99, 216, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(3, 22, 49, 0.98) 0%, rgba(3, 22, 49, 0.88) 56%, rgba(3, 22, 49, 0.76) 100%),
    radial-gradient(circle at 86% 20%, var(--cat-accent-soft), transparent 34%),
    linear-gradient(135deg, rgba(16, 62, 115, 0.45), rgba(3, 22, 49, 0.8)),
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(255, 255, 255, 0.035) 29px 30px);
  color: #ffffff;
  padding: 18px 18px 16px 82px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -22px;
  width: 86px;
  height: 180px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transform: skewX(-16deg);
}

.category-card.has-bg {
  background-image:
    linear-gradient(90deg, rgba(3, 22, 49, 0.98) 0%, rgba(3, 22, 49, 0.9) 58%, rgba(3, 22, 49, 0.82) 100%),
    radial-gradient(circle at 84% 18%, var(--cat-accent-soft), transparent 34%),
    var(--category-bg);
  background-size: cover;
  background-position: center;
}

.category-card.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    radial-gradient(circle at 88% 74%, var(--cat-accent-soft), transparent 32%);
}

.category-card:hover,
.category-card.active {
  transform: translateY(-3px);
  border-color: rgba(4, 148, 91, 0.72);
  box-shadow: 0 16px 38px rgba(4, 26, 55, 0.18);
}

.category-icon {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #49f589;
}

.category-logo {
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.category-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.category-card-investing {
  --cat-accent: #4ade80;
  --cat-accent-soft: rgba(74, 222, 128, 0.24);
  border-color: rgba(74, 222, 128, 0.44);
}

.category-card-banking {
  --cat-accent: #a78bfa;
  --cat-accent-soft: rgba(167, 139, 250, 0.24);
  border-color: rgba(167, 139, 250, 0.44);
}

.category-card-personal-finance {
  --cat-accent: #2dd4bf;
  --cat-accent-soft: rgba(45, 212, 191, 0.24);
  border-color: rgba(45, 212, 191, 0.44);
}

.category-card-economy {
  --cat-accent: #f5b82e;
  --cat-accent-soft: rgba(245, 184, 46, 0.24);
  border-color: rgba(245, 184, 46, 0.5);
}

.category-card .category-icon {
  color: var(--cat-accent);
}

.category-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-title {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.category-description {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.category-count {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.subcategory-band {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.subcategory-track {
  display: flex;
  gap: 12px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.subcategory-pill {
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 246px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subcategory-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  padding: 0 0 3px;
}

.ad-slot {
  margin: 28px 58px 0;
}

.academy-ad-slot {
  min-height: 110px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.academy-ad-slot.is-empty {
  min-height: 0;
  display: none;
}

.academy-ad-slot > * {
  max-width: 100%;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  min-height: 320px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(4, 26, 55, 0.13);
}

.post-card img,
.post-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dbe4ef;
}

.post-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-category {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-author-row {
  align-items: center;
  color: #58677e;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  margin: -2px 0 10px;
}

.post-author-row img {
  aspect-ratio: 1;
  border-radius: 50%;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  margin-top: auto;
  color: #52627a;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 250px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.pagination {
  padding: 28px 0 42px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.pagination button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.academy-footer {
  background:
    radial-gradient(circle at 84% 12%, rgba(28, 117, 188, 0.18), transparent 32%),
    linear-gradient(135deg, #061a3a 0%, #0b2b5d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 241, 255, 0.88);
  padding: 48px 58px 34px;
}

.academy-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 1fr 1fr;
  gap: 44px;
}

.academy-footer .footer-brand-column {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.academy-footer .footer-logo {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 18px;
  text-decoration: none;
}

.academy-footer .footer-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.academy-footer .footer-logo-icon {
  color: #48c78e;
  stroke: currentColor;
  height: 26px;
  width: 26px;
}

.academy-footer .footer-description {
  color: rgba(232, 241, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 285px;
}

.academy-footer h3 {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.academy-footer a {
  color: rgba(232, 241, 255, 0.82);
  display: block;
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 12px;
  text-decoration: none;
}

.academy-footer a:hover {
  color: #58d59a;
}

.academy-footer .footer-divider {
  background: rgba(255, 255, 255, 0.12);
  height: 1px;
  margin: 28px 0 22px;
}

.academy-footer .footer-bottom {
  align-items: center;
  color: rgba(232, 241, 255, 0.72);
  display: flex;
  font-size: 15px;
  gap: 28px;
  justify-content: space-between;
}

.academy-footer .footer-bottom p {
  margin: 0;
}

.academy-footer .footer-bottom p:last-child {
  text-align: right;
}

.read-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: #0f7b3f;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 14px;
  padding: 10px 14px;
  text-decoration: none;
}

.academy-reader {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.academy-reader-backdrop {
  background: rgba(7, 12, 24, 0.72);
  position: absolute;
  inset: 0;
}

.academy-reader-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(7, 12, 24, 0.28);
  color: #0f172a;
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 920px;
  overflow: auto;
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 32px));
}

.academy-reader-close {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  float: right;
  font-size: 26px;
  height: 42px;
  line-height: 0;
  margin: 14px 14px 0 0;
  padding: 0 0 3px;
  position: sticky;
  top: 14px;
  width: 42px;
  z-index: 2;
}

.download-guide-button {
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #0b1224;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 800;
  height: 34px;
  margin: 0;
  padding: 0;
  width: 34px;
}

.download-guide-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-guide-button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.academy-reader-image {
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.academy-reader-content {
  padding: 34px;
}

.academy-reader-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.academy-reader-kicker .post-category {
  margin-bottom: 0;
}

.reader-date {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.reader-date::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  border-radius: 999px;
  background: #cbd5e1;
}

.academy-reader-content h2 {
  font-size: 32px;
  line-height: 1.14;
  margin: 8px 0 14px;
}

.academy-reader-author {
  align-items: center;
  color: #435977;
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin: 0 0 18px;
}

.academy-reader-author img,
.academy-reader-author-avatar {
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.academy-reader-author img {
  object-fit: cover;
}

.academy-reader-author-avatar {
  align-items: center;
  background: #e8f4ee;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.academy-reader-author strong {
  color: var(--ink);
}

.academy-reader-summary {
  color: #475569;
  font-size: 18px;
  line-height: 1.6;
}

.academy-article-body {
  border-top: 1px solid #dbe4f0;
  line-height: 1.72;
  margin-top: 24px;
  padding-top: 20px;
}

.academy-article-body h2,
.academy-article-body h3 {
  color: #0b1224;
  line-height: 1.28;
  margin: 24px 0 10px;
}

.academy-article-body h2 {
  font-size: 25px;
}

.academy-article-body h3 {
  font-size: 20px;
}

.academy-article-body p,
.academy-article-body li {
  color: #26364f;
  font-size: 16px;
}

.academy-article-body table {
  border-collapse: collapse;
  display: block;
  margin: 18px 0;
  overflow-x: auto;
  width: 100%;
}

.academy-article-body th,
.academy-article-body td {
  border: 1px solid #dbe4f0;
  padding: 10px 12px;
  text-align: left;
}

body.reader-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .academy-shell {
    width: min(100%, calc(100% - 24px));
    margin: 18px auto;
  }

  .academy-nav {
    padding: 0 28px;
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    justify-self: end;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .academy-quick-links,
  .top-search,
  .login-link,
  .academy-user-menu {
    display: none;
  }

  .academy-nav.open .academy-quick-links,
  .academy-nav.open .top-search,
  .academy-nav.open .login-link,
  .academy-nav.open .academy-user-menu {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .academy-nav.open .academy-user-menu {
    justify-content: flex-start;
  }

  .academy-user-dropdown {
    left: 0;
    right: auto;
  }

  .academy-nav.open .academy-quick-links {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 16px;
  }

  .academy-nav.open .top-search {
    display: block;
  }

  .hero-content {
    padding: 28px;
    grid-template-columns: 1fr;
  }

  .main-categories,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section,
  .academy-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .academy-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot {
    margin-left: 28px;
    margin-right: 28px;
  }
}

@media (max-width: 700px) {
  .academy-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .academy-reader-content {
    padding: 24px;
  }

  .academy-reader-content h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  .academy-reader-summary {
    font-size: 16px;
  }

  .academy-article-body h2 {
    font-size: 22px;
  }

  .academy-article-body h3 {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .main-categories,
  .posts-grid,
  .academy-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .ad-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-banner a {
    width: 100%;
  }

  .subcategory-band {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .subcategory-track {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .section-head-row {
    align-items: start;
    flex-direction: column;
  }

  .academy-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-footer .footer-bottom p:last-child {
    text-align: left;
  }
}
