/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 620px; /* slightly reduced for better first-fold */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -40px; /* ✅ lift section slightly upwards */
}

.hero img.mainimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.8s ease, filter 0.8s ease;
  will-change: transform;
}

.hero:hover img.mainimg {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.hero-text {
  position: absolute;
  top: 48%; /* ✅ slightly higher position */
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -40%) translateY(40px);
  animation: heroFadeIn 1.2s ease forwards;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7); /* ✅ clean shadow for readability */
}

.hero-text h4 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- Animation ---------- */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -40%) translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablets */
@media (max-width: 900px) {
  .hero {
    height: 500px;
    margin-top: -20px;
  }

  .hero-text {
    top: 45%;
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text h4 {
    font-size: 1.1rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .hero {
    height: 600px;
    margin-top: -49px;
  }

  .hero-text {
    max-width: 90%;
    top: 42%;
    padding: 0 10px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero-text h4 {
    font-size: 1rem;
    line-height: 1.4;
  }
}






/* =========================
   🌟 Modern Contact Section
   ========================= */
.contact-grid {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 40px;
  transform: translateY(-80px);
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.contact-cards .card {
  background: linear-gradient(135deg, #ffffff, #fef6f6);
  border: 1px solid #e1b5b5;
  border-radius: 16px;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.contact-cards .card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(255, 90, 90, 0.12), transparent 70%);
  animation: rotateBg 18s linear infinite;
  z-index: 0;
}

.contact-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.contact-cards img {
  width: 45px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.contact-cards h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #222;
  position: relative;
  z-index: 1;
}

.contact-cards p {
  color: #555;
  font-size: 15px;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* =========================
   📩 Form + Map Section
   ========================= */
.contact-form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  background: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.contact-form-box .left h2 {
  margin: 0 0 15px;
  font-size: 1.8rem;
  color: #c91c1c;
}

.contact-form-box .left p {
  margin-bottom: 20px;
  color: #333;
  line-height: 1.6;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  border-color: #c91c1c;
  box-shadow: 0 0 0 3px rgba(201, 28, 28, 0.15);
  outline: none;
}

.contact-form-box button {
  background: #c91c1c;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease;
  width: 100%;
}

.contact-form-box button:hover {
  background: #a01616;
  transform: translateY(-2px);
}

.contact-form-box .map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   🌐 Animations
   ========================= */
@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   📱 Responsive Styles
   ========================= */
@media (max-width: 992px) {
  .contact-form-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    transform: translateY(-40px);
  }

  .contact-cards {
    gap: 20px;
  }

  .contact-form-box {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .contact-cards .card {
    padding: 20px 15px;
  }

  .contact-form-box input,
  .contact-form-box textarea {
    font-size: 14px;
  }

  .contact-form-box .left h2 {
    font-size: 1.5rem;
  }
}



/* ==============================
   DIOCESAN CENTRES – WHITE CARDS WITH BLACK SHADOWS & RED ACCENTS
   ============================== */

.diocesan-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #b32626;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.diocesan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.diocesan-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Subtle red corner indicators */
.diocesan-card::before,
.diocesan-card::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.diocesan-card::before {
  top: 0;
  left: 0;
  border-width: 20px 20px 0 0;
  border-color: #b32626 transparent transparent transparent;
}

.diocesan-card::after {
  bottom: 0;
  right: 0;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #b32626 transparent;
}

.diocesan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: #ffe6e6;
}

.diocesan-card:hover::before,
.diocesan-card:hover::after {
  opacity: 0.8;
}

.diocesan-card h2 {
  color: #b32626;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  font-weight: 600;
}

.diocesan-card h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #b32626;
  margin: 12px auto 0;
  border-radius: 1px;
}

.diocesan-card p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.diocesan-card strong {
  color: #b32626;
  font-weight: 600;
}

.diocesan-card a:not(.card-actions a) {
  color:#000000;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.diocesan-card a:not(.card-actions a):hover {
  border-bottom: 1px solid #b32626;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Both buttons in red */
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f85858;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #ff8888;
  text-align: center;
}

.card-actions a:hover {
  background: #921b1b;
  border-color: #921b1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 38, 38, 0.3);
}

.card-actions a:active {
  transform: translateY(0);
}

/* Impact badge */
.impact-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fff5f5;
  color: #b32626;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 5px 0;
  border: 1px solid #ffcccc;
}

/* Progress bar for fundraising goals */
.progress-container {
  margin: 15px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b32626, #ff6b6b);
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

/* Trust indicators */
.trust-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
}

.trust-indicators i {
  color: #b32626;
  margin-right: 4px;
}


/* Focus states for accessibility */
.card-actions a:focus {
  outline: 2px solid #b32626;
  outline-offset: 2px;
  background: #921b1b;
}