/* ============================================
   AGAPE CHURCH KENYA - Main Stylesheet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --clr-primary: #1DB954;
  --clr-primary-dark: #17a347;
  --clr-primary-light: #e8f8ee;
  --clr-primary-lighter: #f0faf3;
  --clr-dark: #1a1a1a;
  --clr-darker: #111111;
  --clr-body: #444444;
  --clr-muted: #777777;
  --clr-light: #f9f9f9;
  --clr-white: #ffffff;
  --clr-border: #e0e0e0;
  --clr-yellow-brand: #f5b932;
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Montserrat', 'Segoe UI', sans-serif;
  --ff-accent: 'Instrument Serif', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
      overflow-x: hidden;
      max-width: 100%;
    }
    section,
    .footer-section,
    .ministries-section,
    .mission-section,
    .rhema-section,
    .overlap-image-section,
    .about-section,
    .vision-section {
      overflow-x: hidden;
      max-width: 100%;
    }
    img {
      max-width: 100%;
    }

    .wide-overlap-img {
      width: 100%;
      max-width: 100%;
      display: block;
      height: auto;
    }
    .sliced-wrapper {
      overflow: hidden;
    }
    .row {
      margin-right: 0;
      margin-left: 0;
    }
    .container .row,
    .container-fluid .row {
      margin-right: calc(-0.5 * var(--bs-gutter-x));
      margin-left: calc(-0.5 * var(--bs-gutter-x));
    }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-body);
  background-color: #ffffff; 
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-body);
  color: var(--clr-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1rem;
  color: var(--clr-body);
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--clr-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 70px 0;
}

/* ---------- Utility Classes ---------- */
.text-primary-green { color: var(--clr-primary) !important; }
.bg-primary-green { background-color: var(--clr-primary) !important; }
.bg-primary-light { background-color: var(--clr-primary-light) !important; }
.bg-primary-lighter { background-color: var(--clr-primary-lighter) !important; }
.bg-dark-section { background-color: var(--clr-darker) !important; }
.bg-black { background-color: #080808 !important; }
.ff-accent { font-family: var(--ff-accent); }
.ff-heading { font-family: var(--ff-heading); }

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 12px;
  margin-top:12px;
}

.section-title {
  font-family: var(--ff-body);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* Dot & Divider Styles */
.green-dot { background-color: #1aae55; }
.yellow-dot { background-color: #fbbc05; }

.dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}

.dot-divider .dot,
.dot-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-divider span:nth-child(2) {
  opacity: 0.8;
  width: 10px;
  height: 10px;
}

.dot-divider span:nth-child(3) {
  opacity: 1;
}

.dots-decoration {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dots-decoration.justify-content-center {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.3px;
  border: 2px solid transparent;
}

.btn-primary-green {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.btn-primary-green:hover {
  background-color: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.btn-outline-white:hover {
  background: var(--clr-white);
  color: var(--clr-dark);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline-green:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.35);
}

.btn-dark {
  background-color: var(--clr-dark);
  color: var(--clr-white);
  border-color: var(--clr-dark);
}

.btn-dark:hover {
  background-color: #333;
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--clr-white);
  color: var(--clr-dark);
  border-color: var(--clr-white);
}

.btn-white:hover {
  background-color: var(--clr-light);
  color: var(--clr-dark);
  transform: translateY(-2px);
}

.btn-warning-yellow {
  background-color: var(--clr-yellow-brand);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-warning-yellow:hover {
  background-color: #dca01b;
  color: #fff;
}

.btn-give {
  background-color: #1aae55;
  color: #ffffff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-give:hover {
  background-color: #148b43;
  color: #ffffff;
}

/* ---------- Navbar ---------- */
.navbar-agape {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1050;
  border-bottom: 1px solid transparent;
}
/* Green hamburger for navbar-dark */
.navbar-dark .navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231aae55' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-agape.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(0,0,0,0.05);
}

.navbar-agape .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-dark);
}
.navbar-brand {
  width: auto;
  position: absolute;
  left: 48%;
  transform: translateX(-50%);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: block;
}
.navbar-agape .nav-link {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-body);
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition);
}

.navbar-agape .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-agape .nav-link:hover,
.navbar-agape .nav-link.active,
.nav-link.active {
  color: var(--clr-primary) !important;
}

.navbar-agape .nav-link:hover::after,
.navbar-agape .nav-link.active::after {
  transform: scaleX(1);
}
.media-tab-nav .nav-link.active {
  color: #000 !important;
}
/* Custom Floating Navigation */
.custom-floating-nav {
  position: fixed;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
}
/* ===============================
   NAVBAR BASE STYLES
================================= */

.custom-floating-nav .nav-link {
  font-size: 13px;
  font-family: var(--ff-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 !important;
  margin: 10px 14px;
  color: #1a1a1a;   
}
.custom-floating-nav .nav-link:hover {
  color: var(--clr-primary)
}

.nav-inner-pill {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
}


/* ===============================
   DESKTOP PILL STYLE (992px+)
================================= */

@media (min-width: 992px) {

  .nav-inner-pill {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    min-height: 60px;
    overflow: visible;
  }

  /* Push links away from center logo */
  #navLeft .nav-item:last-child .nav-link {
    margin-right: 60px;
  }

  #navRight .nav-item:first-child .nav-link {
    margin-left: 80px;
  }
}


/* ===============================
   NAVBAR CONTAINER WIDTH CONTROL
================================= */

.custom-floating-nav .container-fluid {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* ===============================
   CENTER LOGO STYLING
================================= */

.center-logo-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
}

.center-logo-svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===============================
   MOBILE NAVBAR BRAND
================================= */
.mobile-brand-group {
  flex-shrink: 0;
}

.mobile-brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.mobile-brand-text {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-dark);
  margin-left: 10px;
  white-space: nowrap;
}

.mobile-toggler-btn {
  width: 44px;
  height: 44px;
  background-color: var(--clr-primary) !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  flex-shrink: 0;
}

.mobile-toggler-btn .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}


/* ===============================
   MOBILE OFFCANVAS FULL WIDTH
================================= */

@media (max-width: 991px) {

  .offcanvas {
    width: 100%;
  }
  .custom-floating-nav{
    background:#ffffff  !important;
    height: 70px;
    padding: 0 15px;
  }

  /* Ensure pill never shows border on mobile */
  .nav-inner-pill {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .brand-logo{
    display: none;
  }
}


/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--clr-dark);
  border-bottom-left-radius: 70px;  
  border-bottom-right-radius: 70px; 
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}

.hero-section .hero-label {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.hero-section .hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--clr-white);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-section .hero-title span {
  color: var(--clr-primary);
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Mission / Intro Section ---------- */
.mission-section {
  padding: 80px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.mission-section .mission-text {
  font-family: var(--ff-body);
  font-size: 24px;
  line-height: 1.4;
  color: var(--clr-body);
  font-weight: 600;
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.mission-section .mission-text .highlight {
  color: #1aae55;
  font-weight: 600;
}

/* Mission Mobile Circle Images */
.mission-circle-mobile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-primary-light);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Circle Images */
.circle-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-primary-light);
}

.circle-img-lg {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-primary-light);
}

/* Absolute positioned circles for mission section */
.img-bottom-left {
  bottom: 70px;
  left: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
}

.img-top-right {
  top: 70px;
  right: 8%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
}

/* ---------- About Section ---------- */
.about-section {
  background: #f3f3f3;
  margin-top: 43px;
  padding: 1px 0;
  position: relative;
  overflow: visible;
  padding-top: 10px;
  border-top-left-radius: 70px;  
  border-top-right-radius: 70px; 
}

.about-section .container,
.about-section .row,
.about-section .col-lg-7 {
  position: relative;
  overflow: visible;
}

.about-image {
  position: relative;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: 100%;
  overflow: visible;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}


.vision-label,
.vision-title,
.vision-text{
color:var(--clr-white);
}
/* Make image break out on desktop */
@media (min-width: 992px) {
  .about-image img {
    position: relative;
    right: -40px;
    margin-top: -110px;
  }
}

/* ---------- Vision Section Wrapper ---------- */
.vision-section {
  background: linear-gradient(135deg, #1aae55 0%, #0f8a3e 100%);
  width: 95%;                 
  margin: -60px auto 0;
  padding: 50px 50px;
  border-top-left-radius: 20px; 
  border-top-right-radius: 20px;               
  position: relative;
  z-index: 10;                
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Vision Image Grid */
.vision-images {
  display: grid;
  grid-template-columns: 1.7fr 1fr; 
  grid-template-rows: 140px 140px; 
  gap: 15px; 
}

.vision-images img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vision-images img:hover {
  transform: scale(1.02);
}

.vision-images img.img-large {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

/* ---------- Overlap Image Section ---------- */
.overlap-image-section {
  position: relative;
  margin-top: -120px; 
  z-index: 15;
  background: var(--clr-darker);
}

.wide-overlap-img {
  width: 100%;
  height: 400px !important;
  object-fit: cover;
  border-bottom-left-radius: 40px;  
  border-bottom-right-radius: 40px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* ---------- Ministries Preview Section ---------- */
.ministries-section {
  background: #ffffff;
  position: relative;
  z-index: 20; 
}

.ministries-container {
  padding: 40px 0 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ministries-text-block p.section-subtitle {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: var(--ff-body, system-ui, sans-serif);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.ministries-text-block p.fw-medium {
  font-family: var(--ff-body, system-ui, sans-serif);
}

/* Floating Circular Images */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  z-index: 25;
}

.circle-1 {
  top: 8%;
  left: 4%;
  width: clamp(140px, 12vw, 180px);
  aspect-ratio: 1 / 1;
  height: auto;
}

.circle-2 {
  top: 30%;
  right: 0%;
  width: clamp(160px, 15vw, 210px);
  aspect-ratio: 1 / 1;
  height: auto;
}

.circle-3 {
  bottom: -60px;
  left: 32%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
}

/* Ministries Mobile Circles */
.ministries-mobile-circles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 40px;
  position: relative;
  padding-bottom: 20px;
}

.ministry-circle-mob {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border: 3px solid #fff;
  position: relative;
}

.ministry-circle-mob:first-child {
  z-index: 1;
  margin-right: -15px;
}

.ministry-circle-mob:last-child {
  z-index: 1;
  margin-left: -15px;
}

.ministry-circle-mob-center {
  z-index: 2 !important;
  width: 110px;
  height: 110px;
  margin-top: 30px;
  margin-left: -10px !important;
  margin-right: -10px;
}

/* ---------- Rhema Highlight Section ---------- */
.rhema-section {
  background: #00000000;
  padding: 0 0 100px 0;
  position: relative;
  z-index: 17;
}

.rhema-section .section-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 20px;
}

.rhema-section p {
  font-family: var(--ff-body, system-ui, sans-serif);
  color: #555;
  line-height: 1.7;
}

.rhema-wrapper {
  background-color: #f4f5f6;
  margin: 0 auto;
  border-radius: 40px;
  padding: 80px 0;
}

/* Rhema Video Container */
.rhema-video-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.rhema-video-box img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* Transparent Play Button */
.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.play-btn-circle svg {
  color: #222;
  margin-left: 4px;
  transition: all 0.3s ease;
}

.play-btn-circle:hover {
  background-color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ---------- Sliced Image/Frame Effect ---------- */
.sliced-wrapper {
  max-width: 900px;
  height: 400px;
  clip-path: url(#sliced-frame);
  -webkit-clip-path: url(#sliced-frame);
  filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.05));
}

.dark-overlay {
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.event-title-overlay {
  font-family: var(--ff-heading, "Montserrat", sans-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  letter-spacing: 1px;
}

.sliced-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 300px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.slice {
  background-image: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?w=1200&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  position: absolute;
}

.slice::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  border-radius: inherit;
}

.slice-1 { width: 100px; height: 160px; left: 10%; z-index: 1; }
.slice-2 { width: 160px; height: 220px; left: 20%; z-index: 2; }
.slice-3 { 
  width: 300px; 
  height: 300px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 5; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.slice-4 { width: 160px; height: 220px; right: 20%; z-index: 2; }
.slice-5 { width: 100px; height: 160px; right: 10%; z-index: 1; }

.slice-title {
  position: relative;
  z-index: 10;
  color: white;
  font-family: var(--ff-heading, sans-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ---------- Upcoming Events Label ---------- */
.upcoming-events-label {
  padding: 20px 20px 0;
}

.upcoming-events-tag {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Events Section ---------- */
.events-section {
  padding: 100px 0 80px;
  background: var(--clr-darker);
  color: var(--clr-white);
}

.events-section .section-label {
  color: var(--clr-primary);
}

.events-section .section-title {
  color: var(--clr-white);
}

.events-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.event-card {
  /*border-radius: var(--radius-lg);*/
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card img {
  max-width: 100%;
  max-height: 350px;
  object-fit: cover;
}

.event-card .event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.event-card .event-overlay h4,
.event-card .event-overlay h3 {
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.event-card.featured-event img {
  height: 450px;
}

.event-card.featured-event .event-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 60px 30px 40px;
}

.event-card .event-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ---------- Event Detail ---------- */
.event-detail-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.event-detail-card .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 20px 0;
}

.event-detail-card .event-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.event-detail-card .event-meta-item i {
  color: var(--clr-primary);
  font-size: 1.1rem;
}

/* ---------- Give Section ---------- */
.give-section {
  padding: 100px 0;
  background: var(--clr-primary);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.give-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.give-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.give-section h2 {
  color: var(--clr-white);
}

/* Give Page Cards */
.give-method-card {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid;
  border-color: var(--clr-primary) !important;
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.give-method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.give-method-card .icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.give-method-card .icon-box i {
  font-size: 2rem;
  color: var(--clr-primary);
}

/* ---------- Contact Section / Footer ---------- */
.footer-section {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

.footer-section h5 {
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-section a:hover {
  color: #fff !important;
}

.footer-section .footer-brand .brand-logo {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
}

.footer-section .footer-links li {
  margin-bottom: 10px;
}

.footer-section .footer-links li a {
  font-size: 0.92rem;
}

.footer-section .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.92rem;
}

.footer-section .footer-contact-item i {
  color: var(--clr-primary);
  margin-top: 3px;
  font-size: 1rem;
}

.footer-section .social-links {
  display: flex;
  gap: 10px;
}

.footer-section .social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-section .social-links a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  margin-top: 50px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-bottom a {
font-size: 14px;

}
/* Footer Form */
.footer-section form .form-control::placeholder {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-section form .form-control:focus {
  background-color: rgba(255,255,255,0.05);
  box-shadow: none;
  border-color: #1db954;
  color: white;
}
.footer-inner {
  max-width: 1140px;
}


/* ---------- Contact Form ---------- */
.contact-form .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  padding: 12px 18px;
  font-size: 0.92rem;
  font-family: var(--ff-body);
  transition: var(--transition);
}

.contact-form .form-control::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form .form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(29,185,84,0.15);
  color: var(--clr-white);
}

.contact-form-light .form-control {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  color: var(--clr-dark);
}

.contact-form-light .form-control::placeholder {
  color: var(--clr-muted);
}

.contact-form-light .form-control:focus {
  background: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(29,185,84,0.15);
  color: var(--clr-dark);
}

/* ---------- Contact Page Cards ---------- */
.contact-info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  border-color: var(--clr-primary) !important;
  background: var(--clr-primary-lighter);
  height: 100%;
}

.contact-info-card .icon-box {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.contact-info-card .icon-box i {
  font-size: 1.2rem;
  color: var(--clr-white);
}

/* ---------- Page Header ---------- */
.page-header {
  background: var(--clr-darker);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29,185,84,0.1) 0%, transparent 60%);
}

.page-header .page-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 12px;
  position: relative;
}

.page-header .page-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  position: relative;
}

.page-header .breadcrumb {
  position: relative;
  margin-bottom: 15px;
}

.page-header .breadcrumb-item a {
  color: var(--clr-primary);
  font-size: 0.88rem;
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

/* ---------- Team / Staff Cards ---------- */
.team-card {
  text-align: center;
  padding: 5px 20px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: var(--clr-white);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 4px solid var(--clr-primary-light);
}

/* ---------- Media Page ---------- */
.media-tab-nav .nav-link {
  font-family: var(--ff-body);
  font-weight: 600;
  color: var(--clr-body);
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--clr-border);
  margin: 4px;
}

.media-tab-nav .nav-link.active,
.media-tab-nav .nav-link:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.sermon-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--clr-white);
}

.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sermon-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

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

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

.sermon-card .card-img-wrapper .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.sermon-card:hover .card-img-wrapper .play-overlay {
  opacity: 1;
}

.sermon-card .card-img-wrapper .play-overlay i {
  font-size: 2.5rem;
  color: var(--clr-white);
}

.sermon-card .card-body {
  padding: 22px;
}

.sermon-card .sermon-date {
  font-size: 0.8rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Rhema Page ---------- */
.rhema-daily-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.rhema-daily-card .rhema-date {
  font-size: 0.85rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rhema-daily-card .rhema-verse {
  font-family: var(--ff-accent);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--clr-dark);
  line-height: 1.6;
  margin-bottom: 8px;
}

.cstm-verse {
  font-family: var(--ff-accent) !important;
  font-size: 1.2rem   !important;
  font-style: italic;
  color: var(--clr-dark) !important;
  line-height: 1.6 !important;
  margin-bottom: 8px;
}
.cstm-verse + .rhema-reference {
  font-size: 0.8rem;
}

/* ---------- New Here Section ---------- */
.step-card {
  text-align: center;
  padding: 10px 20px;
}

.step-card .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-dark);
  padding: 18px 24px;
  background: var(--clr-white);
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--clr-primary-lighter);
  color: var(--clr-primary);
}

.faq-accordion .accordion-body {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--clr-body);
  line-height: 1.8;
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: fadeInRight 1s ease-out forwards;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-light);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary-dark);
}
@media (max-width: 1060px) {
.custom-floating-nav .nav-link {
  margin:10px 8px;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ---------- Tablet (max-width: 991.98px) ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 75vh;
    margin-top: 70px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .hero-section .hero-title {
    font-size: 2.4rem;
  }

  .section-padding {
    padding: 70px 0;
  }

  .navbar-agape .navbar-collapse {
    background: var(--clr-white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
  }

  .navbar-agape .nav-link::after {
    display: none;
  }

  .vision-images {
    grid-template-columns: 1fr 1fr;
    grid-row-gap:50px;
  }

  .vision-images img.img-large {
    grid-row: 1;
    height: 180px;
  }
  
  .vision-images img.img-small {
    height: 180px;
  }
  
  .vision-section {
    width: 95%;
    padding: 40px 25px;
    margin-top: 10px;
    border-radius: 20px;
  }

  .rhema-wrapper {
    border-radius: 30px;
    padding: 60px 0;
    width: 92%;
  }
  .about-image img {
    height: 590px;
    padding-left: 90px;
  }
  .ministries-section {
    padding: 40px 0 20px 0;
  }
  .ministries-container {
    padding: 20px 0 40px 0;
  }

  /* Footer mobile layout */
  .footer-inner {
    position: relative;
  }
  .footer-col-logo {
    text-align: left !important;
  }
  .footer-col-logo .social-links {
    justify-content: flex-start !important;
  }
  .footer-section .row.g-5 {
    flex-direction: column;
  }
  .footer-col-location {
    text-align: left !important;
  }

  /* Overlap section mobile */
  .overlap-image-section {
    margin-top: -60px;
  }
}

/* ---------- Mobile (max-width: 767.98px) ---------- */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-section .hero-title {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .section-padding {
    padding: 60px 0;
  }

  .circle-img {
    width: 100px;
    height: 100px;
  }

  .circle-img-lg {
    width: 130px;
    height: 130px;
  }

  .about-section .about-image img {
    height: auto;
    padding-left: 0;
    border-radius: 0;
  }

  .rhema-video-wrapper img {
    height: 260px;
  }
  
  .wide-overlap-img {
    height: 300px !important;
    margin-top: -20px;
    border-radius: 20px;
  }
  
  .sliced-image-container {
    height: 200px;
  }
  
  .slice-3 { width: 200px; height: 200px; }
  .slice-2, .slice-4 { width: 100px; height: 150px; }
  .slice-1, .slice-5 { display: none; }
  
  .sliced-wrapper {
    height: 250px;
  }

  /* Mission section mobile */
  .mission-section {
    padding: 50px 0;
  }

  .mission-section .mission-text {
    font-size: 18px;
    padding: 0 10px;
  }

  /* About section mobile */
  .about-section {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 20px;
  }

  .about-section .row.g-5.px-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Vision section mobile */
  .vision-section {
    width: 100%;
    margin: 0 auto;
    padding: 35px 20px;
    border-radius: 0;
  }

  .vision-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .vision-images img.img-large {
    grid-row: 1;
    grid-column: 1 / -1;
    height: 180px;
  }

  .vision-images img.img-small {
    height: 130px;
  }

  /* Rhema section mobile */
  .rhema-wrapper {
    border-radius: 0;
    padding: 40px 0;
    width: 100%;
  }

  .rhema-section {
    padding: 0 0 0 0;
  }

  .rhema-video-box img {
    min-height: 220px;
  }

  /* Events section mobile */
  .sliced-wrapper {
    height: 220px;
  }

  .event-title-overlay {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Footer mobile */
  .footer-section {
    padding: 40px 0 20px;
  }

  .footer-bottom .d-flex.flex-wrap {
    gap: 10px !important;
    font-size: 13px;
  }

  /* Overlap image mobile */
  .overlap-image-section {
    margin-top: -40px;
  }

  .wide-overlap-img {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}

/* ---------- Small Mobile (max-width: 575.98px) ---------- */
@media (max-width: 575.98px) {
  .hero-section .hero-title {
    font-size: 1.8rem;
  }

  .hero-section .hero-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
  }

  .about-section .about-image img {
    height: auto;
    padding-left: 0;
    border-radius: 0;
  }

  .vision-images {
    grid-template-columns: 1fr;
  }

  .vision-images img.img-large {
    height: 160px;
  }

  .vision-images img.img-small {
    height: 120px;
  }

  /* Mission mobile circles responsive */
  .mission-circle-mobile {
    width: 120px;
    height: 120px;
  }

  /* Ministry mobile circles responsive */
  .ministry-circle-mob {
    width: 110px;
    height: 110px;
  }

  .ministry-circle-mob-center {
    width: 95px;
    height: 95px;
  }

  /* Footer mobile two-column layout */
  .footer-section .row.g-5 > .col-lg-3,
  .footer-section .row.g-5 > .col-lg-4 {
    padding-left: 15px !important;
  }

  /* Footer contact + location side by side */
  .footer-col-logo,
  .footer-col-location {
    width: 50%;
    display: inline-block;
    vertical-align: top;
    float: left;
  }

  .footer-col-logo {
    text-align: left !important;
  }
  .footer-col-location {
    text-align: left !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .footer-col-location h5 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .about-section .about-image img {
    height: auto;
    padding-left: 0;
    border-radius: 0;
  }

  .hero-btns .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .upcoming-events-label p:not(.upcoming-events-tag) {
    font-size: 0.9rem;
  }
}