/* ============================================
   YCCCI - Young and Chosen for Christ
   Design System & Styles
   ============================================ */

/* ----- CSS Variables / Design Tokens ----- */
:root {
  /* Primary Colors (to be updated from logo) */
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0f2440;

  /* Secondary Colors */
  --secondary: #c8a34e;
  --secondary-light: #e0c078;
  --secondary-dark: #a88430;

  /* Accent Colors */
  --accent: #d4845a;
  --accent-light: #e8a880;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #faf8f5;
  --light-gray: #f0ede8;
  --medium-gray: #d0ccc6;
  --gray: #8a8680;
  --dark-gray: #4a4844;
  --near-black: #2a2824;
  --black: #1a1814;

  /* Semantic Colors */
  --success: #4a8c5c;
  --warning: #d4a030;
  --error: #c04040;
  --info: #4a7cac;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Font Sizes - Fluid Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
  --text-5xl: clamp(3rem, 2.3rem + 3.5vw, 5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 58, 92, 0.08), 0 1px 2px rgba(26, 58, 92, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 58, 92, 0.1), 0 2px 4px rgba(26, 58, 92, 0.06);
  --shadow-lg: 0 10px 30px rgba(26, 58, 92, 0.12), 0 4px 8px rgba(26, 58, 92, 0.06);
  --shadow-xl: 0 20px 50px rgba(26, 58, 92, 0.15), 0 8px 16px rgba(26, 58, 92, 0.08);
  --shadow-glow: 0 0 20px rgba(200, 163, 78, 0.3);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-padding: clamp(1rem, 3vw, 2rem);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 350;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--near-black);
  background-color: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-md);
  color: var(--dark-gray);
}

.section-tag {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray);
  max-width: 600px;
  line-height: 1.6;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ----- Section Spacing ----- */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header p {
  margin: var(--space-md) auto 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform var(--transition-base);
}

.btn:hover::after {
  transform: translateX(100%) skewX(-15deg);
}

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

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  /* Transparent over hero */
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(7, 27, 59, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.navbar.scrolled .navbar-logo {
  color: var(--white);
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-logo .logo-text-small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: #D4AF37;
  transition: transform var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
  color: #D4AF37;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #D4AF37;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: calc(var(--z-overlay) + 2);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Close button inside mobile menu */
.nav-close {
  display: none;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.nav-close:hover {
  background: var(--medium-gray);
}

.nav-close svg {
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--z-overlay);
  /* Hidden by default — invisible + non-interactive */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ----- Hero Section (Full-Width Cinematic Background) ----- */

/* ── Section shell ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Push content below fixed navbar */
  padding-top: 72px;
}

/* ── Full-width background image ── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/yccci-hero-section.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  /* Gentle scale-in on load */
  animation: heroBgReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroBgReveal {
  from {
    transform: scale(1.04);
    opacity: 0.6;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Left-to-right gradient overlay ──
     Left  : #071A3D at 92% opacity  → deep navy, readable text
     Center: smooth mid-transition
     Right : only 25% so Jesus + cross remain clearly visible
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(7, 26, 61, 0.95) 0%,
      rgba(7, 26, 61, 0.88) 25%,
      rgba(7, 26, 61, 0.65) 45%,
      rgba(7, 26, 61, 0.30) 65%,
      rgba(7, 26, 61, 0.10) 85%,
      rgba(7, 26, 61, 0.00) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Animated golden halo behind the cross ── */
.hero-float-glow {
  position: absolute;
  top: 28%;
  right: 22%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle,
      rgba(212, 175, 55, 0.20) 0%,
      rgba(212, 175, 55, 0.06) 45%,
      transparent 70%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  filter: blur(22px);
  animation: heroHaloPulse 4.5s ease-in-out infinite;
}

@keyframes heroHaloPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ── Inner wrapper — full width, max-width container, left aligned ── */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
}

/* ── Content column — max 640px, left side ── */
.hero-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 640px;
  padding-bottom: var(--space-xl);
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.3rem 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.40);
  border-radius: 50px;
  color: #D4AF37;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-badge-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Main heading ── */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.35);
}

/* ── Gold highlighted line ── */
.hero-title-highlight {
  display: block;
  color: #D4AF37;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  margin-top: 0.15em;
  margin-bottom: 1.5rem;
  text-shadow:
    0 0 80px rgba(212, 175, 55, 0.25),
    0 2px 20px rgba(0, 0, 0, 0.25);
}

/* ── Description ── */
.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(215, 222, 235, 0.90);
  line-height: 1.78;
  max-width: 500px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* ── CTA Button row ── */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary — solid gold */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #D4AF37;
  background: #D4AF37;
  color: #071A3D;
  white-space: nowrap;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-hero-primary:hover {
  background: #e8c84a;
  border-color: #e8c84a;
  color: #071A3D;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.50);
}

/* Secondary — ghost gold */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid rgba(212, 175, 55, 0.65);
  background: transparent;
  color: #ffffff;
  white-space: nowrap;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.btn-hero-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-hero-secondary:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #071A3D;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.40);
}

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.30);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: scrollDrift 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollDrift {

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

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

/* ── Hero entrance animations ── */
.animate-slide-up {
  opacity: 0;
  transform: translateY(32px);
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-fade-in {
  opacity: 0;
  animation: heroFadeIn 0.9s ease forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

.animate-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: heroFadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .card-date {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.card-image .card-category {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: var(--secondary);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.card-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.card-body .card-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.card-body .card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-sm);
  color: var(--primary-light);
}

/* ----- Grid Layouts ----- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ----- About Section ----- */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 163, 78, 0.2), transparent);
  z-index: 1;
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 58, 92, 0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

/* ----- Activities / Novena / Prayer Cards ----- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.activity-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.activity-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.activity-card:hover .activity-card-image img {
  transform: scale(1.05);
}

.activity-card-body {
  padding: var(--space-lg);
}

.activity-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.activity-card-body .activity-date {
  color: var(--secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.activity-card-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-md);
}

/* ----- Leadership Cards ----- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.leader-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-xl) auto var(--space-md);
  border: 3px solid var(--secondary-light);
  object-fit: cover;
}

.leader-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.leader-card .leader-position {
  color: var(--secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  display: block;
}

.leader-card .leader-bio {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--gray);
}

/* ----- Prayer Cards ----- */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.prayer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  cursor: pointer;
}

.prayer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.prayer-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--white);
}

.prayer-icon svg {
  width: 28px;
  height: 28px;
}

.prayer-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.prayer-card p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: 0;
}

/* ----- Novena Cards ----- */
.novena-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.novena-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.novena-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.novena-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
  background-color: var(--light-gray);
}

.novena-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.55s ease;
  will-change: transform;
}

.novena-card:hover .novena-card-image img {
  transform: scale(1.05);
}

.novena-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.novena-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.novena-card-body .novena-days {
  color: var(--secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

/* Responsive novena image height */
@media (max-width: 768px) {
  .novena-card-image {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .novena-card-image {
    height: 220px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .novena-card-image {
    height: 280px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .novena-card-image {
    height: 320px;
  }
}

@media (min-width: 1025px) {
  .novena-card-image {
    height: 400px;
  }
}

/* ----- Gallery Grid ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:nth-child(3n) {
  aspect-ratio: 4/3;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 92, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-sm);
}

.gallery-categories {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.gallery-cat-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--medium-gray);
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-cat-btn:hover,
.gallery-cat-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ----- Gallery Album Sections ----- */
.gallery-sections {
  margin-top: var(--space-2xl);
}

.gallery-section {
  display: none;
}

.gallery-section.active {
  display: block;
}

.gallery-album-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.gallery-album-title:first-child {
  margin-top: 0;
}

.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.gallery-album-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--light-gray);
}

.gallery-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-album-item:hover img {
  transform: scale(1.05);
}

.gallery-album-item .gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 92, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.gallery-album-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-album-item .gallery-item-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .gallery-album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
  .gallery-album-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Event Cards ----- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.event-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.event-date-box {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-md);
}

.event-date-box .event-day {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}

.event-date-box .event-month {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

.event-info {
  padding: var(--space-lg);
  flex: 1;
}

.event-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.event-info .event-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-sm);
}

.event-info .event-details span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.event-image {
  width: 120px;
  min-height: 100%;
  object-fit: cover;
}

/* ----- Contact Section / Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.contact-item p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ----- Footer ----- */
.footer {
  background: var(--near-black);
  color: var(--white);
  padding: var(--space-4xl) 0 0;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
}

.footer h4 {
  color: var(--white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  font-family: var(--font-heading);
}

.footer-brand p {
  margin-top: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--secondary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: var(--text-xs);
}

/* ----- Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 120px 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.breadcrumbs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.breadcrumbs-content {
  position: relative;
  z-index: 1;
}

.breadcrumbs-content h1 {
  color: var(--white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-links a {
  color: var(--secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-links a:hover {
  color: var(--secondary-light);
}

.breadcrumb-links span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

/* ----- Scroll Animations ----- */
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-in-scale {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.fade-in-scale {
  transform: translateY(20px) scale(0.95);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-scale.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* ----- Modal ----- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--medium-gray);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* ----- Image Lightbox ----- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ----- Responsive ----- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .about-grid {
    gap: var(--space-xl);
  }

  .contact-grid {
    gap: var(--space-2xl);
  }

  /* Hero — Tablet */
  .hero-inner {
    padding: 0 clamp(1.5rem, 4vw, 3rem);
  }

  .hero-content-col {
    max-width: 560px;
  }

  .hero-float-glow {
    right: 18%;
    width: 260px;
    height: 260px;
  }
}

/* Mobile Large (640px - 768px) */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    /* Slide in from RIGHT */
    transform: translateX(100%);
    width: min(80vw, 320px);
    height: 100%;
    height: 100dvh;
    /* dynamic viewport height — respects mobile browser chrome */
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--space-xl) var(--space-xl);
    gap: var(--space-xs);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
    z-index: calc(var(--z-overlay) + 1);
    /* sits above the backdrop */
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-close {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    color: var(--primary-dark);
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.06);
  }

  .nav-links a.active {
    color: var(--primary);
    background: rgba(26, 58, 92, 0.08);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hero — Mobile: center content, image stays as full bg */
  .hero-bg-image {
    background-position: 70% center;
  }

  .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(7, 26, 61, 0.90) 0%,
        rgba(7, 26, 61, 0.82) 50%,
        rgba(7, 26, 61, 0.70) 100%);
  }

  .hero-inner {
    padding: 0 1.25rem;
    justify-content: center;
  }

  .hero-content-col {
    align-items: center;
    max-width: 100%;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 440px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-float-glow {
    top: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date-box {
    flex-direction: row;
    gap: var(--space-sm);
    padding: var(--space-md);
    min-width: auto;
  }

  .event-image {
    width: 100%;
    height: 180px;
  }

  .gallery-item:nth-child(3n) {
    grid-row: auto;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .breadcrumbs {
    padding: 100px 0 var(--space-2xl);
  }

  .modal-content {
    padding: var(--space-lg);
    width: 95%;
  }
}

/* Mobile Small (< 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }

  .navbar-logo img {
    height: 36px;
  }

  .navbar-logo {
    font-size: var(--text-lg);
  }

  .hero {
    min-height: 90vh;
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: 0.4rem 1rem;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .prayer-grid {
    grid-template-columns: 1fr;
  }

  .novena-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .leader-image {
    width: 80px;
    height: 80px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .novena-day-nav {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }
}

/* ============================================
   Donation Page Styles
   ============================================ */

/* ----- Premium Contact Form Card ----- */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 58, 92, 0.06);
}

.contact-form-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
}

.contact-form-header h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.contact-form-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.premium-contact-form {
  padding: var(--space-2xl);
}

.premium-form-group {
  margin-bottom: var(--space-lg);
}

.premium-form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.3px;
}

.premium-form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--near-black);
  background: var(--off-white);
  transition: all var(--transition-base);
  outline: none;
}

.premium-form-input:focus {
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 163, 78, 0.12);
}

.premium-form-input::placeholder {
  color: var(--gray);
  font-weight: 300;
}

.premium-form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--near-black);
  background: var(--off-white);
  transition: all var(--transition-base);
  min-height: 180px;
  resize: vertical;
  outline: none;
}

.premium-form-textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 163, 78, 0.12);
}

.premium-form-textarea::placeholder {
  color: var(--gray);
  font-weight: 300;
}

.premium-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.premium-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.premium-submit-btn:hover::after {
  opacity: 1;
}

.premium-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 163, 78, 0.35);
}

.premium-submit-btn svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.premium-submit-btn span {
  position: relative;
  z-index: 1;
}

/* ----- Novena Day Selection (Premium Redesign) ----- */
.novena-progress-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
  border: 1px solid rgba(26, 58, 92, 0.06);
}

.novena-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.novena-progress-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--primary-dark);
  font-weight: 700;
}

.novena-progress-stats {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--gray);
}

.novena-progress-stats span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.novena-progress-stats strong {
  color: var(--primary-dark);
}

.novena-progress-bar-track {
  width: 100%;
  height: 10px;
  background: var(--light-gray);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.novena-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 50px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.novena-progress-percentage {
  text-align: right;
  font-size: var(--text-xs);
  color: var(--gray);
  font-weight: 600;
}

/* Day Selection Grid */
.novena-day-selection {
  margin-top: var(--space-xl);
}

.novena-day-selection-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.novena-day-selection-header h3 {
  font-size: var(--text-2xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.novena-day-selection-header p {
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.novena-day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.novena-day-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--light-gray);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.novena-day-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.novena-day-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.novena-day-card:hover::before {
  transform: scaleX(1);
}

.novena-day-card.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(200, 163, 78, 0.15), var(--shadow-md);
  transform: translateY(-3px);
}

.novena-day-card.active::before {
  transform: scaleX(1);
}

.novena-day-card.completed {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(74, 140, 92, 0.04), rgba(74, 140, 92, 0.02));
}

.novena-day-card.completed::before {
  background: linear-gradient(90deg, var(--success), #6abf7c);
  transform: scaleX(1);
}

.novena-day-card-number {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.novena-day-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.novena-day-card-subtitle {
  font-size: var(--text-xs);
  color: var(--gray);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.novena-day-card-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  transition: all var(--transition-base);
}

.novena-day-card-status.pending {
  background: var(--light-gray);
  color: var(--gray);
}

.novena-day-card-status.active-status {
  background: rgba(200, 163, 78, 0.12);
  color: var(--secondary-dark);
}

.novena-day-card-status.completed-status {
  background: rgba(74, 140, 92, 0.1);
  color: var(--success);
}

.novena-day-card-status svg {
  width: 14px;
  height: 14px;
}

/* Novena Day CTA */
.novena-day-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.novena-day-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 240px;
}

.novena-day-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.novena-day-cta-btn:hover::after {
  opacity: 1;
}

.novena-day-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200, 163, 78, 0.35);
}

.novena-day-cta-btn svg,
.novena-day-cta-btn span {
  position: relative;
  z-index: 1;
}

.novena-day-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* Novena Day Responsive */
@media (max-width: 1024px) {
  .novena-day-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .novena-day-grid {
    grid-template-columns: 1fr;
  }

  .novena-progress-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .novena-progress-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .premium-contact-form {
    padding: var(--space-lg);
  }

  .contact-form-header {
    padding: var(--space-lg);
  }

  .novena-day-cta-btn {
    width: 100%;
    min-width: auto;
  }
}

/* ----- Donation Hero Section ----- */
.donation-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.donation-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/donation-img.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroBgReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.donation-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(7, 26, 61, 0.92) 0%,
      rgba(7, 26, 61, 0.75) 50%,
      rgba(7, 26, 61, 0.50) 100%);
  z-index: 1;
  pointer-events: none;
}

.donation-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-4xl) 0;
}

.donation-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.3rem 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  color: #D4AF37;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.donation-hero-badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.donation-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.35);
}

.donation-hero-text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(215, 222, 235, 0.90);
  line-height: 1.78;
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 0;
}

/* ----- Donation Info Cards ----- */
.donation-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.donation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  position: relative;
  overflow: hidden;
}

.donation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.donation-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.donation-card-icon svg {
  width: 26px;
  height: 26px;
}

.donation-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: var(--primary-dark);
}

.donation-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.donation-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
}

.donation-detail-item:last-child {
  border-bottom: none;
}

.donation-detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}

.donation-detail-value {
  font-size: var(--text-base);
  color: var(--near-black);
  font-weight: 500;
}

/* ----- Donation Form ----- */
.donation-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.donation-form {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 58, 92, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-dark);
}

.required {
  color: var(--error);
}

.optional {
  color: var(--gray);
  font-weight: 400;
  font-size: var(--text-xs);
}

.form-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--near-black);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-input.error {
  border-color: var(--error);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4844' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--near-black);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 120px;
  resize: vertical;
  width: 100%;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-error-text {
  font-size: var(--text-xs);
  color: var(--error);
  min-height: 1rem;
  display: block;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--near-black);
  z-index: 1;
  pointer-events: none;
}

.input-with-prefix .form-input {
  padding-left: 2.5rem;
}

/* ----- File Upload ----- */
.file-upload-wrapper {
  position: relative;
}

.file-upload-area {
  border: 2px dashed var(--medium-gray);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--off-white);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(26, 58, 92, 0.04);
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}

.file-upload-icon svg {
  width: 100%;
  height: 100%;
}

.file-upload-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: var(--space-xs);
}

.file-upload-hint {
  font-size: var(--text-xs);
  color: var(--gray);
  margin-bottom: 0;
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--medium-gray);
}

.file-preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.file-preview-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--near-black);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--light-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.file-preview-remove:hover {
  background: var(--error);
  color: var(--white);
}

.file-preview-remove svg {
  width: 16px;
  height: 16px;
}

.file-preview-thumb {
  margin-top: var(--space-sm);
  max-width: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.file-preview-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ----- Donation Submit Button ----- */
.donation-submit-btn {
  width: 100%;
  margin-top: var(--space-lg);
  padding: 1.125rem 2rem;
  font-size: var(--text-base);
  gap: var(--space-md);
}

.donation-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* ----- Donation Success Modal ----- */
.donation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.donation-modal.active {
  display: flex;
}

.donation-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.donation-modal-content {
  position: relative;
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

.donation-modal-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--white);
}

.donation-modal-icon svg {
  width: 32px;
  height: 32px;
}

.donation-modal-content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

.donation-modal-content p {
  font-size: var(--text-base);
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.donation-modal-actions {
  display: flex;
  justify-content: center;
}

/* ----- Copy Button ----- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  justify-content: center;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ----- Toast Notification ----- */
.toast-notification {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--success);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-message {
  display: block;
}

/* ----- Premium Contact Form Error Styling ----- */
.premium-form-input.error,
.premium-form-textarea.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(192, 64, 64, 0.1) !important;
}

/* ----- Donation Responsive ----- */
@media (max-width: 768px) {
  .donation-hero {
    min-height: 60vh;
  }

  .donation-hero-content {
    padding: var(--space-3xl) 0;
    text-align: center;
  }

  .donation-hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: var(--space-lg);
  }

  .donation-form {
    padding: var(--space-lg);
  }

  .donation-info-grid {
    grid-template-columns: 1fr;
  }

  .donation-modal-content {
    padding: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .donation-hero {
    min-height: 55vh;
  }

  .donation-detail-value {
    font-size: var(--text-sm);
  }
}

/* ============================================
   Prayer Section - Redesigned Components
   ============================================ */

/* ----- Section Alt (alternating background) ----- */
.section-alt {
  background: var(--light-gray);
}

/* ----- Daily Prayer Grid & Cards ----- */
.daily-prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.daily-prayer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  display: flex;
  flex-direction: column;
}

.daily-prayer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.daily-prayer-card-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.daily-prayer-card-top::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.daily-prayer-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.daily-prayer-icon svg {
  width: 24px;
  height: 24px;
}

.daily-prayer-time {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--secondary-light);
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.daily-prayer-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.daily-prayer-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.daily-prayer-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  flex: 1;
}

.read-prayer-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ----- Monthly Novena Grid & Cards ----- */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.month-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.month-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.month-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.month-card:hover::before {
  transform: scaleX(1);
}

.month-card-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.month-card h3 {
  font-size: var(--text-base);
  color: var(--primary-dark);
  margin-bottom: 0;
}

.month-card p {
  font-size: var(--text-xs);
  color: var(--gray);
  margin-bottom: 0;
}

.month-card-count {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: var(--space-xs);
}

/* ----- First Saturday Premium Card ----- */
.first-saturday-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.first-saturday-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.first-saturday-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
  position: relative;
  z-index: 1;
}

.first-saturday-content {
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.first-saturday-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.first-saturday-icon svg {
  width: 40px;
  height: 40px;
}

.first-saturday-text h3 {
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.first-saturday-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.first-saturday-schedule,
.first-saturday-time {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.first-saturday-text .placeholder-text {
  color: var(--secondary-light);
  font-style: italic;
}

.first-saturday-text .btn {
  margin-top: var(--space-md);
}

/* ----- Weekly Prayer Intentions Grid ----- */
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.weekly-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.weekly-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.weekly-card-week {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-sm) var(--space-lg);
}

.weekly-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.weekly-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.weekly-card-icon svg {
  width: 24px;
  height: 24px;
}

.weekly-card-body h3 {
  font-size: var(--text-lg);
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.weekly-card-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  flex: 1;
}

.weekly-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.weekly-card:hover .weekly-card-link {
  color: var(--primary-light);
}

/* ----- Prayer Detail Pages ----- */
.prayer-detail-section {
  padding: var(--space-3xl) 0;
}

.prayer-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.prayer-detail-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.prayer-detail-header .prayer-detail-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin: 0 auto var(--space-lg);
}

.prayer-detail-header .prayer-detail-icon svg {
  width: 32px;
  height: 32px;
}

.prayer-detail-header h1 {
  font-size: var(--text-3xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.prayer-detail-header .prayer-detail-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--gray);
}

.prayer-detail-header .prayer-detail-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.prayer-detail-header .prayer-detail-meta svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.prayer-detail-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 58, 92, 0.06);
}

.prayer-detail-body .prayer-text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--near-black);
}

.prayer-detail-body .prayer-text p {
  margin-bottom: var(--space-md);
}

.prayer-detail-body .prayer-text .prayer-response {
  color: var(--primary);
  font-weight: 600;
}

.prayer-detail-body .prayer-text .prayer-direction {
  color: var(--secondary-dark);
  font-style: italic;
  font-size: var(--text-sm);
}

.prayer-detail-body .prayer-text h4 {
  font-size: var(--text-lg);
  color: var(--primary-dark);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.prayer-detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
  transition: gap var(--transition-fast);
}

.prayer-detail-back:hover {
  gap: var(--space-md);
  color: var(--primary-light);
}

/* ----- Monthly Novena Detail Page ----- */
.monthly-novena-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.monthly-novena-header h1 {
  font-size: var(--text-3xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.monthly-novena-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.monthly-novena-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.monthly-novena-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 58, 92, 0.06);
  display: flex;
  flex-direction: column;
}

.monthly-novena-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.monthly-novena-image {
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.monthly-novena-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.monthly-novena-card:hover .monthly-novena-image img {
  transform: scale(1.05);
}

.monthly-novena-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.monthly-novena-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.monthly-novena-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.monthly-novena-body h3 {
  font-size: var(--text-xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.monthly-novena-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  flex: 1;
}

.monthly-novena-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ----- Weekly Prayer Detail Page ----- */
.weekly-detail-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.weekly-detail-header h1 {
  font-size: var(--text-3xl);
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.weekly-detail-header .weekly-detail-week {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: var(--space-md);
}

/* ----- Responsive for Prayer Components ----- */
@media (max-width: 768px) {
  .daily-prayer-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .month-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
  }

  .first-saturday-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
  }

  .first-saturday-icon {
    margin-bottom: var(--space-sm);
  }

  .weekly-grid {
    grid-template-columns: 1fr;
  }

  .prayer-detail-body {
    padding: var(--space-lg);
  }

  .monthly-novena-grid {
    grid-template-columns: 1fr;
  }

  .monthly-novena-actions {
    flex-direction: column;
  }

  .monthly-novena-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .daily-prayer-grid {
    grid-template-columns: 1fr;
  }

  .month-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .month-card {
    padding: var(--space-md);
  }

  .month-card-number {
    font-size: var(--text-xl);
  }

  .month-card h3 {
    font-size: var(--text-sm);
  }

  .month-card p {
    display: none;
  }

  .month-card-count {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }

  .prayer-detail-header h1 {
    font-size: var(--text-2xl);
  }

  .monthly-novena-header h1 {
    font-size: var(--text-2xl);
  }
}

/* ----- Utility Classes ----- */
.text-center {
  text-align: center;
}

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

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* Print Styles */
@media print {

  .navbar,
  .footer,
  .back-to-top,
  .hero-scroll,
  .breadcrumbs {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-xl) 0;
    page-break-inside: avoid;
  }

  .card,
  .activity-card,
  .prayer-card,
  .novena-card {
    box-shadow: none;
    border: 1px solid var(--medium-gray);
  }

  a {
    color: var(--near-black) !important;
  }
}