/* Shared styles for the Jivanmukti site. Colors and fonts live here so every page matches. */
:root {
  --ink: #111;
  --paper: #fff;
  --night: #0b1033;
  --font: "Sorts Mill Goudy", Georgia, "Times New Roman", serif;
  --font-nav: "Quicksand", system-ui, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1.3;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #6b7cff; outline-offset: 3px; }

/* Header: dark starry banner, not sticky */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.5rem 1.5rem;
  color: #fff;
  background-color: var(--night);
  background-image: url("../images/header-stars.jpg");
  background-size: cover;
  background-position: center top;
}
.logo img { height: 40px; width: auto; }
.logo { justify-self: start; text-decoration: none; font-style: italic; font-size: 1.6rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.25rem; }
.site-nav, .site-header .btn { font-family: var(--font-nav); font-weight: 600; font-size: 0.95rem; }
.site-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Black pill buttons */
.btn {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}
.btn:hover { background: #2a2a2a; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.site-header .btn { border: 1px solid #fff; }

/* Page title */
.page-title {
  margin: 1.5rem 0 1.8rem;
  text-align: center;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
}

/* Course grid: three columns on desktop */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  text-align: center;
}
.course-grid a { text-decoration: none; display: block; }
.course-grid h2 { margin: 0 0 0.6rem; font-weight: 400; font-size: 1.7rem; }
.course-grid .thumb { width: 154px; aspect-ratio: 1; margin: 0 auto 0.6rem; object-fit: cover; }
.course-grid p { margin: 0 auto; max-width: 20rem; font-size: 1.15rem; }

/* Course sections: each boxed by a thin border */
.course {
  margin: 1.5rem 1rem;
  padding: 2rem 1.5rem 2.5rem;
  border: 1px solid #333;
  scroll-margin-top: 1rem;
}
.course h2 { margin: 0 0 1.5rem; text-align: center; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); }
.course-body {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: start;
}
.course-body img { width: 100%; height: auto; background: #ddd; }
.course-text { max-width: 42rem; margin: 0 auto; }
.course-text p { margin: 0 auto 2rem; font-size: 1.3rem; max-width: 42rem; text-align: center; }
.course-text .btn { display: table; margin: 0 auto 2rem; font-size: 1.4rem; }

/* ---- Empowerment page additions ---- */
.page-subtitle { margin: -1rem auto 5rem; padding: 0 1.5rem; text-align: center; white-space: nowrap; font-size: min(1.6rem, 1.9vw); letter-spacing: 0.12em; }
.page-subtitle span { white-space: nowrap; }
.meet { padding: 0 1.5rem 2.5rem; text-align: center; }
.meet h2 { margin: 0 0 1rem; font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); }
.meet img { width: 340px; max-width: 100%; height: auto; margin: 0 auto; }
.grid-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; padding: 0 1.5rem 2rem; }
.grid-actions .btn { font-size: 1.2rem; }
.offering-text { max-width: 42rem; margin: 0 auto; }
.offering-text p, .offering-text ul { margin: 0 0 1.2rem; font-size: 1.3rem; }
.offering-text ul { padding-left: 1.5rem; }
.offering-text h3 { margin: 1.8rem 0 1rem; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.offering .btn { display: table; margin: 2rem auto 0; font-size: 1.4rem; }
.offering-text .indent { text-indent: 2rem; }
.offering .btn.btn-mid { margin-bottom: 3.5rem; }
.titleblock h3 { margin-bottom: 0; }
.titleblock p { margin: 0; }
.titleblock p:last-child { margin-bottom: 1.2rem; }
.titleblock.disclaimer { margin-top: 2.5rem; }
/* ---- end Empowerment additions ---- */

/* ---- Webinars page additions ---- */
.browse-label { margin: 0 0 1.2rem; text-align: center; font-weight: 400; font-size: 1.5rem; }
.year-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; padding: 0 1.5rem; margin-bottom: 3rem; }
.year-nav .btn { font-family: var(--font-nav); font-weight: 600; font-size: 1.3rem; padding: 0.4rem 1.6rem; }
.bundle-grid { grid-template-columns: repeat(4, 1fr); padding-bottom: 3rem; }
.bundle-grid .thumb { width: 154px; height: auto; aspect-ratio: 2 / 3; margin-bottom: 0.8rem; }
.bundle-grid h2 { margin: 0; font-size: 1.4rem; }
.webinar-date { display: block; }
.webinar .course-text p { margin: 0 0 1.1rem; font-size: 1.2rem; }
.webinar .course-text ul { margin: 0 0 1.1rem; padding-left: 1.5rem; font-size: 1.2rem; }
.webinar .course-text li { margin-bottom: 0.4rem; }
.webinar .course-text .btn { margin-top: 1.5rem; }
.bundle-links { margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: b; font-size: 1.3rem; }
.bundle-links li { counter-increment: b; margin-bottom: 1.2rem; }
.bundle-links li::before { content: counter(b) ". "; }
@media (max-width: 1000px) { .bundle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bundle-grid { grid-template-columns: 1fr; } .year-nav { gap: 0.8rem 1rem; } }
.payment-note { padding: 1rem 1.5rem 0; text-align: center; }
.payment-note p { margin: 0.4rem 0; font-size: 1.7rem; }
/* Bundle sections: squarer image on the left, list pushed further right */
.bundle .course-body { grid-template-columns: clamp(260px, 36vw, 440px) 1fr; gap: 3rem 4rem; align-items: center; }
.bundle .course-body img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 800px) { .bundle .course-body { grid-template-columns: 1fr; } .bundle .course-body img { max-width: 440px; margin: 0 auto; } }
/* ---- end Webinars additions ---- */

/* ---- Testimonials page additions ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.testimonials-hero {
  padding: 0.5rem 1.5rem 6rem;
  text-align: center;
  background: #e9e6fb url("../images/testimonials-bg.jpg") center 35% / cover no-repeat;
}
.testimonials-subtitle { margin: -0.8rem 0 0; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1; }
.testimonials-hero .page-title, .testimonials-subtitle { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.category-select {
  min-width: 15rem;
  max-width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.4rem;
}
.testimonial-slider { position: relative; }
.slide-img { width: 100%; height: auto; background: #ddd; }
/* Dropdown (top left of the slideshow) with the logo underneath it */
.slide-controls { position: absolute; top: 1rem; left: 1.5rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.slide-logo[hidden] { display: none; }
.slide-logo img { height: clamp(40px, 6vw, 56px); width: auto; }
.slide-logo.is-boxed img { background: #fff; padding: 0.2rem; }
@media (max-width: 520px) {
  .slide-controls { top: 0.6rem; left: 0.75rem; }
  .category-select { min-width: 0; font-size: 1.1rem; padding: 0.35rem 0.6rem; }
}
.slide-nav { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.75rem; }
.slide-nav button {
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: #fff; color: #111;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.slide-nav button:hover { background: #e6e6e6; }
/* ---- end Testimonials additions ---- */

/* ---- Contact page additions ---- */
.contact-subtitle { margin: -0.8rem auto 4.5rem; padding: 0 1.5rem; text-align: center; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.8; }
.form-section { max-width: 780px; margin: 0 auto 5.5rem; padding: 0 1rem; }
.form-section > h2 { margin: 0 0 1rem; text-align: center; font-family: var(--font-nav); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2rem); }
.form-card { padding: 1.5rem; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); font-family: var(--font-nav); font-weight: 600; font-size: 1.05rem; }
.form-card h2 { margin: 0 0 1.5rem; text-align: center; font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: 0.4rem; }
.req { color: #0b1033; }
.form-card input[type="text"], .form-card input[type="email"], .form-card select, .form-card textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #777; border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.form-card textarea { min-height: 6.5rem; resize: vertical; }
.check { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.check input { width: 1.1rem; height: 1.1rem; }
.form-note { margin: 0 0 1.5rem; font-family: var(--font); font-weight: 400; font-size: 1.3rem; line-height: 1.4; }
.form-note strong { font-family: var(--font-nav); }
.submit-btn { width: 100%; padding: 0.8rem; border: 0; background: #000; color: #fff; font: inherit; font-size: 1.2rem; cursor: pointer; }
.submit-btn:hover { background: #2a2a2a; }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0.8rem 0 0; text-align: center; font-weight: 400; }
.info { max-width: 1200px; margin: 5.5rem auto; padding: 0 1.5rem; }
.info > h2 { margin: 0 0 1.5rem; text-align: center; font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.1; }
.info-text p { font-size: 1.2rem; margin: 0 0 1.2rem; }
.info .course-body { align-items: stretch; }
.info .course-body img { height: 100%; object-fit: cover; border-radius: 3px; }
@media (max-width: 800px) { .info .course-body img { height: auto; aspect-ratio: 3 / 2; } }
.red { color: #c8001a; font-family: var(--font-nav); font-weight: 600; }
.btn-donate { display: table; margin: 3rem auto 0; padding: 1rem 2.5rem; font-size: 1.1rem; }
.refund-note { max-width: 1100px; margin: 5.5rem auto; padding: 0 1.5rem; }
.refund-note h2 { margin: 0 0 1.2rem; text-align: center; font-weight: 400; font-size: clamp(1.4rem, 3.6vw, 2.6rem); line-height: 1.2; }
.refund-note p { max-width: 780px; margin: 0 auto; padding-bottom: 1.5rem; border-bottom: 1px solid #ddd; font-size: 1.5rem; }
.newsletter { margin-bottom: 1.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
/* ---- end Contact additions ---- */

/* Footer: payment note and Follow & Support icons */
.site-footer { padding: 1rem 1.5rem 3rem; text-align: center; }
.site-footer .notice p { margin: 0.4rem 0; font-size: 1.7rem; }
.site-footer h2 { margin: 2.5rem 0 1rem; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.social { display: flex; justify-content: center; align-items: center; gap: 2rem; }
.social img { height: 144px; width: auto; }
/* Large round Donate button in the footer, same size as the YouTube icon */
.btn-circle { display: flex; align-items: center; justify-content: center; width: 144px; height: 144px; padding: 0; border-radius: 50%;
  font-family: var(--font-nav); font-weight: 600; font-size: 1.6rem; }

/* Narrower screens: logo and Donate on one row, menu centered below */
@media (max-width: 1200px) {
  .site-header { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .site-nav { order: 3; width: 100%; }
}

/* Phones and small tablets */
@media (max-width: 800px) {
  .page-subtitle { white-space: normal; font-size: 1.05rem; letter-spacing: 0.08em; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .course-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .course-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* ---- Testimonials (alternate: five slideshows) additions ---- */
.tm-hero { padding: 0.5rem 1.5rem 0; text-align: center; }
.tm-subtitle { margin: -0.8rem 0 5rem; text-align: center; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1; }

/* Background zones. Each has a fallback color in case its image is missing. */
/* Mountains: pale sky is held solid, then fades out near the bottom to reveal the peaks.
   To show more peaks, make both "30rem" and "14rem" bigger; for fewer, make them smaller. */
.tm-zone-mountains {
  padding-bottom: 1.5rem;
  background:
    linear-gradient(to bottom, #e7e6fb 0, #e7e6fb calc(100% - 30rem), rgba(231, 230, 251, 0) calc(100% - 14rem)),
    url("../images/alt-bg-mountains.jpg") center bottom / cover no-repeat;
  background-color: #2b2750;
}
.tm-zone-transition { padding: 1rem 0 3.5rem; background: #2b2750 url("../images/alt-bg-transition.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-eclipse { padding: 4rem 0; background: #04060e url("../images/alt-bg-eclipse.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-undersea { padding: 4rem 0; background: #0b6f86 url("../images/alt-bg-undersea.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-undersea .tm-cat-title, .tm-zone-undersea .tm-text { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }

/* Category headings (with optional logo beside them) */
.tm-cat-title {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin: 0 0 2rem; padding: 0 1.5rem; text-align: center; font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1;
}
.tm-cat-title--light { color: #fff; }
.tm-cat + .tm-cat-title { margin-top: 4rem; }
.tm-zone-eclipse .tm-cat + .tm-cat { margin-top: 6rem; }
.tm-logo img { height: clamp(40px, 6vw, 56px); width: auto; }

/* One slideshow: image on the left, quote on the right, arrows under the quote */
.tm-slider {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 2.5rem;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.tm-slide { display: contents; }
.tm-slide[hidden] { display: none; }
.tm-slide img { grid-column: 1; grid-row: 1 / span 2; width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(255, 255, 255, 0.12); }
.tm-text { grid-column: 2; grid-row: 1; align-self: center; margin: 0; max-width: 24rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; }
.tm-text p { margin: 0 0 1.4rem; }
.tm-text .tm-by { margin-bottom: 0; }
.tm-nav { grid-column: 2; grid-row: 2; display: flex; gap: 1rem; margin-top: 1.5rem; }
.tm-nav button {
  width: 42px; height: 42px; padding: 0;
  border: 2px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.tm-nav button:hover { opacity: 0.65; }

@media (max-width: 700px) {
  .tm-slider { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1.5rem; padding: 0 1.25rem; }
  .tm-slide img, .tm-text, .tm-nav { grid-column: 1; grid-row: auto; }
  .tm-slide img { max-width: 22rem; margin: 0 auto; }
  .tm-nav { justify-content: center; margin-top: 0; }
}
/* ---- end Testimonials (alternate) additions ---- */
/* ---- Testimonials (alternate: five slideshows) additions ---- */
.tm-hero { padding: 0.5rem 1.5rem 0; text-align: center; }
.tm-subtitle { margin: -0.8rem 0 5rem; text-align: center; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1; }

/* Background zones. Each has a fallback color in case its image is missing. */
/* Mountains: pale sky is held solid, then fades out near the bottom to reveal the peaks.
   To show more peaks, make both "30rem" and "14rem" bigger; for fewer, make them smaller. */
.tm-zone-mountains {
  padding-bottom: 1.5rem;
  background:
    linear-gradient(to bottom, #e7e6fb 0, #e7e6fb calc(100% - 30rem), rgba(231, 230, 251, 0) calc(100% - 14rem)),
    url("../images/alt-bg-mountains.jpg") center bottom / cover no-repeat;
  background-color: #2b2750;
}
.tm-zone-transition { padding: 1rem 0 3.5rem; background: #2b2750 url("../images/alt-bg-transition.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-eclipse { padding: 4rem 0; background: #04060e url("../images/alt-bg-eclipse.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-undersea { padding: 4rem 0; background: #0b6f86 url("../images/alt-bg-undersea.jpg") center / cover no-repeat; color: #fff; }
.tm-zone-undersea .tm-cat-title, .tm-zone-undersea .tm-text { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }

/* Category headings (with optional logo beside them) */
.tm-cat-title {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin: 0 0 2rem; padding: 0 1.5rem; text-align: center; font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1;
}
.tm-cat-title--light { color: #fff; }
.tm-cat + .tm-cat-title { margin-top: 4rem; }
.tm-zone-eclipse .tm-cat + .tm-cat { margin-top: 6rem; }
.tm-logo img { height: clamp(40px, 6vw, 56px); width: auto; }

/* One slideshow: image on the left, quote on the right, arrows under the quote */
.tm-slider {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 2.5rem;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.tm-slide { display: contents; }
.tm-slide[hidden] { display: none; }
.tm-slide img { grid-column: 1; grid-row: 1 / span 2; width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(255, 255, 255, 0.12); }
.tm-text { grid-column: 2; grid-row: 1; align-self: center; margin: 0; max-width: 24rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; }
.tm-text p { margin: 0 0 1.4rem; }
.tm-text .tm-by { margin-bottom: 0; }
.tm-nav { grid-column: 2; grid-row: 2; display: flex; gap: 1rem; margin-top: 1.5rem; }
.tm-nav button {
  width: 42px; height: 42px; padding: 0;
  border: 2px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.tm-nav button:hover { opacity: 0.65; }

@media (max-width: 700px) {
  .tm-slider { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1.5rem; padding: 0 1.25rem; }
  .tm-slide img, .tm-text, .tm-nav { grid-column: 1; grid-row: auto; }
  .tm-slide img { max-width: 22rem; margin: 0 auto; }
  .tm-nav { justify-content: center; margin-top: 0; }
}
/* ---- end Testimonials (alternate) additions ---- */

/* ---- Self-hosted fonts ---- */
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300; src: url("../fonts/Quicksand-Light.ttf") format("truetype"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400; src: url("../fonts/Quicksand-Regular.ttf") format("truetype"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500; src: url("../fonts/Quicksand-Medium.ttf") format("truetype"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 600; src: url("../fonts/Quicksand-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 700; src: url("../fonts/Quicksand-Bold.ttf") format("truetype"); }
@font-face { font-family: "Sorts Mill Goudy"; font-style: normal; font-weight: 400; src: url("../fonts/SortsMillGoudy-Regular.ttf") format("truetype"); }

/* Carousel arrows visible on dark photos */
.tm-nav button { color: #fff; border-color: #fff; background: rgba(0, 0, 0, 0.25); }
