.m-0 {
  margin: 0;
}
.mt-0 {
  margin-top: 0rem;
}
.mb-0 {
  margin-bottom: 0rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.text-center {
  text-align: center;
}

:root {
  --indigo: #1b1240;
  --magenta: #6d1f4a;
  --orange: #ff7a3d;
  --gold: #ffc36b;
  --cream: #fff4e6;
  --ink: #f6efe4;
  --muted: #c9bdb0;
  --error: #ff6b6b;
  --card-bg: rgba(20, 12, 36, 0.62);
  --card-border: rgba(255, 195, 107, 0.25);
  --input-bg: rgba(255, 244, 230, 0.08);
  --input-border: rgba(255, 244, 230, 0.22);
}

a:link {
  color: var(--gold);
}

a:active {
  color: var(--orange);
}

a:visited {
  color: var(--gold);
}

a.brand {
  color: var(--gold) !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background-color: #150a10;
  -webkit-font-smoothing: antialiased;
}

.wrapBalanced {
  text-wrap: balance;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.bg {
  position: fixed;
  inset: 0;
  background: url("/assets/bg.jpg") center/cover no-repeat;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 70% 30%,
      rgba(255, 122, 61, 0.1),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(15, 8, 30, 0.25) 0%,
      rgba(15, 8, 30, 0.55) 100%
    );
  z-index: -1;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 1.5px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.site-nav a:hover {
  color: var(--gold);
}
.site-nav a.active {
  border-bottom-color: var(--orange);
  color: var(--gold);
}

/* Main layouts */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Hero */
.hero-card {
  text-align: center;
  max-width: 680px;
}
.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  margin: -4.5rem auto 1rem;
  display: block;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55);
}
.hero-card h1 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0.6rem;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(255, 122, 61, 0.25);
}
.hero-card h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.1vw, 2.1rem);
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0.6rem;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(255, 122, 61, 0.25);
}
.tagline {
  font-size: 1.05rem;
  color: var(--gold);
  font-style: italic;
  margin: 0 0 1.4rem;
  letter-spacing: 0.02em;
}
.welcome {
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 auto 2rem;
  max-width: 52ch;
}

/* Form */
.form-card h1 {
  font-family: "Cinzel", serif;
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.subtitle {
  color: var(--muted);
  margin: 0 0 1.8rem;
  font-size: 0.97rem;
}

.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.field label,
.field legend {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 244, 230, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.2);
}
.field input.invalid,
.field textarea.invalid {
  border-color: var(--error);
}
.error {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1em;
}

/* Interests */
.interests {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.interests .check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.1rem;
  color: var(--ink);
  font-size: 0.97rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}
.interests .check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.interests .check input:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.interests .check input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #1b1240;
  border-bottom: 2px solid #1b1240;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Button */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    opacity 0.2s;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #2a1505;
  box-shadow: 0 12px 28px -10px rgba(255, 122, 61, 0.7);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px rgba(255, 122, 61, 0.8);
}
.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.success {
  color: var(--gold);
}
.form-status.error {
  color: var(--error);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}
.socials a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--input-border);
  background: rgba(20, 12, 36, 0.5);
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* intl-tel-input theming for dark card */
.iti {
  width: 100%;
}
.iti__tel-input {
  color: var(--ink);
}
.iti--inline-dropdown .iti__dropdown-content {
  background: #1b1240;
  color: var(--ink);
  border: 1px solid var(--card-border);
}
.iti__country-list {
  background: #1b1240;
  color: var(--ink);
}
.iti__country.iti__highlight {
  background: rgba(255, 122, 61, 0.25);
}
.iti__country-name,
.iti__dial-code {
  color: var(--ink);
}
.iti__search-input {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--input-border);
}

.video-embed {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  text-align: center;
  margin: 0 auto 0.75rem;
  max-width: 560px;
  opacity: 0.75;
  font-size: 0.95rem;
  text-wrap: balance;
}
.video-meta p {
  margin: 0;
}
.video-meta-title {
  font-size: 1.05rem;
  opacity: 1;
  margin-bottom: 0.4rem !important;
}

.video-meta-title strong {
  color: var(--gold);
}

.video-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
}
.video-loading .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: video-spin 0.8s linear infinite;
}
@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Previous sermons list */
.previous-sermons {
  margin-top: 2.5rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1.75rem;
}
.previous-sermons-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.sermon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.sermon-card {
  margin: 0;
}
.sermon-facade {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.6rem;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.sermon-facade:hover,
.sermon-facade:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.sermon-thumb {
  position: relative;
  flex: 0 0 42%;
  max-width: 170px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sermon-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.15s ease;
}
.sermon-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.sermon-facade:hover .sermon-play,
.sermon-facade:focus-visible .sermon-play {
  background: var(--gold);
}
.sermon-facade:hover .sermon-play::after,
.sermon-facade:focus-visible .sermon-play::after {
  border-left-color: #1a1030;
}
.sermon-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.sermon-card-title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
}
.sermon-card-date,
.sermon-card-duration {
  font-size: 0.85rem;
  color: var(--muted);
}
.sermon-card.is-playing .video-embed {
  max-width: 100%;
}

@media (max-width: 560px) {
  .site-header {
    padding: 1rem;
  }
  .brand span {
    display: none;
  }
  .card {
    padding: 2rem 1.25rem;
  }
  .hero-logo {
    width: 110px;
    height: 110px;
    margin-top: -3.5rem;
  }
}

.event h3 {
  margin-bottom: 0;
  margin-top: 0;
}

.event p {
  line-height: 1.8;
}

.event {
  border-top: 1px solid var(--card-border);
  line-height: 2.8rem;
  padding: 2rem 0;
}

.event h3 {
  line-height: 30%;
}

.event_last {
  border-bottom: 1px solid var(--card-border);
}
