/* ================================================================
   Homepage: Shared Content Elements
   ================================================================ */

.content {
  /*max-width: 1240px;*/
  margin: auto;
  background: #fff;
  padding: 0 48px 48px;
}

/* ================================================================
   Homepage: Hero Slider
   ================================================================ */

.hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: 61% 39%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hero-img,
.hero-copy {
  min-width: 0;
}

.hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.45s ease,
    transform 0.7s ease;
}

.hero-copy {
  padding: 48px 42px;
  background: linear-gradient(135deg, #fff2f2, #fffafa);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.hero.is-changing .hero-img img {
  opacity: 0;
  transform: scale(1.025);
}

.hero.is-changing .hero-copy {
  opacity: 0;
  transform: translateY(10px);
}

.hero-copy__meta strong {
  color: var(--red);
}

.hero h1 {
  font-family: var(--display);
  font-size: var(--fs-50);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -1.25px;
  margin: 25px 0 14px;
}

.hero p {
  color: #70727a;
  font-size: var(--fs-14);
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 390px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px #1112;
  cursor: pointer;
  font-size: var(--fs-27);
}

.prev {
  left: 14px;
}

.next {
  right: 14px;
}

.dots {
  text-align: center;
  padding: 18px;
}

.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  margin: 0 3px;
  border-radius: 50%;
  background: #c7c7c7;
}

.dots .active {
  background: var(--red);
}

/* ================================================================
   Homepage: Blog Highlights
   Three-column editorial cards below the hero.
   ================================================================ */

.blog-highlights {
  margin: 12px 0 58px;
}

.blog-highlights__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dfe2e8;
}

.blog-highlights__heading p {
  margin: 0 0 4px;
  color: #747985;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-highlights__heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-30);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.blog-highlights__heading h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
}

.blog-highlights__heading h2 span {
  color: var(--red);
}

.blog-highlights__heading > a {
  flex: 0 0 auto;
  color: var(--red);
  font-size: var(--fs-14);
  font-weight: 600;
}

.blog-highlights__heading > a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.blog-highlights__heading > a:hover span {
  transform: translateX(4px);
}

.blog-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
}

.blog-card {
  overflow: hidden;
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 29, 42, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(23, 29, 42, 0.13);
}

.blog-card__image {
  position: relative;
  display: block;
  height: 235px;
  overflow: hidden;
  background: #171b24;
}

.blog-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 20, 0.32), transparent 52%);
  pointer-events: none;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.045);
}

.blog-card__image--focus-right img {
  object-position: 70% center;
}

.blog-card__image--focus-left img {
  object-position: 25% center;
}

.blog-card__body {
  padding: 25px 25px 22px;
}

.blog-card__meta {
  margin: -3px 0 14px;
}

.blog-card h3 {
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: var(--fs-22);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.blog-card h3 a:hover {
  color: var(--red);
}

.blog-card__body > p {
  margin: 0 0 16px;
  color: #6e727c;
  /* font-size: var(--fs-16); */
  line-height: 1.7;
}

.blog-card__more {
  color: var(--red);
  font-size: var(--fs-14);
  font-weight: 600;
}

/* ================================================================
   Homepage: Combined Learning Journey
   Curated heading, Learn-Code-Build journey, learning paths and mastery rail.
   ================================================================ */

.campus-way__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 42px;
}

.campus-step {
  --step-color: var(--red);
  --step-soft: #fff0f2;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.campus-step--code {
  --step-color: #7029db;
  --step-soft: #f5f0ff;
}

.campus-step--build {
  --step-color: #275cf6;
  --step-soft: #eff4ff;
}

.campus-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  right: -40px;
  width: 54px;
  border-top: 3px dotted var(--step-color);
  opacity: 0.85;
}

.campus-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 56px;
  right: -40px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--step-color);
  border-right: 3px solid var(--step-color);
  transform: rotate(45deg);
}

.campus-step__icon {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--step-color) 14%, #fff);
  border-radius: 50%;
  background: var(--step-soft);
  color: var(--step-color);
}

.campus-step__icon i {
  font-size: var(--fs-46);
  line-height: 1;
}

.campus-step h3 {
  margin: 0 0 11px;
  color: var(--step-color);
  font-size: var(--fs-20);
  font-weight: 700;
  text-transform: uppercase;
}

.campus-step > p {
  max-width: 250px;
  margin: 0;
  color: #555b66;
  font-size: var(--fs-14);
  line-height: 1.7;
}

/* ================================================================
   Learning path cards and coding roadmap
   ================================================================ */

.learning-paths {
  margin: 0 0 64px;
  padding: 54px 34px 36px;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(238, 32, 37, 0.06), transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(39, 92, 246, 0.07), transparent 26%),
    var(--color-surface);
  box-shadow: 0 18px 46px rgba(25, 32, 49, 0.06);
}

.learning-paths__header {
  margin-bottom: 34px;
  text-align: center;
  background: none;
}

.learning-paths__header > p:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 13px;
}

.learning-paths__header > p:first-child span {
  display: inline-flex;
  padding: 7px 20px;
  border: 1px solid #cad8ff;
  border-radius: 999px;
  background: #f4f7ff;
  color: #275cf6;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.learning-paths__header > p:first-child i {
  color: var(--red);
  font-size: var(--fs-22);
  font-style: normal;
}

.learning-paths__header h2 {
  margin: 0;
  font-size: var(--fs-46);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.learning-paths__header h2 span {
  color: var(--red);
}

.learning-paths__header > p:last-child {
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: var(--fs-18);
}

.learning-paths__content {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.learning-roadmap {
  width: 350px;
  max-width: 100%;
  padding: 24px 22px;
  border: 1px solid #dfe4ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(25, 32, 49, 0.06);
}

.learning-roadmap h3 {
  margin: 0 0 20px;
  font-size: var(--fs-18);
  font-weight: 700;
}

.learning-roadmap ol {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0 0 0 21px;
  list-style: none;
}

.learning-roadmap ol::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  border-left: 1px solid #f3a5a8;
}

.learning-roadmap li {
  position: relative;
  display: grid;
  gap: 5px;
}

.learning-roadmap li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px #f3a5a8;
}

.learning-roadmap li span {
  color: var(--color-muted);
  font-size: var(--fs-14);
}

.learning-roadmap li strong {
  color: var(--ink);
  font-size: var(--fs-14);
  line-height: 1.45;
}

.learning-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.learning-path {
  --path-color: var(--red);
  --path-soft: #fff0f2;
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px;
  border: 1px solid color-mix(in srgb, var(--path-color) 22%, #fff);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  background: var(--path-soft);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.learning-path:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--path-color) 12%, transparent);
}

.learning-path__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--path-soft);
  color: var(--path-color);
}

.learning-path__icon i {
  font-size: var(--fs-30);
  line-height: 1;
}

.learning-path h3 {
  margin: 0 0 10px;
  color: var(--path-color);
  font-size: var(--fs-18);
  font-weight: 700;
}

.learning-path > p {
  margin: 0 0 20px;
  color: #555b66;
  font-size: var(--fs-14);
  line-height: 1.7;
}

.learning-path > a {
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  padding: 7px 17px;
  border: 1px solid color-mix(in srgb, var(--path-color) 25%, #fff);
  border-radius: 999px;
  background: var(--path-soft);
  color: var(--path-color);
  font-size: var(--fs-14);
  font-weight: 600;
}

.learning-path--blue {
  --path-color: #275cf6;
  --path-soft: #eef3ff;
}

.learning-path--teal {
  --path-color: #00a997;
  --path-soft: #ecfbf8;
}

.learning-path--purple {
  --path-color: #7029db;
  --path-soft: #f4efff;
}

.learning-path--orange {
  --path-color: #ff6500;
  --path-soft: #fff3e9;
}

.learning-path--pink {
  --path-color: #ec1684;
  --path-soft: #fff0f7;
}

.learning-mastery {
  margin: 70px 30px 40px;
  padding: 0 22px 20px;
  border: 1px solid #dfe4ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
}

.learning-mastery > h3 {
  width: max-content;
  max-width: 100%;
  margin: -14px auto 20px;
  padding: 0 18px;
  background: var(--color-surface);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.learning-mastery > h3 span {
  color: #6b52e9;
}

.learning-mastery__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.learning-mastery__grid > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: #333946;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.learning-mastery__grid > div:last-child {
  border-right: 0;
}

.learning-mastery__grid i {
  color: var(--red);
  font-size: var(--fs-28);
  line-height: 1;
}

/* ================================================================
   Homepage: Resource Promotional Cards
   ================================================================ */

.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 55px;
}

.promo {
  height: 108px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 7px;
  transition: 0.2s;
}

.promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #1111;
}

.promo em {
  width: 46px;
  font: normal 31px var(--display);
}

.promo span {
  display: flex;
  flex-direction: column;
}

.promo b {
  font-family: var(--display);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: -0.25px;
}

.promo small {
  font-size: var(--fs-14);
  margin-top: 3px;
}

.promo > i {
  font-style: normal;
  margin-left: auto;
  font-size: var(--fs-25);
}

.pink {
  background: var(--pink);
}

.dark {
  background: linear-gradient(135deg, #19191b, #2b2b2e);
  color: #fff;
}

.dark em {
  color: #f2b924;
}

.red {
  background: linear-gradient(135deg, #d20c12, #f3242a);
  color: #fff;
}

/* ================================================================
   Homepage: Editor's Choice
   ================================================================ */

.editors-choice {
  margin: 0 0 64px;
}

.editors-choice__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 18px;
  margin-bottom: 30px;
}

.editors-choice__heading p {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  color: #777b86;
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editors-choice__heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-30);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.editors-choice__heading h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
}

.editors-choice__heading h2 span {
  color: var(--red);
}

.editors-choice__heading div {
  height: 1px;
  margin-bottom: 7px;
  background: linear-gradient(90deg, #d9dce3, transparent);
}

.editors-choice__list {
  display: grid;
  gap: var(--space-10);
}

.choice-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  align-items: center;
}

.choice-story__image {
  height: 250px;
  overflow: hidden;
  border-radius: 14px;
  background: #edf0f5;
}

.choice-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.choice-story__image:hover img {
  transform: scale(1.035);
}

.choice-story__category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #343740;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-story__category::before {
  content: "";
  width: 15px;
  height: 10px;
  background: var(--red);
}

.choice-story h3 {
  max-width: 650px;
  margin: 13px 0 14px;
  font-family: var(--display);
  font-size: var(--fs-25);
  font-weight: 600;
  line-height: 1.3;
  /* letter-spacing: -0.035em; */
}

.choice-story h3 a:hover {
  color: var(--red);
}

.choice-story__content > p {
  max-width: 650px;
  margin: 17px 0 0;
  color: #696d77;
  font-size: var(--fs-16);
  line-height: 1.65;
}

/* ================================================================
   Homepage: Coding Hub
   Full-width tabbed tutorials section before the shared footer.
   ================================================================ */

.coding-hub {
  margin: 72px 0 68px;
}

.coding-hub__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe2e8;
}

.coding-hub__heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-30);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.coding-hub__heading h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
}

.coding-hub__heading h2 span {
  color: var(--red);
}

.coding-hub__heading > a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 600;
}

.coding-hub__heading > a:hover {
  color: var(--red);
}

.coding-center {
  width: 100%;
  min-width: 0;
}

.coding-recent > h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: var(--fs-18);
  font-weight: 600;
}

.coding-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.coding-tabs button {
  width: fit-content;
  padding: 13px 25px;
  border: 0;
  border-radius: 6px;
  background: #f1f2f5;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: 500;
  text-align: center;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.coding-tabs button:hover,
.coding-tabs button.active {
  background: var(--red);
  color: #fff;
}

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

.coding-tabs button:focus-visible {
  outline: 3px solid rgba(238, 30, 39, 0.2);
  outline-offset: 2px;
}

.coding-center.is-updating .coding-feature-grid,
.coding-center.is-updating .coding-recent {
  opacity: 0;
  transform: translateY(7px);
}

.coding-feature-grid,
.coding-recent {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.coding-feature-grid {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.75fr)
    minmax(0, 1.55fr)
    minmax(190px, 0.75fr);
  gap: 16px;
}

.coding-feature-stack {
  display: grid;
  gap: 16px;
}

.coding-feature {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: #161b25;
}

.coding-feature--large {
  min-height: 316px;
}

.coding-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(7, 10, 16, 0.92));
}

.coding-feature img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.coding-feature:hover img {
  transform: scale(1.045);
}

.coding-feature > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 18px;
  color: #fff;
}

.coding-feature span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--red);
  font-size: var(--fs-14);
  font-weight: 600;
  text-transform: uppercase;
}

.coding-feature h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: var(--fs-18);
  font-weight: 600;
  line-height: 1.35;
}

.coding-feature-stack .coding-feature h3 {
  margin-bottom: 0;
  font-size: 13px;
}

.coding-feature--large h3 {
  font-size: var(--fs-22);
}

.coding-feature p {
  margin: 0;
  font-size: var(--fs-14);
}

.coding-recent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  margin-top: 28px;
}

.coding-recent > h3 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.coding-recent > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e4e9;
}

.coding-recent article {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e7e9ed;
}

.coding-recent__image {
  height: 125px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef0f4;
}

.coding-recent article span {
  color: var(--red);
  font-size: var(--fs-14);
  font-weight: 600;
  text-transform: uppercase;
}

.coding-recent h4 {
  margin: 7px 0;
  font-family: var(--display);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.4;
}

.coding-recent article p {
  margin: 0;
  color: #7a7f89;
  font-size: var(--fs-14);
}

.coding-recent__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.coding-recent__image:hover img {
  transform: scale(1.045);
}

/* ================================================================
   Homepage: Responsive — Large and Below
   Bootstrap lg breakpoint
   ================================================================ */

@media (max-width: 991.98px) {
  .hero {
    min-height: 500px;
    grid-template-columns: 56% 44%;
  }

  .hero-copy {
    padding: 36px 32px;
  }

  .hero h1 {
    font-size: var(--fs-30);
  }

  .coding-recent {
    grid-template-columns: 1fr;
  }

  .coding-tabs button {
    width: auto;
    flex: 1 1 calc(33.333% - 8px);
  }

}

/* ================================================================
   Homepage: Responsive — Medium and Below
   Bootstrap md breakpoint
   ================================================================ */

@media (max-width: 767.98px) {
  .content {
    padding-inline: 18px;
  }

  .hero {
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
  }

  .hero-img {
    height: 370px;
  }

  .hero-copy {
    padding: 35px;
  }

  .arrow {
    top: 185px;
  }

  .promos {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .promo {
    height: 95px;
  }

  .blog-highlights__grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  }

  .blog-card__image {
    height: 100%;
    min-height: 285px;
  }

  .editors-choice {
    margin-bottom: 48px;
  }

  .choice-story {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .choice-story__image {
    height: 310px;
  }

  .coding-hub {
    margin-block: 52px;
  }

  .coding-feature-grid {
    grid-template-columns: 1fr;
  }

  .coding-feature-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* ================================================================
   Homepage: Responsive — Small and Below
   Bootstrap sm breakpoint
   ================================================================ */

@media (max-width: 575.98px) {
  .hero-img {
    height: 260px;
  }

  .hero-copy {
    padding: 27px 22px;
  }

  .hero h1 {
    font-size: var(--fs-30);
    line-height: 1.18;
    margin: 20px 0 12px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .prev {
    left: 12px;
  }

  .next {
    right: 12px;
  }

  .arrow {
    top: 130px;
  }

  .blog-highlights {
    margin-bottom: 42px;
  }

  .blog-highlights__heading {
    align-items: flex-start;
  }

  .blog-highlights__heading > a {
    margin-top: 9px;
  }

  .blog-card {
    display: block;
  }

  .blog-card__image {
    height: 225px;
    min-height: 0;
  }

  .coding-hub__heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .coding-hub__heading > a {
    margin-top: 9px;
  }

  .coding-tabs {
    gap: 8px;
  }

  .coding-tabs button {
    flex-basis: calc(50% - 4px);
    padding-inline: 14px;
  }

  .coding-tabs button:last-child {
    flex-basis: 100%;
  }

  .coding-feature-grid {
    grid-template-columns: 1fr;
  }

  .coding-feature--large,
  .coding-feature {
    min-height: 235px;
  }

  .coding-feature-stack {
    grid-template-columns: 1fr;
  }

  .coding-recent article {
    grid-template-columns: 1fr;
  }

  .coding-recent__image {
    height: 210px;
  }

  .coding-recent__image img {
    width: 100%;
    height: 100%;
  }

  .editors-choice__heading {
    column-gap: 12px;
    margin-bottom: 24px;
  }

  .editors-choice__heading h2::before {
    width: 8px;
    height: 8px;
  }

  .editors-choice__list {
    gap: 38px;
  }

  .choice-story__image {
    height: 230px;
  }

  .choice-story h3 {
    margin-block: 11px 13px;
    font-size: var(--fs-20);
  }

}

/* ================================================================
   Homepage: Combined Learning Journey — Responsive
   ================================================================ */

@media (max-width: 991.98px) {
  .campus-step:not(:last-child)::after {
    right: -31px;
    width: 36px;
  }

  .campus-step:not(:last-child)::before {
    right: -31px;
  }

}

@media (max-width: 767.98px) {
  .campus-way__steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .campus-step:not(:last-child)::before,
  .campus-step:not(:last-child)::after {
    display: none;
  }

  .campus-step > p {
    max-width: 420px;
  }

}

@media (max-width: 991.98px) {
  .learning-paths {
    padding: 44px 28px 32px;
  }

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

  .learning-paths__content {
    grid-template-columns: 1fr;
  }

  .learning-roadmap {
    width: 100%;
  }

  .learning-roadmap ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-roadmap ol::before {
    display: none;
  }

  .learning-roadmap li {
    padding-left: 18px;
  }

  .learning-roadmap li::before {
    left: 0;
  }

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

  .learning-mastery__grid > div:nth-child(3) {
    border-right: 0;
  }

  .learning-mastery__grid > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 575.98px) {
  .learning-paths {
    margin-bottom: 46px;
    padding: 38px 18px 26px;
  }

  .learning-paths__header h2 {
    font-size: var(--fs-30);
    letter-spacing: 0;
  }

  .learning-paths__header > p:first-child span {
    padding-inline: 14px;
  }

  .learning-paths__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .learning-roadmap ol {
    grid-template-columns: 1fr;
  }

  .learning-path {
    min-height: 0;
  }

  .learning-mastery {
    padding-inline: 12px;
  }

  .learning-mastery > h3 {
    font-size: var(--fs-14);
    letter-spacing: 0.1em;
  }

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

  .learning-mastery__grid > div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .learning-mastery__grid > div:nth-child(2n) {
    border-right: 0;
  }

  .learning-mastery__grid > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img img,
  .hero-copy {
    transition: none;
  }
}
