html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#main {
  margin-top: 0 !important;
}

header .navbar {
  background-color: #00a1e4 !important;
}

/* Make menu links white */
.navbar-nav .nav-link {
  color: white !important;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: -8px; /* top of the text */
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e8038a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
  transform: scaleX(1); /* grow the line */
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-nav .nav-item {
  margin-right: 20px; /* adjust spacing as needed */
}

.navbar-nav .nav-item:last-child {
  margin-right: 0; /* remove spacing after the last item */
}

/* Show dropdown menu on hover */
.navbar-nav li.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  transition: all 0.3s ease-in-out;
}

/* Optional: fix positioning on hover */
.navbar-nav .dropdown-menu {
  margin-top: 0;
}

/* Custom pink button style */
.btn-pink {
  background-color: #e8038a !important;
  color: white !important;
  border-radius: 2 !important; /* removes rounded corners */
}

.btn-pink:hover {
  background-color: #d9007f !important;
  color: white !important;
}

.btn-blue {
  background: #09a4e5 !important;
  color: white !important;
}

.btn-blue:hover {
  background: #002636 !important;
  color: white !important;
}

/* For Footer */
.custom-footer {
  background-color: #c9efff !important; /* Light blue like your image */
  border: 3px solid #c9efff !important; /* Strong blue border */
}

.custom-footer h6 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-link {
  color: #003d57;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.footer-link:hover {
  text-decoration: none;
  color: #e8038a;
}

/* Remove bullet points and space them nicely */
.custom-footer ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.custom-footer ul li {
  margin-bottom: 6px;
}

.custom-footer img {
  max-width: 100px;
  height: auto;
}

@media (max-width: 767.98px) {
  .custom-footer .row > div {
    text-align: center;
  }
}

/* Hero Section */
.hero-sections {
  width: 100%;
  overflow: hidden; /* Prevent vertical scrolling */
  position: relative;
}

/* Ensure the image fills the entire hero section */
.hero-sections img {
  width: 100%;
  object-fit: cover; /* Cover the container while maintaining aspect ratio */
  display: block;
  max-width: 100%;
}

/* Churches Section */
.churches-section {
  position: relative;
  padding-bottom: 300px; /* space for ladder */
}

.churches-section .row {
  position: relative;
  min-height: 250px; /* ensures ladder fits inside section */
}

.churches-section .col-xl-3 {
  transform: translateY(calc(var(--card-index) * 50px));
}

.churches-section .card {
  position: relative;
  z-index: 1;
  background-color: rgb(13 110 253 / 0%) !important;
  color: #cadbff;
  border: 1px solid #00a1e4;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Optional: hover effect */
.churches-section .card:hover {
  transform: translateY(-5px); /* lift card slightly */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Headings and text */
.churches-section .card h3,
.churches-section .card p,
.churches-section .card small {
  color: #000000; /* ensure all text is black */
}

/* Main Heading */
.churches-section .churches-title {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  color: #000000;
  text-align: left;
}

/* Subheading / Paragraph */
.churches-section .churches-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555555;
  font-weight: 400;
  text-align: left;
}
.churches-section .churches-title .churches-blue {
  color: #00a1e4; /* your blue color */
  text-align: left;
}
@media (max-width: 992px) {
  .churches-section .row {
    min-height: 350px; /* more space for ladder on mobile */
  }
}

/* Ministries Section */

.extra-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Ministry Image Wrapper */
.ministry-img-wrapper {
  width: 400px; /* large screen default */
  /*   height: 350px;
  overflow: hidden; */
  border-radius: 6px;
  flex-shrink: 0;
}
.ministry-img-wrapper img {
  width: 100%;
  /*   height: 100%; */
  /*   object-fit: cover; */
  display: block;
  border-radius: 6px;
}

/* Ministries Section Background */
.ministries-section {
  background-color: #c8f2ff;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Tabs list */
.ministry-tabs .nav-link {
  background-color: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  padding: 10px 15px;
  color: #000;
  font-weight: 500;
}

/* Active tab style */
.ministry-tabs .nav-link.active {
  background-color: #fff;
  border-left: 4px solid #e5007d;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #ddd;
}

/* Hover effect */
.ministry-tabs .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Pink button */
.btn-pink {
  background-color: #e83e8c;
  color: #fff;
  border-radius: 0;
  border: none;
}
.btn-pink:hover {
  background-color: #c4006c;
}

/* Responsive adjustments for tablets */
@media (max-width: 991.98px) {
  .ministries-section .d-flex {
    flex-direction: column !important;
    align-items: center;
  }

  .ministry-img-wrapper {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .ministry-img-wrapper img {
    height: auto;
  }

  .ministry-tabs {
    flex-direction: row !important;
    overflow-x: auto;
    margin-bottom: 1rem;
  }

  .ministry-tabs .nav-item {
    flex: 0 0 auto;
  }

  .tab-content > .tab-pane {
    margin-top: 1rem;
  }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 575.98px) {
  .ministries-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .ministry-tabs {
    gap: 0.5rem;
  }

  .ministry-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.875rem;
  }

  .tab-content > .tab-pane {
    flex-direction: column !important;
  }

  .ministry-img-wrapper {
    width: 100%;
    height: 200px; /* smaller image on mobile */
  }

  .ministry-img-wrapper img {
    height: 100%;
    object-fit: cover;
  }

  .btn-pink {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* Ministries News Listing Page */

.ministry-featured-card {
  overflow: hidden;
  min-height: 300px;
  background-color: #2260bf0a; /* Slightly darker gray for visibility */
  display: flex;
  flex-wrap: wrap;
  border-radius: 4px;
}

/* Image area */
.ministry-featured-image-wrapper {
  height: 100%;
  min-height: 300px;
  position: relative;
}

.ministry-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.ministry-card-link:hover .ministry-card-image {
  transform: scale(1.05); /* Image zoom only */
}

/* Right-side content */
.featured-card-content {
  background-color: #f0f0f0; /* Matches card background */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .ministry-featured-card {
    flex-direction: column;
  }

  .ministry-featured-image-wrapper {
    min-height: 200px;
  }
}

.ministry-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.portrait-card {
  height: 580px;
  position: relative;
  overflow: hidden;
  background-color: #1c1c3c;
  border-radius: 4px;
}

.square-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.square-card {
  height: 280px;
  position: relative;
  overflow: hidden;
  background-color: #1c1c3c;
  border-radius: 4px;
}

.ministry-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.excerpt-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
}

.overlay-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

/* Mobile */
@media (max-width: 991.98px) {
  .ministry-grid-layout {
    grid-template-columns: 1fr;
  }

  .portrait-card,
  .square-card {
    height: 250px;
  }
}
.older-posts-section {
  background-color: #2260bf0a;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4rem 0;
}

.section-heading {
  font-size: 1.5rem;
  border-color: #e0e0e0;
}

.ministry-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem; /* More breathing room */
}

.ministry-bottom-card {
  position: relative;
  overflow: hidden;
  height: 250px;
  background-color: #f0f0f0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-bottom-card:hover {
  transform: translateY(-5px);
}

.ministry-bottom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 6px;
}

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

.ministry-bottom-card .overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  border-radius: 0 0 6px 6px;
}

.ministry-bottom-card h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Gallery Section - Default */
.gallery-text {
  color: #000;
}

.gallery-text:hover {
  color: #17a9e6;
}

.gallery-section img,
.owl-carousel .item img {
  width: 100%;
  height: 300px; /* default large screen height */
  object-fit: cover;
  border-radius: 10px; /* optional rounded corners */
  display: block;
}

/* Optional: define btn-pink if not using custom Bootstrap theme */

.heading-underline {
  width: 60px;
  height: 4px;
  background-color: #e5007d; /* same as your button pink */
}

/* Pink button */
.btn-pink {
  background-color: #e83e8c;
  color: #fff;
  border-radius: 0;
  border: none;
}
.btn-pink:hover {
  background-color: #c4006c;
}

/* Responsive stack */
@media (max-width: 767.98px) {
  .ministries-section .d-flex {
    flex-direction: column !important;
  }

  .ministries-section img {
    max-width: 100%;
    margin-top: 1rem;
  }
  /* Ministries Section Background */
  .ministries-section {
    background-color: #c8f2ff;
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* Ministry List Page */

.ministry-card {
  height: 320px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.ministry-card-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.ministry-card-link:hover .ministry-card-image {
  transform: scale(1.05); /* Slight zoom on hover */
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Cover half of the card/image */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  z-index: 2;
  display: flex;
  align-items: flex-end; /* Align title near bottom */
  padding: 1.5rem;
}

.ministry-title {
  font-size: 1.25rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* .ministry-card-link:hover .ministry-card {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
} */

/* News Card */
.ministry-news-section .card {
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Ministry News Section */
.ministry-news-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.ministry-news-section .news-item {
  display: flex;
  gap: 1.5rem; /* a bit more space for larger screens */
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  align-items: flex-start;
}

.ministry-news-section .news-item img {
  width: 300px; /* bigger image for large screens */
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.ministry-news-section .excerpt-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-text {
  color: #000;
}

/* Responsive adjustments for medium screens */
@media (max-width: 991.98px) {
  .ministry-news-section .news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ministry-news-section .news-item img {
    width: 100%;
    height: auto;
  }

  .ministry-news-section .news-item div {
    width: 100%;
  }
}

/* Responsive adjustments for small screens */
@media (max-width: 575.98px) {
  .ministry-news-section .news-item {
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .ministry-news-section .excerpt-clamp {
    -webkit-line-clamp: 2; /* show less text */
  }
}

/* Ministry News Detail Sidebar */

.other-news-box {
  margin-top: 8rem !important;
}

@media (min-width: 768px) {
  .other-news-box {
    margin-top: 4rem;
  }
}

@media (min-width: 1200px) {
  .other-news-box {
    margin-top: 8rem;
  }
}

.sidebar-hover-link {
  color: #1c1c1c; /* default dark color */
  transition: color 0.3s ease;
}

.sidebar-hover-link:hover {
  color: #00a1e4;
}

/* Medium screens - tablets */
@media (max-width: 991.98px) {
  .gallery-section img,
  .owl-carousel .item img {
    height: 250px; /* slightly smaller */
  }
}

/* Small screens - mobile */
@media (max-width: 575.98px) {
  .gallery-section img,
  .owl-carousel .item img {
    height: 200px; /* smaller for mobile */
  }
}

/* Optional: ensure carousel container doesn't overflow */
.owl-carousel .item {
  overflow: hidden;
}

/* Ensure uniform gallery images */
.gallery-thumb-wrapper {
  width: 100%;
  height: 250px; /* adjust height as you like */
  overflow: hidden;
  border-radius: 10px;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops but keeps proportions */
  display: block;
  border-radius: 10px;
}

/* Front page transparent header */
.home #header {
  background: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* .home #header .container {
  padding-top: 0px; 
  padding-bottom: 0px; 
} */

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
  font-size: 30px !important;
}
.owl-dots {
  display: none;
}
