.mp-topic-hero,
	.mp-learn-box {
	  max-width: 1440px;
	  margin: 0 auto;
	  box-sizing: border-box;
	}
		
	.mp-topic-hero,
	.mp-topic-buttons,
	.mp-learn-box {
	  max-width: 1440px;
	}

	.mp-topic-hero {
	  padding: 12px 28px 18px;
	  grid-template-columns: 40% 60%;
	}

	.mp-topic-buttons {
	  padding: 22px 34px;
	}

	.mp-learn-box {
	  padding: 22px 34px 30px;
	}

	.mp-topic-hero {
	  display: grid;
	  grid-template-columns: 1fr 1fr;
	  gap: 34px;
	  align-items: center;
	  text-align: left;
	  padding: 12px 34px 28px;
	  background: #fff;
	  border: 1px solid #e4e9f5;
	  border-radius: 18px 18px 0 0;
	}
	
	.mp-topic-copy {
	  text-align: left;
	  padding-left: 20px;
	}

	.mp-topic-copy h1 {
	  margin: 0 0 18px;
	  font-family: Nunito, Arial, sans-serif;
	  font-size: 48px;
	  line-height: 1.05;
	  font-weight: 900;
	  color: #17115f;
	}

	.mp-topic-copy p {
	  max-width: 600px;
	  margin: 0 0 22px;
	  font-family: Nunito, Arial, sans-serif;
	  font-size: 28px;
	  line-height: 1.45;
	  font-weight: 700;
	  color: #111;
	  text-align: left;
	}

	.mp-grade-label {
	  font-family: Nunito, Arial, sans-serif;
	  font-size: 24px;
	  font-weight: 900;
	  text-transform: uppercase;
	  color: #5a22d6;
	}

	.mp-topic-image img {
	  display: block;
	  width: 100%;
	  border-radius: 16px;
	}
		
	.mp-topic-buttons {
	  max-width: 1440px;
	  margin: 0 auto;
	  padding: 18px 34px;
	  display: grid;
	  grid-template-columns: repeat(5, 1fr);
	  gap: 22px;
	  background: #fff;
	  border-left: 1px solid #e4e9f5;
	  border-right: 1px solid #e4e9f5;
	  box-sizing: border-box;
	}

	.mp-pill {
	  width: 100%;
	  padding: 14px 10px;
	  border-radius: 999px;
	  font-family: Nunito, Arial, sans-serif;
	  font-size: 20px;
	  line-height: 1.15;
	  font-weight: 800;
	  text-align: center;
	  color: #fff;
	  text-decoration: none;
	  box-sizing: border-box;
	  box-shadow: inset 0 -4px 0 rgba(0,0,0,.16);
	}
		
	

	.mp-pill.purple { background: #6533d9; }
	/*.mp-pill.blue   { background: #2176de; }*/
	.mp-pill.green  { background: #58b935; }
	.mp-pill.orange { background: #ff7800; }
	.mp-pill.red    { background: #ef4056; }
	.mp-pill.teal   { background: #12aaa7; }
		

	.mp-topic-buttons .mp-pill:hover,
	.mp-topic-buttons .mp-pill:active {
		color: #fff;
		text-decoration:underline;
	}

		
		
	.mp-learn-box {
	  padding: 22px 34px 30px;
	  background: #fff;
	  border: 1px solid #e4e9f5;
	  border-radius: 0 0 18px 18px;
	}

	.mp-learn-box h2 {
	  margin: 0 0 22px;
	  font-family: Nunito, Arial, sans-serif;
	  font-size: 18px;
	  font-weight: 900;
	  text-transform: uppercase;
	  color: #4b22bd;
	  text-align: left;
	}

	.mp-learn-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: start;
}

.mp-learn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-family: Nunito, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  color: #000;
}

.mp-learn-item span:last-child {
  width: 120px;
  text-align: left;
}

.mp-learn-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.big-icon {
  font-size: 30px;
}


	.mp-learn-icon.green  { background: #5dbb35; }
	.mp-learn-icon.purple { background: #7042e8; }
	.mp-learn-icon.blue   { background: #2481e6; }
	.mp-learn-icon.orange { background: #ff7a00; }
	.mp-learn-icon.teal   { background: #12aaa7; }
	.mp-learn-icon.red    { background: #ef4056; }
	.mp-learn-icon.yellow { background: #f6b700; }	

.mp-game-sections {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 34px 28px;
  background: #fff;
  border-left: 1px solid #e4e9f5;
  border-right: 1px solid #e4e9f5;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
  row-gap: 28px;
}

.mp-game-category {
  padding: 18px 18px 22px;
  border: 1px solid #dfe5f2;
  border-radius: 14px;
  background: #fafcff;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.mp-category-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e9f5;
  text-align: left;
}

.mp-category-head h2 {
  text-align: left;
  margin: 0 0 6px;
  font-family: Nunito, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  color: #4d20c7;
}

.mp-category-head p {
  margin: 0;
  font-family: Nunito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.mp-category-head a,
.mp-category-head a:visited,
.mp-category-head a:hover {
  flex: 0 0 auto;
  margin-top: 3px;
  font-family: Nunito, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #045bd8;
  text-decoration: none;
}

.mp-category-head a:hover {
  text-decoration: underline;
}

.mp-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mp-game-card,
.mp-game-card:visited,
.mp-game-card:hover {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.mp-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #cfd7e8;
  box-shadow: 0 3px 7px rgba(0,0,0,.18);
  box-sizing: border-box;
}

.mp-game-card span {
  display: block;
  margin-top: 10px;
  font-family: Nunito, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
  color: #111;
}

.mp-game-card:hover span {
  text-decoration: underline;
}

.mp-final-section {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #e4e9f5;
  border-right: 1px solid #e4e9f5;
  border-bottom: 1px solid #e4e9f5;
  border-radius: 0 0 18px 18px;
  font-family: Nunito, Arial, sans-serif;
  box-sizing: border-box;
}

.mp-final-top {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 34px;
  padding: 24px 34px 28px;
  border-top: 1px solid #dfe5f2;
  border-bottom: 1px solid #dfe5f2;
}

.mp-tools h2,
.mp-related h2,
.mp-why-copy h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  color: #4d20c7;
}

.mp-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mp-tool-card,
.mp-tool-card:visited,
.mp-tool-card:hover {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #f6f9ff;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.mp-tool-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: #10104f;
}

.mp-tool-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.mp-tool-card span {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #6a34d9;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  color: #6a34d9;
  background: #fff;
}

.mp-tool-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.mp-related {
  padding-left: 28px;
  border-left: 1px solid #dfe5f2;
}

.mp-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-related li {
  margin: 0 0 11px;
  font-size: 17px;
  font-weight: 900;
}

.mp-related a,
.mp-related a:visited {
  color: #075ed8;
  text-decoration: none;
}

.mp-related a:hover {
  color: #075ed8;
  text-decoration: underline;
}

.mp-why-row {
  display: block;
  text-align: center;
  padding: 22px 34px 28px;
}

.mp-why-copy h2 {
  margin: 0 0 12px;
  text-align: center;
}

.mp-why-copy p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  color: #111;
  text-align: center;
}

.mp-teacher-callout,
.mp-teacher-callout:visited,
.mp-teacher-callout:hover {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: #f2eafa;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.mp-star {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6b3be5;
  color: #fff;
  font-size: 30px;
}

.mp-teacher-callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.mp-teacher-callout p {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
}

.mp-teacher-callout span {
  font-size: 18px;
  font-weight: 800;
  color: #075ed8;
}

.mp-teacher-callout:hover span {
  text-decoration: underline;
}

.mp-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #eef7ff;
  border-radius: 0 0 18px 18px;
  padding: 20px 34px;
  gap: 24px;
}

.mp-trust-row div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  color: #075ed8;
}

.mp-trust-row span {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #075ed8;
}

.mp-topic-intro {
  display: flex;
  justify-content: center;
  margin-left: 5%;
  margin-right: 5%;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

/* ---------- Small Desktop / Large Tablet ---------- */
@media (max-width: 1399px) and (min-width: 1051px) {

  .mp-topic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: center;
  }

  .mp-topic-image {
    min-width: 0;
  }

  .mp-topic-image img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
  }
  .mp-topic-copy h1 {
    font-size: 52px;
  }

  .mp-topic-copy p {
    font-size: 21px;
  }

  .mp-topic-buttons {
    gap: 14px;
  }

  .mp-pill {
    font-size: 16px;
    padding: 12px 8px;
  }

  .mp-learn-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }

  .mp-learn-item {
    gap: 8px;
  }

  .mp-learn-item span:last-child {
    width: 90px;
    font-size: 15px;
  }

  .mp-game-sections {
    column-gap: 20px;
    row-gap: 24px;
  }

  .mp-game-category {
    padding: 14px;
  }

  .mp-game-grid {
    gap: 12px;
  }

  .mp-game-card span {
    font-size: 13px;
    line-height: 1.1;
  }

  .mp-category-head h2 {
    font-size: 20px;
  }

  .mp-category-head p {
    font-size: 14px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1399px) and (min-width: 701px) {

  .mp-topic-hero {
    grid-template-columns: 1fr;
    padding: 30px 24px 24px;
  }

  .mp-topic-copy h1 {
    font-size: 42px;
  }

  .mp-topic-copy p {
    font-size: 20px;
  }

  .mp-topic-buttons {
    padding: 18px 24px;
    grid-template-columns: repeat(3, 1fr);
  }

  .mp-learn-box {
    padding: 20px 24px 24px;
  }

  .mp-learn-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
    column-gap: 24px;
  }

  .mp-learn-item {
    justify-content: flex-start;
  }

  .mp-learn-item span:last-child {
    width: auto;
  }

  .mp-game-sections {
    grid-template-columns: 1fr;
    padding: 24px;
    row-gap: 24px;
  }

  .mp-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mp-final-top,
  .mp-why-row {
    grid-template-columns: 1fr;
  }

  .mp-related {
    padding-left: 0;
    border-left: 0;
  }

  .mp-tool-card {
    grid-template-columns: 1fr;
  }
}


/* ---------- Phone ---------- */
@media (max-width: 700px) {

  .mp-topic-hero {
    grid-template-columns: 1fr;
    padding: 28px 18px 22px;
  }

  .mp-topic-copy h1 {
    font-size: 34px;
  }

  .mp-topic-copy p {
    font-size: 19px;
  }

  .mp-topic-buttons {
    padding: 16px 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mp-pill {
    width: 100%;
  }

  .mp-learn-box {
    padding: 20px 18px;
  }

  .mp-learn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .mp-learn-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .mp-learn-item span:last-child {
    width: auto;
    text-align: center;
  }

  .mp-game-sections {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    row-gap: 22px;
  }

  .mp-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mp-category-head {
    flex-direction: column;
    gap: 8px;
  }

  .mp-tool-grid,
  .mp-trust-row {
    grid-template-columns: 1fr;
  }

  .mp-final-top,
  .mp-why-row,
  .mp-trust-row {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* ---------- Small Phone ---------- */
@media (max-width: 520px) {

  .mp-topic-copy h1 {
    font-size: 30px;
  }

  .mp-learn-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1051px) and (max-width: 1399px) {

  .mp-topic-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px) !important;
    gap: 24px;
    align-items: center;
  }

  .mp-topic-copy {
    min-width: 0;
  }

  .mp-topic-image {
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .mp-topic-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
  }
}