.chapters-page {
  --chapter-dark: #073f36;
  --chapter-green: #2fa56f;
  --chapter-gold: #e7a327;
  --chapter-mint: #e4f2ec;
  --chapter-cream: #fbf8f0;
  color: #17251f;
  overflow: hidden;
}

.chapters-page .container,
.chapters-footer .container {
  max-width: 980px;
}

.chapters-page h1,
.chapters-page h2,
.chapters-page h3,
.chapters-page strong {
  font-family: var(--font-sans);
}

.chapters-hero {
  background: var(--chapter-dark);
  color: #fff;
  padding: 3rem 0 2.2rem;
  position: relative;
}

.chapters-orb {
  background: var(--chapter-gold);
  border-radius: 50%;
  bottom: -28px;
  height: 160px;
  left: -80px;
  position: absolute;
  width: 160px;
}

.chapters-breadcrumb {
  align-items: center;
  color: var(--chapter-gold);
  display: flex;
  flex-wrap: wrap;
  font-size: .62rem;
  gap: .35rem;
  margin-bottom: 1rem;
}

.chapters-breadcrumb a {
  color: #d4e3dd;
}

.chapters-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.chapters-hero > .container > p {
  color: #d4e4de;
  font-size: .8rem;
  line-height: 1.6;
  margin: 0 0 2.4rem;
  max-width: 600px;
}

.chapters-stats {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  color: #183029;
}

.chapters-stats > div {
  padding: 1.25rem .5rem;
  position: relative;
}

.chapters-stats > div:not(:last-child)::after {
  background: #dce8e3;
  content: "";
  height: 62%;
  position: absolute;
  right: 0;
  top: 19%;
  width: 6px;
}

.chapters-stats strong {
  color: var(--chapter-green);
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.chapters-stats span {
  display: block;
  font-size: .54rem;
  margin-top: .2rem;
}


.region-tabs {
  background: #fff;
  border-bottom: 7px solid #dfece6;
}

.region-tabs .container {
  overflow-x: auto;
}

.region-tabs a {
  color: #34463f;
  flex: 1 0 auto;
  font-size: .66rem;
  font-weight: 700;
  min-width: 105px;
  padding: 1.05rem .75rem .85rem;
  text-align: center;
}

.region-tabs a:hover,
.region-tabs a.active {
  color: var(--chapter-green);
}

/* .region-tabs a.active {
  box-shadow: inset 0 -7px var(--chapter-green);
} */

.chapters-region {
  background-color: #fff;
  background-image: radial-gradient(#dce4e0 .75px, transparent .75px);
  background-size: 18px 18px;
  border-bottom: 7px solid #dfece6;
  padding: 3.2rem 0 4rem;
  scroll-margin-top: 70px;
}

.chapters-region.region-cream {
  background-color: var(--chapter-cream);
}

.region-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 2.1rem;
}

.region-icon {
  background: var(--chapter-mint);
  border-radius: 9px;
  flex: 0 0 38px;
  height: 38px;
}

.region-heading h2 {
  color: #16483b;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .15rem;
}

.region-heading p {
  color: #5b6a64;
  font-size: .62rem;
  margin: 0;
}

.chapter-card {
  background: #fff;
  border: 1px solid #dbe5e0;
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(10, 55, 46, .035);
  height: 100%;
  overflow: hidden;
}

.chapter-card-header {
  align-items: flex-end;
  color: #fff;
  display: flex;
  gap: .65rem;
  height: 118px;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.chapter-card-header::after {
  background: linear-gradient(90deg, rgba(4, 40, 33, .72), rgba(4, 40, 33, .22));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.country-flag {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: .6;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.chapter-card-header strong {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.chapter-green { background: linear-gradient(135deg, #075847, #2eaa72); }
.chapter-gold { background: linear-gradient(135deg, #966100, #e8a329); }
.chapter-olive { background: linear-gradient(135deg, #234700, #5f8f09); }
.chapter-teal { background: linear-gradient(135deg, #075347, #1a9c71); }
.chapter-red { background: linear-gradient(135deg, #a8291f, #df5a45); }
.chapter-amber { background: linear-gradient(135deg, #9f6700, #eda928); }
.chapter-lime { background: linear-gradient(135deg, #3e6500, #7b9b0b); }
.chapter-emerald { background: linear-gradient(135deg, #075845, #2da16d); }
.chapter-saffron { background: linear-gradient(135deg, #a66700, #efa72b); }
.chapter-pakistan { background: linear-gradient(135deg, #07513d, #23a06a); }
.chapter-blue { background: linear-gradient(135deg, #173c83, #3c70d4); }
.chapter-mexico { background: linear-gradient(135deg, #07563f, #29a369); }

.chapter-card-body {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: .9rem 1rem .75rem;
}

.chapter-tag {
  align-self: flex-start;
  background: #eef7f2;
  border-radius: 999px;
  color: #27885f;
  font-size: .48rem;
  font-weight: 800;
  margin-bottom: .55rem;
  padding: .25rem .55rem;
  text-transform: uppercase;
}

.chapter-card h3 {
  color: #172a24;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.chapter-card-body > p {
  color: #52605b;
  font-size: .62rem;
  line-height: 1.5;
  margin-bottom: .9rem;
}

.chapter-card-footer {
  align-items: center;
  border-top: 1px solid #e3e9e6;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .65rem;
}

.chapter-status {
  align-items: center;
  color: #21a169;
  display: flex;
  font-size: .48rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chapter-status i {
  background: #21a169;
  border-radius: 50%;
  height: 5px;
  margin-right: .2rem;
  width: 5px;
}

.chapter-status.emerging {
  color: #d58d12;
}

.chapter-status.emerging i {
  background: #d58d12;
}

.chapter-arrow {
  align-items: center;
  background: #e5eee9;
  border-radius: 50%;
  color: #7b8d85;
  display: flex;
  font-size: .65rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

a.chapter-arrow-link {
  background: var(--chapter-green, #2f9e69);
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}

a.chapter-arrow-link:hover,
a.chapter-arrow-link:focus-visible {
  background: var(--chapter-dark, #0f2e28);
  color: #fff;
  transform: scale(1.08);
}

.chapters-cta {
  background: var(--chapter-cream);
  padding: 3.5rem 0;
}

.chapters-cta > .container {
  background: var(--chapter-dark);
  border-radius: 9px;
  color: #fff;
  padding: 2.7rem 3rem;
}

.chapters-cta span {
  color: var(--chapter-gold);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chapters-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: .55rem 0 .65rem;
}

.chapters-cta p {
  color: #cbded7;
  font-size: .68rem;
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

.btn-chapter-primary,
.btn-chapter-outline {
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 700;
  padding: .65rem 1rem;
}

.btn-chapter-primary {
  background: var(--chapter-gold);
  border-color: var(--chapter-gold);
  color: #17382f;
}

.btn-chapter-primary:hover {
  background: #f2b63d;
  border-color: #f2b63d;
}

.btn-chapter-primary b {
  float: right;
}

.btn-chapter-outline {
  border-color: #4d786c;
  color: #fff;
}

.btn-chapter-outline:hover {
  background: #fff;
  color: var(--chapter-dark);
}

.chapters-footer .footer-stat {
  color: var(--chapter-gold);
}

@media (max-width: 991.98px) {
  .chapters-hero {
    padding-bottom: 2rem;
  }

  .chapter-card-header {
    height: 105px;
  }
}

@media (max-width: 767.98px) {
  .chapters-orb {
    display: none;
  }

  .chapters-stats > div:nth-child(2)::after {
    display: none;
  }

  .chapters-stats > div {
    padding: .9rem .35rem;
  }

  .chapters-region {
    padding: 2.7rem 0 3rem;
  }

  .chapter-card-body {
    min-height: 190px;
  }

  .chapters-cta {
    padding: 2.5rem .75rem;
  }

  .chapters-cta > .container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .chapters-hero h1 {
    font-size: 2rem;
  }

  .chapter-card-header {
    height: 95px;
  }

  .chapter-card-body {
    min-height: 0;
  }
}
