/* ==========================================================================
   Global Reset & Base Variables
   ========================================================================== */
   /* Global Resets & Fonts */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      color: #2c3e50;
      background-color: #f8fafc;
      overflow-x: hidden;
      width: 100%;
      height: 300px;
    }

    /* Hero / Slider Section */
    #slider {
      position: relative;
      min-height: 70vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 58, 138, 0.75)), 
                  url(../images/celebration.jpg);
      text-align: center;
      padding: 2rem;
      color: ghostwhite;
    }

    .slider-content {
      width: 100%;
      animation: fadeInUp 1s ease-out forwards;
    }

    .slider-content h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 800;
      margin-bottom: 1.5rem;
      letter-spacing: -0.5px;
      text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  
    }

    /* Animated Button */
    .btn {
      display: inline-block;
      padding: 0.875rem 2.25rem;
      font-size: 1.125rem;
      font-weight: 600;
      color: #ffffff;
      background-color: #2563eb;
      border-radius: 50px;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      animation: pulseGlow 3s infinite;
    }

    .btn:hover {
      background-color: #1d4ed8;
      transform: translateY(-3px) scale(1.03);
    }

    .btn:active {
      transform: translateY(-1px);
    }
    #aboutus {
    /* Responsive sizing and padding */
    max-width: 650px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    
    /* Blue hues: Multi-stop gradient combining deep royal blue, cobalt, and cyan tones */
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 45%, #2a5298 75%, #0077b6 100%);
    background-size: 200% 200%;
    
    /* Depth shadow */
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.25);
    
    /* Smooth transitions for interactive state */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background-position 0.6s ease;
    
    cursor: pointer;
  }

  /* Interactive Hover Effect */
  #aboutus:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.4);
    background-position: right bottom; /* Shifts the gradient to reveal vibrant lighter blue hues */
  }

  /* Centered Heading */
  #aboutus h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
  }

  /* Decorative underline below centered header */
  #aboutus h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #90e0ef; /* Soft sky blue accent */
    border-radius: 2px;
    transition: width 0.3s ease;
  }

  /* Expand underline on container hover */
  #aboutus:hover h1::after {
    width: 90px;
  }

  /* Body Text Styling */
  #aboutus p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    color: #e0f2fe; /* Light blue-tinted text for readability */
    text-align: justify;
    hyphens: auto;
  }

    
/* ==========================================================================
   Charism & Vision Section (Fixed Image Containers)
   ========================================================================== */
.major {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.twodivs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.charism, .vision {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition-fast);
}

.charism:hover, .vision:hover {
  transform: translateY(-5px);
}

/* Ensures images stay bound to their columns */
.img-container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents stretching/distortion */
  transition: var(--transition-smooth);
}

.charism:hover .img-container img,
.vision:hover .img-container img {
  transform: scale(1.05);
}

/* ==========================================================================
   Interactive Background Image: Mission Section
   ========================================================================== */
.mission {
  position: relative;
  margin: 4rem 0;
  padding: 5rem 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Path fixed to standard hostinger structure */
  background-image: url(../images/kenya\ area\ image.jpg);
  background-size: cover;
  background-position: center;
  transition: background var(--transition-smooth);
}

/* Dark overlay gradient over background image */
.mission::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 127, 176, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
  transition: var(--transition-fast);
  z-index: 1;
}

.mission:hover::before {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.75) 0%, rgba(212, 175, 55, 0.4) 100%);
}

.mission-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.mission-text h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.mission-text p {
  font-size: 1.15rem;
  line-height: 1.8;
}
/* Base Styles & Typography */
.history-section {
  padding: 40px 20px;
  background-color: #f4f8fb; /* Light neutral background to make cards pop */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Flexbox/Grid Layout for Columns */
.history-section .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 1200px;
  margin: 0 auto;
}

/* Interactive Card Base Design */
.history-section .column {
  background: linear-gradient(135deg, #0d3b66 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(13, 59, 102, 0.15);
  border-top: 4px solid #60a5fa; /* Soft accent line on top */
  cursor: pointer;
  
  /* Smooth transitions for interactive states */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background 0.3s ease;
}

/* Typography Inside Cards */
.history-section .column h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0f2fe; /* Light ice blue for heading contrast */
  line-height: 1.3;
}

.history-section .column p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f1f5f9; /* Soft off-white for body text */
}

/* Hover & Focus State (Interactivity) */
.history-section .column:hover {
  transform: translateY(-8px); /* Elevates the card */
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); /* Brightens slightly */
}

/* Active State (Click effect) */
.history-section .column:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(29, 78, 216, 0.2);
}

.read-more-link {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.read-more-link:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* ==========================================================================
   Communities Section
   ========================================================================== */
   
.location {
  width: 80%;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
  appearance: calc();
 background: linear-gradient(135deg, #4d7397 0%, #7493ea 100%);
}

.styled-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
  list-style: none;
  color: #003366;
}

.styled-list li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.community-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.community-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}