:root {
  --navy: #0c2f4f;
  --gold: #b78a2d;
  --cream: #fbf8f1;
  --ink: #1e2a34;
  --muted: #66717b;
  --line: #e6dcc8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.serif, h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* Responsive Hero */
.hero {
  width: 100%;
  min-height: clamp(480px, 56.25vw, 780px);
  background:
    linear-gradient(90deg, rgba(15, 25, 30, 0.78) 0%, rgba(15, 25, 30, 0.45) 45%, rgba(15, 25, 30, 0.05) 100%),
    url("../resource/hero.jpeg") 65% 18% / cover no-repeat;
  color: white;
  display: flex;
  align-items: flex-end;
}
.hero-in { padding: clamp(48px, 8vw, 90px) 0 clamp(32px, 5vw, 56px); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.goldline {
  width: 76px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0;
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.2rem);
  line-height: 0.9;
  margin: 0 0 20px;
  font-weight: 500;
  max-width: 720px;
}
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 520px;
  margin: 0;
}

/* Dynamic Hero Banner & Inner Button */
.upcoming-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}
.upcoming-banner:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
#dynamic-text {
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1; 
}
.banner-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.upcoming-banner:hover .banner-btn {
  background: var(--gold);
  color: #fff;
}
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.btn {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.primary { background: var(--gold); color: #fff; }
.ghost { border: 1px solid rgba(255, 255, 255, 0.75); color: #fff; background: rgba(0, 0, 0, 0.15); }

nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  gap: 22px;
  overflow: auto;
  padding: 12px 0;
  font-size: 0.88rem;
  white-space: nowrap;
}
nav a { color: var(--navy); text-decoration: none; font-weight: 700; }

section { padding: 64px 0; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; }
.section-title { color: var(--navy); font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; margin: 8px 0 16px; font-weight: 500; }
.lead { font-size: 1.18rem; max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 8px 28px rgba(30, 42, 52, 0.05); }
.card h3 { color: var(--navy); font-size: 1.45rem; margin: 6px 0 8px; }
.big { font: 500 3.3rem Georgia, serif; color: var(--navy); line-height: 1; }

.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 28px; }
.journey > div { background: white; padding: 26px; }

.scripture { background: var(--navy); color: #fff; }
.scripture .section-title { color: #fff; }
.quote { font: 400 clamp(1.65rem, 5vw, 2.6rem) Georgia, serif; line-height: 1.3; max-width: 900px; }
.ref { color: #e6c777; font-weight: 700; }

.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 10px 0; }
.faq summary { font-weight: 800; color: var(--navy); cursor: pointer; }

.schedule { display: grid; gap: 12px; margin-top: 26px; scroll-margin-top: 100px;}

.event {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  scroll-margin-top: 70px;
  transition: background-color 0.5s ease;
}

/* Highlight effect when scrolling to the event */
.event.highlighted {
  background: #fdfae9;
  border-color: #b78a2d;
}

.datebox { border-right: 1px solid var(--line); text-align: center; color: var(--navy); }
.datebox b { font: 500 2.4rem Georgia, serif; display: block; }
.event h3 { margin: 0; color: var(--navy); font-size: 1.35rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.event p { margin: 3px 0; color: var(--muted); }

.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 700 14px Arial;
  cursor: pointer;
  background: #fff;
}
.explain { display: none; margin-top: 10px !important; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--cream); border-radius: 8px; color: var(--ink) !important; font-size: 0.93rem; }
.explain.show { display: block; }

.event-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mini {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 700;
}
.btn-outline {
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.2s all ease;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  vertical-align: middle;
  line-height: 1;
}
.status-upcoming { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.status-ongoing { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; animation: pulse 2s infinite; }
.status-finished { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; opacity: 0.7; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta-actions a { text-decoration: none; }
.cta { text-align: center; background: #efe7d7; border-radius: 24px; padding: 38px; margin: 30px auto; }
.cta h2 { color: var(--navy); font-size: 2.4rem; margin: 0 0 8px; }
.small { font-size: 0.83rem; color: var(--muted); }
footer { padding: 34px 0 48px; text-align: center; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 1024px) {
  .hero { min-height: clamp(440px, 62vw, 620px); background-position: 68% 18%; }
}
@media (max-width: 760px) {
  .hero {
    min-height: clamp(460px, 115vw, 580px);
    background: linear-gradient(180deg, rgba(15, 25, 30, 0.05) 0%, rgba(15, 25, 30, 0.35) 45%, rgba(15, 25, 30, 0.88) 100%), url("../resource/hero.jpeg") 72% 15% / cover no-repeat;
  }
  .hero-in { padding: 180px 0 32px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); margin-bottom: 14px; }
  .cards, .journey { grid-template-columns: 1fr; }
  .event { grid-template-columns: 64px 1fr; }
  section { padding: 48px 0; }
  .wrap { width: min(100% - 24px, 1080px); }
}
@media (max-width: 480px) {
  .hero { min-height: 480px; background-position: 74% 12%; }
  .hero-in { padding: 200px 0 28px; }
  .actions .btn { padding: 10px 15px; font-size: 0.9rem; }
  
  /* Make banner text fit better on tiny mobile screens */
  .upcoming-banner {
    font-size: 0.75rem;
    padding: 5px 5px 5px 12px;
    gap: 8px;
  }
  .banner-btn {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}