@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html,
body {
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
}

*, 
::after, 
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* VARIABLES */
:root {
    --clr-dark: #212529;
    --clr-brand: #0e6abf;
    --clr-brand-light: #0e5ba3;
    --clr-brand-active: #0b4b86;
    --clr-brand-rgb: 78, 87, 212; 
    --clr-body: #727272;
    --font-base: "Montserrat", sans-serif;
    --box-shadow: 5px 5px 25px rgba(0, 0, 0, .3);
    --transition: all .3s ease;
}

/* RESET AND HELPERS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--clr-body);
}

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: var(--clr-dark);
}

.letter-spacing {
    letter-spacing: -1.5px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 70px 0 100px;
}

.cta-padding {
    padding: 140px 0;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

.hero-img {
  height: 580px;
  object-fit: cover;
  width: 550px;
}

/* IMAGE ZOOM */
.image-zoom, 
.image-zoom-wrapper {
position: relative;
overflow: hidden;
cursor: pointer;
border-radius: 8px;
}

.image-zoom-wrapper img {
    transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img {
    transform: scale(1.1);
}

/* NAVBAR */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--clr-dark);
}

.navbar-nav .nav-link.active {
    color: var(--clr-brand);
}

/* BTN */
.btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase ;
    border-radius: 0;
    padding: 10px 24px;
    border-radius: 4px;
}

.btn-brand {
    border-radius: 4px;
    background-color: var(--clr-brand);
    border-color: var(--clr-brand);
    color: white;
    transition: 0.2s ease;
}

.btn-brand:hover {
    background-color: var(--clr-brand-light);
    border-color: var(--clr-brand-light);
    color: white;
}

.btn-brand:active {
    background-color: var(--clr-brand-light) !important;
    border-color: var(--clr-brand-light) !important;
    color: white !important;
    transform: scale(0.97);
}

/* HERO */
/* Base styles for all devices */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(43, 42, 42, 0.8), rgba(0, 0, 0, 0.3));
  z-index: -1;
}

/* Fix background-attachment for small devices */
@media (max-width: 767.98px) {
  .hero-bg-img {
    background-attachment: scroll !important;
  }
}

/* Desktop and tablets: make it full screen */
@media (min-width: 768px) {
  #hero {
    height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.btn-hero {
    border-color: var(--clr-brand);
    background-color: var(--clr-brand);
    color: white;
    transition: var(--transition) !important;
}

.btn-hero:hover,
.btn-hero:active {
    background-color: white !important;
    color: black !important;
    border-color: white !important; /* Optional: make sure border doesn't turn gray */
}

.btn-hero2 {
    background-color: white;
    color: black;
    transition: var(--transition);
}

.btn-hero2:hover,
.btn-hero2:active {
    background-color: var(--clr-brand) !important;
    border-color: var(--clr-brand) !important;
    color: white !important;
}

/* SECTION TITLE */
.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--clr-brand);
    margin: 16px auto 24px;
}

.section-title p,
.vM {
    max-width: 500px;
    margin: auto;
}

/* ICONBOX */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--clr-brand-rgb), 0.1);
    color: var(--clr-brand);
    font-size: 34px;
    flex: none;
}

/* EVENTS */

.team-member-content {
    background-color: var(--clr-brand);
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: calc(100% - 50px);
    transform: translateX(-50%);
    padding: 24px;
    transition: var(--transition);
    opacity: 0;
    border-radius: 5px;
}

.team-member:hover .team-member-content {
    opacity: 1;
    bottom: 24px;
}

.event-img {
    width: 100%;
    height: 350px; /* or adjust as needed */
    object-fit: cover;
    display: block;
    border-radius: 8px; /* optional for aesthetics */
}

/* IMAGE ZOOM */
.image-zoom, 
.image-zoom-wrapper {
position: relative;
overflow: hidden;
cursor: pointer;
}

.image-zoom-wrapper img {
    transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img {
    transform: scale(1.1);
}

/* Wave */

/* .wave-divider img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(180deg);

} */

.bg-light-dimmed {
    background-color: #eeeeee; /* slightly darker than Bootstrap's #f8f9fa (bg-light) */
  }

.pb-6 {
    padding-bottom: 5rem;
}
  
  #blog {
    position: relative;
  }
  
  .next {
    position: relative;
  }

  .custom-shape-divider-top-1746878722 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-top-1746878722 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 129px;
}

.custom-shape-divider-top-1746878722 .shape-fill {
    fill: #f8f9fa;
}

/* CTA SECTION */

.cta-section {
    background: linear-gradient(to bottom, #eeeeee 0%, #f8f9fa 100%);
  }  

.cta-section p {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 1.125rem;
  z-index: 1;
  position: relative;
  color: #000000;
}

.cta-section .btn-primary {
  background-color: var(--clr-brand);
  color: #fff;
  border: none;
  transition: var(--transition);
  z-index: 1;
  position: relative;
}

.cta-section .btn-primary:hover {
  background-color: var(--clr-brand-light);
  color: #fff;
}

/* Ensure .line uses your color and centers */
.section-title .line,
.cta-section .line {
  width: 60px;
  height: 4px;
  background-color: var(--clr-brand);
  margin: 16px auto 24px;
}

.custom-shape-divider-bottom-1746876728 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1746876728 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 129px;
}

.custom-shape-divider-bottom-1746876728 .shape-fill {
    fill: var(--clr-brand-active)    ;
}
  
/* FOOTER */

.bg-dark-custom {
  background-color: #1A1A1A;
}

footer {
    padding: 12px;
}

.footer-top {
    padding: 40px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom {
    padding: 40px 0;
}

footer li, 
footer p, 
footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer .line {
    width: 40px;
    height: 4px;
    background-color: var(--clr-brand);
    margin: 12px 0 24px; 
}

.social-icons a{
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .1);
    border-radius: 100px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(219, 219, 219, 0.4);
    border-radius: 100px;
    transition: 0.3s ease;
}

.p-contact {
  margin-right: .8rem !important;
}

.contact-icon:hover {
    background-color: var(--clr-brand);
    color: white;
}

.social-icons a:hover {
    background-color: var(--clr-brand);
    color: white;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsl(0, 0%, 18%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: white;
  z-index: 10;
  transition: bottom .4s, transform .8s, background-color .4s;
  border-radius: 6px; /* optional, gives soft corners */
}

.scrollup:hover,
.scrollup:hover i {
  transform: translateY(-.5rem);
  color: white;
}

.scrollup i {
  animation: scroll-up 3s infinite ease-in-out;
}

/* Animate scroll up arrow */
@keyframes scroll-up {
  0% {
    transform: translateY(1rem);
    opacity: 0;
  }
  50% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-.6rem);
    opacity: 0;
  }
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

@media screen and (min-width: 1150px) {
    .scrollup {
    right: 3rem;
  }
}

/* ABOUT HTML */
.pastor-card {
    min-height: 400px;
}

.pastor-img {
    aspect-ratio: 4 / 5; /* or 1 / 1 if you want square */
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }  

  .vmCard {
    transition: all 0.5s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.09);
  }
  
  .vmCard:hover {
    box-shadow: none;
    transform: translateY(-5px);
  }

.g-6 {
    gap: 4rem;
}

#counter {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important; /* Stop background from bleeding */
}

#counter::before {
  content: '' !important;
  position: absolute  !important;
  top: 0; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -1 !important;
  background: linear-gradient(rgba(var(--clr-brand-rgb), 0.8), rgba(var(--clr-brand-rgb), 0.8)), 
              url('/assets/images/event1.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
}


/* SERVICES HTML */
.c-item {
    height: 680px;
    /* height: 905px; */
}

.c-img {
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: brightness(.6);
}

.c-overview {
  height: 180px;
  background-color: #d3dae1;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.overview-item {
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.overview-item i {
  color: #343a40;
  transition: var(--transition);
}

.overview-item:hover {
  transform: translateY(-5px);
}

.btn-services {
  background-color: var(--clr-brand-light);
  color: #fff;
  border: none;
  transition: all 0.3s ease !important;
}

.btn-services:hover {
  background-color: var(--clr-brand) !important;
  color: #fff;
}
/* PORTFOLIO */

/* Each Portfolio Box */
.portfolio-box {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Wrapper that clips zoom & overlay */
.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}

/* Image Styling */
.portfolio-img-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

/* Zoom on Hover */
.portfolio-box:hover .portfolio-img-wrapper img {
  transform: scale(1.1);
}

/* Overlay Layer fills the wrapper */
.portfolio-box .portfolio-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--clr-brand));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 2rem;
  transform: translateY(100%);
  transition: var(--transition);
  border-radius: 2rem;
  pointer-events: none;
}

/* Show Layer on Hover */
.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
  pointer-events: auto;
}

/* Text Styling */
.portfolio-layer h4 {
  font-size: 2rem;
  color: #fff;
}

.portfolio-layer p {
  font-size: 1rem;
  color: #f0f0f0;
  margin: 0.5rem 0 1rem;
}

/* Link Styling */
.portfolio-layer i.bx {
  font-size: 1.5rem;
  color: var(--clr-brand);
  cursor: pointer;
}

/* SERVICES HTML */

.carousel-item {
  backface-visibility: hidden !important;
  transform: translate3d(0, 0, 0) !important;
  transition: opacity 0.3s ease-in-out !important;
}

.carousel-inner,
.carousel-item img {
  will-change: transform, opacity !important;
}

/* CONTACT HTML */

.accordion .accordion-item.accordion-bordered:is(.accordion-item) {
  border-top: 1px solid #dee2e6 !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.accordion-button:focus,
.contact_input:focus {
    box-shadow: none !important;
    outline: none;
  }

.toast-top-offset {
    margin-top: 4rem; /* or whatever spacing you want */
}

#successToast, #errorToast {
    position: relative; /* For absolute positioning of progress bar */
    padding-bottom: 6px; /* Give some space for the progress bar */
    flex-wrap: nowrap;
  }

  .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 2.5s linear;
    pointer-events: none; /* So clicks pass through */
    
  }

  /* MEDIA HTML */

.gallery-box {
  aspect-ratio: 4 / 3; /* Makes each box the same size (landscape shape) */
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-img {
  filter: blur(.3px) contrast(0.95) saturation(0.09);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;

  /* Try commenting/uncommenting these: */
  /* image-rendering: auto; */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
  /* image-rendering: crisp-edges; */
  
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: translateY(20px); /* subtle slide down while fading */
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .pastor-row .col-md-4 {
    flex: 0 0 45% !important; /* approx 90% total together */
    max-width: 45% !important;
  }

  .pastor-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .beliefs-row {
    flex-direction: column !important;
  }

  .beliefs-row .col-lg-6,
  .beliefs-row .col-lg-5 {
    max-width: 90% !important;  /* slightly narrower so it doesn't touch edges */
    width: 90% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .beliefs-row img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .about-row {
    flex-direction: column !important;
  }

  .about-row .col-md-6 {
    max-width: 100% !important;
    width: 100% !important;
  }

  .about-row img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
  }

  .about-row .p_about {
    padding: 0 1rem; /* Optional: softens text edges */
  }

  .about-context-icon {
    margin-right: auto;
  }
}


/* ! 1200PX Screen Services Query */
@media screen and (min-width: 1200px) {
  .overview-text__services {
    flex-direction: row !important;
    align-items: center;
  }
}


/* ! 768PX Screen Services Query */
@media screen and (min-width: 768px) {
  .overview-text__services {
    flex-direction: column;
    align-items: center;
  }
}

/* ! 391PX Screen Services Query  */

@media screen and (min-width: 391px) {
  .overview-text__services {
    font-weight: 500 !important;
    font-size: 1.07rem !important;
  }
}

/* ! 576PX Screen About Query */
@media (min-width: 576px) {
  .p_about {
    margin-top: 1.2rem;
  }
}

@media (max-width: 520px) {
  .iconbox {
    width: 55px;
    height: 55px;
  }

  .about-icon {
    font-size: 30px;
  }

  .p-about {
    font-size: 0.94rem;
  }

  h5 {
    font-size: 1.1rem;
  }
}


/* ! 575PX Screen Media Query */

@media (max-width: 575.98px) {
    .whatDrive {
      margin-top: 2rem !important;
    }

    .eventCards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .about-p {
        margin-top: 1.5rem !important;
    }
  }

@media (min-width: 576px) and (max-width: 991px) {
  .contact-info {
    margin-bottom: 1.5rem !important;
  }
}

/* ! 390PX Screen Media Query */

@media (max-width: 390px) {
  .btn-hero,
  .btn-hero2 {
    display: block;
    width: 100%;
    margin: 0 auto 1rem auto; /* space below */
    text-align: center;
  }

  .me-2,
  .ms-2 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .h6hero {
    font-size: 0.9rem;
    font-weight: medium;
    margin-bottom: 2.5rem !important;
    margin-top: 1.3rem !important;
  } 

  .p-services {
    font-size: 1.2rem !important;
  }

  .join-services {
    font-size: 1.1rem !important;
  }

  .heading-services {
    font-size: 2.8rem;
  }

  .overview-text__services {
    font-weight: 500 !important;
    font-size: 1.02rem !important;
  }
  
  .icon-margin__services {
    margin-right: 0.5rem !important;
  }

}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.3);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background: rgba(255, 255, 255, 0.541);
  pointer-events: none;
  width: 2px;
  height: 2px;
}
