@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box
}

:root{
    --kenya-black: #000000;        
    --kenya-red: #e63946;       
    --kenya-green: #06402B;       
    --kenya-white: #ffffff;    
    --ubuntu-orange:#ebcfa7;      
    --text-dark: #1a1a2e;         
    --text-light: #2d3a3a; 
    --accent-gold: #ffd166;       
    --deep-blue: #68a2ff;      
    --rich-purple: #8338ec;   
    --shadow-light:0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium:0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy:0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-fast:0.2s ease;
    --transition-medium:0.3s ease;
    --transition-slow:0.5s ease
}
html{
    scroll-behavior:smooth;
    font-size:16px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%
}
body{    
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 400;
}
.skip-link{
    position:absolute;
    top:-40px;
    left:6px;
    background:var(--kenya-red);
    color:var(--kenya-white);
    padding:8px;
    text-decoration:none;
    border-radius:4px;
    z-index:9999;
    transition:top var(--transition-medium)
}
.skip-link:focus{
    top:6px
}
.loading-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:var(--kenya-white);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:1;
    transition:opacity var(--transition-slow)
}
.loading-overlay.hidden{
    opacity:0;
    pointer-events:none
}
.loading-spinner{
    width:50px;
    height:50px;
    border:4px solid #f3f3f3;
    border-top:4px solid var(--kenya-red);
    border-radius:50%;
    animation:spin 1s linear infinite
}
@keyframes spin{
    0%{
        transform:rotate(0deg)
    }
    100%{
        transform:rotate(360deg)
    }
}
.site-header {
    background: var(--kenya-white);
    top: 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-medium);    
    padding: 5px 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: fixed;
    padding: 10px 0;
}

.nav-container {
    background: transparent;
    max-width: 1200px;
    margin-top: 0;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:15px
}
.logo{
    font-size:1.8rem;
    font-weight:700;
    color:var(--kenya-green);
    text-decoration:none;
    transition:color var(--transition-medium);
    justify-content:start;
    justify-items:left
}
.logo:hover{
    color:var(--kenya-red)
}
.w-logo{
    width:90px!important;
    height:80px;
    justify-items:self-start
}

.cont {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* Top contact bar */
.header-top-bar {
    background-color: var(--kenya-green);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
}

.contact-intro {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-link {
    color: #ecf0f1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.contact-link:hover {
    color: var(--kenya-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cont {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0 15px;
    }
    
    .contact-intro {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .contact-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-top-bar {
        padding: 10px 0;
    }
    
    .contact-intro {
        font-size: 12px;
    }
    
    .contact-link {
        font-size: 12px;
    }
    
    .contact-link b {
        font-size: 12px;
    }
}

/* Main Navigation Styles */
#main-nav, .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: end;
}

/* Navigation Links */
#main-nav a, .main-nav a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-medium);
    position: relative;
    padding: 10px 0;
}

/* Hover/Focus States */
#main-nav a:hover, 
#main-nav a:focus,
#main-nav a.active,
.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--kenya-red);
}

/* Underline Animation */
#main-nav a::after,
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--kenya-red);
    transition: width var(--transition-medium);
}

#main-nav a:hover::after,
#main-nav a:focus::after,
#main-nav a.active::after,
.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dropdown Specific Styles */
#main-nav .dropdown {
    position: relative;
}

#main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* Dropdown Links */
#main-nav .dropdown-menu a {
    padding: 8px 20px;
    color: var(--text-dark);
    white-space: nowrap;
}

#main-nav .dropdown-menu a:hover {
    background-color: var(--kenya-red);
}

/* Dropdown Indicator */
#main-nav .dropdown > a::after {
    content: "▼";
    font-size: 0.6em;
    margin-left: 5px;
    border: none;
    background: transparent;
    position: static;
    display: inline-block;
}

/* Hover Behavior */
#main-nav .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Dropdown Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #main-nav, .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    #main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        width: 100%;
    }
    
    #main-nav .dropdown:hover > .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    
    #main-nav .dropdown.active > .dropdown-menu {
        display: block; /* Use JS to toggle this class */
    }
}
    
.mobile-menu-toggle{
    display:none;
    flex-direction:column;
    cursor:pointer;
    padding:5px;
    background:none;
    border:none;
    aria-label:"Toggle mobile menu"
}
.mobile-menu-toggle span{
    width:25px;
    height:3px;
    background:var(--text-dark);
    margin:3px 0;
    transition:var(--transition-medium);
    transform-origin:center
}
.mobile-menu-toggle.active span:nth-child(1){
    transform:rotate(45deg) translate(6px,6px)
}
.mobile-menu-toggle.active span:nth-child(2){
    opacity:0
}
.mobile-menu-toggle.active span:nth-child(3){
    transform:rotate(-45deg) translate(6px,-6px)
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding: 0 5%;
    gap: 40px;
}

.text-content {
    flex: 1;
    color: var(--kenya-black);
    font-weight: 200;
    font-size: 1.5rem;
}

.text-content h1 {
    color: #20691e;
    font-size: 4.5rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.statistic {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #555;
}

/* Sketchy Frame Style */
.image-frame {
    flex: 1;
    position: relative;
    padding: 15px;
    background: white;
    border-radius: 235px 15px 285px 155px/5px 325px 95px 455px;
    border: 2px solid #333;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    border: 1px solid #ddd;
}

/* Optional: Hand-drawn effect enhancement */
.image-frame::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    border: 1px dashed rgba(0,0,0,0.2);
    pointer-events: none;
}

 /* Timeline Visual */
    .timeline-visual {
        position: relative;
        padding: 40px 0;
    }
    
    .timeline-path {
        position: absolute;
        left: 50px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--kenya-green);
        transform: translateX(-50%);
    }
    
    .timeline-item {
        position: relative;
        margin-bottom: 60px;
        padding-left: 100px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 30px;
        top: 0;
        width: 40px;
        height: 40px;
        background: white;
        border: 3px solid var(--kenya-green);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--kenya-green);
        font-size: 18px;
    }
    
    .timeline-content {
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .timeline-content:hover {
        transform: translateY(-5px);
    }
    
    .phase-image {
        height: 200px;
        overflow: hidden;
        margin: -30px -30px 20px -30px;
        border-radius: 8px 8px 0 0;
    }
    
    .phase-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .timeline-content:hover .phase-image img {
        transform: scale(1.05);
    }
    
    /* Impact Cards */
    .impact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .impact-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .impact-card:hover {
        transform: translateY(-10px);
    }
    
    .impact-image {
        height: 200px;
    }
    
    .impact-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .impact-content {
        padding: 20px;
        text-align: center;
    }
    
    .stat {
        font-size: 2rem;
        font-weight: bold;
        color: var(--kenya-red);
        margin-bottom: 10px;
    }
    
    /* Animations */
    @keyframes rotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .timeline-item {
            padding-left: 70px;
        }
        
        .timeline-icon {
            left: 10px;
        }
    }

    /* Animation Styles */
    .animate__animated {
        opacity: 0;
    }    
        
    /* Image Styles */
    .stat-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }
    
    .image-gallery {
        position: relative;
        height: 420px;
        margin-bottom: 10px;
    }
    
    .image-gallery img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        opacity: 0;
        transition: opacity 1s ease;
    }
    
    .image-gallery img.active {
        opacity: 1;
    }
    
    /* Counter Animation */
    .stat-number {
        font-size: 3rem;
        font-weight: bold;
        color: var(--kenya-green);
        transition: all 0.5s ease;
    }
    
    /* Parallax Effect */
    .parallax {
        position: relative;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        padding: 100px 0;
    }
    
    .parallax-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,100,0,0.7);
    }
    
    .parallax .container {
        position: relative;
        z-index: 2;
    }
    
    /* Program Cards */
    .program-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .card-image {
        height: 200px;
        overflow: hidden;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .program-card:hover .card-image img {
        transform: scale(1.1);
    }
    
    /* Success Stories */
    .stories-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .story-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .story-card:hover {
        transform: translateY(-10px);
    }
    
    .story-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    
    .story-content {
        padding: 20px;
        background: white;
    }
    
    /* CTA Section */
    .cta-section {
        background: linear-gradient(135deg, var(--kenya-green), #006400);
        color: white;
    }

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.card-header-text h3 {
    margin: 0 0 0.25rem;
    color: var(--kenya-green);
    font-size: 1.25rem;
}

.card-header-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

blockquote {
    font-style: italic;
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    border-left: 4px solid var(--kenya-red);
    color: var(--text-color);
    line-height: 1.7;
}

.impact-section {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.impact-section h4 {
    color: var(--kenya-green);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.impact-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
}

.impact-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .card-image {
        height: 180px;
    }
}

.hero{
    min-height:120vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
    position: relative;
    width: 100%;
    animation:gradientShift 15s ease infinite
}
.hero-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background video{
    min-height: 120vh;
    width:100%;
    height:100%;
    object-fit:cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 90%;
    filter:brightness(50%)
}   
      
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 50%;
        background: rgba(10, 23, 66, 0.4);  /* Semi-transparent blue */
        z-index: 1;
    }
    
        
    
@keyframes float{
    0%,100%{
        transform:translateY(0) rotate(0deg)
    }
    50%{
        transform:translateY(-20px) rotate(2deg)
    }
}

.hero-content h1{
    font-size:clamp(4rem, 6vw, 5rem);
    color: #fafdfa;
    margin-bottom:20px;    
    display: flex;
    justify-content: flex-start;
    animation:fadeInUp 1s ease 0.6s both;    
    font-weight:700;
    line-height:1.2
}

/* Founders Grid Layout */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Founder Cards */
.founder-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
}

.founder-img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--kenya-green);
    margin: 0 auto 20px;
    display: block;
}

.founder-info h3 {
    color: var(--kenya-green);
    margin-bottom: 5px;
    color: hwb(118 12% 59%);
}

.founder-title {
    color: var(--kenya-red);
    font-weight: 600;
    margin-bottom: 15px;
}

.founder-bio {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Founder Social Links */
.founder-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.founder-social a {
    color: var(--kenya-green);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.founder-social a:hover {
    color: var(--kenya-red);
}

/* Section Intro */
.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: 20px auto;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-body {
    padding: 40px;
}

.modal-header {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.modal-image-container {
    width: 300px;
    min-width: 300px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

#modal-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 600;
}

.modal-subtitle {
    color: #111212;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 500;
}

.modal-bio {
    line-height: 1.6;
    color: #151515;
}

.modal-bio p {
    margin-bottom: 10px;
    font-size: 17px;
    color: #000000;
}

.modal-story-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.modal-story-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-story {
    line-height: 1.6;
    color: #151515;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-story p {
    margin-bottom: 10px;
    font-size: 17px;
    color: #000000;
}

.modal-social {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.modal-social a {
    color: #3498db;
    font-size: 20px;
    transition: color 0.3s;
}

.modal-social a:hover {
    color: #2980b9;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-image-container {
        width: 100%;
        min-width: auto;
        height: auto;
        max-height: 400px;
    }
    
    .modal-story {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-height: 95vh;
    }
    
    #modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .modal-bio p,
    .modal-story p {
        font-size: 15px;
    }
    
    .modal-story-title {
        font-size: 20px;
    }
    
    .modal-image-container {
        height: 250px;
    }
}

/* News Hero Section */
.news-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./images/DSC_0013.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
}

.news-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.news-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.bg-white {
    background-color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-green {
    background-color: var(--primary);
    color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Add these to your existing news.css */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: block;
    color: var(--ubuntu-orange);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: var(--text-color-dark);
}

.news-item p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.read-more {
    width: 100%;
    text-align: center;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Partnerships Section */
.partnerships-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.partnerships-section .section-title {
    color: var(--kenya-green);
    margin-bottom: 10px;
    text-align: center;
}

.partnerships-section .section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Partner Categories */
.partner-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #f0f0f0;
}

.category-btn.active {
    background: var(--kenya-green);
    color: white;
    border-color: var(--kenya-green);
}

/* Partners Slider */
.partners-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.slider-container {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
}

.slide {
    min-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--kenya-green);
    color: white;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Partner CTA */
.partner-cta {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partner-cta h3 {
    color: var(--kenya-green);
    margin-bottom: 15px;
}

.partner-cta p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .partners-slider {
        padding: 0 30px;
    }
    
    .slide {
        min-width: 140px;
        height: 80px;
    }
    
    .partner-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .partner-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .slider-container {
        gap: 20px;
    }
    
    .slide {
        min-width: 120px;
        height: 70px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
    }
}

/* Partners Gallery */
.partners-gallery {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.gallery-title {
    text-align: center;
    color: var(--kenya-green);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-caption {
        transform: translateY(0);
        position: relative;
        background: #f8f9fa;
        color: var(--text-dark);
        padding: 10px;
    }
}

    /* Base styles */
    .section {
        padding: 60px 0;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        color: #7f8c8d;
        text-align: center;
        margin-bottom: 40px;
    }
    
   /* Base styles */
.section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.donation-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.donation-header {
    text-align: center;
    margin-bottom: 40px;
}

.donation-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.donation-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.donation-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.donation-options {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.donation-summary {
    width: 350px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--kenya-white);
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #3498db;
}

.amount-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Custom Amount */
.custom-amount {
    margin-bottom: 30px;
}

.custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #7f8c8d;
}

#other-amount {
    width: 100%;
    padding: 12px 12px 12px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
}

#other-amount:focus {
    outline: none;
    border-color: #3498db;
}

/* Frequency Buttons */
.frequency-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.frequency-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frequency-btn:hover {
    border-color: #3498db;
}

.frequency-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Payment Methods */
.method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.method-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.method-tab:hover {
    border-color: #3498db;
}

.method-tab.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.method-tab i {
    font-size: 1.1rem;
}

/* Payment Form */
.payment-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Bank Details */
.bank-details {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.bank-details p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.bank-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-label {
    font-weight: 600;
    color: #7f8c8d;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
}

.note {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Donation Summary */
.summary-card {
    position: sticky;
    top: 20px;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.donate-btn {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.donate-btn:hover {
    background: #27ae60;
}

.secure-text {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: center;
}

.secure-text i {
    margin-right: 5px;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .donation-content {
        flex-direction: column;
    }
    
    .donation-summary {
        width: 100%;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Newsletter */
.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark);
}

.btn-white {
    background-color: white;
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--accent);
}



/* Read More Button */
.read-more-btn {
    background: none;
    border: none;
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.read-more-btn:hover {
    color: #004499;
}

.btn{
    display:inline-block;
    padding:15px 30px;
    border:none;
    border-radius:50px;
    font-size:1.1rem;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
    transition:all var(--transition-medium);
    position:relative;
    overflow:hidden;
    text-align:center;
    min-width:150px
}
.btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgb(255 255 255 / .2),transparent);
    transition:left 0.5s
}
.btn:hover::before{
    left:100%
}
.btn-primary{
    background:var(--kenya-red);
    color:var(--kenya-white);
}
.btn-primary:hover,.btn-primary:focus{
    background: var(--kenya-green);
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgb(206 17 38 / .4)
}
.btn-secondary{
    background: var(--kenya-green);
    color:var(--kenya-white);
    border:2px solid var(--kenya-green)
}
.btn-secondary:hover,.btn-secondary:focus{
    background:var(--kenya-green);
    color:var(--kenya-white);
    transform:translateY(-2px)
}


.grid{
    display:grid;
    gap:30px
}
.grid-2{
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr))
}
.grid-3{
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr))
}
.grid-4{
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr))
}
.card{
    background:var(--kenya-white);
    border-radius:15px;
    box-shadow:var(--shadow-light);
    transition:all var(--transition-medium);
    overflow:hidden;
    position:relative
}
.card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-medium)
}
.card-content{
    padding:40px
}
.card-header{
    text-align:center;
    margin-bottom:20px
}
.card-icon{
    width:80px;
    height:80px;
    border-radius:50%;
    margin:0 auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    color:var(--kenya-white);
    position:relative;
    overflow:hidden
}
.card-icon::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:linear-gradient(45deg,var(--kenya-red),var(--ubuntu-orange));
    border-radius:50%;
    z-index:-1
}
.stat-card{
    text-align:center;
    padding:40px 20px
}
.stat-number{
    font-size:clamp(2.5rem, 5vw, 3rem);
    font-weight:700;
    color:var(--kenya-red);
    margin-bottom:10px;
    display:block
}
.stat-label{
    font-size:1.1rem;
    color:var(--text-light);
    font-weight:500
}

.form-group{
    margin-bottom:25px
}
.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:var(--text-dark)
}
.form-group input,.form-group select,.form-group textarea{
    width:100%;
    padding:12px 16px;
    border:2px solid #e0e0e0;
    border-radius:8px;
    font-size:1rem;
    transition:border-color var(--transition-medium);
    font-family:inherit
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
    outline:none;
    border-color:var(--kenya-green);
    box-shadow:0 0 0 3px rgb(0 107 63 / .1)
}
.form-group textarea{
    resize:vertical;
    min-height:120px
}

.contact-info{
    background:#f8f9fa;
    padding:40px;
    border-radius:15px;
    height:fit-content
}
.contact-item{
    display:flex;
    align-items:center;
    margin-bottom:25px;
    padding:15px;
    background:var(--kenya-white);
    border-radius:10px;
    transition:transform var(--transition-medium)
}
.contact-item:hover{
    transform:translateX(5px)
}
.contact-icon{
    width:50px;
    height:50px;
    background:linear-gradient(135deg,var(--kenya-red),var(--ubuntu-orange));
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--kenya-white);
    margin-right:20px;
    flex-shrink:0
}

.error-message {
        color: #d9534f;
        font-size: 0.875em;
        margin-top: 0.25rem;
        display: none;
    }
    
    .form-status {
        margin-top: 1rem;
        padding: 0.75rem;
        border-radius: 4px;
        display: none;
    }
    
    .form-status.success {
        background-color: #dff0d8;
        color: #3c763d;
        display: block;
    }
    
    .form-status.error {
        background-color: #f2dede;
        color: #a94442;
        display: block;
    }
    
    input:invalid, textarea:invalid, select:invalid {
        border-color: #d9534f;
    }
    
    input:invalid:focus, textarea:invalid:focus, select:invalid:focus {
        box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
    }
    
.site-footer{
    background:var(--kenya-black);
    color:var(--kenya-white);
    padding:60px 0 20px;
    margin-top:auto
}
.footer-content{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
    margin-bottom:40px
}
.footer-section h3{
    color:var(--ubuntu-orange);
    margin-bottom:20px;
    font-size:1.3rem
}
.footer-section p,.footer-section li{
    margin-bottom:10px;
    opacity:.9
}
.footer-section ul{
    list-style:none;
    padding:0
}
.footer-section a{
    color:var(--kenya-white);
    text-decoration:none;
    transition:color var(--transition-medium)
}
.footer-section a:hover,.footer-section a:focus{
    color:red
}
.social-links{
    display:flex;
    gap:15px;
    margin-top:20px
}
.social-links a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    background:var(--kenya-red);
    border-radius:50%;
    color:var(--kenya-white);
    font-size:1.2rem;
    transition:all var(--transition-medium)
}
.social-links a:hover,.social-links a:focus{
    background:var(--ubuntu-orange);
    transform:translateY(-2px)
}
.footer-bottom{
    border-top:1px solid #333;
    padding-top:20px;
    text-align:center;
    opacity:.8
}
@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(30px)
    }
    to{
        opacity:1;
        transform:translateY(0)
    }
}
@keyframes slideDown{
    from{
        opacity:0;
        max-height:0
    }
    to{
        opacity:1;
        max-height:500px
    }
}
@keyframes pulse{
    0%,100%{
        transform:scale(1)
    }
    50%{
        transform:scale(1.05)
    }
}
.text-center{
    text-align:center
}
.text-left{
    text-align:left
}
.text-right{
    text-align:right
}
.mb-20{
    margin-bottom:20px
}
.mb-30{
    margin-bottom:30px
}
.mb-40{
    margin-bottom:40px
}
.bg-light{
    background:#f8f9fa
}
.bg-white{
    background:var(--kenya-white)
}
.bg-green{
    background:var(--kenya-green)
}
.bg-red{
    background:var(--kenya-red)
}
@media (max-width:768px){
    .mobile-menu-toggle{
        display:flex
    }
    .main-nav ul{
        position:fixed;
        left:-100%;
        top:70px;
        flex-direction:column;
        background-color:var(--kenya-white);
        width:100%;
        text-align:center;
        transition:left var(--transition-medium);
        box-shadow:var(--shadow-medium);
        padding:20px 0;
        gap:20px
    }
    .main-nav ul.active{
        left:0
    }
    .main-nav a{
        padding:10px 20px;
        display:block;
        border-radius:5px;
        margin:0 20px
    }
    .section{
        padding:60px 0
    }
    
    .timeline::before{
        left:20px
    }
    .timeline-content{
        width:calc(100% - 60px);
        margin-left:60px!important;
        margin-right:0!important
    }
    .timeline-icon{
        left:20px;
        transform:translateX(0)
    }
    .grid-2,.grid-3,.grid-4{
        grid-template-columns:1fr
    }
    .footer-content{
        grid-template-columns:1fr;
        gap:30px
    }
}
@media (max-width:480px){
    .container{
        padding:0 15px
    }
    .card-content{
        padding:20px
    }
    .calculator-container{
        padding:25px
    }
    .contact-info{
        padding:25px
    }
}
@media (prefers-contrast:high){
    :root{
        --shadow-light:0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium:0 5px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy:0 10px 30px rgba(0, 0, 0, 0.5)
    }
}
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:0.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:0.01ms!important
    }
    html{
        scroll-behavior:auto
    }
}
@media print{
    .site-header,.mobile-menu-toggle,.btn,.site-footer{
        display:none
    }
    .main-content{
        margin-top:0
    }
    body{
        font-size:12pt;
        background: #deddb0;
        line-height:1.4
    }
}
