* {
    box-sizing: border-box;
  }
  
  /* Style the body */
  body {
    font-family: "Open Sans", serif;
    margin: 0;
  }

  h1{
    font-size: 3em;
    color: #222;

  }
  html {
    scroll-behavior: smooth;
}

  p{

    color: #333;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    line-height: 28px;
    font-size:110% ;
    

  }

/*
  .wave {
    


  }




  
   Header/logo Title 
  .header {
    padding: 60px;
    text-align: center;
    background: #1abc9c;
    color: white;
  }   
 */

/* 
 .mave {
  --size: 30px; /* Reduced base size of the wave /
  --b: 6px; /* Reduced wave thickness /
  --m: 0.3; /* Reduced wave height multiplier /
  --p: calc(var(--m) * var(--size)); /* Adjusted vertical offset /
  --R: calc(var(--size) * sqrt(var(--m) * var(--m) + 1)); /* Adjusted radius /

  
  height: 160px; /* Reduced overall height of the wave container /
  margin: -30px 0;
  

  mask: radial-gradient(var(--R) at left 50% top calc(-1 * var(--p)),
        #0000 calc(99% - var(--b)),
        #000 calc(101% - var(--b)) 99%, 
        #0000 101%) 
      50% var(--size) / calc(4 * var(--size)) 100%;
  background: linear-gradient(90deg, red, blue);
  -webkit-mask: radial-gradient(var(--R) at left 50% top calc(-1 * var(--p)),
        #0000 calc(99% - var(--b)),
        #000 calc(101% - var(--b)) 99%, 
        #0000 101%) 
      50% var(--size) / calc(4 * var(--size)) 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
} */




.mave-container {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Slider */
.mave-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease-in-out;
  opacity: 0; /* Hide all images initially */

}


.text-overlay {
  position:absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.6); /* Dark background for readability */
  padding: 5px 20px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active .text-overlay {
  opacity: 1;
}

.text-overlay h2 {
  font-size: 20px;
  margin: 0;
}

.text-overlay p {
  font-size: 16px;
  margin: 5px 0 0;
  color:chocolate;
}



 


.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 /* border-radius: 10px; /*  smooth corners */
}

/* Buttons */
.prev, .next {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Wave Effect */
.mave {
  --size: 30px;
  --b: 6px;
  --m: 0.3;
  --p: calc(var(--m) * var(--size));
  --R: calc(var(--size) * sqrt(var(--m) * var(--m) + 1));

  position: absolute;
  bottom:0;
  left: 0;
  top: -10px;
  width: 100%;
  height: 100%;

  background: linear-gradient(90deg, red, blue);

  mask: radial-gradient(var(--R) at left 50% top calc(-1 * var(--p)),
        #0000 calc(99% - var(--b)),
        #000 calc(101% - var(--b)) 99%, 
        #0000 101%) 
      50% var(--size) / calc(4 * var(--size)) 100%;
  -webkit-mask: radial-gradient(var(--R) at left 50% top calc(-1 * var(--p)),
        #0000 calc(99% - var(--b)),
        #000 calc(101% - var(--b)) 99%, 
        #0000 101%) 
      50% var(--size) / calc(4 * var(--size)) 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}



/* 📱 Mobile Responsiveness */
@media screen and (max-width: 768px) {
.mave-container {
  height: 20vh; /* Reduce height for smaller screens */
  

}

.text-overlay {
  width: 90%;
  padding: 8px;
  max-width: 300px;
}

.text-overlay h2 {
  font-size: 1.5rem;
}

.text-overlay p {
  font-size: 0.9rem;
}

.prev, .next {
  font-size: 1.2rem;
  padding: 8px 12px;
}
}

@media screen and (max-width: 480px) {
.mave-container {
  height: 25vh;
}

.text-overlay h2 {
  font-size: 1.1rem;
}

.text-overlay p {
  font-size: 0.8rem;
}

.prev, .next {
  font-size: 1.2rem;
  padding: 6px 10px;
}
}









/* .wave{
color: #20c997; 

display: flex;
justify-content: space-between;
padding: 15px 20px;
} */


 .text {
  position: absolute;
  z-index: 10; /* Make sure the text is on top of the wave */

}    





/* Wave Container */
.wave {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between text & logo */
  padding: 10px 20px;
  background: transparent;
  
}

/* Text Styling */
.responsive-text {
  font-size: 20px;
  font-weight: 600;
  color: #20c997; 
  text-transform: uppercase;
}

/* Logo Styling */
.wave img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Mobile View Adjustments */
@media (max-width: 600px) {


  .responsive-text::before {
    content: "CBM - KENYA"; /* Change text on mobile */
  }
  
  .responsive-text {
    font-size: 16px;
    visibility: hidden; /* Hide original text */
    position: relative;
  }

  .responsive-text::before {
    visibility: visible; /* Show new text */
    position: absolute;
  }

  .wave img {
    width: 50px;
    height: 50px;
  }
}










 .header {
  padding: 60px;
   text-align: center;
  display:flex;
  justify-content: space-between;
  min-height:20vh;
  margin:0;
  background:#000; 

} 


/* header */







  
  /* Style the top navigation bar 
.navbar {
  display: flex;
  background-color: #333;
  width: 100%;
  padding: 10px 0;
  transition: all 0.3s ease;
}
*/

/* Navbar basic styles */
/* Navbar styles */


/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a, #2c3e50);
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Logo styles */
.navbar-logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

/* Navbar menu links container */
.navbar-menu {
  display: flex;
  gap: 25px;
}

/* Individual navbar links */
.navbar-menu a {
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  font-size: 16px;
  font-weight: 500;
}

/* Hover effect for links */
.navbar-menu a:hover {
  color: #1abc9c;
  transform: translateY(-2px);
}

/* Active link style */
.navbar-menu a.active {
  color: #1abc9c;
  font-weight: 600;
}

/* Toggle button (hamburger icon) */
.toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  left: 15px; /* Align to the left */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
}

/* Close button (X icon) */
.close-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  left: 15px; /* Align to the same left position as hamburger */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
}

/* Mobile view styles */
@media (max-width: 700px) {
  .navbar {
    position: relative;
    padding: 10px 15px;
  }

  /* Show hamburger menu on the left */
  .toggle-btn {
    display: block;
  }

  /* Move logo to the right */
  .navbar-logo {
    margin-left: auto;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    width: 100%;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-height: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }

  /* Show the menu when active */
  .navbar-menu.active {
    display: flex;
    max-height: 80vh;
    opacity: 1;
  }

  /* Ensure close button appears in place of hamburger */
  .navbar.active .close-btn {
    display: block;
  }

  /* Hide the hamburger icon when the menu is active */
  .navbar.active .toggle-btn {
    display: none;
  }

  /* Adjust link styles for mobile */
  .navbar-menu a {
    padding: 15px 20px;
    border-radius: 2px;
    color: #ffffff;
    opacity: 0;
    width: 100%;
    display: block;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-menu{
    overflow: auto;
  }

  /* Fade in and slide down links when menu is active */
  .navbar-menu.active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i));
  }

  /* Remove hover lift effect on mobile */
  .navbar-menu a:hover {
    color: #1abc9c;
    transform: none;
  }
}

/* Sticky navbar */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

/* Animation for sticky navbar */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Style the navigation bar links */
 .navbar a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
}

/*Change color on hover */
.navbar a:hover {
  background-color: #ddd;
   color: black; 
} 
  
  /* Column container */
  .row {  
    display: flex;

     /* flex-wrap: wrap;  */
  }
  
  /* Create two unequal columns that sits next to each other */
  /* Sidebar/left column */
  .side {
    flex: 30%;
    background-color: #f1f1f1;
    padding: 15px;
    border: 2px solid #20c997;
    border-radius: 20px;
    margin: .1%;
    margin-top: 1%;  
    
    
  }
  
  /* Main column */
  .main {
    flex: 70%;
    background-color: white;
    padding: 20px;
  }


  
  /* Fake image, just for this example *
  .fakeimg {
    background-color: #aaa;
    width: 100%;
    padding: 20px;
  }*/

/* solid divider */

  hr.solid {
    border: none; /* Remove the default border */
    height: 3px; /* Set the height of the horizontal rule */
    width: 94%; /* Adjust the width to make it narrower */
    background: linear-gradient(to right, blue, green, yellow); /* Gradient colors */
    margin: 10px auto; /* Optional: Add some spacing */;
  }


/* cards section */


.about{
  display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}




/* Container for the cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Updated for card width */
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

/* Styling for individual cards */
.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px; /* Increased padding for larger cards */
  text-align: center;
  width: 200px; /* Set card width to 200px */
  height: 250px; /* Set card height to 300px */
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center; 
  font-size: 18px; /* Adjusted font size to fit text */
  
}

.card img {
  max-width: 100%;
  max-height: 150px; /* Adjusted max height for images */
  object-fit: cover; /* Ensures the image covers the designated area proportionally */
  border-radius: 4px;
}

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


a .card{
  color:whitesmoke;
  text-decoration: none;
  
}

/* #crd6{  

   background-image: url('generic-header-scaled.jpg'); */
 
  /* background-repeat: no-repeat; */
  
  
  
/* }  */




.crd6 {
  
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Specific images for each card */
.study {
  background-image: url('igs/study.jpg');
}

.ecclecial {
  background-image: url('igs/ecclecial.jpg');
}

.exhortations {
  background-image: url('igs/exhortations.jfif');
}

.hymns {
  background-image: url('igs/hymns.jpg');
}

.magazines {
  background-image: url('igs/home-books.png');
}
.study2 {
  background-image: url('igs/study2.jpg');
}

.publications {
  background-image: url('igs/publications.jpg');
}

.talks {
  background-image: url('igs/talks.jpg');
}

.community {
  background-image: url('igs/community.jpg');
}

.events {
  background-image: url('igs/events.jpg');
}









/* Responsive adjustments */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ensure card width remains 200px */
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr; /* Display one card per row on smaller screens */
    margin-left: 15%;
  }
}





/* cards ends here */


/* just before cards end  we have a temporary popup*/

/* Popup Overlay */
.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  z-index: 1000; /* Ensure it's on top of everything */
  justify-content: center;
  align-items: center;
}

/* Popup Card */
.popup-card {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  text-align: center;
  max-width: 300px; /* Limit card width */
}

.popup-card h3 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #333333; /* Dark text */
}

.popup-card p {
  margin: 0 0 20px;
  font-size: 1em;
  color: #555555; /* Gray text */
}

.popup-card button {
  background: #1abc9c; /* Teal background */
  color: #ffffff; /* White text */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.popup-card button:hover {
  background: #16a085; /* Darker teal on hover */
}


/* events popup ends here */












/* scroll-upbuttom */



#scrollToTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom */
  right: 20px; /* Place the button at the right */
  z-index: 99; /* Make sure it's on top of other elements */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #007bff; /* Background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  transition: opacity 0.3s, visibility 0.3s; /* Smooth transitions */
}

#scrollToTopBtn:hover {
  background-color: #0056b3; /* Darker background on hover */
}


/* scroll-top-button ends here */









  /* Footer */

.footer {
  /* padding: 50px 15%; */
  padding: 50px 18%;
  /* padding-bottom: 60px; */
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #d3d3d3;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  gap: 15px; /* Add spacing between items */
  justify-content: center; /* Center content on smaller screens */
  position: relative; /* Needed for spiral positioning */
  overflow: auto; /* Prevents overflow issues */
}






.footer p{
  color: #e3e3e3;
}

.footer div {
  text-align: center;
  flex: 1 1 300px; /* Ensure each section adjusts responsively */
}

.col-2 {
  flex-grow: 2; /* Allow the second column to grow more */
}

.footer div h3 {
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Form input styling */
form input {
  width: 100%; /* Full width within the container */
  max-width: 350px; /* Set a maximum width */
  height: 45px;
  border-radius: 4px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
  outline: none;
  border: none;
}

form button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 30px;
  padding: 8px 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

form button:hover {
  background-color: #0f172a;
  color: cyan;
}

 /* Style for invalid input */
 input:invalid {
  border: 2px solid #ff0000; /* Red border for invalid input */
}

/* Style for valid input */
input:valid {
  border: 2px solid #00ff00; /* Green border for valid input */
}

/* Optional: Add a custom error message */
input:invalid + .error-message {
  display: block;
  color: #ff0000;
  font-size: 0.875em;
  margin-top: 5px;
}

.error-message {
  display: none; /* Hide error message by default */
}





/* Social icons */
.social-icons {
  margin-top: 20px;
}


/* links social */

a{
  
  background-color: transparent;
  text-decoration: none;
}
/* 
a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
} */


a:visited {
  color: #efefef;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: orangered;
  background-color: transparent;
  text-decoration: none;
}


.social-icons i {
  font-size: 22px;
  margin: 10px;
  cursor: pointer;
  transition: color 0.3s ease; /* Smooth hover effect */
}

.social-icons i:hover {
  color: #007bff; /* Change color on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align items */
    padding: 50px 5%; /* Reduce padding on smaller screens */
  }

  .footer div {
    flex: 1 1 auto; /* Let sections adjust naturally */
    margin-bottom: 30px; /* Add spacing between sections */
  }

  form input {
    max-width: 90%; /* Reduce input width on smaller screens */
  }
}

@media (max-width: 480px) {
  form button {
    padding: 8px 20px; /* Reduce button padding */
    font-size: 14px; /* Slightly smaller font size */
  }

  .social-icons i {
    font-size: 18px; /* Reduce icon size */
  }
}

  
  /* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
  @media screen and (max-width: 700px) {
    .row, .navbar {   
      flex-direction: column;
    }
    body {
      font-size: 14px; /* Adjusts the text size for better readability */
    }
  
    .navbar a {
      font-size: 16px; /* Adjust navbar text size */
      padding: 12px 16px; /* Adjust navbar padding */
    }
  }


/* Footer horizontal line - Inside footer */
.footer-line {
  width: 100%;
  border: 0;
  height: 0.10vh;
  background-color: #d3d3d3;
  margin: 10px 0; /* Space between footer content & copyright */
  
}

/* Copyright Section inside Footer */
/* Copyright Section */
.footer-bottom {
  text-align: center;
  font-size: 12px; /* Slightly smaller font */
  color: #999;
  padding: 10px 0; /* Less padding */
  margin-bottom: -5%;
}

.footer-bottom p{
  color: #999;
}

/* Spiral Effect Positioned Above Copyright */
.footer::after {
  content: "";
  position: absolute;
  bottom: 40px; /* Adjusted for reduced height */
  right: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(26, 188, 156, 0.4) 10%, transparent 50%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(26, 188, 156, 0.6);
  animation: spin 10s linear infinite;
  opacity: 0.7;
}

/* Additional Spiral Layer */
.footer::before {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 50px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(26, 188, 156, 0.3) 10%, transparent 50%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
  animation: spin 8s linear infinite reverse;
  opacity: 0.6;
}

/* Spiral Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Fix for Small Screens */
@media (max-width: 768px) {

  .footer {
    padding: 30px 5%;
  }

  .footer::after{
    width: 80px;
    height: 80px;
    bottom: 140px;
    right: -20px;
  }



  .footer::before {
    width: 80px;
    height: 80px;
    bottom: 180px;
    right: -40px;
  }
}


