/* =========================================================
   NEW ENON BAPTIST CHURCH
   Full-screen editorial church website
   ========================================================= */

:root {
  --navy: #080808;
  --navy-soft: #1a1a1a;
  --gold: #c89b3c;
  --gold-light: #efd68d;
  --cream: #f7f1e5;
  --white: #ffffff;
  --black: #080808;
  --gray: #6f6660;
  --line: rgba(255, 255, 255, 0.18);
  --dark-line: rgba(7, 23, 36, 0.18);
  --red: #b60016;
  --red-dark: #78000d;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 800;
}

.skip-link:focus {
  top: 20px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(7, 23, 36, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 68px);
}

.church-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  letter-spacing: .08em;
  line-height: 1;
}

.church-brand strong,
.footer-brand strong {
  display: block;
  font-size: .94rem;
  font-weight: 900;
}

.church-brand small,
.footer-brand small {
  display: block;
  margin-top: 5px;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .21em;
}

.brand-cross {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-size: 1.25rem;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.menu-lines {
  display: grid;
  gap: 5px;
}

.menu-lines i {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.header-give-button {
  justify-self: end;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  transition: .25s ease;
}

.header-give-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Navigation overlay */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 70px 25px;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: .35s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-close {
  position: absolute;
  top: 25px;
  right: clamp(25px, 5vw, 75px);
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 3rem;
  font-weight: 200;
}

.overlay-navigation {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.overlay-navigation a {
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  font-weight: 800;
  letter-spacing: .06em;
  transition: color .2s ease, transform .2s ease;
}

.overlay-navigation a:hover {
  color: var(--gold-light);
  transform: translateX(6px);
}

.overlay-social {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

/* Typography / common */

.eyebrow {
  margin: 0 0 18px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold-light);
}

.eyebrow.dark {
  color: #73570f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: .96;
  letter-spacing: -.04em;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 900;
}

h1 em,
h2 span {
  color: var(--gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

h1 em {
  font-style: italic;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.7rem, 6vw, 6.7rem);
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: var(--navy);
}

.button-dark {
  background: var(--navy);
  color: var(--white);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, .75);
  color: var(--white);
}

.button-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.button-row,
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-media video {
  display: block;
  background: var(--navy);
}

.hero-media img {
  transform: scale(1.025);
  animation: slowZoom 15s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  to { transform: scale(1.09); }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 15, 24, .93) 0%, rgba(4, 15, 24, .72) 42%, rgba(4, 15, 24, .18) 78%),
    linear-gradient(0deg, rgba(4, 15, 24, .58), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: calc(var(--header-height) + 65px) 0 70px;
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 31px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 4vw, 65px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, .75);
}

/* Split sections */

.split-section {
  min-height: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 10vw, 155px);
}

.split-copy p:not(.eyebrow) {
  max-width: 600px;
}

.split-dark {
  background: var(--navy);
  color: var(--white);
}

.split-dark .split-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .75);
}

.split-gold {
  background: var(--gold);
  color: var(--navy);
}

.split-gold h2 span {
  color: var(--white);
}

.split-image {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-image img {
  object-position: center 28%;
}

.vertical-label {
  position: absolute;
  right: 26px;
  bottom: 30px;
  padding: 13px 10px;
  background: rgba(7, 23, 36, .8);
  color: var(--white);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.text-link {
  width: fit-content;
  margin-top: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.text-link span {
  margin-left: 12px;
}

/* Statement */

.statement-section {
  position: relative;
  min-height: 780px;
  display: grid;
  place-items: center;
  padding: 110px 24px;
  overflow: hidden;
  background: var(--cream);
}

.statement-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  text-align: center;
}

.statement-inner h2 span {
  color: var(--gold);
}

.statement-number {
  position: absolute;
  left: 2vw;
  top: 50%;
  color: rgba(7, 23, 36, .05);
  font-size: min(38vw, 500px);
  font-weight: 900;
  line-height: .8;
  transform: translateY(-50%);
}

.large-copy {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #46535d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.16rem, 2vw, 1.6rem);
}

/* Form feature */

.form-feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--navy);
  color: var(--white);
}

.form-image {
  min-height: 820px;
}

.form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(65px, 8vw, 120px);
}

.form-panel h2 span {
  color: var(--gold-light);
}

.form-panel > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, .75);
}

.church-form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.church-form label {
  display: grid;
  gap: 8px;
}

.church-form label span {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.church-form input,
.church-form select,
.church-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .34);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  padding: 12px 0;
}

.church-form select option {
  color: var(--navy);
}

.church-form input:focus,
.church-form select:focus,
.church-form textarea:focus {
  border-color: var(--gold-light);
}

.church-form button {
  width: fit-content;
}

/* Ministries */

.ministries-section {
  padding: 120px clamp(22px, 6vw, 90px);
  background: var(--cream);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 55px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 span {
  color: var(--gold);
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
}

.ministry-card {
  min-height: 350px;
  padding: 38px 30px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  transition: background .25s ease, color .25s ease;
}

.ministry-card:hover {
  background: var(--navy);
  color: var(--white);
}

.ministry-number {
  display: block;
  margin-bottom: 90px;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.ministry-card h3 {
  font-size: 1rem;
  letter-spacing: .08em;
}

.ministry-card p {
  color: var(--gray);
  font-size: .91rem;
}

.ministry-card:hover p {
  color: rgba(255, 255, 255, .72);
}

.ministry-card a {
  color: var(--gold);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
}

/* Archives */

.archive-section {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  min-height: 720px;
}

.archive-dark {
  background: var(--navy);
  color: var(--white);
}

.archive-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 130px);
  border-right: 1px solid var(--line);
}

.archive-intro h2 span {
  color: var(--gold-light);
}

.archive-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72);
}

.archive-intro .button {
  width: fit-content;
  margin-top: 18px;
}

.archive-list {
  display: grid;
  align-content: center;
  padding: 50px clamp(25px, 6vw, 90px);
}

.archive-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.archive-date {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.archive-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.archive-arrow {
  color: var(--gold-light);
  font-size: 1.55rem;
}

/* Lessons */

.lesson-list {
  display: grid;
  align-content: center;
  padding: clamp(60px, 7vw, 100px);
  background: #e5b747;
}

.lesson-list article {
  padding: 29px 0;
  border-bottom: 1px solid rgba(7, 23, 36, .22);
}

.lesson-list article span,
.lesson-list article a {
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.lesson-list article h3 {
  margin: 8px 0 13px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

/* Events */

.events-section {
  padding: 120px clamp(22px, 6vw, 90px);
  background: var(--white);
}

.events-section .section-heading h2 span {
  color: var(--gold);
}

.calendar-shell {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  background: var(--cream);
}

.calendar-shell iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 650px;
  border: 0;
  background: transparent;
}

.calendar-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.calendar-placeholder p {
  max-width: 590px;
  color: var(--gray);
}

.calendar-icon {
  color: var(--gold);
  font-size: 5rem;
}

/* Gallery */

.gallery-section {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  background: var(--navy);
  color: var(--white);
}

.gallery-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 7vw, 110px);
}

.gallery-heading h2 span {
  color: var(--gold-light);
}

.gallery-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 310px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-item img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(201, 154, 46, .22), rgba(7, 23, 36, .1)),
    #153044;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(1rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-align: center;
}

.gallery-item figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 9px 12px;
  background: rgba(7, 23, 36, .82);
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

/* Giving */

.giving-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 690px;
  background:
    linear-gradient(90deg, rgba(7, 23, 36, .98), rgba(7, 23, 36, .86)),
    url("assets/pastor-first-lady.jpeg") center / cover;
  color: var(--white);
}

.giving-content,
.giving-verse {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 130px);
}

.giving-content {
  border-right: 1px solid var(--line);
}

.giving-content h2 span {
  color: var(--gold-light);
}

.giving-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, .73);
}

.giving-content .button {
  width: fit-content;
  margin: 15px 0 18px;
}

.giving-content small {
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
}

.giving-verse blockquote {
  margin: 0 0 25px;
  color: var(--gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 1.15;
}

.giving-verse cite {
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .15em;
}

/* Social */

.social-section {
  padding: 115px clamp(22px, 6vw, 90px);
  text-align: center;
  background: var(--cream);
}

.social-section h2 span {
  color: var(--gold);
}

.social-cards {
  width: min(1050px, 100%);
  margin: 45px auto 0;
  border-top: 1px solid var(--dark-line);
}

.social-cards a {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 32px 0;
  border-bottom: 1px solid var(--dark-line);
  text-align: left;
}

.social-name {
  color: var(--gold);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.social-cards strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.social-arrow {
  font-size: 1.7rem;
}

/* Contact */

.contact-section {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 760px;
  background: var(--navy);
  color: var(--white);
}

.contact-copy,
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 130px);
}

.contact-copy {
  border-right: 1px solid var(--line);
}

.contact-copy h2 span {
  color: var(--gold-light);
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .76);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.contact-details div {
  display: grid;
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details span {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.contact-details strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

/* Footer */

.site-footer {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 65px 25px 35px;
  background: #04101a;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.copyright {
  margin-top: 20px;
  font-size: .68rem;
}

/* Responsive */

@media (max-width: 1050px) {
  .split-section,
  .form-feature,
  .archive-section,
  .gallery-section,
  .giving-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-image,
  .form-image {
    min-height: 620px;
  }

  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-heading {
    min-height: 580px;
  }

  .giving-content,
  .contact-copy,
  .archive-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    justify-self: end;
  }

  .header-give-button {
    display: none;
  }

  .church-brand strong {
    font-size: .78rem;
  }

  .church-brand small {
    font-size: .49rem;
  }

  .brand-cross {
    width: 35px;
    height: 35px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 15, 24, .91), rgba(4, 15, 24, .58)),
      linear-gradient(0deg, rgba(4, 15, 24, .62), transparent 55%);
  }

  .hero-content {
    width: 88%;
  }

  .scroll-cue {
    display: none;
  }

  .split-copy,
  .form-panel,
  .archive-intro,
  .archive-list,
  .lesson-list,
  .gallery-heading,
  .giving-content,
  .giving-verse,
  .contact-copy,
  .contact-details {
    padding: 70px 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .ministry-grid {
    grid-template-columns: 1fr;
  }

  .ministry-card {
    min-height: 290px;
  }

  .ministry-number {
    margin-bottom: 55px;
  }

  .archive-item {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .gallery-tall,
  .gallery-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .social-cards a {
    grid-template-columns: 1fr auto;
  }

  .social-name {
    grid-column: 1 / -1;
  }

  .calendar-shell,
  .calendar-shell iframe {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


/* Logo and color matching */
.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.28);
}

.footer-logo {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.site-header.scrolled,
.nav-overlay,
.split-dark,
.archive-dark,
.gallery-section,
.contact-section,
.site-footer {
  background-color: #080808;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(84,0,12,.76) 48%, rgba(0,0,0,.18) 82%),
    linear-gradient(0deg, rgba(0,0,0,.70), transparent 48%);
}

.header-give-button,
.button-gold {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.header-give-button:hover,
.button-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.statement-inner h2 span,
.section-heading h2 span,
.events-section .section-heading h2 span,
.social-section h2 span {
  color: var(--red);
}

.ministry-card:hover {
  background: linear-gradient(145deg, #090909, #2c0006);
}

.lesson-list {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}

.lesson-list article {
  border-bottom-color: rgba(255,255,255,.22);
}

.lesson-list article a,
.lesson-list article span {
  color: var(--gold-light);
}

.giving-section {
  background:
    linear-gradient(90deg, rgba(0,0,0,.98), rgba(88,0,12,.88)),
    url("assets/pastor-first-lady.jpeg") center / cover;
}

.photo-placeholder {
  background:
    linear-gradient(135deg, rgba(182,0,22,.62), rgba(0,0,0,.72)),
    #170006;
}

.gallery-item figcaption {
  border-left: 3px solid var(--red);
}

@media (max-width: 720px) {
  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}


/* =========================================================
   YOUTH ENON PAGE AND PHOTO ALBUM
   ========================================================= */

.youth-enon-section {
  background: var(--cream);
}

.youth-hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #050b14;
  color: var(--white);
}

.youth-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youth-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(8,15,30,.48) 55%, rgba(0,0,0,.16)),
    linear-gradient(0deg, rgba(0,0,0,.76), transparent 58%);
}

.youth-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 115px 0 75px;
}

.youth-hero-copy h2 {
  margin-bottom: 22px;
}

.youth-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}

.youth-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 110px clamp(24px, 7vw, 105px);
}

.youth-intro h2 span {
  color: var(--red);
}

.youth-intro-copy {
  max-width: 700px;
  color: #4e555b;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
}

.youth-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
  background: var(--white);
}

.youth-highlights article {
  min-height: 310px;
  padding: 34px 28px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.youth-highlights article > span {
  display: block;
  margin-bottom: 70px;
  color: var(--red);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
}

.youth-highlights h3 {
  letter-spacing: .07em;
}

.youth-highlights p {
  color: var(--gray);
  font-size: .9rem;
}

.youth-gallery-wrap {
  padding: 110px clamp(18px, 5vw, 80px);
  background: #080808;
  color: var(--white);
}

.youth-gallery-heading {
  max-width: 790px;
  margin-bottom: 50px;
}

.youth-gallery-heading h2 span {
  color: var(--gold-light);
}

.youth-gallery-heading p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
}

.youth-gallery-grid {
  columns: 4 260px;
  column-gap: 15px;
}

.youth-photo {
  width: 100%;
  display: block;
  margin: 0 0 15px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  background: #171717;
  cursor: zoom-in;
}

.youth-photo img {
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}

.youth-photo:hover img {
  transform: scale(1.035);
  filter: brightness(.82);
}

.youth-join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 110px clamp(24px, 8vw, 125px);
  background: linear-gradient(135deg, var(--red-dark), #090909 72%);
  color: var(--white);
}

.youth-join h2 span {
  color: var(--gold-light);
}

.youth-join p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,.74);
}

.youth-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 60px 90px;
  background: rgba(0,0,0,.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.youth-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.youth-lightbox img {
  max-width: min(1250px, 88vw);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 22px 65px rgba(0,0,0,.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 3.2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  font-weight: 200;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
}

@media (max-width: 1000px) {
  .youth-intro,
  .youth-join {
    grid-template-columns: 1fr;
  }

  .youth-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .youth-hero {
    min-height: 62vh;
  }

  .youth-hero > img {
    object-position: center;
  }

  .youth-intro,
  .youth-join {
    padding: 75px 24px;
    gap: 25px;
  }

  .youth-highlights {
    grid-template-columns: 1fr;
  }

  .youth-highlights article {
    min-height: 255px;
  }

  .youth-gallery-wrap {
    padding: 80px 14px;
  }

  .youth-gallery-heading {
    padding: 0 10px;
  }

  .youth-gallery-grid {
    columns: 2 140px;
    column-gap: 8px;
  }

  .youth-photo {
    margin-bottom: 8px;
  }

  .youth-lightbox {
    padding: 65px 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    font-size: 3.5rem;
  }

  .lightbox-prev {
    left: 25px;
  }

  .lightbox-next {
    right: 25px;
  }

  .lightbox-counter {
    bottom: 35px;
  }
}


/* =========================================================
   MEDIA CENTER
   ========================================================= */

.media-center-section {
  padding: 115px clamp(22px, 6vw, 90px);
  background: var(--cream);
}

.media-center-section .section-heading p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray);
}

.media-album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.media-album-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #111;
  color: var(--white);
}

.media-album-card > img,
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.media-album-card:hover > img {
  transform: scale(1.04);
}

.media-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red-dark), #050505);
  color: rgba(255,255,255,.2);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: .08em;
}

.media-album-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 28px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.94), transparent);
}

.media-album-overlay span {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.media-album-overlay h3 {
  margin: 7px 0 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.media-album-overlay p {
  margin: 0;
  color: rgba(255,255,255,.7);
}

/* =========================================================
   SUNDAY WORSHIP ALBUM
   ========================================================= */

.worship-section {
  background: var(--white);
}

.worship-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #080808;
  color: var(--white);
}

.worship-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.worship-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92), rgba(72,0,10,.56) 50%, rgba(0,0,0,.12)),
    linear-gradient(0deg, rgba(0,0,0,.78), transparent 58%);
}

.worship-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 115px 0 75px;
}

.worship-hero-copy h2 {
  margin-bottom: 22px;
}

.worship-hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
}

.worship-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 110px clamp(24px, 7vw, 105px);
}

.worship-intro h2 span {
  color: var(--red);
}

.worship-intro > div:last-child {
  color: #4e555b;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
}

.worship-gallery-wrap {
  padding: 110px clamp(18px, 5vw, 80px);
  background: #080808;
  color: var(--white);
}

.worship-gallery-heading {
  max-width: 800px;
  margin-bottom: 50px;
}

.worship-gallery-heading h2 span {
  color: var(--gold-light);
}

.worship-gallery-heading p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
}

.worship-gallery-grid {
  columns: 4 260px;
  column-gap: 15px;
}

.worship-photo {
  width: 100%;
  display: block;
  margin: 0 0 15px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  background: #171717;
  cursor: zoom-in;
}

.worship-photo img {
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}

.worship-photo:hover img {
  transform: scale(1.035);
  filter: brightness(.82);
}

.worship-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: grid;
  place-items: center;
  padding: 60px 90px;
  background: rgba(0,0,0,.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.worship-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.worship-lightbox img {
  max-width: min(1250px, 88vw);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 22px 65px rgba(0,0,0,.45);
}

.worship-lightbox-close,
.worship-lightbox-prev,
.worship-lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.worship-lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 3.2rem;
}

.worship-lightbox-prev,
.worship-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  font-weight: 200;
}

.worship-lightbox-prev { left: 24px; }
.worship-lightbox-next { right: 24px; }

.worship-lightbox-counter {
  position: absolute;
  bottom: 22px;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
}

@media (max-width: 900px) {
  .media-album-grid,
  .worship-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .media-album-card {
    min-height: 330px;
  }

  .worship-hero {
    min-height: 62vh;
  }

  .worship-intro {
    padding: 75px 24px;
    gap: 25px;
  }

  .worship-gallery-wrap {
    padding: 80px 14px;
  }

  .worship-gallery-heading {
    padding: 0 10px;
  }

  .worship-gallery-grid {
    columns: 2 140px;
    column-gap: 8px;
  }

  .worship-photo {
    margin-bottom: 8px;
  }

  .worship-lightbox {
    padding: 65px 16px;
  }

  .worship-lightbox-prev,
  .worship-lightbox-next {
    top: auto;
    bottom: 18px;
    font-size: 3.5rem;
  }

  .worship-lightbox-prev { left: 25px; }
  .worship-lightbox-next { right: 25px; }

  .worship-lightbox-counter {
    bottom: 35px;
  }
}




/* =========================================================
   VISIT SECTION AND GIVING OPTIONS
   ========================================================= */

.visit-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 720px;
  background: var(--cream);
}

.visit-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 125px);
}

.visit-copy h2 span {
  color: var(--red);
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 10px 0 22px;
}

.schedule-cards article {
  display: grid;
  gap: 9px;
  padding: 24px;
  border-left: 4px solid var(--red);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.schedule-cards span {
  color: var(--red);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.schedule-cards strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
}

.visit-note {
  color: var(--gray);
  font-size: .88rem;
}

.visit-contact-list {
  display: grid;
  gap: 7px;
  margin: 22px 0 28px;
  font-weight: 700;
}

.visit-map {
  min-height: 620px;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
}

.giving-options {
  display: grid;
  gap: 15px;
  align-items: start;
  margin: 15px 0 18px;
}

.cashapp-card {
  width: fit-content;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
}

.cashapp-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #00d64f;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
}

.cashapp-card small,
.cashapp-card strong {
  display: block;
}

.cashapp-card small {
  color: var(--gold-light);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.cashapp-card strong {
  font-size: 1.18rem;
}

.site-footer a {
  color: var(--gold-light);
}

/* Keep album thumbnails clean and consistently cropped */
.media-album-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-album-card[href="#youth-gallery"] > img,
.media-album-card[href="#sermons"] > img,
.media-album-card[href="#sunday-school"] > img {
  object-position: center;
}

@media (max-width: 900px) {
  .visit-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .visit-copy {
    padding: 72px 24px;
  }

  .schedule-cards {
    grid-template-columns: 1fr;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 450px;
  }
}

/* =========================================================
   2026 CHURCH SCHEDULE HUB
   ========================================================= */

.schedule-hub {
  background: var(--cream);
}

.schedule-intro {
  max-width: 760px;
  color: var(--gray);
}

.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.schedule-tab {
  padding: 13px 18px;
  border: 1px solid var(--dark-line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.schedule-tab.active,
.schedule-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.schedule-panel {
  display: none;
}

.schedule-panel.active {
  display: block;
}

.schedule-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.schedule-panel-heading h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.event-card {
  min-height: 245px;
  padding: 25px;
  border-top: 4px solid var(--gold);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.event-card.featured-event {
  border-top-color: var(--red);
  background: linear-gradient(145deg, #fff, #fff4f5);
}

.event-month {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.event-card > strong {
  display: block;
  color: var(--gray);
  font-size: .78rem;
}

.event-card h4 {
  margin: 9px 0 3px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.event-card p {
  margin-bottom: 14px;
  font-weight: 800;
}

.event-card small {
  color: var(--gray);
}

.choir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
}

.choir-grid article {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  background: var(--white);
}

.choir-grid article.communion {
  background: linear-gradient(145deg, #fff, #fff2e7);
  border-bottom-color: var(--red);
}

.choir-grid span {
  color: var(--red);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.choir-grid strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.choir-grid small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teaching-months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.teaching-month {
  padding: 25px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

.teaching-month h4 {
  margin: 0 0 20px;
  color: var(--red);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}

.teaching-month > div {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-top: 1px solid var(--dark-line);
}

.teaching-month span {
  color: var(--gray);
  font-size: .7rem;
  font-weight: 800;
}

.teaching-month strong {
  font-size: .92rem;
}

.teaching-month small {
  color: var(--gray);
}

.schedule-contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.schedule-contacts article {
  display: grid;
  gap: 5px;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

.schedule-contacts span {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.schedule-contacts a {
  color: var(--gold-light);
}

.live-calendar-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.live-calendar-explainer > div {
  padding: 30px;
  background: var(--white);
}

.live-calendar-explainer h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.calendar-placeholder-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 260px;
  text-align: center;
  background: linear-gradient(145deg, var(--red-dark), #080808) !important;
  color: var(--white);
}

.calendar-placeholder-card > span {
  color: var(--gold-light);
  font-size: 4rem;
}

.calendar-placeholder-card small {
  color: rgba(255,255,255,.68);
}

.outlook-shell {
  min-height: 500px;
}

.outlook-shell iframe {
  min-height: 500px;
}

@media (max-width: 1000px) {
  .event-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choir-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .schedule-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .schedule-tab {
    padding: 12px 8px;
    font-size: .56rem;
  }

  .schedule-panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .event-card-grid,
  .teaching-months,
  .schedule-contacts,
  .live-calendar-explainer {
    grid-template-columns: 1fr;
  }

  .choir-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choir-grid article {
    min-height: 165px;
  }
}


/* Corrected album thumbnail positioning */
.media-album-card[href="#youth-gallery"] > img {
  object-fit: cover;
  object-position: center 38%;
}

.media-album-card[href="#sermons"] > img {
  object-fit: cover;
  object-position: center;
}

.media-album-card[href="#sunday-school"] > img {
  object-fit: cover;
  object-position: center;
}



/* Youth Enon photo album background adjustment */
#youth-gallery,
.youth-gallery-wrap,
.youth-gallery-grid {
  background: #000;
}

.youth-gallery-wrap {
  color: #fff;
}

.youth-gallery-grid {
  padding-top: 1px;
}

.youth-photo {
  background: #111;
}


/* Worship Gallery background */
#worship-gallery,
.worship-gallery-wrap,
.worship-gallery-grid{
  background:#000;
}
.worship-gallery-wrap{
  color:#fff;
}
.worship-photo{
  background:#111;
}

/* Updated Welcome and Connect images */
#about .split-image img,
#contact .form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   WELCOME + CONNECT IMAGE LAYOUT REFINEMENT
   ========================================================= */

/* Welcome: preserve the full portrait and avoid cutting First Lady's hair. */
#about .split-image {
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .split-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Connect: place the full artwork above the form instead of heavily cropping it. */
.form-feature {
  display: block;
  background: #050505;
}

.form-feature .form-image {
  width: 100%;
  min-height: 0;
  height: auto;
  background: #061b20;
  border-bottom: 1px solid rgba(212, 171, 74, .25);
}

.form-feature .form-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.form-feature .form-panel {
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 80px 0 95px;
  border-left: 0;
}

/* Keep the existing fields but give them more room under the artwork. */
.form-feature .church-form {
  max-width: 100%;
}

@media (max-width: 900px) {
  #about .split-image {
    min-height: 520px;
  }

  .form-feature .form-panel {
    padding: 65px 0 80px;
  }
}

@media (max-width: 650px) {
  #about .split-image {
    min-height: 430px;
  }

  #about .split-image img {
    object-fit: contain;
  }

  .form-feature .form-panel {
    width: calc(100% - 40px);
    padding: 55px 0 70px;
  }
}


/* =========================================================
   REFERENCE-MATCHED WELCOME AND CONNECT PAGES
   ========================================================= */

.reference-welcome {
  min-height: 680px;
  display: grid;
  grid-template-columns: 35% 65%;
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.reference-welcome-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 5vw, 72px);
  background:
    linear-gradient(90deg, #050505 72%, rgba(5,5,5,.93) 88%, rgba(5,5,5,.15) 100%);
}

.reference-welcome-copy .eyebrow {
  margin-bottom: 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.35;
}

.reference-welcome-copy h2 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.6rem, 6.4vw, 6.2rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.045em;
}

.reference-welcome-copy h2 span {
  color: #d8ad54;
}

.reference-red-line {
  width: 42px;
  height: 2px;
  margin: 24px 0 22px;
  background: #b20f1d;
}

.reference-welcome-copy > p:not(.eyebrow) {
  max-width: 330px;
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  line-height: 1.65;
}

.reference-outline-button {
  width: fit-content;
  margin-top: 18px;
  padding: 15px 20px;
  border: 1px solid #d8ad54;
  color: #d8ad54;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.reference-outline-button:hover {
  background: #d8ad54;
  color: #050505;
}

.reference-welcome-image {
  min-height: 680px;
  overflow: hidden;
  background: #111;
}

.reference-welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 18%;
}

/* Connect page */
.reference-contact {
  background: #050505;
  color: #fff;
}

.reference-contact-hero {
  width: 100%;
  background: #061b20;
  overflow: hidden;
}

.reference-contact-hero img {
  display: block;
  width: 100%;
  max-height: 740px;
  object-fit: cover;
  object-position: center;
}

.reference-contact-body {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: 48px;
  padding: 65px clamp(28px, 5vw, 75px) 85px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.reference-contact-info {
  padding-right: 35px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.reference-contact-info h2,
.reference-contact-form h2 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 900;
}

.reference-contact-info > p {
  max-width: 420px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

.reference-contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 24px;
}

.reference-contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8ad54;
  border-radius: 50%;
  color: #d8ad54;
  font-size: 1rem;
}

.reference-contact-item strong {
  color: #d8ad54;
  font-size: .76rem;
  letter-spacing: .05em;
}

.reference-contact-item p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}

.reference-contact-item a {
  color: rgba(255,255,255,.82);
}

.reference-form {
  display: grid;
  gap: 14px;
}

.reference-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reference-form input,
.reference-form textarea {
  width: 100%;
  padding: 17px 16px;
  border: 1px solid rgba(216,173,84,.34);
  border-radius: 0;
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  outline: none;
}

.reference-form input:focus,
.reference-form textarea:focus {
  border-color: #d8ad54;
}

.reference-form textarea {
  resize: vertical;
  min-height: 145px;
}

.reference-form button {
  min-height: 50px;
  border: 0;
  background: #b20f1d;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .04em;
}

.reference-form button:hover {
  background: #d01829;
}

@media (max-width: 980px) {
  .reference-welcome {
    grid-template-columns: 42% 58%;
  }

  .reference-welcome-copy {
    padding: 65px 28px;
  }

  .reference-contact-body {
    grid-template-columns: 1fr;
  }

  .reference-contact-info {
    padding-right: 0;
    padding-bottom: 40px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 720px) {
  .reference-welcome {
    grid-template-columns: 1fr;
  }

  .reference-welcome-copy {
    min-height: 520px;
    background: #050505;
  }

  .reference-welcome-image {
    min-height: 540px;
  }

  .reference-welcome-image img {
    object-position: 48% 12%;
  }

  .reference-contact-hero img {
    max-height: none;
    object-fit: contain;
  }

  .reference-contact-body {
    padding: 48px 20px 65px;
  }

  .reference-field-row {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FINAL EXACT REFERENCE SECTIONS
   ========================================================= */

/* Welcome is displayed directly from the approved reference image,
   preserving the exact overlap, crop, spacing, and picture quality. */
.exact-welcome-section {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.exact-welcome-section > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Invisible interactive hotspot over the Learn More About Us button. */
.exact-welcome-about-link {
  position: absolute;
  left: 5.1%;
  top: 84.3%;
  width: 23.2%;
  height: 9.2%;
  z-index: 2;
}

/* Exact approved Connect artwork. */
.exact-contact-hero {
  width: 100%;
  overflow: hidden;
  background: #061b20;
}

.exact-contact-hero > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* Keep the contact information and form fully interactive and aligned
   directly beneath the exact approved artwork. */
.reference-contact-body {
  grid-template-columns: .82fr 1.28fr;
  gap: 42px;
  padding-top: 30px;
}

@media (max-width: 720px) {
  .exact-welcome-section > img,
  .exact-contact-hero > img {
    width: 100%;
    height: auto;
  }

  .reference-contact-body {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }
}


/* =========================================================
   HIGH-QUALITY WELCOME + PURPOSE BUTTONS
   ========================================================= */

.hq-welcome-section {
  min-height: 690px;
  display: grid;
  grid-template-columns: 34% 66%;
  overflow: hidden;
  background: #050505;
  color: #fff;
}

.hq-welcome-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px clamp(30px, 5vw, 70px);
  background:
    linear-gradient(90deg, #050505 76%, rgba(5,5,5,.94) 88%, rgba(5,5,5,.18) 100%);
}

.hq-eyebrow {
  margin: 0 0 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .12em;
}

.hq-welcome-copy h2 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.7rem, 6.1vw, 6.25rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.045em;
}

.hq-welcome-copy h2 span {
  color: #d8ad54;
}

.hq-red-line {
  width: 42px;
  height: 2px;
  margin: 24px 0 22px;
  background: #b20f1d;
}

.hq-welcome-text {
  max-width: 330px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  line-height: 1.65;
}

.hq-outline-button {
  width: fit-content;
  margin-top: 20px;
  padding: 15px 20px;
  border: 1px solid #d8ad54;
  color: #d8ad54;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hq-outline-button:hover {
  background: #d8ad54;
  color: #050505;
}

.hq-welcome-image {
  min-height: 690px;
  overflow: hidden;
  background: #111;
}

.hq-welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 18%;
  image-rendering: auto;
}

/* Interactive Worship / Grow / Connect / Serve / Give cards */
.hq-purpose-section {
  padding: 34px clamp(24px, 4vw, 58px) 46px;
  background: #050505;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}

.hq-purpose-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.hq-purpose-heading h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: .05em;
}

.hq-purpose-heading p {
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.6;
}

.hq-purpose-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.hq-purpose-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border: 1px solid rgba(216,173,84,.38);
  background: #090909;
  color: #fff;
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.hq-purpose-card:hover {
  transform: translateY(-4px);
  border-color: #d8ad54;
  background: #111;
}

.hq-purpose-icon {
  display: block;
  margin-bottom: 14px;
  color: #d8ad54;
  font-size: 2.6rem;
  line-height: 1;
}

.hq-purpose-card strong {
  color: #d8ad54;
  font-size: .82rem;
  letter-spacing: .06em;
}

.hq-purpose-card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  line-height: 1.5;
}

/* High-quality Connect hero from the original upload */
.exact-contact-hero {
  background: #061b20;
}

.exact-contact-hero > img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  image-rendering: auto;
}

@media (max-width: 1000px) {
  .hq-welcome-section {
    grid-template-columns: 42% 58%;
  }

  .hq-purpose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .hq-welcome-section {
    grid-template-columns: 1fr;
  }

  .hq-welcome-copy {
    min-height: 520px;
    padding: 60px 26px;
    background: #050505;
  }

  .hq-welcome-image {
    min-height: 540px;
  }

  .hq-welcome-image img {
    object-position: 49% 12%;
  }

  .hq-purpose-grid {
    grid-template-columns: 1fr;
  }

  .hq-purpose-card {
    min-height: 160px;
  }
}


/* =========================================================
   FINAL WELCOME PICTURE POSITION — MATCH APPROVED EXAMPLE
   ========================================================= */

.hq-welcome-section {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 781 / 484;
  overflow: hidden;
  background: #050505;
}

.hq-welcome-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.hq-welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 18%;
  image-rendering: auto;
}

.hq-welcome-copy {
  position: relative;
  z-index: 2;
  width: 43%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px) clamp(28px, 4vw, 58px);
  background:
    linear-gradient(
      90deg,
      #050505 0%,
      #050505 64%,
      rgba(5,5,5,.96) 75%,
      rgba(5,5,5,.78) 86%,
      rgba(5,5,5,0) 100%
    );
}

.hq-welcome-copy h2 {
  font-size: clamp(2.9rem, 5.2vw, 5.5rem);
}

.hq-welcome-text {
  max-width: 300px;
}

@media (max-width: 820px) {
  .hq-welcome-section {
    aspect-ratio: auto;
    min-height: 880px;
  }

  .hq-welcome-image {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 55%;
  }

  .hq-welcome-image img {
    object-position: 42% 12%;
  }

  .hq-welcome-copy {
    width: 100%;
    height: 50%;
    min-height: 440px;
    padding: 52px 26px;
    background:
      linear-gradient(
        180deg,
        #050505 0%,
        #050505 74%,
        rgba(5,5,5,.92) 88%,
        rgba(5,5,5,0) 100%
      );
  }
}


/* =========================================================
   EXACT UPLOADED WELCOME IMAGE — NO QUALITY MODIFICATION
   ========================================================= */

.uploaded-welcome-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.uploaded-welcome-section > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  image-rendering: auto;
}

/* Invisible interactive area over the visible Learn More About Us button. */
.uploaded-welcome-learn-link {
  position: absolute;
  left: 5.1%;
  bottom: 7.2%;
  width: 22.8%;
  height: 9.5%;
  z-index: 3;
  cursor: pointer;
}

.uploaded-welcome-learn-link:focus-visible {
  outline: 3px solid #d8ad54;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .uploaded-welcome-section {
    overflow-x: auto;
  }

  .uploaded-welcome-section > img {
    min-width: 720px;
  }
}

/* Pastor's Desk Mission Statement */
.pastor-desk-section{padding:110px clamp(24px,8vw,130px);background:linear-gradient(135deg,#080808,#310006);color:#fff}.pastor-desk-inner{max-width:1000px;margin:0 auto;text-align:center}.pastor-desk-inner h2 span{color:var(--gold-light)}.pastor-desk-scripture{color:var(--gold-light);font-weight:900;letter-spacing:.08em}.pastor-desk-inner blockquote{margin:35px auto 0;padding:35px;border-left:4px solid var(--red);background:rgba(255,255,255,.06);text-align:left;font-family:"Playfair Display",Georgia,serif;font-size:clamp(1.1rem,2vw,1.5rem)}
/* Youth Sunday School Lesson */
.youth-lesson-section{background:#f7f1e5;color:#080808}.youth-lesson-hero{padding:100px 24px 70px;text-align:center;background:linear-gradient(135deg,#080808,#62000d);color:#fff}.youth-lesson-hero h2{margin-bottom:12px}.youth-lesson-hero h3{margin:20px 0 8px;color:var(--gold-light);font-family:"Playfair Display",Georgia,serif;font-size:clamp(1.7rem,4vw,3rem)}.lesson-reference{font-weight:900;letter-spacing:.08em}.lesson-audio-controls{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:28px}.lesson-audio-controls button{padding:12px 16px;border:1px solid var(--gold);background:transparent;color:#fff;cursor:pointer;font-weight:900}.lesson-audio-controls button:hover{background:var(--red);border-color:var(--red)}.youth-lesson-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:70px clamp(18px,5vw,80px)}.lesson-card{padding:28px;background:#fff;border-top:4px solid var(--gold);box-shadow:0 12px 30px rgba(0,0,0,.07)}.lesson-card h3{font-family:"Playfair Display",Georgia,serif;font-size:1.55rem}.lesson-card h4{color:var(--red)}.memory-verse-card,.prayer-card{grid-column:1/-1}.lesson-card blockquote{margin:0 0 12px;font-size:1.2rem;font-family:"Playfair Display",Georgia,serif}.lesson-point{display:grid;grid-template-columns:55px 1fr;gap:18px}.point-number{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--red);color:#fff;font-size:1.35rem;font-weight:900}.check-list{list-style:none;padding:0}.check-list li::before{content:"✓";color:var(--red);font-weight:900;margin-right:10px}.youth-quiz-section{padding:80px clamp(18px,5vw,80px);background:#080808;color:#fff}.youth-quiz-heading{max-width:780px;margin:0 auto 40px;text-align:center}.youth-quiz-heading h2{margin-bottom:15px}.youth-quiz-form{max-width:900px;margin:0 auto;display:grid;gap:20px}.quiz-name-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.youth-quiz-form label{display:grid;gap:8px}.youth-quiz-form input[type="text"],.youth-quiz-form textarea{width:100%;padding:15px;border:1px solid rgba(216,173,84,.45);background:#111;color:#fff}.youth-quiz-form fieldset{display:grid;gap:10px;padding:22px;border:1px solid rgba(255,255,255,.16);background:#111}.youth-quiz-form legend{color:var(--gold-light);font-weight:900;padding:0 8px}.youth-quiz-form fieldset label{display:flex;align-items:center;gap:10px}.youth-quiz-form button{padding:16px 22px;border:0;background:var(--red);color:#fff;cursor:pointer;font-weight:900;letter-spacing:.05em}.youth-quiz-form button:hover{background:#d01829}@media(max-width:760px){.youth-lesson-content{grid-template-columns:1fr}.memory-verse-card,.prayer-card{grid-column:auto}.quiz-name-row{grid-template-columns:1fr}}


/* =========================================================
   DEDICATED YOUTH SUNDAY SCHOOL PAGE
   ========================================================= */

.youth-lesson-page {
  background: #080808;
}

.lesson-page-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: #080808;
  color: #fff;
  border-bottom: 1px solid rgba(216, 173, 84, .25);
}

.lesson-page-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-page-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.lesson-page-brand strong,
.lesson-page-brand small {
  display: block;
}

.lesson-page-brand strong {
  font-size: .9rem;
  letter-spacing: .09em;
}

.lesson-page-brand small {
  margin-top: 4px;
  font-size: .54rem;
  letter-spacing: .18em;
}

.lesson-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lesson-page-nav a {
  padding: 10px 13px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.lesson-page-nav a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.lesson-page-footer {
  padding: 36px 20px;
  background: #050505;
  color: rgba(255,255,255,.72);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.1);
}

.lesson-page-footer p {
  margin: 5px 0;
}

.lesson-page-footer a {
  color: var(--gold-light);
}

@media (max-width: 680px) {
  .lesson-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-page-nav {
    width: 100%;
  }

  .lesson-page-nav a {
    flex: 1;
    text-align: center;
  }
}


/* Youth lesson read-aloud status */
.lesson-audio-status {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.lesson-audio-controls button:disabled {
  cursor: not-allowed;
  opacity: .45;
}


/* One-click jump from Give Online to the Tithes & Offerings section */
#giving {
  scroll-margin-top: 100px;
}


/* Reliable one-click jump to Tithes & Offerings */
#giving {
  scroll-margin-top: 110px !important;
}

#give-online-jump {
  position: relative;
  z-index: 10002;
  pointer-events: auto !important;
  touch-action: manipulation;
}


/* =========================================================
   SERMON STUDY CENTER
   ========================================================= */
.sermon-entry-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.sermon-entry-card .sermon-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 8px 0 20px; color: rgba(255,255,255,.72);
  font-weight: 700; font-size: .86rem; letter-spacing: .04em;
}
.sermon-action-row { display:flex; flex-wrap:wrap; gap:12px; }
.sermon-action-row a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; padding: 0 20px; border-radius:999px;
  text-decoration:none; font-weight:900; letter-spacing:.04em;
}
.sermon-watch { background:#b91f2d; color:#fff; }
.sermon-study { background:#d7a928; color:#111; }
.sermon-library { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45); }

.study-page-body { background:#0f0f0f; color:#fff; }
.study-page-header {
  position:sticky; top:0; z-index:50; background:rgba(10,10,10,.95);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}
.study-page-header-inner {
  max-width:1180px; margin:auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
}
.study-page-header img { width:62px; height:62px; object-fit:contain; border-radius:50%; }
.study-page-header a { color:#fff; text-decoration:none; font-weight:800; }
.study-hero {
  padding:90px 24px 70px;
  background:
    radial-gradient(circle at 85% 15%, rgba(185,31,45,.32), transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(215,169,40,.20), transparent 35%),
    #111;
}
.study-wrap { max-width:1020px; margin:auto; }
.study-eyebrow { color:#d7a928; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.study-hero h1 { font-size:clamp(2.6rem,7vw,5.8rem); line-height:.94; margin:14px 0 18px; }
.study-hero h1 span { color:#d7a928; }
.study-meta { display:flex; flex-wrap:wrap; gap:12px 22px; color:rgba(255,255,255,.76); font-weight:700; }
.study-tools { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.study-tools button, .study-tools a {
  border:0; border-radius:999px; min-height:48px; padding:0 20px;
  font:inherit; font-weight:900; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
}
.tool-gold { background:#d7a928; color:#111; }
.tool-red { background:#b91f2d; color:#fff; }
.tool-outline { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.46)!important; }
.study-status { color:rgba(255,255,255,.72); margin-top:14px; min-height:22px; }
.study-content { padding:62px 24px; background:#f6f2ea; color:#1b1b1b; }
.study-grid { display:grid; grid-template-columns:1fr; gap:24px; }
.study-card {
  background:#fff; border-radius:20px; padding:30px;
  box-shadow:0 15px 40px rgba(0,0,0,.08); border-top:5px solid #d7a928;
}
.study-card h2, .study-card h3 { color:#a71919; }
.study-points { display:grid; gap:16px; }
.study-point { padding:18px; border-radius:14px; background:#f8f4ec; border-left:5px solid #b91f2d; }
.study-point h3 { margin:0 0 7px; }
.study-quiz-wrap { padding:70px 24px; background:#151515; }
.study-quiz-form { max-width:900px; margin:auto; display:grid; gap:22px; }
.study-quiz-form .form-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.study-quiz-form label, .study-quiz-form legend { font-weight:800; }
.study-quiz-form input[type=text], .study-quiz-form input[type=email], .study-quiz-form textarea {
  width:100%; margin-top:8px; border:1px solid rgba(255,255,255,.22);
  background:#242424; color:#fff; border-radius:12px; padding:14px; font:inherit;
}
.study-quiz-form fieldset {
  border:1px solid rgba(255,255,255,.18); border-radius:16px; padding:22px;
}
.study-quiz-form fieldset label { display:block; padding:9px 0; font-weight:600; }
.study-submit {
  border:0; border-radius:999px; background:#d7a928; color:#111;
  padding:16px 28px; font:inherit; font-weight:900; cursor:pointer;
}
.study-library { padding:70px 24px; background:#f6f2ea; color:#1a1a1a; min-height:70vh; }
.library-grid { max-width:1100px; margin:30px auto 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.library-card {
  background:#fff; border-radius:20px; padding:26px; border-top:6px solid #b91f2d;
  box-shadow:0 15px 38px rgba(0,0,0,.08);
}
.library-card h2 { margin:8px 0; }
.library-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.library-actions a {
  padding:10px 15px; border-radius:999px; text-decoration:none; font-weight:900;
  background:#111; color:#fff;
}
.library-actions a:nth-child(2) { background:#b91f2d; }
.library-actions a:nth-child(3) { background:#d7a928; color:#111; }
@media (max-width:720px) {
  .study-page-header-inner { padding:10px 16px; }
  .study-page-header img { width:50px; height:50px; }
  .study-hero { padding-top:60px; }
  .study-card { padding:22px; }
  .study-quiz-form .form-row { grid-template-columns:1fr; }
}


/* Front-page sermon archive restored to the original simple layout */
.sermon-front-list {
  display: grid;
  gap: 0;
}

.sermon-front-item {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 10px;
  text-decoration: none;
}

.sermon-front-item .archive-title {
  width: 100%;
}

.sermon-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 999px;
  background: #d7a928;
  color: #111;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .2s ease, background .2s ease;
}

.sermon-learn-more:hover,
.sermon-learn-more:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .sermon-front-item {
    padding: 22px 0 !important;
  }
}


/* Quiz grading and correct-answer feedback */
.quiz-choice-correct {
  background: #e7f7ea !important;
  border: 2px solid #238636 !important;
  color: #123b1c !important;
  border-radius: 10px;
  padding: 10px !important;
}

.quiz-choice-wrong {
  background: #fde9e9 !important;
  border: 2px solid #b42318 !important;
  color: #5e1712 !important;
  border-radius: 10px;
  padding: 10px !important;
}

.quiz-correct-answer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e7f7ea;
  color: #123b1c;
  border-left: 5px solid #238636;
}

.quiz-answer-status-correct {
  background: #e7f7ea;
  color: #123b1c;
  border-left-color: #238636;
}

.quiz-answer-status-wrong {
  background: #fde9e9;
  color: #5e1712;
  border-left-color: #b42318;
}

.quiz-results-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  color: #171717;
  border-top: 6px solid #d7a928;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.quiz-results-panel h3 {
  margin: 0 0 8px;
  color: #a71919;
  font-size: 1.55rem;
}

.quiz-score {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.quiz-result-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0;
  font-weight: 800;
  font-size: .86rem;
}

.quiz-key-correct {
  color: #176329;
}

.quiz-key-wrong {
  color: #9b1c13;
}

.quiz-email-results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #b91f2d;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .035em;
}

.quiz-email-results:hover,
.quiz-email-results:focus-visible {
  background: #8e1722;
}

/* Keep youth quiz feedback readable on the dark page */
.youth-quiz-form .quiz-results-panel {
  background: #ffffff;
  color: #171717;
}

.youth-quiz-form fieldset label.quiz-choice-correct,
.youth-quiz-form fieldset label.quiz-choice-wrong,
.study-quiz-form fieldset label.quiz-choice-correct,
.study-quiz-form fieldset label.quiz-choice-wrong {
  display: block;
}


/* =========================================================
   SUNDAY SCHOOL ACTION BUTTONS
   Match the yellow Learn More buttons in the Sermon Archive
   ========================================================= */
#sunday-school .lesson-list article a.sunday-school-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 54px;
  margin-top: 10px;
  padding: 0 27px;
  border: 0;
  border-radius: 999px;
  background: #ffd400;
  color: #171717;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

#sunday-school .lesson-list article a.sunday-school-action:hover,
#sunday-school .lesson-list article a.sunday-school-action:focus-visible {
  background: #ffffff;
  color: #171717;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

#sunday-school .lesson-list article a.sunday-school-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .8);
  outline-offset: 4px;
}

@media (max-width: 650px) {
  #sunday-school .lesson-list article a.sunday-school-action {
    min-height: 50px;
    padding: 0 23px;
  }
}


/* AUGUST 2, 2026 SUNDAY SCHOOL STUDY UPDATE */
#sunday-school .sunday-school-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
#sunday-school .sunday-school-actions .sunday-school-action { margin-top: 0; }
#sunday-school .lesson-teacher {
  margin: 8px 0 14px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  color: #ffe7a3;
}
.study-source-note,
.library-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #c49a1a;
  background: rgba(196, 154, 26, .10);
  font-size: .92rem;
}
.youth-archive-hero { background-position: center; }
@media (max-width: 650px) {
  #sunday-school .sunday-school-actions { flex-direction: column; align-items: flex-start; }
}


/* AUGUST 3, 2026 REVIEW - archive text fit and sermon action buttons */
.library-card h2 {
  margin: 8px 0;
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: normal;
}
.library-card p {
  overflow-wrap: anywhere;
}
.sermon-front-item .archive-title {
  width: 100%;
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.sermon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.sermon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ffd400;
  color: #171717;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .14);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.sermon-action:hover,
.sermon-action:focus-visible {
  background: #ffffff;
  color: #171717;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.sermon-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .8);
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .sermon-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .sermon-action {
    min-height: 48px;
    padding: 0 20px;
  }
  .library-card h2 {
    font-size: 1.05rem;
  }
}


/* AUGUST 3 COMPLETE REVIEW - matching three-button controls for every homepage sermon */
.sermon-front-item .sermon-actions { width:100%; }
.sermon-front-item .sermon-action { white-space:nowrap; }
@media (min-width:651px) {
  .sermon-front-item .sermon-actions { align-items:center; }
}
@media (max-width:650px) {
  .sermon-front-item .sermon-actions { width:100%; }
  .sermon-front-item .sermon-action { width:min(100%, 220px); }
}


/* ==========================================================
   CLOUDFLARE DIRECT FORMS + PRAYER REQUEST PAGE
   Added for secure direct submissions, Turnstile protection,
   anonymous prayer requests, and on-page success messages.
   ========================================================== */
.cloudflare-direct-form .form-status {
  min-height: 1.35em;
  margin: 2px 0;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}
.cloudflare-direct-form .form-status.success {
  padding: 14px 16px;
  border: 1px solid rgba(104, 211, 145, .55);
  background: rgba(27, 94, 52, .34);
  color: #b9f6ca;
}
.cloudflare-direct-form .form-status.error {
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, .55);
  background: rgba(122, 15, 27, .32);
  color: #ffd0d0;
}
.cloudflare-direct-form .form-status.info {
  padding: 12px 14px;
  border: 1px solid rgba(216, 173, 84, .38);
  background: rgba(216, 173, 84, .08);
  color: #f1d99d;
}
.cloudflare-direct-form button:disabled {
  cursor: wait;
  opacity: .7;
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}
.turnstile-slot {
  min-height: 66px;
  display: flex;
  align-items: center;
}
.form-privacy-note {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  line-height: 1.5;
}
.prayer-page-body {
  background: #050505;
}
.prayer-request-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 140px 24px 80px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 15%, rgba(216,173,84,.16), transparent 34%),
    linear-gradient(145deg, #060606 0%, #2f0509 55%, #050505 100%);
}
.prayer-request-hero::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(216,173,84,.27);
  pointer-events: none;
}
.prayer-request-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.prayer-request-hero img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0,0,0,.38);
}
.prayer-request-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.04em;
}
.prayer-request-hero h1 span {
  color: var(--gold-light);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}
.prayer-request-hero p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.7;
}
.prayer-request-section {
  padding: 76px clamp(18px, 5vw, 78px) 95px;
  background: #f6f0e3;
  color: #0a0a0a;
}
.prayer-request-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  background: #fff;
  border-top: 5px solid var(--red);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}
.prayer-request-copy h2 {
  margin: 7px 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.prayer-request-copy > p {
  line-height: 1.75;
  color: #333;
}
.prayer-promises {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.prayer-promises li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
  line-height: 1.5;
}
.prayer-promises li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 900;
}
.prayer-request-form {
  padding: 28px;
  background: #090909;
  color: #fff;
}
.form-check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid rgba(216,173,84,.3);
  background: #111;
  font-weight: 700;
  line-height: 1.45;
}
.form-check-row input {
  width: 18px !important;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}
.confidential-check {
  border-color: rgba(178,15,29,.55);
  background: rgba(178,15,29,.11);
}
.identity-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  transition: opacity .2s ease;
}
.identity-fields.identity-hidden {
  display: none;
}
@media (max-width: 850px) {
  .prayer-request-card { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .identity-fields, .reference-field-row { grid-template-columns: 1fr; }
  .prayer-request-form { padding: 20px; }
  .prayer-request-hero { min-height: 430px; }
}

.contact-prayer-button{display:inline-flex;margin:8px 0 10px;}


/* SEPTEMBER 2 REVIEW - Sunday School homepage latest/previous adult + youth layout */
#sunday-school .lesson-list {
  align-content: start;
  padding-top: clamp(42px, 5vw, 70px);
  padding-bottom: clamp(42px, 5vw, 70px);
}
#sunday-school .lesson-list article {
  padding: 22px 0;
}
#sunday-school .lesson-list article h3 {
  margin: 7px 0 8px;
  font-size: clamp(1.12rem, 1.8vw, 1.58rem);
  line-height: 1.18;
}
#sunday-school .lesson-list .lesson-teacher {
  color: #17202a;
  font-size: .78rem;
  line-height: 1.45;
}
#sunday-school .lesson-list article > span {
  display: block;
  color: #17202a;
}
@media (max-width: 650px) {
  #sunday-school .lesson-list article { padding: 20px 0; }
  #sunday-school .lesson-list article h3 { font-size: 1.18rem; }
}

/* =========================================================
   PUBLIC STUDY POINTS / LEADERBOARD
   ========================================================= */
.button-points { text-decoration: none; }

.quiz-points-registration {
  margin: 1.25rem 0;
  padding: 1.1rem;
  border: 1px solid rgba(190, 139, 38, .45);
  border-radius: 16px;
  background: rgba(190, 139, 38, .08);
}
.quiz-points-registration label {
  display: block;
  font-weight: 800;
  letter-spacing: .02em;
}
.quiz-points-registration input {
  display: block;
  width: 100%;
  margin-top: .55rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(20, 20, 20, .22);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: #161616;
}
.quiz-points-note {
  margin: .7rem 0 .9rem;
  font-size: .88rem;
  line-height: 1.55;
  opacity: .78;
}
.quiz-points-status {
  margin: .75rem 0 0;
  font-weight: 700;
  line-height: 1.45;
}
.quiz-points-status.success { color: #176b36; }
.quiz-points-status.error { color: #a31515; }

.points-page-body {
  margin: 0;
  background: #111318;
  color: #171717;
  font-family: "Montserrat", sans-serif;
}
.points-main { min-height: 70vh; }
.points-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.points-hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 82% 18%, rgba(213, 155, 32, .22), transparent 30%),
    linear-gradient(135deg, #111318 0%, #1f2229 60%, #5f1014 100%);
  color: #fff;
}
.points-hero h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .88;
  letter-spacing: -.05em;
  font-weight: 900;
}
.points-hero h1 span { color: #e4b62f; font-family: "Playfair Display", serif; font-weight: 700; }
.points-hero > .points-wrap > p:not(.study-eyebrow) { max-width: 760px; line-height: 1.7; }
.points-privacy {
  display: inline-block;
  margin-top: .8rem;
  padding: .75rem 1rem;
  border-left: 4px solid #e4b62f;
  background: rgba(255,255,255,.07);
}
.points-board-section { padding: 60px 0 80px; background: #f1eee7; }
.points-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.points-tab {
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  font: inherit;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  background: #17191e;
  color: #fff;
}
.points-tab.active { background: #d8a91f; color: #141414; }
.points-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  border-top: 5px solid #971b1f;
}
.points-card-head, .points-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
}
.points-card-head {
  padding: 18px 22px;
  background: #17191e;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.points-row { padding: 18px 22px; border-bottom: 1px solid #e7e2d8; }
.points-row:last-child { border-bottom: 0; }
.points-rank {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #f0c13d; font-weight: 900;
}
.points-name { font-weight: 900; font-size: 1.05rem; overflow-wrap: anywhere; }
.points-score { font-size: 1.35rem; font-weight: 900; color: #971b1f; text-align: right; }
.points-empty { padding: 42px 24px; text-align: center; line-height: 1.6; color: #5c5a55; }
.points-status { text-align: center; margin: 18px 0 0; font-weight: 700; }
.points-fineprint { max-width: 850px; margin: 24px auto 0; text-align: center; line-height: 1.65; font-size: .88rem; color: #5e5a51; }

@media (max-width: 620px) {
  .points-card-head, .points-row { grid-template-columns: 60px minmax(0, 1fr) 74px; padding-left: 14px; padding-right: 14px; }
  .points-rank { width: 40px; height: 40px; }
  .points-score { font-size: 1.1rem; }
  .points-card-head { font-size: .68rem; }
}

/* ======================================================
   PRIVATE POINTS ADMIN DASHBOARD
   ====================================================== */
.points-admin-link { display: flex; justify-content: center; margin-top: 28px; }
.admin-points-main { min-height: 75vh; }
.admin-points-hero { padding-bottom: 52px; }
.admin-board-section { padding-top: 48px; }
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: #fff; border: 1px solid #ded8cb; border-left: 6px solid #971b1f;
  padding: 28px; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.07);
}
.admin-toolbar h2, .admin-section-head h2 { margin: 4px 0 8px; font-family: "Playfair Display", serif; font-size: clamp(1.6rem, 3vw, 2.25rem); color: #171717; }
.admin-kicker { margin: 0; font-size: .72rem; font-weight: 900; letter-spacing: .16em; color: #971b1f; }
.admin-toggle {
  min-width: 220px; border: 0; border-radius: 999px; padding: 15px 20px;
  background: #971b1f; color: #fff; font-family: inherit; font-weight: 900; letter-spacing: .04em; cursor: pointer;
}
.admin-toggle.is-public { background: #161616; color: #e4b62f; }
.admin-toggle:disabled { opacity: .55; cursor: not-allowed; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 48px; }
.admin-summary-grid article { background: #171717; color: #fff; border-radius: 14px; padding: 24px; text-align: center; }
.admin-summary-grid span { display: block; font-size: .7rem; font-weight: 900; letter-spacing: .12em; color: #e4b62f; }
.admin-summary-grid strong { display: block; margin-top: 8px; font-size: 1.8rem; }
.admin-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 30px 0 16px; }
.admin-recent-head { margin-top: 46px; }
.admin-table-card { overflow-x: auto; background: #fff; border: 1px solid #ded8cb; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.05); }
.admin-table { min-width: 830px; }
.admin-table-row { display: grid; align-items: center; border-bottom: 1px solid #ece7dd; padding: 15px 18px; gap: 12px; }
.admin-participant-table .admin-table-row { grid-template-columns: 1.35fr 1.85fr .65fr .65fr .65fr; }
.admin-results-table .admin-table-row { grid-template-columns: 1.5fr 2fr 1fr .9fr .65fr; }
.admin-table-row:last-child { border-bottom: 0; }
.admin-table-head { background: #171717; color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.admin-primary { font-weight: 900; }
.admin-private-email { color: #5d5951; overflow-wrap: anywhere; }
.admin-table-row small { display: block; margin-top: 3px; color: #6c675d; overflow-wrap: anywhere; }
.admin-score { font-size: 1.05rem; font-weight: 900; color: #971b1f; }
.admin-table-empty { padding: 34px 20px; text-align: center; color: #625e55; }
.admin-security-note { margin-top: 38px; padding: 24px; background: #fff8df; border: 1px solid #e4c96d; border-radius: 14px; }
.admin-security-note h3 { margin: 0 0 8px; color: #971b1f; }
.admin-security-note p { margin: 0; line-height: 1.7; }
@media (max-width: 760px) {
  .admin-toolbar, .admin-section-head { align-items: stretch; flex-direction: column; }
  .admin-toggle { width: 100%; min-width: 0; }
  .admin-summary-grid { grid-template-columns: 1fr; }
}


/* Secure quiz + private answer review additions */
.speaker-bonus-pending { margin: 22px 0; padding: 18px 20px; border: 2px dashed #c99b21; border-radius: 12px; background: #fff8df; }
.speaker-bonus-pending h3 { margin: 0 0 7px; color: #971b1f; font-size: 1rem; letter-spacing: .05em; }
.speaker-bonus-pending p { margin: 0; line-height: 1.6; }
.quiz-submitted-locked { opacity: .94; }
.quiz-results-private .quiz-result-key, .quiz-results-private .quiz-key-correct, .quiz-results-private .quiz-key-wrong { display:none !important; }
.admin-results-table .admin-table-row { grid-template-columns: 1.35fr 1.8fr .9fr .8fr .55fr .8fr; }
.admin-view-answers, #answer-detail-close { border:0; border-radius:999px; background:#971b1f; color:#fff; font-weight:900; font-size:.72rem; padding:10px 14px; cursor:pointer; }
.admin-answer-detail { margin-top:24px; padding:24px; background:#f7f2e7; border:1px solid #d9ccb1; border-radius:14px; }
.admin-answer-detail[hidden] { display:none; }
.admin-answer-detail-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.admin-answer-detail-head h2 { margin:4px 0 12px; font-family:"Playfair Display",serif; }
#answer-detail-meta { display:flex; gap:24px; flex-wrap:wrap; margin-bottom:16px; }
#answer-detail-meta p { margin:0; }
.admin-answer-card { background:#fff; border-left:6px solid #7c7c7c; border-radius:10px; padding:17px 18px; margin:12px 0; box-shadow:0 4px 16px rgba(0,0,0,.04); }
.admin-answer-card.is-correct { border-left-color:#287a3f; }
.admin-answer-card.is-wrong { border-left-color:#a72b2b; }
.admin-answer-card p { margin:8px 0; line-height:1.55; }
.admin-answer-top { display:flex; justify-content:space-between; gap:12px; color:#971b1f; }
.admin-answer-top span { font-weight:900; font-size:.72rem; letter-spacing:.08em; }
.admin-answer-card a { margin-left:8px; font-size:.75rem; font-weight:900; color:#971b1f; }
@media (max-width:700px){ .admin-answer-detail-head{flex-direction:column;} #answer-detail-close{width:100%;} }

/* Points-period administration + verified speaker bonus */
.admin-period-panel { margin: 0 0 42px; padding: 24px; background: #fff8df; border: 1px solid #e4c96d; border-radius: 14px; }
.admin-period-panel h2 { margin: 4px 0 8px; font-family: "Playfair Display", serif; color: #171717; }
.admin-period-copy p:last-child { margin-bottom: 0; line-height: 1.65; }
.admin-period-controls { display: grid; grid-template-columns: minmax(220px,1.35fr) repeat(3,minmax(150px,1fr)); gap: 12px; align-items: end; margin-top: 20px; }
.admin-period-controls label { font-weight: 800; font-size: .8rem; letter-spacing: .04em; }
.admin-period-controls select { width: 100%; margin-top: 7px; border: 1px solid #c9b987; border-radius: 10px; padding: 12px; background: #fff; font: inherit; }
.admin-period-button { border: 0; border-radius: 999px; padding: 13px 16px; background: #171717; color: #fff; font-weight: 900; font-size: .72rem; letter-spacing: .05em; cursor: pointer; }
.admin-period-start { background: #971b1f; }
.admin-period-reset { background: #6b1719; }
.admin-period-button:disabled { opacity: .5; cursor: not-allowed; }
.admin-period-warning { margin: 16px 0 0; font-size: .85rem; line-height: 1.55; color: #6a4b0a; }
.speaker-attention-bonus { border: 2px solid #e0b62e !important; background: #fff9df; }
.speaker-attention-bonus legend { color: #8e191d; font-weight: 900; }
.speaker-bonus-note { margin: 0 0 14px; font-size: .9rem; line-height: 1.55; color: #5f5538; }
@media (max-width: 980px) { .admin-period-controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .admin-period-controls { grid-template-columns: 1fr; } }


/* Private participant points lookup */
.points-self-card { max-width: 760px; margin: 0 auto 42px; background:#fff; border-radius:20px; padding:clamp(24px,5vw,46px); box-shadow:0 18px 45px rgba(0,0,0,.10); border-top:5px solid #971b1f; }
.points-self-card h2 { margin:.25rem 0 .65rem; font-size:clamp(2rem,5vw,3.2rem); }
.points-self-card > p { line-height:1.65; }
.points-lookup-form { display:grid; gap:12px; margin-top:24px; }
.points-lookup-form label { font-weight:900; letter-spacing:.08em; font-size:.78rem; }
.points-lookup-form input { width:100%; border:1px solid #cfc8bb; border-radius:10px; padding:14px 15px; font:inherit; background:#fff; }
.points-lookup-form .button { justify-self:start; border:0; cursor:pointer; }
.points-turnstile { min-height:0; }
.my-points-result { margin-top:22px; border:1px solid #ded8cb; border-radius:16px; overflow:hidden; }
.my-points-name { background:#17191e; color:#fff; padding:17px 20px; font-weight:900; font-size:1.2rem; }
.my-points-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.my-points-grid > div { padding:22px 18px; text-align:center; border-right:1px solid #e7e2d8; }
.my-points-grid > div:last-child { border-right:0; }
.my-points-grid span,.my-points-grid small { display:block; }
.my-points-grid span { font-size:.7rem; letter-spacing:.08em; font-weight:900; color:#6a655d; }
.my-points-grid strong { display:block; margin:.3rem 0; font-size:2rem; color:#971b1f; }
.my-points-grid small { color:#6a655d; }
.public-leaderboard-section { margin-top:42px; }
@media(max-width:620px){ .my-points-grid{grid-template-columns:1fr;} .my-points-grid>div{border-right:0;border-bottom:1px solid #e7e2d8;} .my-points-grid>div:last-child{border-bottom:0;} }
