/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --maroon: #761416;
  --maroon-dark: #5a0f10;
  --tan: #d4b483;
  --tan-light: #dfc49e;
  --white: #ffffff;
  --black: #1f1f1f;
  --gray: #9c9999;
  --gold: #c9a84c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  color: var(--black);
  background-color: var(--maroon);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: var(--maroon);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 12px rgba(0,0,0,0.4);
}

.logo-text .church-label {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  opacity: 1;
}

.logo-text .church-name {
  display: block;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
  font-weight: 400;
}

.nav a:hover {
  color: var(--tan);
}

.nav a.active {
  color: var(--gray);
}

.nav .btn-donate {
  border: 1px solid var(--white);
  padding: 10px 22px;
  transition: all 0.3s;
}

.nav .btn-donate:hover {
  background-color: var(--white);
  color: var(--maroon);
}

/* Our Church dropdown */
.dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.dropdown-toggle {
  cursor: pointer;
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  transition: color 0.3s;
}

.dropdown-toggle:hover {
  color: var(--tan);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -10px;
  background: var(--maroon);
  min-width: 220px;
  padding: 10px 0;
  margin-top: 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
}

.dropdown-menu a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 140px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 60%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 60%, transparent 80%);
  z-index: 1;
}

.hero-welcome {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 7rem;
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 2px;
  color: var(--white);
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
  margin-bottom: 60px;
}

/* ===== MAIN CONTENT (TAN AREA) ===== */
.main-content {
  background-color: var(--tan);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== LIVE STREAM BUTTON ===== */
.livestream-btn-wrapper {
  text-align: center;
  padding: 60px 0 50px;
}

.btn-primary {
  display: inline-block;
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--maroon);
  padding: 16px 35px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--maroon-dark);
}

/* ===== SECTION TITLE (shared) ===== */
.section-title {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* ===== SCHEDULE — WEEKLY CARD GRID ===== */
.schedule-section {
  padding-bottom: 50px;
}

.schedule-subtitle {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 500;
  margin-bottom: 2rem;
}

.schedule-search {
  margin-bottom: 1.5rem;
  position: relative;
}

.schedule-search-input {
  width: 100%;
  padding: 12px 18px;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.schedule-search-input::placeholder {
  color: var(--gray);
}

.schedule-search-input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(118, 20, 22, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--maroon);
}

.search-no-results {
  text-align: center;
  color: var(--gray);
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 20px 0;
}

/* ===== SCHEDULE HEADER ROW ===== */
.schedule-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.schedule-header-row .section-title {
  margin-bottom: 0;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--maroon);
  background: transparent;
  border: 1px solid var(--maroon);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-subscribe:hover {
  background: var(--maroon);
  color: var(--white);
}

.btn-subscribe svg {
  flex-shrink: 0;
}

/* Calendar Modal Overlay */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cal-modal-overlay.active {
  display: flex;
}

.cal-modal {
  background: var(--white);
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: calModalIn 0.25s ease;
}

@keyframes calModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cal-modal-header h3 {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0;
}

.cal-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.cal-modal-close:hover {
  color: var(--maroon);
}

.cal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.cal-filter-group {
  margin-bottom: 20px;
}

.cal-modal-footer-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cal-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cal-footer-row .btn-cal-secondary {
  border: none;
  padding: 4px 8px;
  font-size: 0.72rem;
  text-decoration: underline;
  opacity: 0.7;
}

.cal-footer-row .btn-cal-secondary:hover {
  opacity: 1;
  background: none;
}

.cal-subscribe-section {
  text-align: center;
  padding-bottom: 8px;
}

.cal-subscribe-desc {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cal-subscribe-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 12px 24px !important;
  font-size: 0.82rem !important;
  text-decoration: none;
}

.cal-subscribe-hint {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 10px;
  min-height: 1.2em;
}

.cal-copy-link {
  background: none;
  border: none;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  color: var(--maroon);
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s;
  margin-top: 6px;
}

.cal-copy-link:hover {
  opacity: 1;
}

.cal-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 16px 0;
}

.cal-download-section {
  margin-top: 4px;
}

.cal-download-toggle {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  color: var(--gray);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.cal-download-toggle:hover {
  color: var(--maroon);
}

.cal-download-body {
  margin-top: 14px;
}

.cal-download-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

body.dark-mode .cal-divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cal-subscribe-desc {
  color: #999;
}

body.dark-mode .cal-download-toggle {
  color: #888;
}

.cal-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-filter-title {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0;
}

.cal-filter-toggles {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-toggle-link {
  background: none;
  border: none;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  color: var(--maroon);
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cal-toggle-link:hover {
  opacity: 1;
}

.cal-toggle-sep {
  font-size: 0.7rem;
  color: var(--gray);
}

.cal-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(118, 20, 22, 0.25);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  color: var(--black);
  user-select: none;
}

.cal-chip:hover {
  border-color: var(--maroon);
}

.cal-chip.selected {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}

.cal-chip input {
  display: none;
}

.cal-match-count {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin-top: 4px;
}

.cal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 12px;
}

.btn-cal-action {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cal-secondary {
  background: none;
  color: var(--maroon);
  border: 1.5px solid rgba(118, 20, 22, 0.3);
}

.btn-cal-secondary:hover {
  border-color: var(--maroon);
  background: rgba(118, 20, 22, 0.05);
}

.btn-cal-primary {
  background: var(--maroon);
  color: var(--white);
}

.btn-cal-primary:hover {
  background: var(--maroon-dark);
}

.btn-cal-primary:disabled {
  background: var(--gray);
  cursor: not-allowed;
}

/* Row style overrides for special services */
/* Row style: Joyful — white/bright row (works in holy week and regular cards) */
tr.hw-style-joyful {
  background: #ffffff !important;
}
tr.hw-style-joyful td {
  color: #1f1f1f !important;
}
tr.hw-style-joyful .wt-day {
  color: #761416 !important;
}
tr.hw-style-joyful .wt-priest-code {
  color: #761416 !important;
  border-bottom-color: rgba(118,20,22,0.3) !important;
}

/* Row style: Gold — golden highlight row */
tr.hw-style-gold {
  background: linear-gradient(135deg, #c5a44e 0%, #d4b96a 100%) !important;
}
tr.hw-style-gold td,
tr.hw-style-gold .wt-day,
tr.hw-style-gold .wt-type,
tr.hw-style-gold .wt-time,
tr.hw-style-gold .wt-priest,
tr.hw-style-gold .wt-priest-code {
  color: #2a1a00 !important;
  font-weight: 500;
  border-bottom-color: rgba(42,26,0,0.15) !important;
}

/* Row style: Highlight — subtle maroon accent */
tr.hw-style-highlight {
  background: rgba(118, 20, 22, 0.08) !important;
}
tr.hw-style-highlight .wt-day,
tr.hw-style-highlight .wt-type {
  color: #761416 !important;
  font-weight: 500;
}
tr.hw-style-highlight .wt-priest-code {
  color: #761416 !important;
}

/* Row style: Solemn — deep purple for lent/fasting */
tr.hw-style-solemn {
  background: #2d1b4e !important;
}
tr.hw-style-solemn td,
tr.hw-style-solemn .wt-day,
tr.hw-style-solemn .wt-type,
tr.hw-style-solemn .wt-time,
tr.hw-style-solemn .wt-priest,
tr.hw-style-solemn .wt-priest-code {
  color: #d4c0f0 !important;
  border-bottom-color: rgba(212,192,240,0.15) !important;
}
tr.hw-style-solemn .wt-day {
  color: #e8d5ff !important;
  font-weight: 500;
}

/* Row style: Festive — deep red for major feasts */
tr.hw-style-festive {
  background: #8b1a1a !important;
}
tr.hw-style-festive td,
tr.hw-style-festive .wt-day,
tr.hw-style-festive .wt-type,
tr.hw-style-festive .wt-time,
tr.hw-style-festive .wt-priest,
tr.hw-style-festive .wt-priest-code {
  color: #fdd !important;
  border-bottom-color: rgba(255,200,200,0.15) !important;
}
tr.hw-style-festive .wt-day {
  color: #ffe0b2 !important;
  font-weight: 500;
}

/* Row style: Marian — blue for Theotokos/St. Mary feasts */
tr.hw-style-marian {
  background: #1a3a5c !important;
}
tr.hw-style-marian td,
tr.hw-style-marian .wt-day,
tr.hw-style-marian .wt-type,
tr.hw-style-marian .wt-time,
tr.hw-style-marian .wt-priest,
tr.hw-style-marian .wt-priest-code {
  color: #c8ddf0 !important;
  border-bottom-color: rgba(200,221,240,0.15) !important;
}
tr.hw-style-marian .wt-day {
  color: #e3f0ff !important;
  font-weight: 500;
}

/* Row style: Palm — green for Palm Sunday, nature themes */
tr.hw-style-palm {
  background: #1b4a2a !important;
}
tr.hw-style-palm td,
tr.hw-style-palm .wt-day,
tr.hw-style-palm .wt-type,
tr.hw-style-palm .wt-time,
tr.hw-style-palm .wt-priest,
tr.hw-style-palm .wt-priest-code {
  color: #c8e6c9 !important;
  border-bottom-color: rgba(200,230,201,0.15) !important;
}
tr.hw-style-palm .wt-day {
  color: #e8f5e9 !important;
  font-weight: 500;
}

/* Row style: Dark — same as Holy Week dark grey + gold */
tr.hw-style-dark {
  background: #2a2a2a !important;
}
tr.hw-style-dark td,
tr.hw-style-dark .wt-type,
tr.hw-style-dark .wt-time {
  color: #e8dcc8 !important;
  border-bottom-color: rgba(197,164,78,0.15) !important;
}
tr.hw-style-dark .wt-day {
  color: #c5a44e !important;
  font-weight: 500;
}
tr.hw-style-dark .wt-priest-code {
  color: #c5a44e !important;
  border-bottom-color: rgba(197,164,78,0.3) !important;
}

/* Updated badge */
.wt-updated {
  display: inline-block;
  background: #761416;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Holy week variant */
.hw-row .wt-updated {
  background: #c5a44e;
  color: #2a2a2a;
}

/* Joyful variant */
.hw-style-joyful .wt-updated {
  background: #761416;
  color: #fff;
}

@media (max-width: 600px) {
  .cal-modal {
    max-width: 100%;
    max-height: 90vh;
  }

  .cal-modal-header {
    padding: 16px 18px 12px;
  }

  .cal-modal-body {
    padding: 16px 18px;
  }

  .cal-modal-footer {
    padding: 12px 18px 16px;
    flex-direction: column;
  }

  .btn-cal-action {
    width: 100%;
    justify-content: center;
  }

  .cal-chip {
    font-size: 0.78rem;
    padding: 5px 11px;
  }
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 2.5rem;
}

.week-card {
  background: var(--white);
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.week-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.week-card-header {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-radius: 6px 6px 0 0;
}

.week-label {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.week-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  color: var(--black);
}

.week-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.week-table tbody tr:last-child {
  border-bottom: none;
}

.week-table td {
  padding: 9px 12px;
  vertical-align: middle;
}

.wt-day {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--maroon);
  width: 60px;
  border-right: 2px solid var(--tan);
}

.wt-type {
  font-weight: 400;
}

.wt-time {
  white-space: nowrap;
  color: var(--gray);
  font-size: 0.82rem;
}

.wt-priest {
  text-align: right;
  white-space: nowrap;
  font-size: 0.8rem;
  overflow: visible;
  position: relative;
}

.wt-priest abbr {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px dotted rgba(118, 20, 22, 0.4);
  cursor: pointer;
  position: relative;
}

.wt-priest abbr:hover {
  color: var(--maroon-dark);
  border-bottom-color: var(--maroon);
}

.wt-priest abbr::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 6px;
  z-index: 10;
}

.wt-priest abbr:hover::after,
.wt-priest abbr.tooltip-active::after {
  opacity: 1;
}

.priest-legend {
  background: var(--white);
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.priest-legend-title {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 12px;
}

.priest-legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.priest-legend-item {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.88rem;
  color: var(--black);
  line-height: 1.8;
}

.priest-abbr {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* Schedule responsive */
@media (max-width: 900px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .week-table td {
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .wt-day {
    width: 48px;
    font-size: 0.75rem;
  }

  .wt-time {
    font-size: 0.75rem;
  }

  .wt-priest {
    font-size: 0.75rem;
  }

  .priest-legend-grid {
    gap: 4px 20px;
  }
}

/* ===== HOLY WEEK CARD ===== */
.week-card.holy-week-card {
  background: #2a2a2a !important;
  border: 2px solid var(--gold);
}

.holy-week-card:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.holy-week-header {
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-bottom: 2px solid var(--gold);
}

.holy-week-header .week-label {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2.5px;
}

.holy-week-table {
  color: #e8e8e8;
  background: transparent;
}

.holy-week-table tbody tr {
  background: transparent;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.holy-week-table .wt-day {
  color: var(--gold);
  border-right: 2px solid rgba(201, 168, 76, 0.25);
}

.holy-week-table .wt-type {
  color: #e0e0e0;
}

.holy-week-table .wt-time {
  color: #aaa;
}

.holy-week-table .wt-priest abbr {
  color: var(--gold);
  border-bottom-color: rgba(201, 168, 76, 0.4);
}

.holy-week-table .wt-priest abbr:hover {
  color: #e0c060;
  border-bottom-color: var(--gold);
}

.holy-week-table .wt-priest abbr::after {
  background: #333;
  color: var(--gold);
}

/* Holy Week special row highlights */
.hw-highlight .wt-type {
  color: var(--gold) !important;
  font-weight: 600;
}

.hw-special {
  background: rgba(201, 168, 76, 0.08);
}

.hw-special .wt-type {
  color: var(--gold) !important;
  font-weight: 700;
}

.hw-easter {
  background: rgba(255, 255, 255, 0.95) !important;
}

.hw-easter .wt-day {
  color: var(--gold) !important;
  border-right-color: rgba(201, 168, 76, 0.3);
  font-weight: 700;
}

.hw-easter .wt-type {
  color: #2a2a2a !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.hw-easter .wt-time {
  color: #555 !important;
}

.hw-easter .wt-priest abbr {
  color: var(--gold) !important;
  border-bottom-color: rgba(201, 168, 76, 0.5);
}

.hw-easter .wt-priest abbr::after {
  background: var(--gold);
  color: var(--white);
}

/* ===== INFO SECTIONS ===== */
.info-section {
  margin-bottom: 40px;
}

.info-section p {
  font-size: 16px;
  line-height: 2;
}

.info-section a {
  color: var(--maroon);
}

.info-section a:hover {
  color: var(--maroon-dark);
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  margin: 50px 0;
}

/* ===== LIVE STREAM VIDEO ===== */
.livestream-section {
  text-align: center;
  padding-bottom: 50px;
}

.livestream-section h2 {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 2rem;
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
}

.play-btn {
  width: 70px;
  height: 70px;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent white;
  margin-left: 5px;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  text-align: center;
  padding: 40px 0 50px;
  max-width: 800px;
  margin: 0 auto;
}

.quote-mark {
  font-size: 3rem;
  color: var(--gray);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 20px;
}

.quote-text {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--black);
  margin-bottom: 20px;
}

.quote-author {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 50px 0;
}

.about-section h2 {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  color: var(--maroon);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

.about-description {
  text-align: center;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--black);
}

/* Image cards */
.cards-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 0;
}

.image-card {
  position: relative;
  flex: 1;
  max-width: 420px;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.image-card-overlay {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  text-align: left;
  padding-right: 20px;
}

.image-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
  background-color: var(--maroon);
  padding: 8px 16px;
  display: inline-block;
  white-space: nowrap;
  margin-bottom: 12px;
}

.image-card .btn-primary {
  font-size: 11px;
  padding: 12px 26px;
  display: inline-block;
}

/* ===== CHURCH BUILDING BANNER ===== */
.church-banner {
  width: 100%;
  overflow: hidden;
  margin-top: 60px;
}

.church-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== LOCATION SECTION ===== */
.location-section {
  background-color: var(--tan);
  padding: 60px 0;
}

.location-grid {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.location-info {
  flex: 0.8;
  text-align: center;
}

.location-info h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-style: italic;
  color: var(--maroon);
  margin-bottom: 30px;
  font-weight: 400;
}

.location-info p {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--black);
  font-style: italic;
}

.location-info .church-name-loc {
  font-weight: 700;
  font-style: italic;
}

.location-map {
  flex: 1.2;
  height: 470px;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--maroon);
  padding: 30px 40px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social a {
  color: var(--white);
  font-size: 18px;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.back-to-top {
  display: inline-block;
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
}

.footer-address {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 8px;
}

.footer-credit {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-name {
  font-family: 'Jost', 'Century Gothic', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}

.footer-diocese {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.footer-diocese a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.footer-diocese a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--maroon);
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    margin-top: 5px;
    padding-left: 15px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
    padding: 100px 0 0;
  }

  .hero-welcome {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 2.2rem;
  }

  .cards-row {
    flex-direction: column;
    align-items: center;
  }

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

  .location-grid {
    flex-direction: column;
  }

  .location-map {
    width: 100%;
    height: 350px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .header {
    padding: 15px 20px;
  }

  .hero {
    height: 55vh;
    min-height: 350px;
    padding: 80px 0 0;
  }

  .hero-welcome {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .footer-address {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
  background: none;
  border: none;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 8px 0 0;
  margin-top: 12px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.dark-mode-toggle:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== DARK MODE ===== */
body.dark-mode {
  --maroon: #c0c0c0;
  --maroon-dark: #b85a56;
  --tan: #1a1a1a;
  --tan-light: #222;
  --white: #2a2a2a;
  --black: #e8e8e8;
  --gray: #999;
}

body.dark-mode .main-content {
  background-color: #1a1a1a;
}

body.dark-mode .week-card {
  background: #2a2a2a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .week-card-header {
  background: #4a1a1b;
}

body.dark-mode .week-label {
  color: #e0e0e0;
}

body.dark-mode .week-table {
  color: #ddd;
}

body.dark-mode .week-table tbody tr {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .wt-day {
  color: #c0c0c0;
  border-right-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .wt-type {
  color: #ddd;
}

body.dark-mode .wt-time {
  color: #999;
}

body.dark-mode .wt-priest abbr {
  color: #c0c0c0;
  border-bottom-color: rgba(192, 192, 192, 0.4);
}

body.dark-mode .wt-priest abbr::after {
  background: #444;
  color: #e0e0e0;
}

body.dark-mode .schedule-search-input {
  background: #2a2a2a;
  color: #ddd;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .schedule-search-input:focus {
  border-color: #c0c0c0;
  box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.15);
}

body.dark-mode .schedule-search-input::placeholder {
  color: #666;
}

body.dark-mode .priest-legend {
  background: #2a2a2a;
}

body.dark-mode .priest-legend-item {
  color: #ccc;
}

body.dark-mode .priest-abbr {
  color: #c0c0c0;
}

body.dark-mode .section-title {
  color: #c0c0c0;
}

body.dark-mode .section-divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quote-text {
  color: #ddd;
}

body.dark-mode .quote-mark {
  color: #666;
}

body.dark-mode .quote-author {
  color: #999;
}

body.dark-mode .about-section h2 {
  color: #c0c0c0;
}

body.dark-mode .about-description {
  color: #ccc;
}

body.dark-mode .livestream-section h2 {
  color: #c0c0c0;
}

body.dark-mode .location-section {
  background-color: #1a1a1a;
}

body.dark-mode .location-info h2 {
  color: #c0c0c0;
}

body.dark-mode .location-info p {
  color: #ccc;
}

body.dark-mode .info-section p {
  color: #ccc;
}

body.dark-mode .info-section a {
  color: #c0c0c0;
}

body.dark-mode .schedule-subtitle {
  color: #ccc;
}

body.dark-mode .btn-primary {
  background-color: #4a1a1b;
}

body.dark-mode .btn-primary:hover {
  background-color: #5a2223;
}

body.dark-mode .btn-subscribe {
  color: #c0c0c0;
  border-color: #c0c0c0;
}

body.dark-mode .btn-subscribe:hover {
  background: #c0c0c0;
  color: #1a1a1a;
}

body.dark-mode .cal-modal {
  background: #2a2a2a;
}

body.dark-mode .cal-modal-header h3 {
  color: #c0c0c0;
}

body.dark-mode .cal-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cal-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cal-filter-title {
  color: #c0c0c0;
}

body.dark-mode .cal-toggle-link {
  color: #c0c0c0;
}

body.dark-mode .cal-chip {
  background: #333;
  color: #ddd;
  border-color: rgba(192, 192, 192, 0.3);
}

body.dark-mode .cal-chip.selected {
  background: #4a1a1b;
  border-color: #4a1a1b;
}

body.dark-mode .cal-match-count {
  color: #999;
}

body.dark-mode .btn-cal-secondary {
  color: #c0c0c0;
  border-color: rgba(192, 192, 192, 0.3);
}

body.dark-mode .btn-cal-primary {
  background: #4a1a1b;
}

body.dark-mode .btn-cal-primary:hover {
  background: #5a2223;
}

body.dark-mode .image-card-title {
  background-color: #4a1a1b;
}

body.dark-mode .hero-welcome,
body.dark-mode .hero-subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.5);
}

body.dark-mode .btn-primary {
  color: #e0e0e0;
}

body.dark-mode .livestream-btn-wrapper .btn-primary {
  background-color: #4a1a1b;
  color: #e0e0e0;
  border: 1px solid rgba(192, 192, 192, 0.3);
}

body.dark-mode .image-card-overlay .btn-primary {
  background-color: rgba(74, 26, 27, 0.9);
  color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle {
  color: rgba(255, 255, 255, 0.4);
}
