@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,700;1,400&family=Epilogue:wght@700;800&family=Open+Sans:ital,wght@0,400..800;1,400..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.cdnfonts.com/css/google-sans');


/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
  /* Colors */
  --surface: #fbf9f4;
  --surface-dim: #dbdad5;
  --surface-bright: #fbf9f4;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f3ee;
  --surface-container: #f0eee9;
  --surface-container-high: #eae8e3;
  --surface-container-highest: #e4e2dd;
  --on-surface: #1b1c19;
  --on-surface-variant: #584140;
  --inverse-surface: #30312e;
  --inverse-on-surface: #f2f1ec;
  --outline: #8c716f;
  --outline-variant: #dfbfbd;
  --surface-tint: #ab3335;
  --primary: #700210;
  --on-primary: #ffffff;
  --primary-container: #911f24;
  --on-primary-container: #ffa49f;
  --inverse-primary: #ffb3af;
  --secondary: #785a00;
  --on-secondary: #ffffff;
  --secondary-container: #fed26f;
  --on-secondary-container: #775900;
  --tertiary: #353534;
  --on-tertiary: #ffffff;
  --tertiary-container: #4c4b4b;
  --on-tertiary-container: #bdbbbb;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --primary-fixed: #ffdad7;
  --primary-fixed-dim: #ffb3af;
  --on-primary-fixed: #410005;
  --on-primary-fixed-variant: #8a1a20;
  --secondary-fixed: #ffdf9c;
  --secondary-fixed-dim: #ebc160;
  --on-secondary-fixed: #251a00;
  --on-secondary-fixed-variant: #5b4300;
  --tertiary-fixed: #e5e2e1;
  --tertiary-fixed-dim: #c8c6c5;
  --on-tertiary-fixed: #1c1b1b;
  --on-tertiary-fixed-variant: #474746;
  --background: #fbf9f4;
  --on-background: #1b1c19;
  --surface-variant: #e4e2dd;

  /* Shapes */
  --rounded-sm: 0.25rem;
  --rounded-default: 0.5rem;
  --rounded-md: 0.75rem;
  --rounded-lg: 1rem;
  --rounded-xl: 1.5rem;
  --rounded-full: 9999px;

  /* Spacing */
  --spacing-base: 8px;
  --section-gap: 120px;
  --grid-margin: 24px;
  --grid-gutter: 24px;
  --container-max: 1280px;

  /* Fonts */
  --font-headline: 'Epilogue', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;

  /* Transition Defaults */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

ul,
ol {
  list-style: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.headline-xl {
  font-family: var(--font-headline);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.headline-md {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.label-bold {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* Responsive Typography */
@media (max-width: 992px) {
  .headline-xl {
    font-size: 48px;
  }

  .headline-lg {
    font-size: 38px;
  }

  .headline-md {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .headline-xl {
    font-size: 36px;
  }

  .headline-lg {
    font-size: 30px;
  }

  .headline-md {
    font-size: 24px;
  }
}

/* ==========================================
   COMMON LAYOUTS & CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

@media (max-width: 768px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--rounded-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(112, 2, 16, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--rounded-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--on-primary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-gold {
  background-color: var(--secondary);
  color: var(--on-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--rounded-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(120, 90, 0, 0.15);
}

.btn-gold:hover {
  background-color: #9c7500;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(120, 90, 0, 0.25);
}

.btn-give {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--rounded-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

.btn-give:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(112, 2, 16, 0.25);
}

.btn-give:active {
  transform: translateY(0);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(140, 113, 111, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background-color: var(--surface);
  box-shadow: 0 4px 20px rgba(140, 113, 111, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-container {
  height: 70px;
}

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

.logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer-logo img {
  height: 72px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

.logo-text {
  font-family: var(--font-headline);
  line-height: 1.15;
  text-transform: uppercase;
}

.logo-text .line1,
.logo-text .line2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
}

.nav-item {
  position: relative;
  padding: 10px 16px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link i {
  font-size: 12px;
  color: var(--outline);
  transition: var(--transition-smooth);
}

.nav-item:hover .nav-link {
  color: var(--primary);
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Mega Menu Container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 650px;
  background-color: var(--surface-container-lowest);
  border-radius: var(--rounded-lg);
  box-shadow: 0 15px 40px rgba(112, 2, 16, 0.08);
  border: 1px solid rgba(140, 113, 111, 0.1);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  transition-delay: 0.25s;
  z-index: 1001;
}

/* Invisible hover bridge to prevent menu from closing when cursor travels from link to menu */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
  pointer-events: auto;
}

/* Right-aligned dropdown variation to prevent spillage */
.mega-right .mega-menu {
  left: auto;
  right: 0;
  transform: translateY(15px);
}

/* Open Mega Menu on Hover */
.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
  transition-delay: 0s;
}

.nav-item.mega-right:hover .mega-menu,
.mega-right .mega-menu:hover {
  transform: translateY(5px);
  transition-delay: 0s;
}

/* Mega Menu Item */
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--rounded-md);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.mega-item:hover {
  background-color: var(--surface-container-low);
  border-color: rgba(140, 113, 111, 0.15);
}

.mega-icon {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  margin-left: 4px;
  border-radius: var(--rounded-md);
  background-color: var(--surface-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.mega-item:hover .mega-icon {
  background-color: var(--primary);
  color: var(--on-primary);
}

.mega-info {
  display: flex;
  flex-direction: column;
}

.mega-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--outline);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.mega-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.mega-desc {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--on-surface);
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: stretch;
    border-bottom: 1px solid rgba(140, 113, 111, 0.1);
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

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

  .mobile-toggle {
    display: block;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 12px;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .mega-menu::before {
    display: none;
  }

  .nav-item.active .mega-menu {
    display: grid;
  }

  .mega-item {
    padding: 8px 10px !important;
    gap: 10px;
  }

  .mega-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    margin-right: 6px;
    margin-left: 0;
  }

  .mega-category {
    font-size: 10px;
  }

  .mega-title {
    font-size: 13px !important;
    margin-bottom: 2px;
  }

  .mega-desc {
    font-size: 11px !important;
    line-height: 1.3;
  }
}

/* Mobile Logo positioning & small screen menu tuning */
@media (max-width: 576px) {
  .nav-links {
    padding: 12px 14px;
    max-height: 75vh;
  }

  .mega-menu {
    padding: 4px 0 4px 6px;
    gap: 4px;
  }

  .mega-item {
    padding: 6px 8px !important;
    gap: 8px;
  }

  .mega-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    margin-right: 4px;
  }

  .mega-title {
    font-size: 12px !important;
  }

  .mega-desc {
    font-size: 10px !important;
  }

  .logo img {
    height: 44px;
  }

  .logo-text .line1,
  .logo-text .line2 {
    font-size: 10px;
  }

  .navbar-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==========================================
   HERO SECTION (BACKGROUND IMAGE/FLIER)
   ========================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img,
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: blur(8px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(27, 28, 25, 0.7) 0%,
      rgba(27, 28, 25, 0.5) 60%,
      rgba(27, 28, 25, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-tag {
  border: 1px solid var(--outline-variant);
  padding: 8px 20px;
  border-radius: var(--rounded-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(251, 249, 244, 0.1);
  backdrop-filter: blur(5px);
  color: var(--secondary-fixed);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-sub {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-fixed);
  opacity: 0.9;
}

.hero-title-main {
  font-family: 'Google Sans', 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  font-size: 68px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  color: #ffffff;
  text-transform: none;
}

@media (max-width: 992px) {
  .hero-title-main {
    font-size: 48px;
  }

  .hero-title-sub {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .hero-title-main {
    font-size: 36px;
  }

  .hero-title-sub {
    font-size: 14px;
  }
}

.hero-btn {
  margin-top: 16px;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 24px;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

}

/* Global Section Typography Helpers */
.section-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 8px;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

/* ==========================================
   SECTION 2: WELCOME (INTRO)
   ========================================== */
.welcome-section {
  background-color: var(--surface);
  padding: 0;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  gap: 0;
}

@media (min-width: 992px) {
  .welcome-container {
    flex-direction: row;
    align-items: stretch;
  }
}

.welcome-image-wrapper {
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

@media (min-width: 992px) {
  .welcome-image-wrapper {
    width: 50vw;
    height: auto;
    min-height: 550px;
    flex-shrink: 0;
  }
}

.welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}

.welcome-text-wrapper {
  padding: 48px var(--grid-margin);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 992px) {
  .welcome-text-wrapper {
    padding: 80px 100px;
    flex-grow: 1;
  }
}

.welcome-text {
  color: var(--on-surface-variant);
  font-weight: 400;
  line-height: 1.8;
}

.welcome-text-wrapper .section-subtitle {
  color: #000000;
}

.welcome-text-wrapper .section-subtitle::after {
  left: 0;
  transform: none;
}

/* ==========================================
   SECTION 3: ACCORDION (GIVE LIFE TO CHRIST)
   ========================================== */
.accordion-section {
  background-color: var(--primary-container);
  color: #fff;
  background-image: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.accordion-container {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.accordion-header-block {
  text-align: center;
  margin-bottom: 60px;
}

.accordion-header-block h2 {
  color: #fff;
  margin-bottom: 12px;
}

.accordion-header-block p {
  color: var(--on-primary-container);
  font-size: 18px;
}

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 0;
  text-align: left;
  color: #fff;
}

.accordion-title-container {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.accordion-num {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-container);
  opacity: 0.8;
  flex-shrink: 0;
  line-height: 1.35;
}

.accordion-item-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.accordion-verse {
  white-space: nowrap;
  display: inline-block;
}

.accordion-icon {
  font-size: 20px;
  color: var(--on-primary-container);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  margin-top: 3px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease;
  padding-left: 36px;
}

.accordion-content p {
  padding-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

/* Active State */
.accordion-item.active {
  border-bottom-color: var(--secondary-container);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--secondary-container);
}

.accordion-item.active .accordion-content {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .accordion-title-container {
    gap: 10px;
  }

  .accordion-num,
  .accordion-item-title {
    font-size: 16px;
  }

  .accordion-content {
    padding-left: 0;
  }
}

/* ==========================================
   SECTION 4: PARISHES & LOCATIONS
   ========================================== */
.parishes-section {
  background-color: var(--surface-container-low);
}

.parishes-header {
  text-align: center;
  margin-bottom: 48px;
}

.parishes-header h2 {
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.tab-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  border: 1px solid var(--outline);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--rounded-md);
  background-color: var(--surface-container-lowest);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(112, 2, 16, 0.15);
}

.parish-subheading {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: left;
  border-left: 4px solid var(--secondary);
  padding-left: 16px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gutter);
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background-color: var(--surface-container-lowest);
  border-radius: var(--rounded-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(112, 2, 16, 0.03);
  border: 1px solid rgba(140, 113, 111, 0.08);
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--outline-variant);
  transition: var(--transition-smooth);
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(112, 2, 16, 0.08);
  border-left-color: var(--primary);
  background-color: var(--surface-container-low);
}

.location-card:hover::before {
  background-color: var(--primary);
}

.card-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.card-address {
  font-size: 15px;
  color: var(--on-surface-variant);
  flex-grow: 1;
}

.card-tel {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
}

.location-card.hidden {
  display: none !important;
}

.see-more-container {
  display: flex;
  justify-content: center;
}

/* ==========================================
   SECTION 5: LEADERSHIP CAROUSEL
   ========================================== */
.leadership-section {
  background-color: var(--surface);
  position: relative;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .leader-image-container {
    order: 1;
  }

  .leader-text-content {
    order: 2;
    min-height: auto;
  }
}

.leader-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  /* Prevent height shifting during fade transitions */
  justify-content: center;
  transition: var(--transition-smooth);
}

.leader-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--outline);
  letter-spacing: 0.1em;
}

.leader-name {
  color: var(--primary);
  font-weight: 800;
}

.leader-role {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leader-bio {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.7;
}

.leader-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}

.leader-social i {
  font-size: 18px;
}

/* Transitions for Leadership Carousel */
.leader-name,
.leader-role,
.leader-bio,
.leader-social,
.leader-image-container img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-out {
  opacity: 0 !important;
  transform: translateY(10px) !important;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Leader Image Container (Gradual Fade) */
.leader-image-container {
  width: 380px;
  height: 480px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--rounded-sm);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(112, 2, 16, 0.08);
  border: 1px solid rgba(140, 113, 111, 0.1);
}

.leader-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.leader-image-container img.fade-out {
  opacity: 0 !important;
  transform: scale(0.96) !important;
}

@media (max-width: 576px) {
  .leader-image-container {
    width: 100%;
    max-width: 320px;
    height: 400px;
  }
}

/* ==========================================
   SECTION 6: FOOTER
   ========================================== */
.footer {
  background-color: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo .logo-text .line1,
.footer-logo .logo-text .line2 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-logo .logo-icon {
  background-color: var(--surface-tint);
}

.footer-slogan {
  font-size: 13px;
  color: var(--on-tertiary-container);
  line-height: 1.4;
  text-transform: none;
  font-family: var(--font-body);
  margin-top: 4px;
}

.footer-col-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-container);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  font-size: 15px;
  color: var(--inverse-on-surface);
}

.footer-menu a:hover {
  color: var(--secondary-container);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--inverse-on-surface);
}

.footer-contact-item i {
  color: var(--secondary-container);
  font-size: 16px;
  margin-top: 3px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: var(--on-tertiary-container);
}

/* ==========================================
   LIVE STREAM MODAL POPUP (FACEBOOK LIVE)
   ========================================== */
.live-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.live-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.live-modal-dialog {
  background-color: #121212;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.live-modal-overlay.active .live-modal-dialog {
  transform: scale(1) translateY(0);
}

.live-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e50914;
  box-shadow: 0 0 10px #e50914;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px #e50914; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.live-modal-close:hover {
  background-color: var(--primary);
  transform: rotate(90deg);
}

.live-modal-body {
  position: relative;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.live-video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 widescreen default */
  min-height: 240px;
  overflow: hidden;
}

.live-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.live-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-modal-tip {
  font-size: 13px;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.live-modal-tip i {
  color: #1877f2;
  font-size: 16px;
}

.live-direct-btn {
  padding: 8px 18px !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .live-modal-overlay {
    padding: 10px;
  }

  .live-modal-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .live-video-responsive {
    min-height: 280px;
    height: 45vh;
    padding-bottom: 0;
  }

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

  .live-modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .live-direct-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}