/* ===== Committee Section ===== */
.committee {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

/* Section heading */
.committee h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #e03e2d; /* Kenyan red */
}

/* Committee grid layout */
.committee ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0;
    list-style: none;
}

/* Committee cards */
.committee ul li {
    background: linear-gradient(145deg, #005c3c, #e03e2d, #000);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hover animation */
.committee ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* Icons */
.committee ul li i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

/* Name styling */
.committee ul li strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* Role */
.committee ul li::after {
    content: attr(data-role);
    display: block;
    font-size: 1rem;
    margin-top: 5px;
    color: #fff;
}

/* Fade-in animation */
.committee ul li {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.committee ul li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer colors */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .committee ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
