/* ==========================================================
   Kingdom Harvester — Testimonies page

   Page-specific styling built on:
     kh-site-theme.css
     kh-panel-layout.css
   ========================================================== */

/* ==========================================================
   Hero panel
   ========================================================== */

.testimony-hero {
  background: var(--kh-cream-light);
}

.testimony-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.88fr)
    minmax(440px, 1.12fr);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.testimony-hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(44px, 6vh, 72px)
    clamp(
      34px,
      calc((100vw - var(--kh-content-width)) / 2),
      90px
    );
  padding-right: clamp(42px, 5vw, 76px);
}

.testimony-hero-content .kh-page-title {
  max-width: 620px;
  font-size: clamp(3.35rem, 5.2vw, 5.6rem);
  line-height: 0.96;
}

.testimony-hero-intro {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--kh-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.testimony-scripture {
  max-width: 560px;
  margin-top: 27px;
  padding: 20px 22px;
  border-left: 4px solid var(--kh-gold);
  background: rgba(217, 173, 78, 0.13);
}

.testimony-scripture p {
  margin: 0;
  color: #4f462f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-style: italic;
  line-height: 1.58;
}

.testimony-scripture cite {
  display: block;
  margin-top: 10px;
  color: var(--kh-gold-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimony-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.testimony-hero-media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--kh-green-950);
}

.testimony-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.04) contrast(1.03);
}

/* ==========================================================
   Video testimony panel
   ========================================================== */

.testimony-video-panel {
  background: var(--kh-white);
}

.testimony-video-shell {
  display: grid;
  grid-template-columns:
    minmax(300px, 0.7fr)
    minmax(0, 1.3fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.testimony-video-copy {
  min-width: 0;
}

.testimony-video-copy .kh-section-title {
  max-width: 570px;
}

.testimony-video-copy > p:not(.kh-eyebrow) {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--kh-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.testimony-video-frame {
  min-width: 0;
  overflow: hidden;
  background: var(--kh-green-950);
  box-shadow: 0 18px 42px rgba(8, 23, 15, 0.16);
}

.testimony-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ==========================================================
   Closing panel
   ========================================================== */

.testimony-closing {
  background:
    linear-gradient(
      135deg,
      var(--kh-green-900),
      var(--kh-green-950)
    );
  color: var(--kh-white);
}

.testimony-closing-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.testimony-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 58px;
  align-items: center;
  padding: clamp(44px, 7vh, 78px) 0;
}

.testimony-closing-copy {
  max-width: 820px;
}

.testimony-closing .kh-eyebrow {
  color: var(--kh-gold);
}

.testimony-closing .kh-section-title {
  color: var(--kh-white);
}

.testimony-closing-copy > p:not(.kh-eyebrow) {
  max-width: 720px;
  margin: 21px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.65;
}

.testimony-closing-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.testimony-closing-actions .kh-button {
  width: 100%;
}

/* ==========================================================
   Desktop measured-panel adjustments
   ========================================================== */

@media (min-width: 1000px) {
  .testimony-hero-grid,
  .testimony-video-shell {
    min-height: 0;
  }

  .testimony-video-panel .kh-panel-shell {
    padding-top: clamp(34px, 4.5vh, 56px);
    padding-bottom: clamp(34px, 4.5vh, 56px);
  }

  .testimony-closing-main {
    height: calc(100% - 110px);
  }

  .testimony-closing .kh-page-footer {
    flex: 0 0 110px;
    min-height: 110px;
  }
}

@media (min-width: 1000px) and (max-height: 599px) {
  .testimony-hero-content {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .testimony-scripture {
    margin-bottom: 0;
  }

  .testimony-hero-actions {
    margin-top: 11px;
  }

  html.kh-panel-document
    .kh-panel--closing
    .kh-page-footer.kh-unified-footer--testimonies {
    flex: 0 0 90px;
    min-height: 90px;
    height: 90px;
    margin-top: 20px;
  }

  .kh-unified-footer--testimonies
    .kh-unified-footer__inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .kh-unified-footer--testimonies
    .kh-unified-footer__navigation {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: end;
    align-items: center;
    gap: 6px 18px;
  }

  .kh-unified-footer--testimonies
    .kh-unified-footer__navigation a {
    white-space: nowrap;
  }
}

/* ==========================================================
   Tablet and mobile
   ========================================================== */

@media (max-width: 999px) {
  .testimony-hero-grid,
  .testimony-video-shell,
  .testimony-closing-grid {
    grid-template-columns: 1fr;
  }

  .testimony-hero-grid {
    height: auto;
  }

  .testimony-hero-media {
    order: -1;
    height: min(56vh, 520px);
  }

  .testimony-hero-content {
    padding: 62px max(26px, calc((100% - 760px) / 2));
  }

  .testimony-video-shell {
    gap: 34px;
  }

  .testimony-closing-grid {
    gap: 30px;
  }

  .testimony-closing-actions {
    width: min(100%, 420px);
  }
}

@media (max-width: 620px) {
  .testimony-hero-media {
    height: 42vh;
    min-height: 280px;
  }

  .testimony-hero-media img {
    object-position: center 14%;
  }

  .testimony-hero-content {
    padding: 52px 19px 60px;
  }

  .testimony-hero-content .kh-page-title {
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  .testimony-hero-actions {
    display: grid;
  }

  .testimony-hero-actions .kh-button {
    width: 100%;
  }

  .testimony-scripture {
    padding: 18px;
  }

  .testimony-video-frame {
    margin: 0;
  }

  .testimony-closing-actions {
    width: 100%;
  }
}

/* ==========================================================
   Written testimony collection and Felix testimony detail
   ========================================================== */

.testimony-collection {
  background: var(--kh-cream-light);
}

.testimony-collection-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.testimony-collection-heading > p:last-child {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--kh-muted);
  line-height: 1.68;
}

.testimony-entry-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1.22fr);
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--kh-white);
  box-shadow: 0 18px 42px rgba(8, 23, 15, 0.13);
}

.testimony-entry-card__image-link {
  min-width: 0;
  overflow: hidden;
  background: var(--kh-green-950);
}

.testimony-entry-card__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 180ms ease;
}

.testimony-entry-card__image-link:hover img,
.testimony-entry-card__image-link:focus-visible img {
  transform: scale(1.025);
}

.testimony-entry-card__content {
  align-self: center;
  padding: clamp(30px, 4vw, 52px);
}

.testimony-entry-card__content h3 {
  margin: 0;
  color: var(--kh-green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.testimony-entry-card__excerpt {
  margin: 20px 0 0;
  color: #4f584f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-style: italic;
  line-height: 1.62;
}

.testimony-entry-card__link {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  color: var(--kh-green-900);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.testimony-entry-card__link:hover,
.testimony-entry-card__link:focus-visible {
  color: var(--kh-gold-dark);
}

.felix-testimony-page,
.felix-testimony-hero {
  background: var(--kh-cream-light);
}

.felix-testimony-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.94fr);
  width: min(1280px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.felix-testimony-hero__copy {
  align-self: center;
  max-width: 680px;
  padding: clamp(42px, 6vh, 72px) clamp(38px, 5vw, 76px) clamp(42px, 6vh, 72px) 0;
}

.felix-testimony-hero__copy .kh-page-title {
  max-width: 650px;
  font-size: clamp(3.25rem, 5.2vw, 5.5rem);
  line-height: 0.96;
}

.felix-testimony-hero__byline {
  margin: 22px 0 0;
  color: var(--kh-green-800);
  font-size: 1.05rem;
  font-weight: 800;
}

.felix-testimony-hero__context {
  max-width: 580px;
  margin: 15px 0 0;
  color: var(--kh-muted);
  line-height: 1.65;
}

.felix-testimony-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.felix-testimony-hero__actions .kh-button-outline {
  border-color: var(--kh-green-800);
  color: var(--kh-green-900);
}

.felix-testimony-hero__figure {
  align-self: center;
  margin: 0;
}

.felix-testimony-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 46px rgba(8, 23, 15, 0.18);
}

.felix-testimony-hero__figure figcaption {
  margin: 9px 2px 0;
  color: var(--kh-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.felix-testimony-body {
  background:
    radial-gradient(ellipse at 12% 18%, rgba(217, 173, 78, 0.075), transparent 38%),
    radial-gradient(ellipse at 96% 82%, rgba(23, 58, 39, 0.045), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #fbf7ee 52%, #fffdf9 100%);
  box-shadow: inset 0 1px rgba(217, 173, 78, 0.14);
}

.felix-testimony-body__shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: start;
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(58px, 8vh, 92px) 0;
}

.felix-testimony-pullquote {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--kh-gold);
}

.felix-testimony-pullquote p {
  margin: 0;
  color: var(--kh-green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  font-style: italic;
  line-height: 1.16;
}

.felix-testimony-copy {
  max-width: 720px;
  color: #39433b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.85;
}

.felix-testimony-copy p {
  margin: 0 0 1.25em;
}

.felix-testimony-copy__signature {
  color: var(--kh-green-900);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.felix-testimony-closing .testimony-closing-actions {
  min-width: 280px;
}

@media (min-width: 1000px) and (max-height: 700px) {
  .testimony-collection-shell {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .testimony-entry-card__image-link img {
    min-height: 300px;
  }

  .felix-testimony-hero__copy {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .felix-testimony-hero__copy .kh-page-title {
    font-size: 3.7rem;
  }

  .felix-testimony-hero__byline {
    margin-top: 16px;
  }

  .felix-testimony-hero__context {
    margin-top: 10px;
    line-height: 1.5;
  }

  .felix-testimony-hero__actions {
    margin-top: 18px;
  }

  .felix-testimony-body__shell {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .felix-testimony-copy {
    font-size: 0.96rem;
    line-height: 1.62;
  }
}

@media (max-width: 999px) {
  .testimony-collection-shell,
  .felix-testimony-hero__grid,
  .felix-testimony-body__shell {
    grid-template-columns: 1fr;
  }

  .testimony-collection-shell {
    gap: 34px;
  }

  .felix-testimony-hero__grid {
    width: min(100% - 40px, 760px);
    height: auto;
    padding: 68px 0;
  }

  .felix-testimony-hero__copy {
    padding: 0 0 42px;
  }

  .felix-testimony-body__shell {
    width: min(100% - 40px, 760px);
    gap: 38px;
  }

  .felix-testimony-pullquote {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .testimony-entry-card {
    grid-template-columns: 1fr;
  }

  .testimony-entry-card__image-link img {
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-position: center center;
  }

  .testimony-entry-card__content {
    padding: 28px 22px 32px;
  }

  .felix-testimony-hero__grid,
  .felix-testimony-body__shell {
    width: calc(100% - 32px);
  }

  .felix-testimony-hero__grid {
    padding: 54px 0 60px;
  }

  .felix-testimony-hero__copy .kh-page-title {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .felix-testimony-hero__actions {
    display: grid;
  }

  .felix-testimony-hero__actions .kh-button {
    width: 100%;
  }

  .felix-testimony-body__shell {
    padding: 56px 0 64px;
  }
}
