body{
    min-height: 200vh;
    font-family: "Inter", sans-serif;
}
#top-hr{
    background-color: #1A5255;
    height: 5px;
    width: 100%;
}
/* Basic reset and layout setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* Main slideshow container wrapper */
/* Update this layout to keep the container tall enough for absolute elements */
.slideshow-container {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    
    /* Crucial: Set an aspect ratio so the container doesn't collapse to 0 height */
    aspect-ratio: 2 / 1; 
}

/* Stack all slides on top of each other and use opacity instead of display */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;               /* Hide by default using transparency */
    visibility: hidden;       /* Keep unclickable while hidden */
    transition: opacity 0.8s ease-in-out, visibility 0.8s; /* Smooth crossfade transition */
}

/* Create a new class to handle the visible state smoothly */
.slide.active-slide {
    opacity: 1;
    visibility: visible;
}

/* Ensure the full image is visible without cropping */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Show the whole image without cutting off parts */
    object-position: center;
    display: block;
    background-color: #000;
}


/* Controls group positioned at the bottom-right of the slideshow */
.slideshow-controls {
    position: absolute;
    left: 75%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* Left & right directional arrow buttons */
.prev, .next {
    cursor: pointer;
    position: relative;
    transform: none;
    padding: 10px 14px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    user-select: none;
    transition: 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Slide description captions */
.caption {
    color: #ffffff;
    font-size: 16px;
    padding: 12px 24px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
}

/* Bottom tracking indicators container */
.dot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

/* Individual clickable navigation dots */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active1, .dot:hover {
    background-color: rgba(198, 160, 77);
}

/* Fading animation entry effect */
.fade {
    animation-name: fadeAnimation;
    animation-duration: 0.8s;
}

@keyframes fadeAnimation {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

#overlay-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  
  /* Desktop Layout: Fill exactly half the screen */
  width: 50%; 
  
  /* Dark rich gradient fading out nicely to the right */
  background: linear-gradient(
    to right, 
    rgba(53, 108, 115, 0.85) 0%, 
    rgba(53, 108, 115, 0.5) 70%, 
    rgba(53, 108, 115, 0) 100%
  );
  
  /* Flexbox to perfectly center text vertically */
  display: flex;
  align-items: center;
  padding: 0 10%;
  box-sizing: border-box;
}

/* Typography styles */
#text-content {
  color: #ffffff;
  font-family: sans-serif;
  max-width: 500px;
}

#text-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}
.card{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: rgba(247, 246, 242);
    border-radius: 8px;
    border: 2px solid rgba(198, 160, 77);
}
#card-img{
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    height: 150px;
    width: 35%;
    background-color: rgb(53, 108, 115);
}


.service-lineup .container {
  padding-left: 0;
  padding-right: 0;
}

.service-lineup .row {
  margin-left: 0;
  margin-right: 0;
}

.service-lineup .col {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-bottom: 1rem;
}

/* Container spacing */
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Adjusts the space between each row */
  font-family: sans-serif;
}

/* Align icon and text side-by-side */
.footer-info-row {
  display: flex;
  align-items: flex-start; /* Ensures multi-line text aligns with the top of the icon */
  gap: 12px; /* Adjusts the space between the icon and the text */
}

/* Style the icons */
.footer-icon {
  color: white; /* Light blue color from your image */
  font-size: 16px;
  width: 20px; /* Fixed width prevents icons from jumping around if text wraps */
  text-align: center;
  margin-top: 3px; /* Slightly centers the icon with the first line of text */
}

/* Style the text */
.footer-text {
  color: #ffffff; /* White text */
  font-size: 14px;
  line-height: 1.4;
}

/* Style the links */
.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}
.fa-facebook{
  border-radius: 50%;
  background-color: #3b5998;
  padding: 10px;
}

/* Smooth slide-down animation for navbar dropdown */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  border: 0;
  max-height: 0;
  overflow: hidden;
  transform-origin: top center;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 160ms ease, transform 160ms ease, opacity 160ms ease, visibility 160ms ease;
}

.excellent-men-item {
  cursor: pointer;
}

.navbar-collapse .nav-item.dropdown {
  display: block;
}

.navbar-collapse .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
}

.dropdown-menu.show,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu,
.nav-item.dropdown:hover > .dropdown-menu {
  max-height: 20rem;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navbar-nav .dropdown-menu {
  margin-top: 0;
}

.fa-youtube{
  border-radius: 50%;
  background-color: #ff0000;
  padding: 10px;
}
.fa-instagram{
  border-radius: 50%;
  background: #833ab4;
  background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
  padding: 10px;
}

/* --- Responsive Adjustments for Smaller Screens --- */
@media (max-width: 768px) {
  #overlay-box {
    /* Mobile Layout: Force full width */
    width: 100%; 
    
    /* Change gradient direction to bottom on mobile so text stands out better */
    background: linear-gradient(
      to bottom, 
      rgba(53, 108, 115, 0.85) 0%, 
      rgba(53, 108, 115, 0.6) 100%
    );
    
    padding: 0 5%;
  }

  .slideshow-controls {
    left: 50%;
    bottom: 20px;
    width: auto;
    padding: 8px 12px;
  }

  #text-content h2 {
    font-size: 2rem;
  }

nav img{
    height: 60px;
    width: 60px;
}
nav h5{
    font-size: 1rem;
}

#navbar-container {
  padding: 0;
  padding-right: 10px; /* Adjust padding for smaller screens */
}
}

@media (max-width: 992px) {
.navbar-toggler {
  border-color: rgba(198, 160, 77);
  padding: 4px 8px;
}
.navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
}
}

@media (min-width: 992px) {
  .offcanvas {
    display: none !important;
  }
}

.offcanvas {
  width: 280px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 2000;
  background: white;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-body {
  padding: 1.25rem;
}

.offcanvas-body .navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offcanvas-body .nav-link {
  font-size: 1rem;
  color: #1a1a1a;
}

.offcanvas-body .dropdown-menu {
  display: block !important;
  position: static;
  border: 0;
  max-height: 0;
  overflow: hidden;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 450ms ease, opacity 450ms ease, visibility 450ms ease;
}

.offcanvas-body .dropdown-menu.show {
  max-height: 20rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-body .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  max-height: 20rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-row {
  align-items: stretch;
}

/* About Us: background image with footer-green overlay */
#about-us {
  min-height: 60vh;
  background:
    url("./images/idk.jpeg") center/cover no-repeat;
  padding: 0;
  overflow-x: hidden;
  height: 10vh;
}

@media (max-width: 768px) {
  #about-us {
    padding: 0;
    min-height: 40vh;
  }
}
.overlay{
  width: 100%;
  height: 100%;
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  color: #ffffff;
  background-color: rgba(53, 108, 115, 0.9);
  text-align: center;
}

.video-frame {
  width: 100%;
  max-width: 330px;
  height: 315px;
  border: 0;
  border-radius: 8px;
}
#form-contact{
  width: 100%;
  max-width: 650px;
  padding: 2rem;
  border-radius: 10px;
}

.active{
  color: rgb(53, 108, 115);
}
@media (max-width: 991.98px) {
  .video-row {
    flex-wrap: wrap;
  }

  .video-frame {
    max-width: 100%;
  }
}

.worship-section {
  background: linear-gradient(135deg, #c6a04d 0%, #e8c96b 35%, #f5d98b 65%, #b6851d 100%);
  color: #3b2a0a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.worship-section h2,
.worship-section p {
  color: #3b2a0a;
}

.offcanvas-body .nav-link:hover {
  color: #1a5255;
}

/* Fixed navbar: keep visible on scroll and add a subtle drop shadow */
:root {
  --navbar-height: 110px; /* approximate navbar height to preserve layout spacing */
}

nav.navbar {  
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100; /* sits above most content but below offcanvas (z-index:2000) */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Preserve the original document flow so content doesn't jump under the fixed navbar */
/* Preserve the original document flow so content doesn't jump under the fixed navbar */
/* JS will set exact padding; fallback 0 avoids visible gap before script runs */
body {
  padding-top: 0;
}

.offcanvas-backdrop {
  z-index: 1999;
  background-color: rgba(0, 0, 0, 0.15);
}

.offcanvas .btn-close {
  display: block !important;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  background-color: white;
  opacity: 1;
}

body.offcanvas-open {
  overflow: auto;
}

/* Prevent horizontal whitespace specifically for the footer/worship section */
.worship-section {
  overflow-x: hidden;
}


/* Ensure no horizontal page overflow on any screen */
html, body {
  overflow-x: hidden;
}
.mission-list{
  text-align: justify;
  width: 75%;
}
@media (max-width: 484px) {
  .mission-list{
    width: 100% !important;
    padding: 0;
  }
}
.intro-text , .mission-list{
  font-size: 1.5rem;
}
.pastor-card{
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: rgba(247, 246, 242);
  border-radius: 8px;
  border: 2px solid rgba(198, 160, 77); */
  width: 90%
}
.about-section ul {
  list-style-type: none; /* Options: square, circle, disc, none */
}
.give-card{
  width: 85%;
}
@media (max-width: 555px) {
.contact-items span{
  font-size: 1.25rem !important;
}
.contact-icon{
  font-size: 1.25rem !important;
}
.give-card{
  width: 100%;
}
}
@media (max-width: 327px) {
nav img{
  height: 50px !important;
  width: 50px !important;
}
nav h5{
  font-size: 0.85rem !important;
}
.give-container{
  justify-content: start;
  align-items: start;
}
.give-card{
  width: 100%;
}
}
@media (max-width: 300px) {
.footer{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.contact-items span{
  font-size: 1rem !important;
}
.contact-icon{
  font-size: 1rem !important;
}
}




#fellowship{
  min-height: 60vh;
  background: center/cover no-repeat;
  padding: 0;
  overflow-x: hidden;
  height: 65vh;
}

.gallery-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}

.gallery-section img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #000000;
}
#fellowship-page{
  cursor: pointer;
}



.horizontal-text-slider {
  width: 100%;
  overflow: hidden; /* Strictly hides next/previous items outside the card viewport */
  position: relative;
}

/* Flexbox lines up the text items side-by-side horizontally */
.horizontal-slider-inner {
  display: flex;
  width: 300%; /* 3 total elements (2 items + 1 duplicate) = 300% width */
  /* 2 unique items x 3 seconds = 6 seconds total animation loop timeline */
  animation: slideLeftTwoItems 6s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

/* Ensures each slide takes up exactly 100% of the visible card area */
.slider-item {
  width: 33.333%; /* 100% card width divided by 3 total elements = 33.333% */
  flex-shrink: 0;
  padding: 0 10px; /* Optional side spacing to prevent text from touching card edges */
  box-sizing: border-box;
}

.slider-item p {
  margin: 0;
}

/* 
  Keyframes for 2 unique messages moving right-to-left.
  Since we have 3 total elements, each step shifts by exactly 33.333%.
*/
@keyframes slideLeftTwoItems {
  0%, 45%     { transform: translateX(0); }             /* Item 1 stays for 3s (0% to 45%) */
  50%, 95%    { transform: translateX(-33.333%); }     /* Slide animation, Item 2 stays for 3s (50% to 95%) */
  100%        { transform: translateX(-66.666%); }     /* Slide animation to Duplicate, then instantly resets to 0 */
}