*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
  }
.navbar-nav .nav-item {
    margin: 0 0.6rem;
  }
.navbar-nav .nav-item:last-child {
    margin-right: 0;
  }

/* **********landing page carousel sliders */
.carousel-item {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    
  }

  .carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust for desired overlay darkness */
    z-index: 1;
  }

  .carousel-caption {
    z-index: 2;
  }

  .carousel-caption h1, .carousel-caption p, .carousel-caption a {
    color: #fff;
  }

  .carousel-indicators [data-bs-target] {
    background-color: #fff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    /* background-color: rgba(0, 0, 0, 0.3); */
    border-radius: 50%;
  }


  /* styles for about us page */

  /* stlyes for mision and vision */
  .mission .animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
  }

  .mission .delay-1 { animation-delay: 0.2s; }
  .mission .delay-2 { animation-delay: 0.4s; }
  .mission .delay-3 { animation-delay: 0.6s; }
  .mission .delay-4 { animation-delay: 0.8s; }
  .mission .delay-5 { animation-delay: 1s; }


/* home page welcome speech styles */
  /* .welcome .animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
  } */
 /* .welcome .delay-1 { animation-delay: 0.3s; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }*/

  /* home page sermons */
  .sermons-section {
    position: relative;
  }

  .sermons-section .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .sermons-section .container {
    position: relative;
    z-index: 2;
  }
/* testimonies slides */

.testimonies-section {
  background-color: #f8f9fa; /* Light background so controls are visible */
}

.testimonies-section .carousel-indicators [data-bs-target] {
  background-color: #0d6efd; /* Bootstrap Primary Color for radio buttons */
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.testimonies-section .carousel-control-prev-icon,
.testimonies-section .carousel-control-next-icon {
  filter: invert(1); /* Make the arrows visible */
  width: 40px;
  height: 40px;
}

/* Blockquote and Footer Styling */
.testimonies-section blockquote {
  font-size: 1.25rem;
  font-style: italic;
}

.testimonies-section .blockquote-footer {
  margin-top: 1rem;
  font-size: 1rem;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .testimonies-section blockquote {
    font-size: 1.1rem;
  }

  .testimonies-section .blockquote-footer {
    font-size: 0.9rem;
  }
}




  /* give section on home page */
  .give-section {
    background: url('../images/giving.jpg') no-repeat center center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .give-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% dark overlay */
    z-index: 1;
  }
  
  .give-section .container {
    z-index: 2;
  }
  
  .give-section h2,
  .give-section p,
  .give-section a {
    color: #ffffff;
  }
  
  .give-section a.btn {
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    border-radius: 6px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .give-section h2 {
      font-size: 1.8rem;
    }
    
    .give-section p {
      font-size: 1rem;
    }
  
    .give-section a.btn {
      font-size: 1rem;
      padding: 0.6rem 1.5rem;
    }
  }



  /* ***********************about page**************************** */

  .about-section {
    position: relative;
    background: url('../images/housefellowship.jpg') no-repeat center center/cover;
    min-height: 50vh; /* adjust as needed */
    padding-top: 5rem;
    padding-bottom: 5rem;
    color: #fff;
    overflow: hidden;
  }
  
  .about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust for desired overlay darkness */
    z-index: 1;
  }
  
  /* Make sure text stays above overlay */
  .about-section .container {
    position: relative;
    z-index: 2;
  }
  
  /* Fade in animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-on-load {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
  }


  /* animation for cards in about page mission and vision */
  .animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }



  /* our history */
  .history-section {
    position: relative;
    /* background: url('<?= BASE_URL ?>/images/history-bg.jpg') no-repeat center center/cover; */
    min-height: 70vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
  }
  
  /* Dark transparent overlay */
 
  
  /* Content comes above overlay */
  .history-section .container {
    position: relative;
    z-index: 2;
  }
  
  /* Fade-in animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-on-load {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  /* Adjust image */
  .history-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Hide image and center button on mobile */
  @media (max-width: 767px) {
    .history-section img {
      display: none;
    }
    .history-section .text-center-mobile {
      text-align: center;
    }
  }

  /* pastor's section */
  .pastor-section {
    position: relative;
    
    min-height: 70vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
  }
  
  
  .pastor-section .container {
    position: relative;
    z-index: 2;
  }
  
  /* Already defined before but repeating in case */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-on-load {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  .pastor-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  @media (max-width: 767px) {
    .pastor-section img {
      display: none;
    }
    .text-center-mobile {
      text-align: center;
    }
  }

  /* contact page */
.contact-card{
    transition: all 0.3s ease-in-out;
}
  .contact-card:hover{
    transform: translateY(-10px);
  }

  /* iframe map oc contact page */
  .map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 40%; /* Adjusted to look better on large screens */
    height: 0;
  }
  .map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* service times */
.service_times{
    padding: 5% 0;
} 
.service_times .service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    height: 100%;
}

.service-card{
    transition: all 0.3s ease-in-out;
}
.service-card:hover {
    transform: translateY(-10px);
}


.service_times .service-header {
    position: relative;
    /* background: url('../images/housefellowship.jpg') no-repeat center center/cover; */
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
    z-index: 2;
    
}
/* .service_times .service-header-overlay {
     position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust for desired overlay darkness 
    z-index: 1; 
  } */

  .service_times .service-header-container{
    position: relative;
    z-index: 2;
}
.service_times .service-details {
    text-align: center;
    padding: 20px;
}
.service_times .service-details h5 {
    font-weight: 600;
    font-size: 1.25rem;
}
.service_times .service-details p {
    font-size: 1.1em;
    color: #555;
}
.service_times .cta-button {
    text-align: center;
    margin-top: 30px;
}
.service_times .cta-button a {
    background-color: #28a745;
    padding: 12px 30px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
}
.service_times .cta-button a:hover {
    background-color: #218838;
}
.service_times .service-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.service_times .service-card-container {
    width: 100%;
    max-width: 350px;
}
@media (max-width: 768px) {
    .service_times .service-card-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

  /* gallery style */

  .gallery-item img {
    object-fit: cover;
    height: 250px;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  .gallery-item img:hover {
    transform: scale(1.05);
  }

  
/* church account information */

.account-number {
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 5px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
}

.copy-icon {
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-icon:hover {
    color: #28a745;
}

.highlight {
    background-color: #d4edda;
    color: #155724;
    animation: pulse 0.6s;
    box-shadow: 0 0 10px #28a745;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Toast Styles */
.toast-message {
    visibility: hidden;
    min-width: 250px;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 12px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    transition: visibility 0s, opacity 0.5s ease;
    opacity: 0;
}

.toast-message.show {
    visibility: visible;
    opacity: 1;
}



  /* footer styles */
  .main-footer {
    background-color: #343a40;
    color: #ffffff;
    padding-top: 30px;
    padding-bottom: 20px;
    font-size: 0.8rem;
}

.main-footer  a {
    color: #ffffff;
    text-decoration: none;
}

.main-footer  a:hover {
    color: #007bff;
    /* text-decoration: underline; */
}

.main-footer  h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.main-footer  .input-group input {
    border-radius: 0;
}

.main-footer  .input-group-append button {
    background-color: #007bff;
    border: none;
    color: white;
}

.main-footer  .input-group-append button:hover {
    background-color: #0056b3;
}

.main-footer  .fa {
    margin-right: 10px;
}

