:root {
  --navy: #112c45;
  --navy-deep: #0b1d2e;
  --gold: #d4b15d;
  --gold-soft: #f1e4b9;
  --cream: #f6f2ea;
  --stone: #eef2f6;
  --ink: #1a2b36;
  --muted: #5d6d78;
  --line: #e7e1d5;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(17, 44, 69, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Noto Sans Telugu", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

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

iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy-deep);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 44, 69, 0.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 22px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.12em;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.brand-copy small {
  font-size: 10px;
  letter-spacing: 0.28em;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: #405565;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--gold);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-cta,
.button.primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 20px rgba(212, 177, 93, 0.24);
}

.button.secondary {
  border: 1px solid rgba(17, 44, 69, 0.2);
  background: transparent;
  color: var(--navy);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(17, 44, 69, 0.1);
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.8);
}

.lang-switcher a {
  padding: 7px 9px;
  border-radius: 999px;
  color: #415868;
  font-size: 12px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 30px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2237 0%, #173b59 48%, #5a4a38 100%);
  color: var(--white);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 46, 0.78), rgba(17, 44, 69, 0.26)), url("/images/000.png") center/cover no-repeat;
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 36px;
  min-height: 660px;
  padding: 90px 0 90px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

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

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

h1, h2, h3 {
  margin: 0 0 20px;
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5vw, 72px);
  margin-bottom: 16px;
  max-width: 540px;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-verse {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 540px;
}

.hero-verse p {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-verse span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  place-items: end;
}

.panel-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}

.top-card {
  margin-left: 30px;
}

.panel-card h3 {
  color: var(--white);
  font-size: 26px;
  margin-bottom: 8px;
}

.panel-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.image-card {
  min-height: 260px;
  background: url("/images/001.png") center/cover no-repeat;
  border-radius: 20px;
  background-position: center top;
}

.section {
  padding: 100px 0;
}

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

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

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

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.section-heading h2,
.center-heading h2,
.section-title-row h2,
.page-banner h1,
.live-copy h2,
.live-aside h2,
.video-detail-aside h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 48px);
}

.section-navy .live-copy h2,
.section-navy .live-aside h2 {
  color: var(--white);
}

.section-copy {
  display: grid;
  gap: 16px;
}

.lead,
.section-copy p,
.soft-card p,
.prayer-strip h2,
.page-banner p,
.live-copy p,
.live-aside p,
.video-detail-aside p,
.contact-card p,
.pastor-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.section-navy .live-copy p,
.section-navy .live-aside p,
.section-navy .live-copy span,
.section-navy .live-aside span {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.center-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.pastor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pastor-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 18px rgba(17, 44, 69, 0.04);
}

.pastor-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 112px;
  background: linear-gradient(135deg, #d4b15d, #a77f36);
  border-radius: 18px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 34px;
}

.pastor-badge.soft {
  background: linear-gradient(135deg, #d8d4cd, #ac918d);
}

.role-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.pastor-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--navy);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(17, 44, 69, 0.04);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(17, 44, 69, 0.08);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f2339;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: linear-gradient(135deg, #1d4162, #111a28);
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 177, 93, 0.94);
  color: var(--navy);
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(212, 177, 93, 0.25);
}

.play-badge.large {
  width: 70px;
  height: 70px;
  font-size: 28px;
  margin: 0 auto 18px;
  position: static;
}

.video-body {
  padding: 18px 18px 20px;
}

.video-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.video-card h3 {
  margin: 0;
  font-size: 24px;
  color: var(--navy);
}

.breadcrumb-nav {
  padding: 12px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(17, 44, 69, 0.08);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
  color: var(--navy);
  font-size: 13px;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gold);
}

.breadcrumb-list a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--gold);
}

.page-banner {
  background: linear-gradient(135deg, rgba(17, 44, 69, 0.18), rgba(212, 177, 93, 0.16)), url("/images/seo-page-banner.jpg") center/cover no-repeat;
  padding: 84px 0 54px;
}

.page-banner-featured {
  background: linear-gradient(135deg, rgba(17, 44, 69, 0.18), rgba(212, 177, 93, 0.16)), url("/images/slinger-against-the-giant.png") center bottom / cover no-repeat;
}

.page-banner .narrow {
  max-width: 760px;
}

.page-banner h1 {
  margin-bottom: 10px;
  color: var(--navy);
}

.page-banner p {
  margin: 0;
}

.live-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.live-copy h2,
.live-aside h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.live-copy p,
.live-aside p {
  margin-bottom: 20px;
}

.live-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.schedule-box {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-box strong,
.schedule-box span {
  display: block;
}

.schedule-box strong {
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.schedule-box span {
  color: rgba(255, 255, 255, 0.78);
}

.live-preview,
.live-embed-frame,
.video-player-wrap {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #081a27;
  box-shadow: var(--shadow);
}

.live-preview iframe,
.live-embed-frame iframe,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.placeholder-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(18, 38, 56, 0.96), rgba(11, 29, 46, 0.9));
  border-radius: 18px;
  padding: 24px;
}

.placeholder-live h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.placeholder-live p {
  margin: 0 0 18px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
}

.large-panel {
  min-height: 420px;
}

.prayer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 8px 18px rgba(17, 44, 69, 0.04);
}

.prayer-strip h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  color: var(--navy);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-quote {
  padding: 24px 26px;
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: rgba(17, 44, 69, 0.03);
}

.about-quote blockquote {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.4;
  color: var(--navy);
}

.about-quote small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.soft-card {
  background: rgba(17, 44, 69, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.pastor-feature {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 26px;
  align-items: center;
}

.pastor-feature.reverse {
  grid-template-columns: 1.3fr 0.7fr;
}

.pastor-feature.reverse > :first-child {
  order: 2;
}

.feature-portrait {
  min-height: 280px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.portrait-one {
  background-image: url("/images/001.png");
  background-position: center top;
}

.portrait-two {
  background-image: url("/images/002.png");
  background-position: center top;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  border: 1px dashed rgba(17, 44, 69, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 28px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(17, 44, 69, 0.03);
  border: 1px solid rgba(17, 44, 69, 0.05);
}

.contact-list strong {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list span {
  color: var(--muted);
  font-size: 15px;
}

.prayer-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prayer-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}

.prayer-form input,
.prayer-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(17, 44, 69, 0.12);
  border-radius: 12px;
  background: rgba(246, 242, 234, 0.7);
  padding: 12px 14px;
  color: var(--ink);
}

.prayer-form textarea {
  min-height: 140px;
  resize: vertical;
}

.hidden-field {
  display: none !important;
}

.form-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(212, 177, 93, 0.12);
  color: var(--navy);
  border: 1px solid rgba(212, 177, 93, 0.35);
}

.form-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.video-detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.video-player-wrap {
  min-height: 430px;
}

.video-detail-player-wrap {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.video-player-stage,
.video-player-unavailable {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.video-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.video-player-loading,
.video-player-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, rgba(18, 38, 56, 0.96), rgba(11, 29, 46, 0.9));
}

.video-player-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  overflow: hidden;
}

.video-player-loading[hidden] {
  display: none;
}

.video-player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player-loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: rgba(8, 26, 39, 0.58);
}

.video-loading-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--gold-soft);
  border-radius: 50%;
  animation: video-player-spin 0.8s linear infinite;
}

.video-player-unavailable {
  flex-direction: column;
  border-radius: 18px;
}

.video-player-unavailable[hidden] {
  display: none;
}

.video-detail-date {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes video-player-spin {
  to {
    transform: rotate(360deg);
  }
}

.video-detail-aside {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.video-detail-aside h2 {
  color: var(--navy);
  font-size: 32px;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.76);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 54px 0 36px;
}

.footer-brand-wrap {
  display: grid;
  gap: 18px;
}

.footer-brand-wrap p {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 36px;
  font-size: 12px;
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 82px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 44, 69, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .split-layout,
  .live-panel,
  .contact-layout,
  .video-detail-layout,
  .pastor-feature,
  .pastor-feature.reverse,
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .nav-cta {
    width: 100%;
  }

  .lang-switcher {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 918px) {
  .hero-home::before {
    background-image: linear-gradient(135deg, rgba(11, 29, 46, 0.78), rgba(17, 44, 69, 0.26)), url("/images/hero-responsive.png");
  }
}

@media (max-width: 620px) {
  .field-row,
  .video-grid,
  .pastor-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 72px;
  }

  .hero-grid {
    min-height: 540px;
    padding: 72px 0;
  }

  .section {
    padding: 80px 0;
  }

  .page-banner {
    padding-top: 70px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .prayer-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   TOPBAR & HEADER ENHANCEMENTS
   ========================================================= */
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.topbar-item:hover {
  color: var(--white);
}
.topbar-icon {
  font-size: 13px;
}
.nav-links a.active {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.lang-switcher a.active {
  background: var(--navy);
  color: var(--gold);
  font-weight: 600;
  border-bottom: none;
}

/* =========================================================
   ACTIVITIES PAGE STYLING
   ========================================================= */
.scripture-section {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}
.scripture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.scripture-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(17, 44, 69, 0.05);
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.scripture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.scripture-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.scripture-theme {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.scripture-verse {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 16px;
  font-style: italic;
  flex-grow: 1;
}
.scripture-ref {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

/* Activity Editorial Cards */
.activities-grid {
  display: grid;
  gap: 56px;
}
.activity-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(17, 44, 69, 0.06);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.activity-card-reverse {
  direction: rtl;
}
.activity-card-reverse > * {
  direction: ltr;
}
.activity-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--stone);
}
.activity-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.activity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.activity-card:hover .activity-img {
  transform: scale(1.04);
}
.activity-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.activity-num {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(17, 44, 69, 0.85);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}
.activity-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px;
}
.activity-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}
.activity-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.activity-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0;
}
.activity-meta-pills {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: var(--cream);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--line);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 46, 0.9) 0%, rgba(11, 29, 46, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-caption span {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* CTA Connect Box */
.cta-box {
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-copy h2 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--navy);
  margin: 6px 0 12px;
}
.cta-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.cta-actions-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 600;
  border-radius: 8px;
}

/* =========================================================
   DONATIONS & TITHES STYLING
   ========================================================= */
.theology-badge-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--cream);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  margin-top: 24px;
}
.badge-icon {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
}
.theology-badge-card h4 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
}
.theology-badge-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.donation-scripture-grid {
  margin-top: 32px;
}
.donation-card-single {
  background: var(--white);
  border: 1px solid var(--line);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  margin-top: 40px;
}

.donation-payment-section {
  background:
    radial-gradient(ellipse at 8% 15%, rgba(212, 177, 93, 0.1), transparent 34%),
    var(--cream);
}

.donation-payment-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: stretch;
  gap: 24px;
}

.donation-bank-card,
.donation-qr-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(17, 44, 69, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(17, 44, 69, 0.1);
}

.donation-bank-card::before,
.donation-qr-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--gold-soft));
}

.donation-bank-card .bank-card-header,
.donation-qr-card .qr-card-header {
  align-items: center;
  padding-top: 8px;
}

.donation-bank-card .bank-card-icon,
.donation-qr-card .qr-card-icon {
  flex: 0 0 52px;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
}

.donation-bank-card .bank-card-sub,
.donation-qr-card .qr-card-sub {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.donation-bank-card .detail-row {
  min-height: 58px;
  border-radius: 12px;
}

.donation-bank-card .detail-row.highlight-row {
  border-color: rgba(212, 177, 93, 0.45);
  background: rgba(212, 177, 93, 0.1);
}

.donation-bank-card .detail-value {
  overflow-wrap: anywhere;
}

.donation-qr-card {
  background: linear-gradient(160deg, #fff 0%, #fbfaf5 100%);
}

.donation-qr-card .qr-card-header {
  margin-bottom: 16px;
}

.donation-qr-card .qr-wrapper {
  width: 100%;
}

.donation-qr-card .qr-frame {
  width: min(100%, 340px);
  height: auto;
  padding: 8px;
  border: 1px solid rgba(17, 44, 69, 0.12);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 44, 69, 0.12);
}

.donation-qr-card .qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.donation-qr-card .scan-tag {
  color: var(--navy);
  background: rgba(212, 177, 93, 0.22);
}

.donation-qr-card .verified-badge {
  flex-wrap: wrap;
  padding: 10px 12px;
  border-color: rgba(46, 125, 50, 0.24);
  border-radius: 10px;
}

.bank-card, .qr-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(17, 44, 69, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.bank-card-header, .qr-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.bank-card-icon, .qr-card-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  background: var(--cream);
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
}
.bank-card-header h3, .qr-card-header h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 4px;
}
.bank-card-sub, .qr-card-sub {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.bank-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fbfbfd;
  border-radius: 8px;
  border: 1px solid #f0f0f4;
  gap: 16px;
}
.detail-row.highlight-row {
  background: #fdfaf0;
  border-color: #f1e4b9;
}
.detail-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.detail-val-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}
.detail-value {
  color: var(--navy);
  font-size: 15px;
}
.font-mono {
  font-family: Consolas, Monaco, "Courier New", monospace;
  letter-spacing: 0.05em;
}
.placeholder-text {
  color: #a8833b;
  font-size: 13px;
  font-style: italic;
}

.copy-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.copy-btn.copied {
  background: #2e7d32;
  color: #fff;
}

.bank-card-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.bank-help-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* QR Card Styling */
.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qr-frame {
  width: 220px;
  height: 220px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(17, 44, 69, 0.08);
}
.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scan-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--gold-soft);
  padding: 4px 14px;
  border-radius: 20px;
}
.qr-placeholder-box {
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  background: var(--cream);
  border-radius: 14px;
  border: 2px dashed var(--gold);
}
.qr-icon-large {
  font-size: 42px;
  margin-bottom: 12px;
  color: var(--navy);
}
.qr-placeholder-box h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
}
.qr-placeholder-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}
.admin-notice {
  background: rgba(17, 44, 69, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
}
.admin-notice code {
  background: rgba(17, 44, 69, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.qr-instruction-box {
  background: var(--stone);
  border-radius: 12px;
  padding: 18px;
}
.instruction-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.qr-instruction-box p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 12px;
}
.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 8px 12px;
  border-radius: 8px;
  color: #1b5e20;
  font-size: 12px;
}
.verified-icon {
  font-weight: 900;
  font-size: 14px;
}

/* Transparency Section */
.transparency-badge {
  font-size: 40px;
  margin-bottom: 12px;
}
.transparency-text {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 32px;
}
.transparency-contact-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.strip-label {
  font-size: 13px;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   MESSAGES & INTEGRATED LIVE STREAM STYLING
   ========================================================= */
.live-integrated-wrapper {
  background: var(--navy-deep);
  border: 1px solid rgba(212, 177, 93, 0.35);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.live-integrated-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.live-title-group h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--white);
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d32f2f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(211, 47, 47, 0.6);
}
.pulsing-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.9); opacity: 1; }
}

.live-stream-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.live-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.not-live-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 14px;
}
.not-live-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: rgba(212, 177, 93, 0.15);
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.not-live-content h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  margin: 0 0 6px;
}
.not-live-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.service-schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 177, 93, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 177, 93, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}

/* Video Card Shorts & Buttons */
.shorts-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 20, 60, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}
.video-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f4;
}
.small-btn {
  padding: 7px 14px;
  font-size: 12px;
}
.yt-icon-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-weight: bold;
  font-size: 15px;
  transition: all 0.2s ease;
}
.yt-icon-link:hover {
  background: var(--navy);
  color: var(--gold);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.pagination-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
}
.pagination-channel-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--stone);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Light / Ghost Button Styles */
.button.ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.button.ghost-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}
.button.ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.button.ghost-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* Responsive adjustments for Activities, Donations, & Messages */
@media (max-width: 990px) {
  .activity-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .activity-card-reverse {
    direction: ltr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .donation-payment-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .not-live-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .not-live-icon {
    margin: 0 auto;
  }
  .service-schedule-pill {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    flex-direction: column;
    padding: 6px 0;
    gap: 4px;
    text-align: center;
  }
  .topbar-contacts {
    gap: 12px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .detail-val-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .donation-bank-card,
  .donation-qr-card {
    padding: 22px 18px;
  }
  .donation-bank-card .detail-val-wrap {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

body.giving-modal-open {
  overflow: hidden;
}

.giving-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(7, 19, 31, 0.76);
  overscroll-behavior: contain;
}

.giving-modal[hidden] {
  display: none;
}

.giving-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(212, 177, 93, 0.7);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  overscroll-behavior: contain;
}

.giving-modal-close {
  position: sticky;
  z-index: 2;
  top: 10px;
  grid-column: 1 / -1;
  justify-self: end;
  width: 42px;
  height: 42px;
  margin: 10px 10px -52px 0;
  border: 1px solid rgba(17, 44, 69, 0.16);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(17, 44, 69, 0.14);
}

.giving-modal-copy,
.giving-modal-qr-column {
  min-width: 0;
  padding: 38px 30px 30px;
}

.giving-modal-copy {
  align-self: center;
}

.giving-modal-church,
.giving-modal-qr-label {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.giving-modal-copy h2 {
  margin: 12px 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.18;
}

.giving-modal-copy > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.giving-modal-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.giving-modal-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(212, 177, 93, 0.55);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.giving-modal-copy > .giving-modal-note {
  margin-bottom: 18px;
  font-size: 12px;
}

.giving-modal-details,
.giving-modal-continue {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.giving-modal-qr-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f5f7f9;
  border-left: 1px solid rgba(17, 44, 69, 0.08);
}

.giving-modal-qr-label {
  align-self: flex-start;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.giving-modal-qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  padding: 14px;
  border: 1px solid rgba(17, 44, 69, 0.1);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 44, 69, 0.1);
}

.giving-modal-qr {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 500px);
  object-fit: contain;
}

.giving-modal-qr[hidden],
.giving-modal-qr-placeholder[hidden] {
  display: none;
}

.giving-modal-qr-placeholder {
  display: grid;
  gap: 8px;
  padding: 24px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.giving-modal-qr-placeholder strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
}

.giving-modal :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .giving-modal {
    padding: 12px;
  }

  .giving-modal-card {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }

  .giving-modal-copy,
  .giving-modal-qr-column {
    padding: 22px;
  }

  .giving-modal-qr-column {
    grid-row: 2;
    border-top: 1px solid rgba(17, 44, 69, 0.08);
    border-left: 0;
  }

  .giving-modal-copy {
    grid-row: 3;
  }

  .giving-modal-qr-frame {
    min-height: 0;
  }

  .giving-modal-qr {
    max-height: min(34vh, 280px);
  }
}

@media (max-width: 420px) {
  .giving-modal-copy,
  .giving-modal-qr-column {
    padding: 18px;
  }

  .giving-modal-copy h2 {
    font-size: 27px;
  }
}