/* --- TEAM PAGE STYLES --- */
body {
    font-family: 'Open Sans', sans-serif; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;

    /* --- THE GLOBAL MISTY BACKGROUND --- */
    background-color: #ffffff; 
    
    background-image: 
        /* Layer 1: White Mist floating on the right */
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%),
        
        /* Layer 2: A soft blue cloud in the middle-left */
        radial-gradient(ellipse at 30% 40%, rgba(230, 242, 255, 1) 0%, rgba(230, 242, 255, 0) 60%),
        
        /* Layer 3: Another soft cloud near the bottom */
        radial-gradient(circle at 70% 80%, rgba(230, 242, 255, 1) 0%, rgba(230, 242, 255, 0) 60%),
        
        /* Layer 4: Base Gradient (Light Blue Left -> White Right) */
        linear-gradient(to right, #e6f2ff 0%, #f7fbff 50%, #ffffff 100%);

    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}


.team-section {
    padding: 80px 0;
}

.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Specific styling for Leadership (max 2 columns centered) */
.leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

/* Card Styling */
.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px); /* Lifts up slightly */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Image zooms in slightly on hover */
.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    color: #003366;
    margin-bottom: 5px;
    font-size: 20px;
}

.role {
    display: block;
    color: #C5A059; /* Gold */
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.team-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Social Icons */
.team-social a {
    color: #003366;
    margin: 0 8px;
    font-size: 16px;
    transition: color 0.3s;
}

.team-social a:hover {
    color: #C5A059;
}

/* Responsive */
@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr; /* Stack leaders on mobile */
    }
}


/* --- TEAM PAGE STYLES --- */

.team-intro-section {
    padding: 60px 0;
    background: #f4f9ff;
}

.intro-box p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 5 Column Grid --- */
.team-grid-section {
    padding-bottom: 80px;
}

.team-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    border-radius: 15px; /* Rounded corners */
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover img {
    transform: scale(1.05); /* Zoom effect */
}

.team-member h3 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 5px;
}

.team-member .role {
    color: #C5A059;
    font-size: 14px;
    font-weight: 600;
}

/* --- Details Section (What we do) --- */
.team-details-section {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.detail-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detail-box h3 {
    color: #003366;
    margin-bottom: 20px;
}

/* --- Commitment Section --- */
.commitment-section {
    padding: 80px 0;
    background-color: #f4f9ff;
}

.commitment-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.tag {
    background-color: #e6f2ff;
    color: #003366;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.impact-text {
    font-family: serif; /* Elegant font */
    font-style: italic;
    color: #C5A059;
    font-size: 20px;
    margin-top: 20px;
}

.contact-methods {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    color: #fff; /* Assumes CTA background is dark/blue */
    font-size: 16px;
}

.contact-methods i {
    color: #C5A059;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid-5 {
        grid-template-columns: repeat(3, 1fr); /* 3 cols on tablet */
    }
}

@media (max-width: 600px) {
    .team-grid-5 {
        grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile */
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 10px;
    }
}