/* =====================================================
   CATHOLICG33K — CHRISTIANITY FOUNDATIONS LESSONS V2
===================================================== */

.cg-foundations-v2 {
  overflow: hidden;
}

.cg-foundations-v2-header .cg-kicker {
  margin-bottom: .85rem;
}

.cg-foundations-v2-series {
  display: grid;
  grid-template-columns: minmax(210px,.72fr) minmax(0,2.28fr);
  max-width: 1120px;
  margin: 0 auto clamp(3.5rem,7vw,5.8rem);
  overflow: hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.023),rgba(255,255,255,.007)),
    #070910;
  border: 1px solid rgba(217,163,0,.18);
}

.cg-foundations-v2-series-home {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  color: inherit;
  border-right: 1px solid rgba(217,163,0,.18);
  text-decoration: none;
}

.cg-foundations-v2-series-home span,
.cg-foundations-v2-series a > span {
  color: rgba(217,163,0,.72);
  font-family: var(--cg-font-heading);
  font-size: .58rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.cg-foundations-v2-series-home strong {
  margin-top: .3rem;
  color: #fff;
  font-family: var(--cg-font-heading);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cg-foundations-v2-series ol {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-foundations-v2-series li {
  min-width: 0;
  border-right: 1px solid rgba(217,163,0,.12);
}

.cg-foundations-v2-series li:last-child {
  border-right: 0;
}

.cg-foundations-v2-series li a {
  position: relative;
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: .9rem .75rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: .25s ease;
}

.cg-foundations-v2-series li a strong {
  display: block;
  margin-top: .35rem;
  overflow: hidden;
  color: rgba(245,241,232,.58);
  font-family: var(--cg-font-heading);
  font-size: .53rem;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.cg-foundations-v2-series li a:hover,
.cg-foundations-v2-series li a[aria-current="page"] {
  background: rgba(217,163,0,.065);
}

.cg-foundations-v2-series li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cg-gold);
  box-shadow: 0 0 14px rgba(217,163,0,.42);
}

.cg-foundations-v2-series li a[aria-current="page"] strong {
  color: #fff;
}

.cg-foundations-v2-scripture {
  position: relative;
  max-width: 1020px;
  margin: 0 auto clamp(4.4rem,8vw,7rem);
  padding: clamp(2.5rem,6vw,4.4rem) clamp(1.35rem,7vw,5.2rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%,rgba(217,163,0,.11),transparent 48%),
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.006));
  border-top: 1px solid rgba(217,163,0,.26);
  border-bottom: 1px solid rgba(217,163,0,.26);
}

.cg-foundations-v2-scripture-number {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(217,163,0,.035);
  font-family: var(--cg-font-heading);
  font-size: clamp(7rem,19vw,15rem);
  line-height: 1;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cg-foundations-v2-scripture blockquote {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.4rem,4vw,2.2rem);
  font-style: italic;
  line-height: 1.62;
  text-wrap: balance;
}

.cg-foundations-v2-scripture > p {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  color: var(--cg-gold);
  font-family: var(--cg-font-heading);
  font-size: .67rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.cg-foundations-v2-intro,
.cg-foundations-v2-reflection {
  max-width: 880px;
  margin: 0 auto clamp(4.7rem,8vw,7.2rem);
}

.cg-foundations-v2-intro h2,
.cg-foundations-v2-section h2,
.cg-foundations-v2-feature h2,
.cg-foundations-v2-truths h2,
.cg-foundations-v2-reflection h2,
.cg-foundations-v2-prayer h2,
.cg-foundations-v2-next h2 {
  margin: 0;
  color: #fff;
  font-family: var(--cg-font-heading);
  font-size: clamp(1.5rem,3.5vw,2.3rem);
  font-weight: 500;
  letter-spacing: .072em;
  line-height: 1.36;
  text-transform: uppercase;
  text-wrap: balance;
}

.cg-foundations-v2-intro h2::after,
.cg-foundations-v2-reflection h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 1.25rem 0 1.7rem;
  background: rgba(217,163,0,.72);
}

.cg-foundations-v2-intro > p:not(.cg-kicker),
.cg-foundations-v2-reflection > p:not(.cg-kicker),
.cg-foundations-v2-section-copy > p:not(.cg-kicker) {
  margin: 0 0 1.15rem;
  color: rgba(245,241,232,.78);
  font-size: 1rem;
  line-height: 1.9;
}

.cg-foundations-v2-sections {
  max-width: 1040px;
  margin: 0 auto clamp(4.7rem,8vw,7.2rem);
}

.cg-foundations-v2-section {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr);
  gap: clamp(1.1rem,4vw,2.35rem);
  padding: clamp(2.2rem,5vw,3.6rem) 0;
  border-top: 1px solid rgba(217,163,0,.14);
}

.cg-foundations-v2-section:last-child {
  border-bottom: 1px solid rgba(217,163,0,.14);
}

.cg-foundations-v2-section-marker {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: rgba(217,163,0,.82);
  background: rgba(217,163,0,.038);
  border: 1px solid rgba(217,163,0,.26);
  border-radius: 50%;
  font-family: var(--cg-font-heading);
  font-size: .68rem;
  letter-spacing: .13em;
}

.cg-foundations-v2-section-copy .cg-kicker {
  margin-bottom: .65rem;
}

.cg-foundations-v2-section-copy h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(1.3rem,3vw,1.9rem);
}

.cg-foundations-v2-inline-quote {
  margin: 1.7rem 0 0;
  padding: 1.25rem 1.4rem;
  background: rgba(217,163,0,.038);
  border-left: 2px solid rgba(217,163,0,.58);
}

.cg-foundations-v2-inline-quote p {
  margin: 0;
  color: rgba(255,255,255,.90);
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
}

.cg-foundations-v2-inline-quote cite {
  display: block;
  margin-top: .7rem;
  color: rgba(217,163,0,.78);
  font-family: var(--cg-font-heading);
  font-size: .61rem;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cg-foundations-v2-feature,
.cg-foundations-v2-truths,
.cg-foundations-v2-prayer {
  max-width: 1060px;
  margin: 0 auto clamp(4.7rem,8vw,7.2rem);
  padding: clamp(1.7rem,5vw,2.8rem);
  background:
    radial-gradient(circle at 0% 0%,rgba(217,163,0,.08),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.026),rgba(255,255,255,.008)),
    #070910;
}

.cg-foundations-v2-feature:hover,
.cg-foundations-v2-truths:hover,
.cg-foundations-v2-prayer:hover {
  transform: none;
  border-color: rgba(217,163,0,.34);
}

.cg-foundations-v2-feature > header,
.cg-foundations-v2-truths,
.cg-foundations-v2-prayer {
  text-align: center;
}

.cg-foundations-v2-feature > header {
  max-width: 790px;
  margin: 0 auto 2rem;
}

.cg-foundations-v2-feature > header > p:last-child {
  margin: 1rem auto 0;
  color: rgba(245,241,232,.68);
  line-height: 1.78;
}

.cg-foundations-v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.cg-foundations-v2-feature-grid article {
  min-height: 190px;
  padding: 1.35rem;
  text-align: left;
  background: rgba(255,255,255,.012);
  border: 1px solid rgba(217,163,0,.15);
}

.cg-foundations-v2-feature-grid article > span {
  display: inline-block;
  margin-bottom: .8rem;
  color: rgba(217,163,0,.72);
  font-family: var(--cg-font-heading);
  font-size: .65rem;
  letter-spacing: .16em;
}

.cg-foundations-v2-feature-grid h3 {
  margin: 0 0 .65rem;
  color: #fff;
  font-family: var(--cg-font-heading);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cg-foundations-v2-feature-grid p {
  margin: 0;
  color: rgba(245,241,232,.69);
  font-size: .9rem;
  line-height: 1.72;
}

.cg-foundations-v2-truths {
  max-width: 920px;
}

.cg-foundations-v2-truths ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem 1.7rem;
  margin: 2rem 0 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.cg-foundations-v2-truths li {
  position: relative;
  padding: .85rem .9rem .85rem 1.65rem;
  color: rgba(245,241,232,.76);
  background: rgba(255,255,255,.011);
  border: 1px solid rgba(217,163,0,.12);
  font-size: .91rem;
  line-height: 1.68;
}

.cg-foundations-v2-truths li::before {
  content: "✦";
  position: absolute;
  top: .88rem;
  left: .65rem;
  color: var(--cg-gold);
  font-size: .58rem;
}

.cg-foundations-v2-prayer {
  max-width: 900px;
}

.cg-foundations-v2-prayer-label {
  margin: 0 0 .75rem;
  color: var(--cg-gold);
  font-family: var(--cg-font-heading);
  font-size: .64rem;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.cg-foundations-v2-prayer > p:not(.cg-foundations-v2-prayer-label) {
  max-width: 720px;
  margin: 1rem auto 0;
  color: rgba(245,241,232,.77);
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.82;
}

.cg-foundations-v2-next {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: clamp(3rem,6vw,4.5rem);
  border-top: 1px solid rgba(217,163,0,.18);
}

.cg-foundations-v2-next > header {
  max-width: 790px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.cg-foundations-v2-next > header > p:last-child {
  max-width: 690px;
  margin: 1rem auto 0;
  color: rgba(245,241,232,.67);
  line-height: 1.75;
}

.cg-foundations-v2-page-nav {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.cg-foundations-v2-page-nav a {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  color: inherit;
  background: rgba(255,255,255,.016);
  border: 1px solid rgba(217,163,0,.26);
  text-decoration: none;
  transition: .25s ease;
}

.cg-foundations-v2-page-nav-next {
  text-align: right;
}

.cg-foundations-v2-page-nav a span {
  color: rgba(217,163,0,.72);
  font-family: var(--cg-font-heading);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cg-foundations-v2-page-nav a strong {
  margin-top: .35rem;
  color: #fff;
  font-family: var(--cg-font-heading);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cg-foundations-v2-page-nav a:hover {
  background: rgba(217,163,0,.07);
  border-color: rgba(217,163,0,.52);
}

@media (max-width: 1050px) {
  .cg-foundations-v2-series {
    grid-template-columns: 1fr;
  }

  .cg-foundations-v2-series-home {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid rgba(217,163,0,.18);
    text-align: center;
  }

  .cg-foundations-v2-series ol {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .cg-foundations-v2-series li {
    border-bottom: 1px solid rgba(217,163,0,.12);
  }

  .cg-foundations-v2-series li:nth-child(3n) {
    border-right: 0;
  }

  .cg-foundations-v2-series li:nth-last-child(-n+3) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .cg-foundations-v2-section {
    grid-template-columns: 1fr;
  }

  .cg-foundations-v2-section-marker {
    width: 52px;
    height: 52px;
  }

  .cg-foundations-v2-feature-grid,
  .cg-foundations-v2-truths ul {
    grid-template-columns: 1fr;
  }

  .cg-foundations-v2-page-nav {
    grid-template-columns: 1fr;
  }

  .cg-foundations-v2-page-nav-next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .cg-foundations-v2-series ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .cg-foundations-v2-series li:nth-child(3n) {
    border-right: 1px solid rgba(217,163,0,.12);
  }

  .cg-foundations-v2-series li:nth-child(2n) {
    border-right: 0;
  }

  .cg-foundations-v2-series li:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(217,163,0,.12);
  }

  .cg-foundations-v2-series li:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .cg-foundations-v2-series li a strong {
    font-size: .49rem;
  }

  .cg-foundations-v2-feature-grid article {
    min-height: 0;
  }
}
