/* ===== Hero Section ===== */
  .hero {
    position: relative;
    height: 60vh;
    background: url('https://cdn.pixabay.com/photo/2024/03/22/08/06/ai-generated-8649193_960_720.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-in-out;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 700px;
    animation: fadeIn 2.5s ease-in-out;
  }

  @keyframes fadeIn {
        from {opacity: 0; transform: translateY(20px);}
        to {opacity: 1; transform: translateY(0);}
    }

  /* ===== Card Section Base Styles ===== */
  .card-section {
    margin: 40px 0;
    padding: 0 20px;
  }

  .card-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0px;
    color: #ff9800;
    text-transform: uppercase;
  }

  .card-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
  }
 
   /* ===== Course Card paragraph ===== */
  #course-par {
    color: #555;
  }

  .card-container {
    display: flex;
    justify-content: center; /* Center cards on desktop */
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 10px;
  }

  .card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
    color: #000000;
  }

  .card-text {
    flex: 1;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
    color: #666;
  }

  .card a.read-more {
    margin-top: auto;
    text-align: center;
    display: inline-block;
    color: #ff9800;
    font-weight: 600;
    text-decoration: none;
  }

  /* ===== Salvation Card Section ===== */
  .salvation-section .card {
    flex: 0 0 500px;
    margin: 0 auto;
    width: 700px;
  }

  .salvation-section .card img {
    height: 220px;
  }

  .salvation-section .card p{
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: #666;
  }

  .salvation-section button {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin: 15px auto 0;
    display: block;
    border-radius: 5px;
  }
  #prayBtn {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 50%, #F57C00 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'PT Sans', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    margin: 15px auto 0;
    display: block;
    border-radius: 50px;
  }

  #prayBtn:hover {
      background: linear-gradient(45deg, #b89200, #e8c200);
      transform: translateY(-3px);
    }

  /* ===== Responsive ===== */
  @media(max-width:768px){
    .hero h1 {
      font-size: 2rem;
    }
    .hero p {
      font-size: 1rem;
    }

    .card-container {
      flex-direction: column; /* stack cards vertically */
      align-items: center;
      gap: 20px;
      padding-left: 0;
    }

    .card {
      flex: 0 0 90%; /* full width for mobile */
    }

    .salvation-section .card {
      flex: 0 0 95%; /* slightly larger for mobile */
      height: auto;
      width: auto;
    }

      .salvation-section .card p{
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: center;
        color: #666;
    }
  }

  /* ===== Flowers Animation ===== */
  .flowers {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: fadeout 3s forwards;
    pointer-events: none;
    color: #e63946;
  }

  @keyframes fadeout {
    0% {opacity: 1; transform: translate(-50%, -50%) scale(1);}
    100% {opacity: 0; transform: translate(-50%, -50%) scale(2);}
  }

  /*=== FIND A CHURCH SECTION ===*/
  .find-church {
  background: linear-gradient(135deg, #FFD54F 0%, #FFA000 50%, #FF6F00 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  padding: 80px 20px;
  border-radius: 0px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.find-church:hover,
.find-church:focus-within,
.find-church:active {
  transform: scale(1.02);
  box-shadow: 0 10px 25px linear-gradient(135deg, #FFB300 0%, #FB8C00 50%, #E65100 100%);
}

/* Soft background glow (mobile-optimized) */
.find-church::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 70%);
  opacity: 0.8;
  animation: slowPulse 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes slowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.find-church-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.find-church h2 {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: 700;
}

.find-church p {
  font-size: 1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.find-btn {
  background: white;
  color: #ff9800;
  border: none;
  padding: 14px 40px;
  font-size: 1em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.find-btn:hover,
.find-btn:focus,
.find-btn:active {
  background: linear-gradient(135deg, #ffffff, #ccffcc);
  color: #9e6207;
  box-shadow: 0 8px 20px linear-gradient(135deg, #FFB300 0%, #FB8C00 50%, #E65100 100%);
  transform: scale(1.05);
}

/* 📱 Responsive tweaks */
@media (max-width: 768px) {
  .find-church {
    padding: 60px 15px;
  }
  .find-church h2 {
    font-size: 1.8em;
  }
  .find-church p {
    font-size: 0.95em;
  }
}
