@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mbb-navy: #0f172a;
  --mbb-blue: #2563eb;
  --mbb-blue-dark: #1d4ed8;
  --mbb-sky: #eff6ff;
  --mbb-gold: #f5c518;
  --mbb-gold-dark: #e0b000;
  --mbb-ink: #111827;
  --mbb-muted: #6b7280;
  --mbb-line: #e5e7eb;
  --mbb-bg: #f7f8fb;
  --mbb-white: #ffffff;
  --mbb-green: #0f766e;
  --mbb-radius: 18px;
  --mbb-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --mbb-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --mbb-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.mbb-home {
  margin: 0;
  background: var(--mbb-bg);
  color: var(--mbb-ink);
  font-family: var(--mbb-font);
  line-height: 1.65;
}
body.mbb-home h1,
body.mbb-home h2,
body.mbb-home h3,
body.mbb-home h4,
body.mbb-home h5,
body.mbb-home h6 {
  font-family: var(--mbb-font);
}

.mbb-skip {
  position: absolute;
  left: -9999px;
}
.mbb-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 2000;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Top bar */
.mbb-topbar {
  background: var(--mbb-navy);
  color: #fff;
  font-size: 13px;
}
.mbb-topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mbb-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.mbb-topbar a:hover { color: var(--mbb-gold); }
.mbb-topbar .free-pill {
  background: var(--mbb-gold);
  color: var(--mbb-navy);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Header */
.mbb-header {
  background: #fff;
  border-bottom: 1px solid var(--mbb-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mbb-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
}
.mbb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mbb-navy);
}
.mbb-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.mbb-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mbb-logo-text strong {
  font-size: 16px;
  font-weight: 800;
}
.mbb-logo-text span {
  font-size: 11px;
  color: var(--mbb-muted);
  font-weight: 600;
}
.mbb-search {
  display: flex;
  width: 180px;
  background: #f8fafc;
  border: 1px solid var(--mbb-line);
  border-radius: 999px;
  overflow: hidden;
}
.mbb-search:focus-within {
  border-color: var(--mbb-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}
.mbb-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.mbb-search button {
  border: 0;
  background: var(--mbb-blue);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.mbb-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mbb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.mbb-btn-wa { background: #25d366; color: #fff; }
.mbb-btn-tg { background: #229ed9; color: #fff; }
.mbb-btn-outline {
  background: #fff;
  color: var(--mbb-blue);
  border-color: #c9d7f8;
}
.mbb-btn-primary {
  background: var(--mbb-blue);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
}
.mbb-btn-primary:hover { background: var(--mbb-blue-dark); color: #fff; }
.mbb-btn:hover { filter: brightness(0.95); color: #fff; }
.mbb-btn-outline:hover { background: var(--mbb-sky); color: var(--mbb-blue); }

.mbb-menu-toggle {
  display: none;
  border: 1px solid var(--mbb-line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--mbb-navy);
  justify-self: end;
}
.mbb-burger {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.mbb-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.mbb-burger span:nth-child(1) { top: 0; }
.mbb-burger span:nth-child(2) { top: 5px; }
.mbb-burger span:nth-child(3) { top: 10px; }
.mbb-menu-toggle.is-open .mbb-burger span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.mbb-menu-toggle.is-open .mbb-burger span:nth-child(2) { opacity: 0; }
.mbb-menu-toggle.is-open .mbb-burger span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}
.mbb-ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}
.mbb-quick .ico .mbb-ico,
.mbb-footer .mbb-ico {
  width: 18px;
  height: 18px;
}
.mbb-sharebox .mbb-ico { width: 16px; height: 16px; }

/* Category nav */
.mbb-catnav {
  background: transparent;
  border: 0;
  min-width: 0;
}
.mbb-catnav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}
.mbb-catnav a {
  display: block;
  padding: 12px 14px;
  color: var(--mbb-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.mbb-catnav a:hover,
.mbb-catnav a.active {
  color: var(--mbb-blue);
  border-bottom-color: var(--mbb-blue);
}

.mbb-preview-banner {
  background: #fff7d6;
  color: #7a5b00;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #f1e1a0;
}

/* Hero */
.mbb-hero {
  background: #fff;
  padding: 40px 16px 8px;
}
.mbb-hero .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.mbb-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.mbb-hero .lead {
  font-size: 16px;
  color: #334155;
  margin-bottom: 16px;
}
.mbb-hero .lead p { margin: 0 0 10px; }
.mbb-resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.mbb-resource-list li {
  background: #fff;
  border: 1px solid var(--mbb-line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
.mbb-why {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mbb-why span {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.mbb-why-title {
  width: 100%;
  font-weight: 800;
  color: var(--mbb-navy);
  margin-bottom: 2px;
}
.mbb-feature {
  background: var(--mbb-blue);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  min-height: 280px;
  box-shadow: var(--mbb-shadow);
  position: relative;
  overflow: hidden;
}
.mbb-feature::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.mbb-feature .kicker {
  display: inline-block;
  background: var(--mbb-gold);
  color: var(--mbb-navy);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.mbb-feature .feature-title {
  font-size: 26px;
  margin: 0 0 8px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  font-weight: 800;
}
.mbb-feature p {
  opacity: 0.92;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.mbb-feature .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--mbb-blue);
  font-weight: 800;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}
.mbb-feature .cta:hover { background: #f8fafc; color: var(--mbb-blue-dark); }
.mbb-feature ul {
  margin: 0 0 18px;
  padding-left: 18px;
  position: relative;
  z-index: 1;
  font-size: 14px;
}

/* Stats */
.mbb-stats {
  max-width: 1200px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 16px 8px;
}
.mbb-stat {
  background: #fff;
  border: 1px solid var(--mbb-line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--mbb-shadow-sm);
}
.mbb-stat b {
  display: block;
  color: var(--mbb-blue);
  font-size: 20px;
}
.mbb-stat span {
  font-size: 12px;
  color: var(--mbb-muted);
  font-weight: 600;
}

/* Notify */
.mbb-notify {
  max-width: 1200px;
  width: calc(100% - 32px);
  margin: 18px auto;
  background: var(--mbb-gold);
  border-radius: var(--mbb-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mbb-notify p {
  margin: 0;
  font-weight: 800;
  color: var(--mbb-navy);
  font-size: 18px;
}
.mbb-notify .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Main sections */
.mbb-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.mbb-section {
  background: #fff;
  border: 1px solid var(--mbb-line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--mbb-shadow-sm);
}
.mbb-section h2 {
  color: var(--mbb-navy);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.3;
}
.mbb-section h3 {
  color: var(--mbb-navy);
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 8px;
}
.mbb-section p,
.mbb-section li {
  color: #334155;
}
.mbb-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.mbb-chip {
  background: var(--mbb-sky);
  color: var(--mbb-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.mbb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.mbb-class {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 16px;
  text-decoration: none;
  color: var(--mbb-navy);
  transition: 0.15s ease;
  cursor: pointer;
  box-shadow: var(--mbb-shadow-sm);
}
.mbb-class strong {
  font-size: 18px;
  font-weight: 800;
}
.mbb-class span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.82;
}
.mbb-class:hover {
  transform: translateY(-2px);
  box-shadow: var(--mbb-shadow);
  filter: brightness(0.97);
}
.mbb-class i { display: none; }

.mbb-grid-books .mbb-class:nth-child(6n+1) { background: #dbeafe; color: #1e3a8a; }
.mbb-grid-books .mbb-class:nth-child(6n+2) { background: #cffafe; color: #155e75; }
.mbb-grid-books .mbb-class:nth-child(6n+3) { background: #dcfce7; color: #166534; }
.mbb-grid-books .mbb-class:nth-child(6n+4) { background: #fef3c7; color: #92400e; }
.mbb-grid-books .mbb-class:nth-child(6n+5) { background: #ede9fe; color: #5b21b6; }
.mbb-grid-books .mbb-class:nth-child(6n) { background: #ffe4e6; color: #9f1239; }

.mbb-grid-solutions .mbb-class:nth-child(6n+1) { background: #ccfbf1; color: #115e59; }
.mbb-grid-solutions .mbb-class:nth-child(6n+2) { background: #e0e7ff; color: #3730a3; }
.mbb-grid-solutions .mbb-class:nth-child(6n+3) { background: #fce7f3; color: #9d174d; }
.mbb-grid-solutions .mbb-class:nth-child(6n+4) { background: #ffedd5; color: #9a3412; }
.mbb-grid-solutions .mbb-class:nth-child(6n+5) { background: #ecfccb; color: #3f6212; }
.mbb-grid-solutions .mbb-class:nth-child(6n) { background: #e0f2fe; color: #075985; }

.mbb-grid-syllabus .mbb-class:nth-child(6n+1) { background: #fef9c3; color: #854d0e; }
.mbb-grid-syllabus .mbb-class:nth-child(6n+2) { background: #fae8ff; color: #86198f; }
.mbb-grid-syllabus .mbb-class:nth-child(6n+3) { background: #c7d2fe; color: #312e81; }
.mbb-grid-syllabus .mbb-class:nth-child(6n+4) { background: #bbf7d0; color: #14532d; }
.mbb-grid-syllabus .mbb-class:nth-child(6n+5) { background: #fed7aa; color: #9a3412; }
.mbb-grid-syllabus .mbb-class:nth-child(6n) { background: #bae6fd; color: #0c4a6e; }

.mbb-grid-papers .mbb-class:nth-child(6n+1) { background: #ffedd5; color: #9a3412; }
.mbb-grid-papers .mbb-class:nth-child(6n+2) { background: #fee2e2; color: #991b1b; }
.mbb-grid-papers .mbb-class:nth-child(6n+3) { background: #fef3c7; color: #92400e; }
.mbb-grid-papers .mbb-class:nth-child(6n+4) { background: #fce7f3; color: #9d174d; }
.mbb-grid-papers .mbb-class:nth-child(6n+5) { background: #e0e7ff; color: #3730a3; }
.mbb-grid-papers .mbb-class:nth-child(6n) { background: #dcfce7; color: #166534; }
.mbb-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}
.mbb-quick a {
  background: #fff;
  border: 1px solid var(--mbb-line);
  border-radius: 16px;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--mbb-navy);
  box-shadow: var(--mbb-shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mbb-quick a:hover {
  border-color: #bcd0ff;
  box-shadow: var(--mbb-shadow);
}
.mbb-quick .ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #fff;
  font-size: 18px;
}
.mbb-quick strong {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  text-align: center;
}
.mbb-quick p {
  margin: 0;
  color: var(--mbb-muted);
  font-size: 13px;
  text-align: center;
}
.mbb-quick .ico-books { background: #2563eb; }
.mbb-quick .ico-solutions { background: #0f766e; }
.mbb-quick .ico-syllabus { background: #1e3a8a; }
.mbb-quick .ico-papers { background: #ea580c; }

.mbb-article hr {
  border: 0;
  border-top: 1px solid var(--mbb-line);
  margin: 22px 0;
}
.mbb-article ul,
.mbb-article ol {
  padding-left: 20px;
}
.mbb-faq details {
  border: 1px solid var(--mbb-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.mbb-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--mbb-navy);
}
.mbb-faq p { margin: 10px 0 0; }

.mbb-article,
.mbb-sharebox,
.mbb-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.mbb-adwrap {
  max-width: 1200px;
  margin: 8px auto 16px;
  min-height: 90px;
}
.mbb-adwrap .adclass {
  width: 100%;
  max-width: 728px;
  min-height: 280px;
  height: 280px;
  overflow: hidden;
  margin: 8px auto;
  background: #f4f4f4;
}
.mbb-adwrap ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 280px;
  height: 280px;
}

.mbb-footer {
  background: #0b1f4d;
  color: #dbe4f5;
  margin-top: 24px;
}
.mbb-footer a { color: #fff; text-decoration: none; }
.mbb-footer a:hover { color: var(--mbb-gold); }
.mbb-footer .sharebar {
  background: var(--mbb-blue);
  color: #fff;
  padding: 14px 16px;
}
.mbb-footer .sharebar .inner,
.mbb-footer .grid,
.mbb-footer .copy {
  max-width: 1200px;
  margin: 0 auto;
}
.mbb-footer .sharebar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mbb-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mbb-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
  padding: 36px 16px;
}
.mbb-footer h6 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: #fff;
}
.mbb-footer .copy {
  text-align: center;
  padding: 14px 16px;
  background: rgba(0,0,0,0.2);
}

.mbb-sharebox {
  background: #fff;
  border: 1px solid var(--mbb-line);
  border-radius: 16px;
  padding: 18px;
  margin: 0 16px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.mbb-sharebox .btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 992px) {
  .mbb-header .inner {
    grid-template-columns: 1fr auto;
  }
  .mbb-menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .mbb-catnav {
    display: none;
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid var(--mbb-line);
    border-radius: 12px;
    box-shadow: var(--mbb-shadow);
    margin-top: 4px;
    overflow: hidden;
  }
  .mbb-catnav.is-open {
    display: block;
  }
  .mbb-catnav ul {
    flex-direction: column;
    justify-content: stretch;
    gap: 0;
  }
  .mbb-catnav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mbb-line);
  }
  .mbb-catnav li:last-child a {
    border-bottom: 0;
  }
  .mbb-catnav a:hover,
  .mbb-catnav a.active {
    background: var(--mbb-sky);
    border-bottom-color: var(--mbb-line);
  }
  .mbb-hero .wrap,
  .mbb-quick,
  .mbb-stats,
  .mbb-footer .grid {
    grid-template-columns: 1fr 1fr;
  }
  .mbb-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mbb-hero { padding-top: 20px; }
  .mbb-hero .wrap,
  .mbb-quick,
  .mbb-stats,
  .mbb-resource-list,
  .mbb-footer .grid {
    grid-template-columns: 1fr;
  }
  .mbb-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mbb-section { padding: 16px; }
}

/* Inner pages — match homepage chrome */
body.mbb-inner #main-content {
  scroll-margin-top: 76px;
}
body.mbb-inner .mbb-crumbs,
body.mbb-inner .mbb-catalog,
body.mbb-inner .breadcrumb {
  scroll-margin-top: 84px;
}
body.mbb-inner #main-content .row:has(.breadcrumb) + * {
  scroll-margin-top: 76px;
}
.mbb-quick-wrap {
  padding-top: 16px;
  padding-bottom: 8px;
}
body.mbb-inner .mbb-grid {
  margin-top: 16px;
}
body.mbb-inner .mbb-class,
body.mbb-inner .mbb-class strong,
body.mbb-inner .mbb-class span {
  color: inherit;
}
body.mbb-inner h1,
body.mbb-inner h2,
body.mbb-inner h3,
body.mbb-inner .card-title {
  color: var(--mbb-navy);
  font-weight: 800;
}
body.mbb-inner .shadow.bg-white.rounded,
body.mbb-inner .card {
  border: 1px solid var(--mbb-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--mbb-shadow-sm) !important;
  background: #fff;
}
body.mbb-inner .breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 10px 4px;
}
body.mbb-inner .breadcrumb a {
  color: var(--mbb-blue);
  text-decoration: none;
}
body.mbb-inner a.text-danger,
body.mbb-inner a.text-danger .card-title,
body.mbb-inner a.text-danger span {
  color: inherit !important;
}
body.mbb-inner a .card.border-danger,
body.mbb-inner .card.border-danger {
  border: 0 !important;
  background: #dbeafe;
  color: #1e3a8a;
  transition: 0.15s ease;
}
body.mbb-inner a:hover .card.border-danger {
  transform: translateY(-2px);
  box-shadow: var(--mbb-shadow) !important;
}
body.mbb-inner .row > [class*="col-"]:nth-child(6n+1) a .card.border-danger { background: #dbeafe; color: #1e3a8a; }
body.mbb-inner .row > [class*="col-"]:nth-child(6n+2) a .card.border-danger { background: #cffafe; color: #155e75; }
body.mbb-inner .row > [class*="col-"]:nth-child(6n+3) a .card.border-danger { background: #dcfce7; color: #166534; }
body.mbb-inner .row > [class*="col-"]:nth-child(6n+4) a .card.border-danger { background: #fef3c7; color: #92400e; }
body.mbb-inner .row > [class*="col-"]:nth-child(6n+5) a .card.border-danger { background: #ede9fe; color: #5b21b6; }
body.mbb-inner .row > [class*="col-"]:nth-child(6n) a .card.border-danger { background: #ffe4e6; color: #9f1239; }
body.mbb-inner a:not([class*="col-"]) > .card.border-danger { text-align: left; }
body.mbb-inner .group-card {
  margin-bottom: 12px;
  border: 1px solid var(--mbb-line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  justify-content: space-between;
  min-height: 52px;
}
body.mbb-inner .whatsapp-card { border-color: #25d366; }
body.mbb-inner .telegram-card { border-color: #229ed9; }
body.mbb-inner .seoquake-nofollow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff !important;
  gap: 6px;
}
body.mbb-inner .whatsapp-card .seoquake-nofollow { background: #25d366; }
body.mbb-inner .telegram-card .seoquake-nofollow { background: #229ed9; }
body.mbb-inner .blurred-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #f0f0f0;
  overflow: hidden;
  border-radius: 12px;
}
body.mbb-inner .contentimg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
body.mbb-inner .colum-1 { width: 23%; margin: 1%; }
@media only screen and (max-width: 600px) {
  body.mbb-inner .colum-1 { width: 45%; margin: 1%; display: inline; }
}
body.mbb-inner .accordion-button {
  font-weight: 800;
  color: var(--mbb-navy);
}
body.mbb-inner .btn-primary {
  background: var(--mbb-blue);
  border-color: var(--mbb-blue);
  border-radius: 10px;
  font-weight: 700;
}

/* Class resource page — textbook catalogue */
.mbb-classpage {
  padding-bottom: 40px;
}
.mbb-classpage .mbb-crumbs {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 4px 0 14px;
}
.mbb-classpage .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
}
.mbb-classpage .breadcrumb-item,
.mbb-classpage .breadcrumb-item.active {
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
}
.mbb-classpage .breadcrumb-item a {
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
}
.mbb-classpage .breadcrumb-item a:hover {
  text-decoration: underline;
  color: #0f172a;
}
.mbb-catalog {
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.mbb-catalog-mast {
  background:
    linear-gradient(90deg, rgba(245, 197, 24, 0.16), transparent 46%),
    #0f172a;
  color: #fff;
  padding: 18px 28px 24px;
  border-bottom: 4px solid #f5c518;
}
.mbb-catalog-kicker {
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  color: #f5c518;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
}
.mbb-catalog-mast h1,
body.mbb-inner .mbb-catalog-mast h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.mbb-classpage .mbb-cms,
.mbb-classpage .mbb-cms p,
.mbb-lead,
.mbb-jump-label {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.7;
}
.mbb-classpage .mbb-cms h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.mbb-classpage .mbb-cms h2,
.mbb-classpage .mbb-cms h3 {
  margin: 22px 0 8px;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}
.mbb-classpage .mbb-cms a {
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: underline;
}
.mbb-panel {
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 18px;
  padding: 26px 28px 24px;
  margin-bottom: 20px;
}
.mbb-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mbb-panel-title {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid #f5c518;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
}
.mbb-count {
  margin: 0;
  flex-shrink: 0;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.mbb-tools-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}
.mbb-jump-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 4px 0 12px;
}
.mbb-relgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.mbb-relink {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 16px 16px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid #94a3b8;
  border-left-width: 6px;
  min-height: 92px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mbb-relink:hover {
  transform: translateY(-2px);
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.mbb-relink-ico {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.mbb-relink-ico .mbb-ico {
  width: 18px;
  height: 18px;
}
.mbb-relink-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mbb-relink strong {
  grid-column: 2;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}
.mbb-relink-book { border-left-color: #0f172a; }
.mbb-relink-book .mbb-relink-ico { background: #0f172a; }
.mbb-relink-book .mbb-relink-kicker { color: #0f172a; }
.mbb-relink-sol { border-left-color: #0f5c56; }
.mbb-relink-sol .mbb-relink-ico { background: #0f5c56; }
.mbb-relink-sol .mbb-relink-kicker { color: #0f5c56; }
.mbb-relink-syl { border-left-color: #1e3a8a; }
.mbb-relink-syl .mbb-relink-ico { background: #1e3a8a; }
.mbb-relink-syl .mbb-relink-kicker { color: #1e3a8a; }
.mbb-relink-paper { border-left-color: #9a3412; }
.mbb-relink-paper .mbb-relink-ico { background: #9a3412; }
.mbb-relink-paper .mbb-relink-kicker { color: #9a3412; }
.mbb-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.mbb-classpage .group-card {
  margin: 0;
  color: #0f172a;
  border-color: #94a3b8;
}
.mbb-channel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}
.mbb-channel-label .fab {
  font-size: 20px;
}
.mbb-classpage .whatsapp-card .mbb-channel-label .fab { color: #047857; }
.mbb-classpage .telegram-card .mbb-channel-label .fab { color: #0b4f75; }
.mbb-classpage .whatsapp-card .seoquake-nofollow { background: #047857; }
.mbb-classpage .telegram-card .seoquake-nofollow { background: #0b4f75; }
.mbb-jump {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mbb-jump-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
}
.mbb-jump-item:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.mbb-jump-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5c518;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mbb-jump-ico .mbb-ico {
  width: 22px;
  height: 22px;
}
.mbb-jump-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mbb-jump-item strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.mbb-jump-copy span {
  font-size: 13px;
  font-weight: 600;
  color: #fde68a;
}
.mbb-jump-go {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background: #f5c518;
  padding: 6px 10px;
  border-radius: 999px;
}
.mbb-booklist {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border: 1px solid #94a3b8;
  border-radius: 14px;
  overflow: hidden;
  counter-reset: book;
}
.mbb-bookitem {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  text-decoration: none;
  color: #0f172a;
}
.mbb-bookitem:last-child { border-bottom: 0; }
.mbb-bookitem::before {
  counter-increment: book;
  content: counter(book, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: #0f172a;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mbb-bookitem:hover {
  background: #eff6ff;
  color: #0f172a;
}
.mbb-bookitem strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.mbb-bookitem-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mbb-lang {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.mbb-open {
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
}
.mbb-catalog-mast h1 small {
  display: inline;
  color: #fde68a;
  font-size: 0.58em;
  font-weight: 700;
}
.mbb-cms-end {
  padding-top: 8px;
}
.mbb-pagestack .blurred-img {
  margin: 0 0 14px;
}
.mbb-pagestack .blurred-img:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: 800px 1067px;
}
.mbb-pagestack .mbb-adwrap {
  margin: 8px auto 20px;
}
.mbb-pagestack .blurred-img:last-child { margin-bottom: 0; }
.mbb-crumbs .mbb-ico {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
.mbb-channel-label .mbb-ico,
.seoquake-nofollow .mbb-ico {
  width: 18px;
  height: 18px;
}
.seoquake-nofollow .mbb-ico { width: 14px; height: 14px; }

/* Inner layout without Bootstrap */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 8px;
  color: #0f172a;
  font-weight: 700;
}
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }
.accordion-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 0;
}
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.p-1 { padding: 0.25rem; }
.p-3 { padding: 1rem; }
.bg-white { background: #fff; }
.rounded { border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}
.card-header {
  font-weight: 800;
  color: #0f172a;
  padding: 12px 16px;
  border-bottom: 1px solid #cbd5e1;
}
.card-body { padding: 16px; }
.mbb-seolist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #94a3b8;
  border-radius: 14px;
  overflow: hidden;
}
.mbb-seolist li {
  margin: 0;
  border-bottom: 1px solid #cbd5e1;
}
.mbb-seolist li:last-child { border-bottom: 0; }
.mbb-seolist a {
  display: block;
  padding: 12px 16px;
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
}
.mbb-seolist a:hover {
  background: #eff6ff;
  color: #0f172a;
}
.mbb-steplist {
  margin: 8px 0 0;
  padding: 0 0 0 22px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.mbb-steplist li { margin: 6px 0; }
.mbb-yearacc {
  margin-top: 14px;
  border: 1px solid #94a3b8;
  border-radius: 14px;
  overflow: hidden;
}
.mbb-yearacc .accordion-item {
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
}
.mbb-yearacc .accordion-item:last-child { border-bottom: 0; }
.mbb-classpage .mbb-yearacc .accordion-button,
body.mbb-inner .mbb-yearacc .accordion-button {
  background: #fff;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: none;
}
.mbb-classpage .mbb-yearacc .accordion-button:not(.collapsed),
body.mbb-inner .mbb-yearacc .accordion-button:not(.collapsed) {
  background: #0f172a;
  color: #fff;
}
.mbb-classpage .mbb-yearacc .accordion-button::after {
  filter: none;
}
.mbb-classpage .mbb-yearacc .accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}
.mbb-yearacc .accordion-body {
  padding: 0;
  background: #fff;
}
.mbb-yearacc .mbb-booklist {
  border: 0;
  border-radius: 0;
  margin: 0;
}
.mbb-panel[id] {
  scroll-margin-top: 84px;
}
@media (max-width: 768px) {
  .mbb-relgrid,
  .mbb-jump,
  .mbb-channels { grid-template-columns: 1fr; }
  .mbb-panel { padding-left: 16px; padding-right: 16px; }
  .mbb-catalog-mast { padding-left: 16px; padding-right: 16px; }
  .mbb-bookitem {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .mbb-bookitem-meta {
    grid-column: 2;
  }
  .mbb-jump-item { grid-template-columns: auto 1fr; }
  .mbb-jump-go { display: none; }
  .mbb-panel-head { flex-direction: column; }
}

