:root {
  --bg: #e8f4ff;
  --surface: rgba(245, 248, 254, 0.93);
  --surface-strong: rgba(238, 244, 255, 0.97);
  --text: #0f1f45;
  --muted: #1f4074;
  --primary: #1b4f9b;
  --primary-dark: #13346d;
  --gold: #f8c845;
  --green: #26ad9d;
  --purple: #655bbe;
  --pink: #f68fa0;
  --blue: #1f6fd6;
  --border: rgba(31, 64, 116, 0.2);
  --shadow: 0 16px 40px rgba(31, 64, 116, 0.16);
  --radius: 24px;
  --content: 1180px;
  --text-orange: #d96c06;
  --text-green: #1f9d55;
  --text-red: #c0392b;
  --text-blue: #1d6fd6;
  --text-navy: #1f3a5f;
  --text-pink: #d94f8a;
  --text-purple: #7b4ed9;
  --text-teal: #0f8b8d;
  --sunrise: #7db6ff;
  --lotus: #6fa8ff;
  --sky: #0a99ff;
  --lime: #7be495;
  --violet: #8f6bff;
  --amber: #ffd166;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(33, 105, 194, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 73, 162, 0.30), transparent 34%),
    radial-gradient(circle at bottom left, rgba(16, 81, 162, 0.24), transparent 36%),
    linear-gradient(120deg, #d9e9ff 0%, #c8ddff 22%, #a9d0f9 50%, #9dbcf0 74%, #e6f2ff 100%);
  background-size: 120% 120%;
  animation: pageGlow 18s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
                    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.18), transparent 52%),
                    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.20), transparent 48%);
  pointer-events: none;
}

.hero::after {
  content: "☸";
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.17);
  transform: rotate(10deg);
  pointer-events: none;
}

.hero .flute-icon {
  position: absolute;
  left: 1.5rem;
  bottom: 2rem;
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.19);
  transform: rotate(-12deg);
  pointer-events: none;
  user-select: none;
}


body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.34;
  z-index: -1;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(255, 111, 168, 0.7), rgba(255, 209, 102, 0));
  animation: driftBlob 22s ease-in-out infinite;
}

body::after {
  right: -10rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(87, 204, 255, 0.8), rgba(123, 228, 149, 0));
  animation: driftBlobReverse 24s ease-in-out infinite;
}

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

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

code {
  background: rgba(123, 45, 16, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.container {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(15, 48, 98, 0.90), rgba(23, 58, 137, 0.85));
  border-bottom: 1px solid rgba(248, 201, 62, 0.34);
  box-shadow: 0 10px 24px rgba(11, 38, 89, 0.45);
}

.site-header .brand-text strong,
.site-header .brand-text span {
  color: #f8e26e;
}

.nav-links a {
  color: #eef6ff;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffe48a;
}


.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.translate-button {
  border: 1px solid rgba(248, 201, 62, 0.55);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(135deg, rgba(248, 200, 69, 0.96), rgba(255, 214, 153, 0.92));
  color: #15356f;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 38, 89, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.translate-button:hover,
.translate-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 38, 89, 0.36);
}

.translate-hero-button {
  border: 0;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: logoFloat 5s ease-in-out infinite;
}

.social-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

.clr-orange { color: #ff7f00 !important; }
.clr-green { color: #2ecc71 !important; }
.clr-red { color: #e74c3c !important; }
.clr-blue { color: #3498db !important; }
.clr-navy { color: #2c3e50 !important; }
.clr-pink { color: #ff6b81 !important; }
.clr-black { color: #122b3b !important; }
.clr-rose { color: #be5a7b !important; }
.clr-darkgreen { color: #096a3f !important; }

/* alternate row style for mixed text color usage */
.color-stack span:nth-child(1) { color: #ff7f00; }
.color-stack span:nth-child(2) { color: #2ecc71; }
.color-stack span:nth-child(3) { color: #e74c3c; }
.color-stack span:nth-child(4) { color: #3498db; }
.color-stack span:nth-child(5) { color: #2c3e50; }
.color-stack span:nth-child(6) { color: #ff6b81; }
.color-stack span:nth-child(7) { color: #122b3b; }
.color-stack span:nth-child(8) { color: #be5a7b; }
.color-stack span:nth-child(9) { color: #096a3f; }

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.brand-text strong,
.brand-text span {
  display: block;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-text span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.brand span,
.nav-links a,
.section-heading p,
.lead,
.card p,
.card li,
.contact-list a,
.site-footer p {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  position: relative;
  transition: transform 180ms ease, color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sunrise), var(--lotus), var(--sky));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding: 4.8rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.65), rgba(255, 179, 71, 0));
  filter: blur(8px);
  animation: driftBlob 18s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: 1rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 107, 255, 0.55), rgba(143, 107, 255, 0));
  filter: blur(10px);
  animation: driftBlobReverse 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-grid {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 3rem 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 246, 255, 0.52)),
    url("../../images/background_image.jpg") center center / cover no-repeat;
  box-shadow: 0 22px 50px rgba(31, 64, 116, 0.18);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at top, rgba(255, 214, 153, 0.18), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8c845, #ffd699, #7db6ff);
  color: #0f1f45;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(31, 64, 116, 0.15);
  animation: shimmer 5.5s linear infinite;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  margin: 1rem 0;
  color: #0a1728;
  text-shadow: 0 2px 8px rgba(15, 31, 69, 0.15);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.75rem 0;
  color: #0f2d5a;
}

h3 {
  color: #1b4f9b;
}

.site-header .brand-text strong {
  color: var(--text-red);
}

.site-header .brand-text span {
  color: var(--text-blue);
}

.nav-links a:nth-child(odd) {
  color: var(--text-purple);
}

.nav-links a:nth-child(even) {
  color: var(--text-teal);
}

.section-heading h2,
.card h3,
.contact-grid h2,
.social-card h3,
.festival-item h3 {
  color: var(--text-purple);
}

.section-heading p,
.lead,
.card p,
.card li,
.contact-list a,
.site-footer p,
.festival-item p {
  color: var(--text-navy);
}

.section-heading p {
  color: var(--text-red);
}

.card p,
.calendar-callout p,
.festival-item p {
  color: var(--text-blue);
}

.card li:nth-child(4n + 1),
.contact-list a:nth-child(4n + 1),
.festival-item p:nth-of-type(4n + 1) {
  color: var(--text-orange);
}

.card li:nth-child(4n + 2),
.contact-list a:nth-child(4n + 2) {
  color: var(--text-green);
}

.card li:nth-child(4n + 3),
.contact-list a:nth-child(4n + 3) {
  color: var(--text-purple);
}

.card li:nth-child(4n),
.contact-list a:nth-child(4n) {
  color: var(--text-pink);
}

.cards .card:nth-child(4n + 1) h3,
.photo-card:nth-child(4n + 1) h3,
.festival-item:nth-child(4n + 1) h3 {
  color: var(--text-orange);
}

.cards .card:nth-child(4n + 2) h3,
.photo-card:nth-child(4n + 2) h3,
.festival-item:nth-child(4n + 2) h3 {
  color: var(--text-green);
}

.cards .card:nth-child(4n + 3) h3,
.photo-card:nth-child(4n + 3) h3,
.festival-item:nth-child(4n + 3) h3 {
  color: var(--text-blue);
}

.cards .card:nth-child(4n) h3,
.photo-card:nth-child(4n) h3,
.festival-item:nth-child(4n) h3 {
  color: var(--text-pink);
}

.cards .card:nth-child(4n + 1) p,
.cards .card:nth-child(4n + 1) li,
.photo-card:nth-child(4n + 1) p {
  color: var(--text-navy);
}

.cards .card:nth-child(4n + 2) p,
.cards .card:nth-child(4n + 2) li,
.photo-card:nth-child(4n + 2) p {
  color: var(--text-red);
}

.cards .card:nth-child(4n + 3) p,
.cards .card:nth-child(4n + 3) li,
.photo-card:nth-child(4n + 3) p {
  color: var(--text-purple);
}

.cards .card:nth-child(4n) p,
.cards .card:nth-child(4n) li,
.photo-card:nth-child(4n) p {
  color: var(--text-teal);
}

.stat span {
  color: var(--text-blue);
}

.stat strong {
  color: var(--text-red);
}

.cards .stat:nth-child(4n + 1) strong {
  color: var(--text-orange);
}

.cards .stat:nth-child(4n + 2) strong {
  color: var(--text-green);
}

.cards .stat:nth-child(4n + 3) strong {
  color: var(--text-purple);
}

.cards .stat:nth-child(4n) strong {
  color: var(--text-pink);
}

.site-footer strong {
  color: var(--text-red);
}

.calendar-callout h2,
.calendar-callout h3,
.calendar-callout p,
.calendar-callout .eyebrow {
  color: #fff7eb;
}

.lead,
.section-heading p,
.card p,
.card li,
.contact-list a,
.site-footer p {
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.actions.stacked {
  flex-direction: column;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  position: relative;
  overflow: hidden;
}

.button:hover,
.button:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translateY(-2px);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 380ms ease;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.button.primary {
  background: linear-gradient(135deg, rgba(61, 123, 209, 0.96), rgba(56, 109, 189, 0.96));
  color: white;
  box-shadow: 0 14px 28px rgba(14, 46, 108, 0.36);
  border: 1px solid rgba(249, 215, 92, 0.95);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(145deg, rgba(90, 146, 226, 0.98), rgba(52, 118, 202, 0.98));
  box-shadow: 0 16px 32px rgba(12, 36, 89, 0.52);
}

.button.secondary {
  background: linear-gradient(135deg, rgba(28, 129, 217, 0.95), rgba(41, 169, 231, 0.86), rgba(111, 133, 227, 0.84));
  border: 1px solid rgba(122, 199, 255, 0.45);
  color: white;
  box-shadow: 0 14px 24px rgba(7, 44, 88, 0.30);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: linear-gradient(145deg, rgba(41, 154, 229, 1), rgba(97, 157, 234, 0.95));
  box-shadow: 0 16px 30px rgba(23, 76, 121, 0.45);
}



.hero-card,
.card,
.calendar-callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.card::before,
.calendar-callout::before,
.photo-card::before,
.festival-item::before,
.footer-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.hero-card {
  min-height: 360px;
  max-height: 460px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(51, 26, 13, 0.08), rgba(51, 26, 13, 0.5)),
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.42), transparent 40%),
    radial-gradient(circle at bottom right, rgba(87, 204, 255, 0.38), transparent 42%),
    url("../images/temple2.jpg.jpg") center/cover no-repeat;
  display: grid;
  align-items: end;
  animation: floatCard 8s ease-in-out infinite;
}

.hero-card-inner {
  padding: 2rem;
  color: #fff7eb;
}

.hero-card span {
  display: block;
  margin-bottom: 0.5rem;
}

.hero-card strong {
  font-size: 1.4rem;
}

.section {
  padding: 1.5rem 0 4rem;
  position: relative;
}

.registration-layout,
.registration-layout {
  display: grid;
  gap: 1.2rem;
}
.registration-layout {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: start;
}

.registration-layout .section-heading {
  margin-bottom: 0;
}

.registration-panel {
  height: 100%;
}

.donation-feature {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 209, 0.86), rgba(255, 221, 232, 0.76)),
    url("../theme-downloads/lotus-flower.jpg") center/cover no-repeat;
  background-blend-mode: screen;
}

.donation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.donation-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-purple);
  font-weight: 700;
}

#about {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.82), rgba(255, 244, 196, 0.88), rgba(255, 181, 167, 0.72));
}

#activities {
  background: linear-gradient(135deg, rgba(123, 228, 149, 0.78), rgba(222, 255, 233, 0.88), rgba(87, 204, 255, 0.58));
}

#festivals {
  background: linear-gradient(135deg, rgba(255, 111, 168, 0.78), rgba(255, 219, 235, 0.88), rgba(255, 209, 102, 0.6));
}

#donate {
  background: linear-gradient(135deg, rgba(143, 107, 255, 0.74), rgba(239, 233, 255, 0.9), rgba(255, 179, 71, 0.52));
}

#gallery {
  background: linear-gradient(135deg, rgba(255, 111, 168, 0.72), rgba(255, 237, 244, 0.9), rgba(87, 204, 255, 0.54));
}

#scriptures {
  background: linear-gradient(135deg, rgba(255, 240, 201, 0.92), rgba(255, 251, 232, 0.95), rgba(212, 237, 255, 0.86));
}

#contact {
  background: linear-gradient(135deg, rgba(87, 204, 255, 0.74), rgba(233, 249, 255, 0.9), rgba(123, 228, 149, 0.54));
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}

.section-accent {
  display: grid;
  gap: 0.9rem;
  align-self: stretch;
}

.section-accent img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 34px rgba(31, 64, 116, 0.16);
  object-fit: cover;
}

.section-intro-scripture .section-accent,
.section-intro-donate .section-accent,
.video-accent {
  grid-template-columns: 1fr 1fr;
}

.section-intro-scripture .section-accent img,
.section-intro-donate .section-accent img {
  min-height: 210px;
}

.section-intro-video {
  margin-bottom: 1rem;
  grid-template-columns: 1fr;
}

.section-intro-donate {
  grid-template-columns: 1fr;
}

.video-accent img {
  min-height: 150px;
}

.cards {
  display: grid;
  gap: 1.2rem;
}

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

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 230, 242, 0.3), rgba(223, 247, 255, 0.32));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease, filter 320ms ease;
}

.photo-card h3,
.photo-card p {
  margin: 0.5rem 0.75rem 0.75rem;
  font-weight: 700;
}

.photo-card p {
  font-weight: 500;
  font-size: 0.9rem;
}

.card,
.calendar-callout {
  padding: 1.4rem;
}

.card,
.festival-item,
.calendar-callout,
.footer-wrap {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.festival-item:hover,
.calendar-callout:hover,
.photo-card:hover,
.footer-wrap:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(108, 71, 255, 0.16);
  border-color: rgba(143, 107, 255, 0.24);
}

.photo-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.stat {
  text-align: center;
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.stat strong {
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.calendar-section {
  padding-top: 2.2rem;
}

.calendar-callout {
  background: linear-gradient(135deg, rgba(255, 111, 168, 0.94), rgba(143, 107, 255, 0.92), rgba(29, 111, 214, 0.9));
  color: #fff7eb;
}

.scripture-card {
  max-width: 760px;
}

.scripture-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.scripture-copy {
  display: grid;
  gap: 1.75rem;
}

.scripture-layout {
  display: block;
}

.scripture-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.scripture-image-frame {
  width: min(100%, 460px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.scripture-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 22px 30px rgba(51, 92, 183, 0.18));
}

.calendar-callout p {
  color: rgba(255, 247, 235, 0.9);
}

.calendar-callout .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.festival-list {
  display: grid;
  gap: 1rem;
}

.festival-item {
  padding: 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 242, 248, 0.88), rgba(236, 248, 255, 0.86));
  box-shadow: var(--shadow);
}

.festival-item time {
  display: inline-flex;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.3), rgba(255, 111, 168, 0.18));
  color: var(--text-purple);
  font-weight: 700;
}

.media {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 252, 245, 0.88)),
    url("../images/gallery-pattern.svg") center/cover no-repeat;
}

.contact-grid {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.social-card {
  align-self: stretch;
}

.site-footer {
  padding: 1rem 0 2.5rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.9), rgba(255, 235, 245, 0.82), rgba(233, 249, 255, 0.82));
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: fadeUp 700ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes driftBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2rem, 2.5rem) scale(1.08);
  }
}

@keyframes driftBlobReverse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-2rem, -2rem) scale(0.94);
  }
}

@keyframes shimmer {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(24deg);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-2deg);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .cards.two,
  .cards.three,
  .cards.four,
  .section-intro,
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 238, 246, 0.98), rgba(236, 248, 255, 0.98));
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .translate-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .hero-copy {
    min-height: 520px;
    padding: 2rem 1.5rem;
  }

  .hero-card {
    min-height: 340px;
  }

  .section-intro-scripture .section-accent,
  .section-intro-donate .section-accent,
  .video-accent {
    grid-template-columns: 1fr 1fr;
  }

  .scripture-content {
    grid-template-columns: 1fr;
  }

  .scripture-visual {
    min-height: auto;
  }

  .scripture-visual {
    order: 2;
  }

  .scripture-image {
    max-width: 100%;
  }

  body::before,
  body::after {
    width: 20rem;
    height: 20rem;
  }
}

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

.main-logo {
  width: 80px; /* Increased logo size */
  height: auto;
}

#video-gallery {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.82), rgba(255, 244, 196, 0.88), rgba(255, 181, 167, 0.72));
  padding: 3rem 0;
}

.video-gallery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.video-player-container {
  position: relative;
  width: min(92vw, 860px);
  max-width: 860px;
  height: calc(860px * 9 / 16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 64, 116, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #dbe9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.video-player-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(31, 64, 116, 0.38);
}

.video-player-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.18);
}

#main-video,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-hint {
  position: absolute;
  inset: auto 0 20px 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.video-play-hint.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .video-gallery-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .video-player-container {
    width: min(94vw, 680px);
    max-width: 680px;
    height: calc(680px * 9 / 16);
  }
}

@media (max-width: 480px) {
  .video-gallery-layout {
    gap: 1rem;
  }
  
  .video-player-container {
    width: min(96vw, 420px);
    max-width: 420px;
    height: calc(420px * 9 / 16);
  }
}

.video-controls {
  text-align: center;
  margin-top: 0.8rem;
}

.video-dots-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem auto 0;
}

.video-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #2a71b6;
  background: rgba(255, 255, 255, 0.75);
  padding: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.video-dot:hover {
  transform: scale(1.3);
  border-color: #1d4f93;
}

.video-dot.active {
  background-color: #1f6fd6;
  border-color: #1a5992;
  box-shadow: 0 0 14px rgba(31, 111, 214, 0.5);
}

.video-status {
  color: #1a3f76;
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
