/* ==========================================================================
   Exploring Christianity — site-specific styles
   Layered on top of the compiled Bootstrap build in styles.css so that
   future vendor upgrades don't clobber these rules.
   ========================================================================== */

:root {
  --ec-teal: #64a19d;
  --ec-purple: #7464a1;
  --ec-red: #a16468;
  --ec-gold: #e4c662;
  --ec-cyan: #1cabc4;
}

body {
  background-color: #000;
}

a {
  text-decoration: none;
}

/* ---------- Navigation ---------- */

#mainNav .navbar-brand {
  font-family: "Varela Round", sans-serif;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

#mainNav .nav-link {
  font-family: "Varela Round", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

#mainNav .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
  #mainNav {
    background-color: #000;
  }

  #mainNav .navbar-brand,
  #mainNav .nav-link {
    color: rgba(255, 255, 255, 0.75);
  }

  #mainNav .nav-link.active {
    color: var(--ec-teal);
  }
}

@media (min-width: 992px) {
  #mainNav.navbar-shrink {
    background-color: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  #mainNav.navbar-shrink .navbar-brand {
    color: #fff;
  }

  #mainNav.navbar-shrink .nav-link {
    color: rgba(255, 255, 255, 0.6);
  }

  #mainNav.navbar-shrink .nav-link:hover {
    color: #fff;
  }

  #mainNav.navbar-shrink .nav-link:active,
  #mainNav.navbar-shrink .nav-link.active {
    color: var(--ec-teal);
    border-bottom-color: var(--ec-teal);
  }
}

/* ---------- Page header (topic pages) ---------- */

.page-header {
  position: relative;
  width: 100%;
  padding: 11rem 0 6rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--ec-header-a, #64a19d) 0%, #000 78%);
}

.page-header .page-icon {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.page-header h1 {
  font-family: "Varela Round", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3.1rem;
    letter-spacing: 0.45rem;
  }
}

.page-header .lede {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-header .chapter-tag {
  display: inline-block;
  font-family: "Varela Round", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 8rem 0 4rem;
  }
}

/* ---------- Article body ---------- */

.lesson-section {
  background: linear-gradient(to bottom, #000 0%, #0c0c0c 50%, #000 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0;
}

.lesson-copy {
  max-width: 44rem;
  margin: 0 auto;
}

.lesson-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.lesson-copy h2 {
  font-family: "Varela Round", sans-serif;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
  margin: 3rem 0 1.25rem;
}

.lesson-copy > .reveal:first-child > h2:first-child {
  margin-top: 0;
}

.lesson-copy .accent {
  color: var(--ec-header-a, var(--ec-teal));
}

/* Scripture pull-quote, echoing the booklet's indented verse blocks.
   Set in a serif face, upright (not italic, for readability), with a large
   opening quote mark so scripture reads as something quoted, not just
   emphasised body copy. */
.verse {
  position: relative;
  border-left: 0.25rem solid var(--ec-header-a, var(--ec-teal));
  padding: 0.35rem 0 0.35rem 2.1rem;
  margin: 2rem 0;
  font-family: "Lora", Georgia, serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
}

.verse::before {
  content: "\201C";
  position: absolute;
  left: 0.35rem;
  top: 0.1rem;
  font-family: "Lora", Georgia, serif;
  font-style: normal;
  font-size: 2.75rem;
  line-height: 1;
  color: color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 75%, transparent);
}

.verse cite {
  display: block;
  margin-top: 0.6rem;
  font-family: "Varela Round", sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Illustration figures reusing the ministry's own booklet artwork */
.lesson-figure {
  background: #fdfdfb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
  margin: 2.5rem auto;
  max-width: 26rem;
}

.lesson-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.2rem;
}

.lesson-figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6c757d;
  font-style: italic;
}

.lesson-figure.figure-wide {
  max-width: 34rem;
}

/* Summary / reflection dotted boxes, matching the printed booklet's style */
.info-box {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.info-box h3 {
  font-family: "Varela Round", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--ec-header-a, var(--ec-teal));
  margin-bottom: 1.25rem;
}

.info-box ul,
.info-box ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.info-box li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.info-box li:last-child {
  margin-bottom: 0;
}

/* "Explore deeper" link sitting under a claim, echoing the table
   source-caption style but as a clickable, on-brand link. */
.resource-link {
  margin: -1.25rem 0 2rem;
  font-family: "Varela Round", sans-serif;
  font-size: 0.85rem;
}

.resource-link i {
  margin-right: 0.4rem;
  color: var(--ec-header-a, var(--ec-teal));
}

.resource-link a {
  color: var(--ec-header-a, var(--ec-teal));
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.resource-link a:hover {
  opacity: 0.8;
}

/* Map embed on the Good News page */
.map-embed {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1.5rem 0;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

/* Prayer card on the Good News page */
.prayer-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 2.5rem;
  margin: 2.5rem 0;
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  line-height: 1.9;
}

/* ---------- Chapter navigation footer ---------- */

.chapter-nav {
  background: #000;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-nav .chapter-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease-in-out;
}

.chapter-nav .chapter-link:hover {
  color: #fff;
}

.chapter-nav .chapter-link .direction {
  display: block;
  font-family: "Varela Round", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.4rem;
}

.chapter-nav .chapter-link .title {
  font-family: "Varela Round", sans-serif;
  font-size: 1.1rem;
}

.chapter-nav .chapter-link.next {
  text-align: right;
}

/* ---------- Home page topic cards ---------- */

.projects-section {
  padding: 4rem 0;
}

.signup-section {
  padding: 6rem 0;
}

@media (max-width: 767.98px) {
  .masthead {
    height: 100vh;
    padding: 0;
  }
}

.fade-down {
  animation-duration: 1.2s;
}

.scene-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.scene-card {
  position: relative;
  padding: 2.5rem 1.75rem;
  background:
    radial-gradient(120% 160% at 50% -20%, color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 14%, transparent), transparent 65%),
    rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.85rem;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

@media (min-width: 768px) {
  .scene-card {
    padding: 3.25rem 2rem;
  }
}

.scene-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 55%, transparent);
  background:
    radial-gradient(120% 160% at 50% -20%, color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 22%, transparent), transparent 65%),
    rgba(0, 0, 0, 0.18);
}

.scene-card h2 {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  .scene-card h2 {
    font-size: 1.75rem;
  }
}

.scene-card p {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.scene-badge {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--ec-header-a, var(--ec-teal)) 55%, transparent);
  color: var(--ec-header-a, var(--ec-teal));
  font-size: 1.2rem;
}

.scene-cta {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid var(--ec-header-a, var(--ec-teal));
  border-radius: 100px;
  font-family: "Varela Round", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-header-a, var(--ec-teal));
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.scene-cta:hover {
  background: var(--ec-header-a, var(--ec-teal));
  color: #050505;
}

/* ---------- Homepage scripture quote ---------- */

.signup-section h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-style: normal;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scripture and illustrations ease in a beat slower than plain paragraphs,
   so they read as intentional pauses rather than uniform content blocks. */
.verse.reveal,
.lesson-figure.reveal {
  transform: translateY(18px);
  transition-duration: 1.05s;
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .fade-down,
  .scroll-cue i,
  .masthead {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Reading progress ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1032;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ec-header-a, var(--ec-teal));
}

@media (prefers-reduced-motion: no-preference) {
  .reading-progress-bar {
    transition: width 0.1s linear;
  }
}

/* ---------- Masthead motion ---------- */

@keyframes mastheadDrift {
  0% {
    background-position: center, 50% 38%;
  }

  100% {
    background-position: center, 50% 54%;
  }
}

@media (min-width: 992px) {
  .masthead {
    animation: mastheadDrift 50s ease-in-out infinite alternate;
  }
}

@keyframes scrollCueBob {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.scroll-cue i {
  display: inline-block;
  animation: scrollCueBob 2.4s ease-in-out infinite;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 1030;
}

.back-to-top:hover {
  background: var(--ec-teal);
  color: #fff;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Share row ---------- */

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.share-label {
  font-family: "Varela Round", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
}

.share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.share-btn:hover {
  border-color: var(--ec-header-a, var(--ec-teal));
  color: var(--ec-header-a, var(--ec-teal));
}

.share-btn.is-copied {
  border-color: var(--ec-header-a, var(--ec-teal));
  color: var(--ec-header-a, var(--ec-teal));
}

.share-btn.is-copied::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background: #050505;
  color: #fff;
  font-family: "Varela Round", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 575.98px) {
  .share-row {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ---------- Tough Questions accordion ---------- */

.questions-accordion {
  --bs-accordion-color: rgba(255, 255, 255, 0.85);
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.15);
  --bs-accordion-border-radius: 0.6rem;
  --bs-accordion-inner-border-radius: 0.55rem;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.03);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364a19d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-focus-border-color: var(--ec-header-a, var(--ec-teal));
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--ec-header-a, var(--ec-teal));
  --bs-accordion-active-bg: rgba(255, 255, 255, 0.05);
  margin-bottom: 3rem;
}

.questions-accordion .accordion-header {
  margin: 0;
}

.questions-accordion .accordion-item {
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.questions-accordion .accordion-item:last-of-type {
  margin-bottom: 0;
}

.questions-accordion .accordion-button {
  font-family: "Varela Round", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01rem;
}

.questions-accordion .accordion-button:hover {
  color: var(--ec-header-a, var(--ec-teal));
}

.questions-accordion .accordion-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.questions-accordion .accordion-body a.accent {
  display: inline-block;
  margin-top: 0.25rem;
}

/* ---------- Homepage "Exploring Christianity" course banner ---------- */

.event-band {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(100, 161, 157, 0.09), rgba(100, 161, 157, 0.02) 65%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-banner {
  max-width: 40rem;
  margin: 0 auto;
}

.event-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.event-banner > p {
  margin-bottom: 1.5rem;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.event-table th,
.event-table td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.event-table th {
  font-family: "Varela Round", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-teal);
}

/* ---------- Homepage "More Questions" banner ---------- */

.more-questions-band {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(100, 161, 157, 0.09), rgba(100, 161, 157, 0.02) 65%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.more-questions-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
}

.more-questions-banner .mq-icon {
  margin: 0;
  flex-shrink: 0;
}

.more-questions-banner .mq-copy {
  max-width: 32rem;
}

.more-questions-banner .mq-copy h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.more-questions-banner .mq-copy p {
  margin: 0;
}

.more-questions-banner .mq-cta {
  flex-shrink: 0;
  margin-top: 0;
}

@media (min-width: 768px) {
  .more-questions-banner {
    text-align: left;
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .more-questions-banner {
    flex-direction: column;
  }
}
