/* === Expansive Hero Styling === */
.ourstory #origin {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 60%, #f9f6eb 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

/* soft halo light */
.ourstory .background-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 215, 160, 0.25), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

/* Title styling */
.ourstory .title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  z-index: 2;
  position: relative;
  animation: fadeIn 1.4s ease-out both;
}

/* smaller top line */
.ourstory .line-one {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffebb2;
  text-shadow: 0 0 12px rgba(255, 215, 150, 0.3);
  margin-bottom: 0.75em; /* more spacing below */
}

/* larger bottom line */
.ourstory .line-two {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(to right, #ffcd75, #f7a1b5, #ffd7b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(255, 188, 120, 0.4);
  margin-bottom: 1.75em; /* adds generous space before subtitle */
}

.ourstory .subtitle {
  color: #ffe9c2;
  font-size: clamp(1.125rem, 1.8vw, 1.4rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: none;
  opacity: 0.95;
  text-shadow:
    0 0 8px rgba(255, 225, 170, 0.4),
    0 0 16px rgba(255, 180, 100, 0.3),
    0 0 24px rgba(255, 160, 80, 0.2);
  animation: candlePulse 8s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes candlePulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 225, 170, 0.4),
      0 0 16px rgba(255, 180, 100, 0.3),
      0 0 24px rgba(255, 160, 80, 0.2);
    opacity: 0.95;
  }
  50% {
    text-shadow:
      0 0 10px rgba(255, 230, 170, 0.6),
      0 0 20px rgba(255, 190, 120, 0.4),
      0 0 30px rgba(255, 160, 80, 0.3);
    opacity: 1;
  }
}



/* divider transition */
.ourstory .wave-divider {
  position: relative;
  height: 120px;
  background: #f9f6eb;
  clip-path: ellipse(80% 100% at 50% 0%);
  margin-top: -2rem;
}

/* simple fade-in motion */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   Explore More Ministries (Refined 2x2 Layout)
   ========================================================= */

.ourstory #explore-ministries {
  background: linear-gradient(to bottom, #fffaf4, #fefbf6, #fdf4e6);
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.ourstory #explore-ministries::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(255, 210, 150, 0.2), transparent 75%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.ourstory #explore-ministries h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3rem);
  color: #3a2b16;
  text-shadow: 0 0 10px rgba(255, 210, 140, 0.25);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  animation: fadeIn 1.4s ease-out both;
}

.ourstory #explore-ministries .section-subtitle {
  color: #5e4d34;
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 4rem;
  animation: fadeIn 2s ease-out both;
}

/* --- 2x2 Grid Layout --- */
.ourstory .ministry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .ministry-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cards --- */
.ourstory .ministry-card {
  background: linear-gradient(150deg, #fffdf8, #fff7ec);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 205, 140, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.45s ease;
  overflow: hidden;
}

.ourstory .ministry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(255, 200, 140, 0.35);
  border-color: rgba(255, 190, 100, 0.85);
}

/* --- Titles --- */
.ourstory .ministry-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.75rem;
  color: #3b2b1a;
  text-shadow: 0 0 10px rgba(255, 215, 150, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.ourstory .ministry-card:hover h3 {
  color: #b77a25;
}

/* --- Text --- */
.ourstory .ministry-card p {
  color: #4b3c2a;
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.ourstory .ministry-card:hover p {
  color: #35261a;
}

/* --- Card Themes --- */
.ministry-lions {
  background: linear-gradient(160deg, #fff8f1, #fff1e2, #fffaf4);
}

.ministry-hands {
  background: linear-gradient(160deg, #fff6f8, #ffeef2, #fff9f3);
}

.ministry-arts {
  background: linear-gradient(160deg, #fff8f4, #fff4f9, #fff9f7);
}

.ministry-standby {
  background: linear-gradient(160deg, #f9fff7, #fffaf5, #fffdf8);
}

/* Make entire ministry cards clickable */
.ministry-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.45s ease;
}

/* Prevent text color change when clicking */
.ministry-card h3,
.ministry-card p {
  color: inherit;
}

.ministry-card:focus,
.ministry-card:active {
  outline: none;
  transform: translateY(-6px) scale(0.99);
  box-shadow: 0 10px 24px rgba(255, 200, 140, 0.35);
}

/* Subtle glow border when focused (keyboard accessible) */
.ministry-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 200, 140, 0.5);
  border-color: rgba(255, 190, 100, 0.9);
}
