 /* Prevent flickering */
#header, #footer {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
        
#header.loaded, #footer.loaded {
    opacity: 1;
}
        
        /* Hide content until loaded */
.content-hidden {
    visibility: hidden;
}
        
.content-visible {
    visibility: visible;
}

html {
    font-size: 62.5%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background-color: #f0dfcc;
}
        /* About Content */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    color: #2c5f2d;
    margin-bottom: 1.5rem;
    font-size: 3.9rem;
    position: relative;
    padding-bottom: 10px;
}

.about-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #4a8c4a;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-align: justify;
}

.about-image img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

        /* Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.mission-vision p {
    font-size: 1.6rem;
}

.mission, .vision {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
}

.mission i, .vision i {
    font-size: 3rem;
    color: #2c5f2d;
    margin-bottom: 1rem;
}

.mission h3, .vision h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

        /* Values */
.values {
    margin-bottom: 4rem;
}

.values h2 {
    text-align: center;
    color: #2c5f2d;
    margin-bottom: 2rem;
    font-size: 3.9rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: #2c5f2d;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.value-card p {
    font-size: 1.6rem;
}

        /* Team Section */
.team {
    margin-bottom: 4rem;
}

.team h2 {
    text-align: center;
    color: #2c5f2d;
    margin-bottom: 2rem;
    font-size: 3.9rem;
}

.team-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    flex: 1;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 25rem;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%; /* Make image taller than container */
    object-fit: cover;
    object-position: top;
    }
    
.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.member-info p {
    color: #6c757d;
    font-style: italic;
    font-size: 1.6rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .team-grid {
        flex-direction: column;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
}

        
        /* Responsive Design */
@media (max-width: 992px) {
.about-content, .mission-vision, .values-grid {
    grid-template-columns: 1fr;
 }
            
.team-grid {
    grid-template-columns: repeat(2, 1fr);
    }
            
}

@media (max-width: 768px) {
.header-content {
    flex-direction: column;
    text-align: center;
}
            
nav ul {
    margin-top: 1rem;
    justify-content: center;
}
            
nav ul li {
    margin: 0 0.5rem;
}
            
.hero h1 {
    font-size: 2.2rem;
}
            
.team-grid {
    grid-template-columns: 1fr;
     }
            
}