/* === About Section Styling with Kenyan Flag Theme === */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #000000 33%, #ff0000 33%, #ff0000 66%, #006400 66%);
    border-radius: 2px;
}

.about h2 i {
    margin-right: 15px;
    color: #006400;
}

/* Charter Section with Kenyan Flag Border */
.charter {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid;
    border-image: linear-gradient(to right, #000000 33%, #ff0000 33%, #ff0000 66%, #006400 66%) 1;
    position: relative;
    overflow: hidden;
}

.charter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #000000 33%, #ff0000 33%, #ff0000 66%, #006400 66%);
}

/* Section Headers with Kenyan Flag Accents */
.charter h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid;
    border-image: linear-gradient(to bottom, #000000 33%, #ff0000 33%, #ff0000 66%, #006400 66%) 1;
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.charter h3:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.charter h3 i {
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

/* Vision & Mission Specific Styling */
.charter h3:nth-of-type(1) { /* VISION */
    border-left-color: #000000;
}

.charter h3:nth-of-type(2) { /* MISSION */
    border-left-color: #ff0000;
}

.charter h3:nth-of-type(3) { /* CORE VALUES */
    border-left-color: #006400;
}

/* Paragraph Styling */
.charter p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0 10px;
    color: #555;
    text-align: justify;
}

/* Lists Styling */
.charter ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.charter ul li {
    padding: 12px 15px 12px 45px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.charter ul li:hover {
    transform: translateX(10px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #006400;
}

.charter ul li i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #006400;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.charter ul li:hover i {
    color: #ff0000;
    transform: translateY(-50%) scale(1.2);
}

/* Kenyan Flag Color Animation for List Items */
.charter ul li:nth-child(3n+1):hover {
    border-left-color: #000000;
}

.charter ul li:nth-child(3n+2):hover {
    border-left-color: #ff0000;
}

.charter ul li:nth-child(3n+3):hover {
    border-left-color: #006400;
}

/* Specific Section Animations */
.core-values li {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.service-commitment li {
    animation: slideInRight 0.6s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.accessibility li {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Keyframe Animations */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorPulse {
    0%, 100% {
        color: #000000;
    }
    33% {
        color: #ff0000;
    }
    66% {
        color: #006400;
    }
}

/* Progress Bar for Service Commitments */
.progress-container {
    background: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(to right, #000000 33%, #ff0000 33%, #ff0000 66%, #006400 66%);
    border-radius: 10px;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about {
        padding: 20px 15px;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .charter {
        padding: 25px 20px;
    }
    
    .charter h3 {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
    
    .charter ul li {
        padding: 10px 12px 10px 40px;
        font-size: 0.95rem;
    }
    
    .charter ul li i {
        left: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about h2 {
        font-size: 1.7rem;
    }
    
    .charter {
        padding: 20px 15px;
    }
    
    .charter h3 {
        font-size: 1.2rem;
        padding: 10px 12px;
    }
    
    .charter p {
        font-size: 1rem;
        text-align: left;
    }
}

/* Floating Animation for Icons */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Highlight Animation */
.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #000000, #ff0000, #006400);
    transition: width 0.3s ease;
}

.highlight:hover::after {
    width: 100%;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Kenyan Shield Decoration */
.kenyan-shield {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.2em;
    animation: colorPulse 3s ease-in-out infinite;
}