/* Base Styles - Uganda Flag Colors */
:root {
    --primary-color: #D62828;      /* Red - Uganda flag red */
    --secondary-color: #FCDC04;    /* Yellow - Uganda flag yellow */
    --accent-color: #000000;       /* Black - Uganda flag black */
    --dark-color: #121212;         /* Deep UI neutral */
    --light-color: #FAFAFA;        /* Soft light background */
    --text-color: #1F1F1F;         /* Balanced black-gray */
    --text-light: #6E6E6E;         /* Muted gray */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

/* General Typography */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================== */
/* 🌈 Hero and Navigation Styling  */
/* =============================== */

.navbar {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(71, 70, 70, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(75, 74, 74, 0.3);
}

.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.4) 0%,
        rgba(252,220,4,0.3) 50%,
        rgba(214,40,40,0.4) 100%
    ),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    /* background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(252,220,4,0.3) 50%, rgba(214,40,40,0.4) 100%); */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* =============================== */
/* 🟥🟨 Buttons & Interactions     */
/* =============================== */

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    border: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* =============================== */
/* 🧩 Sections                     */
/* =============================== */

.section-header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.divider {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(214, 40, 40, 0.6) 50%, rgba(252, 220, 4, 0.6) 100%);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(214, 40, 40, 0.7) 100%);
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Hover + Accent microinteractions */
.nav-link::after {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.dropdown-item:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
}

.btn-donate-nav {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-donate-nav:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 220, 4, 0.4);
}

body {
    font-family: var(--font-primary);
    color: white;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--accent-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.btn-outline-primary {
    text-align: center;
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.2);
}

.section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    border-radius: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    position: relative;
}

.divider:after {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Image */
.logo-img {
    transition: transform 0.3s ease;
}

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

/* Text Transition Styles */
.text-transition-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    min-width: 200px;
}

.transition-text {
    position: absolute;
    white-space: nowrap;
    transition: all 0.5s ease;
}

.original-text {
    color: var(--secondary-color);
    opacity: 1;
}

.transformed-text {
    color: var(--primary-color);
    opacity: 0;
}

/* Navigation Links */
.nav-link {
    color: white;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    color: white;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
}

/* Donate Button */
.btn-donate-nav {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-donate-nav:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 220, 4, 0.4);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 10px;
        padding: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .brand-container {
        gap: 10px;
    }
    
    .text-transition-container {
        font-size: 1.1rem;
        min-width: 150px;
        height: 35px;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .dropdown-menu {
        margin-left: 15px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@media (max-width: 576px) {
    .text-transition-container {
        font-size: 0.8rem;
        min-width: 130px;
    }
    
    .brand-container {
        gap: 8px;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Animation for text transition */
@keyframes textTransition {
    0%, 45% {
        opacity: 1;
        transform: translateY(0);
    }
    50%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.original-text {
    animation: textTransition 6s infinite;
}

.transformed-text {
    animation: textTransition 6s infinite 3s;
}

/* Navigation Toggle Button Styles */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    display: block;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(8px);
}

/* Toggle button animation when open */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .navbar {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        position: relative;
        right: 0;
        z-index: 1000;
    }
    
    .navbar-brand {
        order: 1;
        max-width: 70%;
    }
    
    .navbar-collapse {
        order: 3;
        width: 100%;
    }
    
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
    }
    
    .navbar-toggler-icon {
        background-color: var(--secondary-color);
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        background-color: var(--secondary-color);
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.zed-carousel-wrapper {
  all: unset;
  perspective: 2000px;
  width: 100%;
  max-height: 400px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(214, 40, 40, 0.6) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  margin-top: 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zed-carousel {
  position: relative;
  width: 400px;
  height: 350px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1s;
}

.zed-carousel-item {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 150px;
  height: 170px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(500px);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--secondary-color);
  transition: all 0.5s ease;
}

.zed-carousel-item:hover {
  box-shadow: 0 0 20px rgba(252, 219, 4, 0.733),
              0 0 40px rgba(214, 40, 40, 0.3);
  transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(520px) scale(1.05);
}

.zed-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* .zed-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: var(--secondary-color);
  padding: 8px 12px;
  border-radius: 8px;
  pointer-events: none;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 200px;
  z-index: 999;
} */

@media (max-width: 768px) {
  .zed-carousel-wrapper {
    min-height: 400px;
    padding: 20px 0;
  }

  .zed-carousel {
    width: 280px;
    height: 280px;
  }

  .zed-carousel-item {
    width: 160px;
    height: 100px;
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(300px);
  }

  .zed-carousel-item:hover {
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(320px) scale(1.05);
  }
}

@media (max-width: 480px) {
  .zed-carousel {
    width: 220px;
    height: 220px;
  }

  .zed-carousel-item {
    width: 130px;
    height: 110px;
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(250px);
  }

  .zed-carousel-item:hover {
    transform: translate(-50%, -50%) rotateY(var(--rotation)) translateZ(270px) scale(1.05);
  }

  /* .zed-tooltip {
    font-size: 12px;
    max-width: 160px;
    padding: 6px 10px;
  } */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.1);
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-element i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.floating-element span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.element-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.element-3 {
    bottom: -20px;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-link {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.story-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.story-image { position: relative; height: 250px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; background-color: #eee; }
.story-card:hover .story-image img { transform: scale(1.05); }
.story-badge { position: absolute; top: 20px; right: 20px; background: rgba(42, 92, 138, 0.9); color: white; padding: 5px 15px; border-radius: 30px; font-weight: 500; font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.story-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.story-content h3 { font-size: 22px; margin-bottom: 15px; color: white; }
.story-content p { flex-grow: 1; color: rgba(255, 255, 255, 0.8); }
.story-author { margin-top: auto; color: rgba(255, 255, 255, 0.7); }

/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 110px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
@media screen {

   .experience-badge {
    right: 0px;
    align-items: center;
    } 
    .experience-badge .text {
    font-size: 10px;
}

}
.experience-badge .years {
    font-size: 30px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mission-vision {
    margin: 30px 0;
}

.mission, .vision {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.mission h4, .vision h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.mission h4 i, .vision h4 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(214, 40, 40, 0.6) 50%, rgba(252, 220, 4, 0.6) 100%);
    color: white;
    padding: 80px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    margin: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child:after {
    display: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Programs Section */
.program-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 4px solid transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: rgba(214, 40, 40, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--secondary-color);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.program-card:hover .program-icon {
    background: var(--primary-color);
    color: white;
}

.program-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.program-card p {
    color: rgba(255, 255, 255, 0.8);
}

.program-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.program-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.program-card ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--secondary-color);
}

/* Impact Stories Section */
.impact-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.impact-section .section-header h2 {
    color: white;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.impact-section .section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.impact-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.story-cards {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.story-card {
    min-width: 100%;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: absolute;
    visibility: hidden;
}

.story-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
}

.story-card-inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-card.active .story-badge {
    transform: translateY(0);
    opacity: 1;
}

.story-badge i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.story-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.story-meta span {
    margin-right: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.story-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.story-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    min-width: 100px;
    margin: 5px;
    flex: 1;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card.active .stat {
    transform: translateY(0);
    opacity: 1;
}

.story-card.active .stat:nth-child(1) {
    transition-delay: 0.1s;
}
.story-card.active .stat:nth-child(2) {
    transition-delay: 0.2s;
}
.story-card.active .stat:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-family: var(--font-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.story-content p {
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.story-content p:before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 50px;
    line-height: 1;
    color: rgba(214, 40, 40, 0.3);
    font-family: var(--font-secondary);
}

.story-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.author-info h5 {
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.author-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Story Navigation */
.story-nav {
    margin-bottom: 40px;
    position: relative;
}

.story-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 2px;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
    background: var(--secondary-color);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.story-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dot:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.dot.active:after {
    border-color: var(--secondary-color);
}

.story-arrows {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    font-size: 18px;
    margin: 0 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 220, 4, 0.3);
}

/* Impact Video Modal */
.impact-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.impact-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.impact-video-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(252, 220, 4, 0.4);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.1), rgba(252, 220, 4, 0.1));
    z-index: 1;
    pointer-events: none;
}

/* Modal Header */
.modal-header {
    padding: 25px 30px 0;
    text-align: center;
}

.modal-header h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-secondary);
}

.modal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 0;
}

/* Story Cards Container */
.story-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-cards-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.story-card {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation Classes */
.story-card.animate-out {
    transform: translateX(-100%);
    opacity: 0;
}

.story-card.animate-in {
    transform: translateX(100%);
    opacity: 0;
}

.story-card.active {
    transform: translateX(0);
    opacity: 1;
}

.story-cards-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.story-cards-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    transition: none;
}

.story-card {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

/* Video Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-image:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(214, 40, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
}

.video-play-overlay:hover .play-button {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(252, 220, 4, 0.4);
}

/* Modal Loading State */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .story-image {
        height: 250px;
    }
    
    .story-content {
        padding: 20px;
    }
    
    .story-stats {
        margin: 15px 0;
    }
    
    .stat {
        padding: 10px;
        min-width: 80px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .modal-content {
        width: 90%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 25px 0;
    }
    
    .modal-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        height: 200px;
    }
    
    .story-content h3 {
        font-size: 20px;
    }
    
    .story-meta {
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 10px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-header {
        padding: 15px 20px 0;
    }
    
    .modal-header h3 {
        font-size: 22px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .story-stats {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        margin: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value, .stat-label {
        margin: 0;
    }
    
    .story-progress {
        margin: 0 30px;
    }
    
    .dot {
        margin: 0 5px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-header p {
        font-size: 14px;
    }
    
    .video-container {
        padding-bottom: 60%;
    }
}

/* Enhanced Modal Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

.impact-video-modal.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.impact-video-modal:not(.active) .modal-content {
    animation: modalSlideOut 0.3s ease;
}

/* Video Controls Enhancement */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(214, 40, 40, 0.7) 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.footer-about {
    margin-bottom: 30px;
}

.footer .logo-img {
    height: 35px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer .brand-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer .brand-text span {
    color: var(--secondary-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    margin-right: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(252, 220, 4, 0.3);
    border-color: var(--secondary-color);
}

.footer-links h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(252, 220, 4, 0.3);
}

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

.footer-links ul li {
    margin-bottom: 12px;
    position: relative;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-radius: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links ul li a::before {
    content: '▸';
    color: var(--secondary-color);
    margin-right: 8px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.footer-links ul li a:hover::before {
    transform: scale(1.2);
    color: white;
}

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

.footer-contact ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-contact ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 3px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.footer-contact ul li span {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(252, 220, 4, 0.3);
}

/* Newsletter Subscription */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(252, 220, 4, 0.2);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        margin-bottom: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-links h4 {
        font-size: 18px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact ul li {
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer .brand-text {
        font-size: 18px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-contact ul li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-contact ul li i {
        margin-right: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.4);
}

/* Alternative Savanna Background Options */
/* Uncomment the one you prefer: */

/* Option 2: African Savanna with Acacia Trees */
/* .footer::before {
    background: url('https://images.unsplash.com/photo-1516426122078-c23e76319801?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2068&q=80') no-repeat center center;
} */

/* Option 3: Sunset Savanna */
/* .footer::before {
    background: url('https://images.unsplash.com/photo-1551632811-561732d1e306?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80') no-repeat center center;
} */

/* Option 4: Dry Savanna Landscape */
/* .footer::before {
    background: url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
} */

.newsletter h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.newsletter form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

.newsletter form:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(252, 220, 4, 0.2);
    transform: translateY(-2px);
}

.newsletter input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    background: transparent;
    color: white;
    font-size: 14px;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter button {
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter button:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(252, 220, 4, 0.3);
}

.copyright {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(214, 40, 40, 0.4);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 991.98px) {
    .section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero {
        text-align: center;
        padding-top: 80px;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        margin-top: 30px;
    }
    
    .stat-item:after {
        display: none;
    }
    
    .newsletter form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter input {
        border-radius: 15px 15px 0 0;
        padding: 15px 20px;
    }
    
    .newsletter button {
        border-radius: 0 0 15px 15px;
        padding: 12px 20px;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .stat-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 40px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .experience-badge {
        width: 100px;
        padding: 15px;
    }
    
    .experience-badge .years {
        font-size: 24px;
    }
    
    .copyright {
        padding: 20px 15px;
        font-size: 13px;
    }
}

/* ABOUT PAGE */

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(252,220,4,0.4) 50%, rgba(214,40,40,0.6) 100%), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 150px 0 100px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mission Section */
.mission-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.mission-statement {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.mission-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.mission-card h3 {
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mission-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content:after {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content:after {
    right: 100%;
    border-width: 10px 15px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content:after {
    left: 100%;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 767.98px) {
    .timeline:before {
        left: 30px;
    }
    
    .timeline-date {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content:after,
    .timeline-item:nth-child(even) .timeline-content:after {
        left: -15px;
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
    
    .about-hero {
        padding: 120px 0 80px;
    }
    
    .about-hero h1 {
        font-size: 36px;
    }
    
    .mission-card {
        min-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }
    
    .timeline-date {
        left: 20px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .about-hero h1 {
        font-size: 32px;
    }
    
    .mission-card {
        padding: 30px 20px;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Values Section with Uganda Flag Colors */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 33%, 
        var(--accent-color) 66%, 
        var(--primary-color) 100%);
    background-size: 400% 400%;
    animation: ugandaShine 3s ease-in-out infinite;
    border-radius: 50%;
    opacity: 0.9;
}

@keyframes ugandaShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(252, 220, 4, 0.4);
}

.value-card h3 {
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.value-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Gallery Section with Uganda Flag Colors */
.zed-gallery-section {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.3); /* Black background base */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: white;
  text-align: center;
  overflow-x: hidden;
  border: 1px solid var(--secondary-color); /* Yellow border */
  border-radius: 15px;
  margin: 20px 0;
  position: relative;
}

.zed-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    border-radius: 15px 15px 0 0;
}

.gallery-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-filters {
  margin-bottom: 40px;
}

.gallery-filters .filter {
  background: rgba(0, 0, 0, 0.3); /* Black background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--secondary-color); /* Yellow border */
  color: var(--secondary-color); /* Yellow text */
  padding: 12px 24px;
  margin: 5px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.gallery-filters .filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent);
    transition: left 0.5s ease;
}

.gallery-filters .filter:hover::before {
    left: 100%;
}

.gallery-filters .filter.active,
.gallery-filters .filter:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--accent-color); /* Black text */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4); /* Black background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(252, 220, 4, 0.1);
  border: 1px solid var(--primary-color); /* Red border */
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-color); /* Red glow */
  border-color: var(--secondary-color); /* Yellow border on hover */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Black gradient */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  width: 100%;
  padding: 20px 15px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  color: #fff;
  text-shadow: 0 0 5px #000;
  border-top: 2px solid var(--secondary-color); /* Yellow top border */
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--secondary-color); /* Yellow text */
}

.overlay p {
  font-size: 0.9rem;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Lightbox with Uganda Colors */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95); /* Black background */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 50px var(--primary-color); /* Red glow */
  border: 2px solid var(--secondary-color); /* Yellow border */
}

.lightbox .close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 40px;
  color: var(--secondary-color); /* Yellow color */
  cursor: pointer;
  z-index: 10000;
  background: rgba(214, 40, 40, 0.8); /* Red background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--secondary-color); /* Yellow border */
  transition: var(--transition);
}

.lightbox .close:hover {
  background: var(--secondary-color); /* Yellow background */
  color: var(--accent-color); /* Black text */
  transform: rotate(90deg);
  box-shadow: 0 0 20px var(--secondary-color);
}

/* Team Section with Uganda Flag Colors */
.zed-team-section {
  background: rgba(0, 0, 0, 0.3); /* Black background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 80px 20px;
  color: white;
  text-align: center;
  border: 2px solid var(--primary-color); /* Red border */
  border-radius: 15px;
  margin: 20px 0;
  position: relative;
}

.zed-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    border-radius: 15px 15px 0 0;
}

.team-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-tabs {
  margin-bottom: 40px;
}

.team-tab {
  background: rgba(0, 0, 0, 0.4); /* Black background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--secondary-color); /* Yellow border */
  color: var(--secondary-color); /* Yellow text */
  padding: 12px 24px;
  margin: 5px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.team-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent);
    transition: left 0.5s ease;
}

.team-tab:hover::before {
    left: 100%;
}

.team-tab.active,
.team-tab:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--accent-color); /* Black text */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
  border-color: var(--primary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-content: center;
}

.team-member {
  background: rgba(0, 0, 0, 0.4); /* Black background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  overflow: hidden;
  padding: 25px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid var(--primary-color); /* Red border */
  position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--secondary-color), 
        transparent);
    transition: left 0.6s ease;
    opacity: 0.3;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary-color); /* Red glow */
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--secondary-color); /* Yellow border on hover */
}

.team-member img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--primary-color); /* Red border */
  transition: var(--transition);
}

.team-member:hover img {
  border-color: var(--secondary-color); /* Yellow border on hover */
}

.team-member h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--secondary-color); /* Yellow text */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.team-member p {
  margin: 5px 0 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.zed-team-section .team-subtitle {
    margin: 10px;
    color: var(--secondary-color); /* Yellow text */
}

/* Bio Section */
.bio {
    max-height: 70px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.bio.expanded {
    max-height: none;
}

/* Read More Button with Uganda Colors */
.read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color); /* Black text */
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: left 0.5s ease;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 220, 4, 0.3);
    border-color: var(--primary-color);
}

.socials {
    margin-top: 15px;
}

.socials a {
  margin: 0 8px;
  color: var(--secondary-color); /* Yellow icons */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(214, 40, 40, 0.3); /* Red background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--secondary-color); /* Yellow border */
}

.socials a:hover {
  color: var(--accent-color); /* Black icons */
  background: var(--secondary-color); /* Yellow background */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(252, 220, 4, 0.3);
  border-color: var(--primary-color);
}

.hidden {
  display: none;
}

/* Uganda Flag Color Animation */
@keyframes ugandaFlagWave {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px var(--primary-color);
    }
    25% { 
        background-position: 50% 50%;
        box-shadow: 0 0 20px var(--secondary-color);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 20px var(--accent-color);
    }
    75% { 
        background-position: 50% 50%;
        box-shadow: 0 0 20px var(--secondary-color);
    }
}

/* Apply Uganda colors to existing sections */
.newsletter form {
    border: 2px solid var(--secondary-color); /* Yellow border */
}

.newsletter button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color); /* Black text */
}

.newsletter button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.back-to-top {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border: 2px solid var(--secondary-color);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color), var(--primary-color));
}

/* Mission Cards with Uganda Colors */
/* .mission-card {
    border: 1px solid var(--primary-color);
} */

.mission-card:hover {
    border-color: var(--secondary-color); /* Yellow border on hover */
    box-shadow: 0 15px 40px rgba(214, 40, 40, 0.3); /* Red glow */
}

.mission-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--secondary-color);
}

/* Timeline with Uganda Colors */
.timeline-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--secondary-color);
}

.timeline-content {
    border: 1px solid var(--primary-color); /* Red border */
}

.timeline-content:hover {
    border-color: var(--secondary-color); /* Yellow border on hover */
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(214, 40, 40, 0.6) 50%, 
        rgba(252, 220, 4, 0.6) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

.cta-section h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: all 0.6s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(252, 220, 4, 0.4);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.cta-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}




