/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #00000018;
  color: #1900ff18;
}

/* Header with background image & overlay */
header {
  position: relative;
  width: 100%;
  height: 400px;
  background: url('../images/hands.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 128, 0.6);
  z-index: 0;
}

.header-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

/* Logo styling */
.logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

/* Navigation */
nav {
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links li {
  margin: 0 10px;
  position: relative;
}

/* Basic Link Styling with subtle underline on hover */
.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 8px 10px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ffd700;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown arrow */
.dropbtn .arrow {
  font-size: 0.8em;
  margin-left: 4px;
}

/* Dropdown Menu */
.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 128, 0.9);
  list-style: none;
  min-width: 160px;
  display: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.dropdown .dropdown-menu li a {
  padding: 10px;
  display: block;
  white-space: nowrap;
}

.dropdown .dropdown-menu li a:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* Hover behavior for desktop */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger Icon for Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Hide navigation by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 128, 0.9);
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav-links li {
    margin: 10px 0;
  }

  /* Show dropdown menus on mobile when toggled */
  .dropdown .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
  }
  .dropdown .dropdown-menu.active {
    display: block;
  }
}




/* This code is responsible for the margin taht are on all the right and left of the whole page */
main {
  margin: 0 auto;
  padding: 0 30px; 
  max-width: 1200px; 
  box-sizing: border-box;
}


/* Logo Text Styling */
.logo {
  color: #f8b400; 
  text-decoration: none;
  letter-spacing: 2px;
  padding: 5px 10px; 
  border: 2px solid #f8b400; 
  border-radius: 5px;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-weight: bold;
}

.logo:hover {
  background-color: #f8b400; 
  color: #003366; 
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #f8b400; /* Golden color on hover */
  transform: scale(1.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f8b400;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.hamburger div {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 5px;
}

/* Responsive Mobile View */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-links a {
    font-size: .8rem;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #333399;
  height: 80vh; /* Adjust the height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
}

/* Overlay to dim background */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Black overlay with transparency */
  z-index: 0;
}

/* Content inside the Hero Section */
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px; /* Set maximum width for readability */
  text-align: center;
}

/* Hero Heading Styling */
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  /* text-transform: uppercase; */
  color: #f8b400; /* Golden color for the title */
}

/* Hero Paragraph Styling */
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #fff;
}

/* Button Styling */
.btn {
  background-color: #f8b400; /* Golden button */
  color: #003366; /* Dark blue text */
  padding: 10px 20px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #003366;
  color: #fff;
  transform: scale(1.05);
}

/* Hero Section Responsiveness */
@media (max-width: 768px) {
  .hero {
    height: 80vh; 
    padding: 1rem; 
  }

  .hero h1 {
    font-size: 2rem; 
  }

  .hero p {
    font-size: 1rem; 
  }

  .hero .btn {
    padding: 0.6rem 1.8rem; 
    font-size: 1rem; 
  }
}


/* ------------------------- */
/* Base & About Section      */
/* ------------------------- */

/* About Section Container */
.about {
  padding: 4rem 2rem;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.about-container {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

/* About Text Styling */
.about-text {
  flex: 1;
  color: #333;
  min-width: 300px;
}

.frame {
  border: 5px solid white;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

/* ------------------------- */
/* 3D Coverflow Carousel      */
/* ------------------------- */

.about-carousel {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin: auto;
  perspective: 1000px; /* Enables 3D effect */
  overflow: hidden;    /* Hide overflow so only portions of side images are visible */
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Base style for all slides */
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 80%;
  transform: translate(-50%, -50%);
  transition: transform 1s ease, opacity 1s ease;
  opacity: 0;
  z-index: 1;
}

/* Active (center) slide */
.carousel-item.active {
  opacity: 1;
  z-index: 10;
  /* Bring forward using translateZ; scale to 100% */
  transform: translate(-50%, -50%) translateZ(200px) scale(1);
}

/* Left slide */
.carousel-item.left {
  opacity: 1;
  z-index: 5;
  transform: translate(-150%, -50%) rotateY(30deg) scale(0.8);
}

/* Right slide */
.carousel-item.right {
  opacity: 1;
  z-index: 5;
  transform: translate(50%, -50%) rotateY(-30deg) scale(0.8);
}

/* Carousel Images Styling */
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

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

/* ------------------------- */
/* Responsive Adjustments    */
/* ------------------------- */

/* Tablets and below */
/* @media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  .about-carousel {
    height: 300px;
    max-width: 90%;
    overflow: hidden;
  }
}

/* Phones and smaller devices */
@media (max-width: 480px) {
  .about-carousel {
    height: 250px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
  } */
  
  /* Adjust slide transforms so they remain visible on small screens */
  .carousel-item.active {
    transform: translate(-50%, -50%) translateZ(100px) scale(1);
  }
  .carousel-item.left {
    transform: translate(-110%, -50%) rotateY(20deg) scale(0.8);
  }
  .carousel-item.right {
    transform: translate(10%, -50%) rotateY(-20deg) scale(0.8);
  }
}



/* Vision and Mission Section (Upendo-Specific) */
.vision-mission-upendo {
  background-color: #f4f4f9; 
  padding: 4rem 2rem;
  text-align: center;
  border-top: 10px solid #f8b400; 
}

.upendo-container {
  max-width: 1000px;
  margin: 0 auto; 
}

.vision-mission-upendo h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003366; /* Dark blue */
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upendo-summary-content {
  display: flex;
  justify-content: center; 
  align-items: center; 
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap; 
}

.upendo-vision-summary,
.upendo-mission-summary {
  flex: 1 1 calc(50% - 1rem); 
  min-width: 280px; 
  max-width: 450px; 
}

.upendo-box {
  background: linear-gradient(to bottom right, #003366, #0066cc); /* Stylish gradient background */
  padding: 2rem;
  border-radius: 15px;
  height: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
  color: white;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.upendo-box h3 {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upendo-box p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.upendo-box:hover {
  transform: translateY(-10px); /* Hover effect to lift the box */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Increased shadow on hover */
}

.upendo-btn {
  padding: 10px 20px;
  background-color: #003366; /* Dark blue */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 2rem;
  display: inline-block; /* Ensures proper centering */
}

.upendo-btn:hover {
  background-color: #f8b400; /* Golden color on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .upendo-summary-content {
    flex-direction: column; /* Stack items vertically */
    gap: 2rem;
  }

  .upendo-vision-summary,
  .upendo-mission-summary {
    width: 100%; /* Full width on smaller screens */
  }
}

@media screen and (max-width: 480px) {
  .vision-mission-upendo h2 {
    font-size: 2rem;
  }

  .upendo-box {
    padding: 1.5rem;
  }

  .upendo-box h3 {
    font-size: 1.5rem;
  }

  .upendo-box p {
    font-size: 1rem;
  }
}



/* Vision & Mission Full Page Styling */
.vision-mission {
  padding: 3rem 2rem;
  background: #f4f4f9;
}

.vision-mission h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.vision-mission .vision,
.vision-mission .mission {
  margin-bottom: 2rem;
}

.vision-mission h3 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 1rem;
}

.vision-mission p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}


/* Vision, Mission, and Core Values Section */
.vision-mission {
  background-color: #f4f4f9; 
  padding: 4rem 2rem;
  text-align: center;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
}

.vision-mission h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003366; 
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vision-mission-content {
  margin-bottom: 2rem;
}

.vision-mission h3 {
  font-size: 2rem;
  color: #003366; 
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vision-mission p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.vision-mission ul {
  list-style-type: disc;
  margin-left: 2rem;
  text-align: left;
  color: #333;
  font-size: 1.1rem;
}

.vision-mission ul li {
  margin-bottom: 1rem;
}

.core-values h4 {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.core-values p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}


/* Section Styling *//* Section Styling */
#worship {
  padding: 40px 20px;
  background-color: #fdfdfd;
}

.worship-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #003366;
}

.worship-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 20px;
  align-items: start;
}

/* Hexagonal Gallery */
.hexagonal-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hexagon {
  position: relative;
  width: 240px;
  height: 224px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background-color: #ffe9d7;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hexagon:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Details Container */
.details-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-card {
  background: #f4f4f4;
  border: 2px solid #003366;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.details-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.details-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #003366;
}

.details-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.details-card li {
  margin-bottom: 8px;
  color: #003366
}
.details-card p {
  color: #003366
}

.details-card strong {
  color: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
  .worship-grid {
      grid-template-columns: 1fr;
  }

  .hexagonal-gallery {
      justify-content: center;
  }
}



#youth {
  background-color: #f0f4f8;
  padding: 40px 0;
  text-align: center;
}

#youth h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 320px;
  text-align: left;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card h3 {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 15px;
}

.card p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card blockquote {
  font-style: italic;
  color: #003366;
  border-left: 4px solid #003366;
  padding-left: 10px;
  margin-top: 15px;
  font-size: 1.1rem;
}



/* Family */


.family-content {
  text-align: center;
  margin-bottom: 20px;
  color: white;
}
.family-content h2 {
  color: white;
}

/* Grid Container */
#family {
  padding: 50px;
  background: linear-gradient(135deg, #3b5998, #1d3557);
  color: white;
  font-family: 'Arial', sans-serif;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

/* Section Text */
.section-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Family Grid *//* Base styles for the family section */
#family {
  padding: 20px;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.grid-item {
  position: relative;
  width: 100%;
  height: 400px;
  padding-top: 75%; /* Aspect ratio of 4:3; adjust if needed */
  overflow: hidden; /* Ensures content does not overflow */
  border-radius: 10px; /* Optional: Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Shadow effect */
}

.grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill their containers proportionally */
  object-position: center; /* Centers the image in its container */
  border-radius: 10px; /* Matches the grid-item rounding */
}




@media (max-width: 600px) {
  .family-grid {
      gap: 15px; /* Reduce gap on smaller screens */
  }
}


  /* Pastor Grid Styling */

  .psection-title,
  .pastor-name,
  .church-name,
  .group-photo-description{
    color:#003366;
  }
  .pastors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .pastor-name{
    font-weight: bold;
  }
  .psection-title{
    text-transform: uppercase;
    text-align: center;
    font-size: 40px;
  }

  .pastor-card {
    background-color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .pastor-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .pastor-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
  }

  .pastor-card img:hover {
    transform: scale(1.1);
  }

  /* Group Photo Styling */
  .group-photo-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .group-photo-item {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .group-photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .group-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .group-photo-item img:hover {
    transform: scale(1.05);
  }

  .group-photo-description {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  /* Section Fade-In Animation */
  .section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* Crusades section styling */
.crusades-section {
  background: linear-gradient(135deg, #003366, #336699); /* Shades of blue */
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.crusades-content {
  margin-bottom: 30px;
}

.crusades-content h2 {
  color: white;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-text {
  font-size: 1.2rem;
}

/* Gallery layout */
/* Crusades section styling */
.crusades-section {
  background: linear-gradient(135deg, #003366, #336699); /* Shades of blue */
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.crusades-content {
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-text {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Gallery layout */
.crusades-gallery {
  display: grid;
  grid-template-areas:
      "main main minor minor"
      "main main minor minor";
  gap: 20px;
  align-items: center;
}

/* Main image styling */
.main-image {
  grid-area: main;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 100%;
}

.main-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease; /* Hover effect */
}

.main-image:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* Minor images styling */
.minor-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.minor-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 1/1; /* Square images */
}

.minor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.minor-item:hover img {
  transform: scale(1.05);
}

/* Animation on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .crusades-gallery {
      grid-template-areas:
          "main"
          "minor"
          "minor";
          
  }

  .minor-images {
      grid-template-columns: repeat(1, 1fr);
  }


  
}





/* School Section */


#academy {
  background-color: #f8f9fa;  /* Light grey background */
  padding: 40px 20px;
  text-align: center;
}

#academy h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.academy-details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.vision-mission {
  flex: 1;
  text-align: left;
  font-size: 1.1rem;
  color: #003366;
  line-height: 1.6;
}

.vision-mission h3 {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 10px;
}

.academy-images {
  flex: 1;
}

.directors {
  margin-bottom: 30px;
}
.directors h3 {
  color: black;
}
.directors p {
  color: rgba(0, 0, 0, 0.736);
}
.school-pictures h3 {
  color: black;
}
.director {
  margin-bottom: 15px;
  display: inline-block;
  width: 200px;
  text-align: center;
}

.director-img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
}

.school-pictures {
  margin-top: 20px;
}

.picture-gallery {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.school-img {
  width: 48%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  animation: fade-in linear; 
  animation-timeline: view();
  animation-range-start: 500px;
  animation-range-end: 700px;

}

@keyframes fade-in {
from {scale: .8; opacity: 0;} 
to {scale: 1; opacity: 1;}
}

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




#ministry-mandate {
  background-color: #f8f9fa;  /* Light background for clean presentation */
  padding: 40px 20px;
  text-align: center;
}

#ministry-mandate h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 30px;
}

.mandate-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mandate-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mandate-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.mandate-item h3 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 10px;
}

.mandate-item p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.zeal-for-christ {
  background-color: #e6f7ff;  /* Soft blue background for emphasis */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.zeal-for-christ h3 {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 15px;
}

.zeal-for-christ p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}




/* Floating Button Styles */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007bff; /* Blue background */
  color: white;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  display: none; /* Hidden by default */
  transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: scale(1.1); /* Slight zoom effect */
}




#donate {
  padding: 50px;
  text-align: center;
  background: linear-gradient(135deg, #1d3557, #457b9d); /* Subtle blue gradient */
  color: white;
  font-family: 'Arial', sans-serif;
  margin-top: 0px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.donate-header {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #f1f1f1;
}

.donate-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #d3d3d3;
}

.donate-button {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  background-color: #e63946; /* Bright red button */
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.donate-button:hover {
  background-color: #a62936; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Donate Section Responsive adjustments */
@media (max-width: 768px) {
  #donate {
    padding: 30px;
  }

  .donate-header {
    font-size: 2rem;
  }

  .donate-description {
    font-size: 1rem;
  }

  .donate-button {
    font-size: 1.2rem;
    padding: 10px 20px;
  }
}





/* donate.html */
.donate-section {
  padding: 60px 20px;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.donate-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-titles {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-transform: uppercase;
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ffffff;
  font-weight: bold;
}

.donation-method {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.donation-method:hover {
  transform: translateY(-10px);
}

.method-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.method-header i {
  font-size: 1.8rem;
  color: #000000;
  margin-right: 10px;
}
.method-header h3 {
  font-size: 1.8rem;
  color: #000000;
  margin-right: 10px;
}

.donate-button {
  background-color: rgb(171, 0, 0);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.donate-button:hover {
  background-color: #155ab3;
}

.bank-details {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: bolder;
}

.bank-details li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.bank-details strong {
  color: rgb(181, 181, 0);
  font-weight: bold;
}






/* Upendo Family Section */
.upendo-family {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  color: #333;
}

.upendo-content {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.upendo-family h2 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
}

.upendo-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.upendo-content .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
}

.upendo-content .btn:hover {
  background-color: #f8b400;
}




/* Image Gallery */

.upendo-image-gallery {
  display: flex;
  justify-content: space-around; 
  gap: 0.2rem; 
  margin-top: 2rem;
  align-items: center 
}

.gallery-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-box.small {
  width: 200px;
  height: 200px; 
  align-self: center; 
}

.gallery-box.large {
  width: 300px;
  height: 300px; 
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Start hidden */
  transition: opacity 1s ease-in-out;
  backface-visibility: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Keyframes for cycling through images */
@keyframes fade-cycle {
  0%, 100% {
    opacity: 1;
    z-index: 1;
  }
  50% {
    opacity: 0;
    z-index: 0;
  }
}

/* Apply animation to all image wrappers */
.image-container .image-wrapper:nth-child(1) {
  animation: fade-cycle 10s infinite;
}

.image-container .image-wrapper:nth-child(2) {
  animation: fade-cycle 10s infinite 2s; /* Delay for the second image */
}





/* Our Vision and Mission Section */
.vision-mission {
  background-color: #ffffff; 
  padding: 40px; 
  margin: 20px 0; 
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  width: 100%; 
  clear: both; 
  position: relative; 
  z-index: 0; 
}

/* Donate Now Section */
.donate-now {
  background-color: #f5f5f5; 
  padding: 20px; 
  margin: 20px 0; 
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  width: 100%; 
  position: relative; 
  overflow: hidden; 
  z-index: 1; 
}

@media screen and (max-width: 768px) {
  .donate-now, .vision-mission {
      padding: 20px;
      margin: 10px 0;
  }
}




/* Footer Styles */
footer {
  background-color: #003366; /* Blue background */
  color: #fff;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.footer-section {
  flex: 1;
  padding: 10px;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: normal;
}

.footer-section p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 10px 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.social-icons a {
  color: #fff;
  font-size: 20px;
  margin-right: 10px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ddd;
  transform: rotate(360deg);
  transition: transform 0.4s ease-in-out;
}

.contact-details p {
  margin: 8px 0;
  text-align: left;
  margin-left: 30px;
}

.contact-details i {
  margin-right: 8px;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.learn-more {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: transparent;
  color: white;
  text-decoration: none;
  font-weight: bolder;
  font-size: 16px;
}

.learn-more:hover {
  transition: transform 0.2s ease;
  color: white;
  text-decoration: underline;
  animation: shake 0.5s ease-in-out infinite;
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}



/* What we belive section */

  /* Section Styling */
  .beliefs-section {
    padding: 80px 20px;
    background: #e7f3ff;
    text-align: center;
    font-family: 'Arial', sans-serif;
  }

  .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
  }

  /* Box Layout */
  .belief-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
  }

  .belief-box {
    background: #ffffff;
    border: 3px solid #003366;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
  }

  .belief-box:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  .belief-box h4 {
    color: #003366;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .belief-box p {
    color: #333;
    font-size: 0.95rem;
  }

  .reference {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #003366;
    margin-top: 5px;
  }

  /* Hover Animation */
  .belief-box:hover .reference {
    color: #ff6600;
  }




/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid white; /* White divider line */
  padding: 10px 20px;
  margin-top: 20px;
  color: #fff;
}

.footer-left {
  text-align: left;
  margin-left: 100px;
  font-size: 14px;
  font-weight: lighter;
}

.footer-right {
  text-align: right;
  margin-right: 105px;
  font-size: 14px;
  font-weight: lighter;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; /* Stack footer sections vertically */
    padding: 10px;
  }

  .footer-section {
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-section h3 {
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .contact-details {
    margin-left: 0;
    text-align: center;
  }

  .learn-more {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .footer-content {
    padding: 15px;
  }

  .footer-section h3 {
    font-size: 14px;
  }

  .footer-section p {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 16px;
    margin-right: 8px;
  }

  .learn-more {
    font-size: 12px;
  }
}





.scroll-watcher {
  height: 10px;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: rgb(22, 10, 244);
  width: 100%;
  scale: 0 1;
  transform-origin: left;

  animation: scroll-watcher linear;
  animation-timeline: scroll();
}

@keyframes scroll-watcher {
  to { scale: 1 1; }
}



