/* General Section Styles (re-using some concepts from services.css) */
.section-light-blue {
    background-color: #0d0d0d; /* Dark background similar to services */
    color: #ffffff; /* White text */
}

.section-dark-gray {
    background-color: #1a1a1a; /* Slightly darker background for contrast */
    color: #ffffff;
}

.section-padding {
    padding: 80px 0;
}

.section-title-object {
    background: #fae7c1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}


/* Team Section Specific Styles */
.team-grid {
    display: grid;
    /* Adjust this for 4 columns on larger screens, flexible sizing */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px; /* Space between team member cards */
    margin-top: 50px;
    justify-content: center;
    max-width: 1200px; /* Max width for the grid */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Add padding for smaller screens */
}

.team-member-card {
    background-color: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.team-member-image {
    width: 120px; /* Fixed width for circular images */
    height: 120px; /* Fixed height for circular images */
    border-radius: 50%; /* Make images circular */
    object-fit: cover; /* Ensure images fill the circle */
    margin-bottom: 15px;
    border: 3px solid #e7ba51; /* Gold border for emphasis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team-member-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.25em;
    font-weight: 700;
    color: #e7ba51;
    margin-bottom: 5px;
}

.team-member-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    color: #cccccc;
}

/* Clients Section Specific Styles */
.clients-grid {
    display: grid;
    /* Adjust this for 5 columns on larger screens, flexible sizing */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px; /* Smaller gap for more logos */
    margin-top: 50px;
    justify-items: center; /* Center items within their grid cells */
    align-items: center;
    max-width: 1200px; /* Max width for the grid */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.client-logo-wrapper {
    background-color: #2a2a2a; /* Card background for logos */
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px; /* Fixed height for client logo wrappers */
    width: 100%; /* Ensure it fills grid cell width */
}

.client-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.client-logo {
    max-width: 100%;
    max-height: 90px; /* Max height for the logo within the wrapper */
    object-fit: contain; /* Ensure logo fits without cropping */
    filter: grayscale(100%) brightness(180%); /* Desaturate and brighten logos */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(100%); /* Restore color and brightness on hover */
    opacity: 1;
}


/* Responsive Adjustments for Team Grid */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* 3 or 4 columns */
        max-width: 900px;
    }
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 4 or 5 columns */
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .section-title-object {
        font-size: 2.2em;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 2 columns on tablets */
        max-width: 600px;
        gap: 20px;
    }
    .team-member-image {
        width: 100px;
        height: 100px;
    }
    .team-member-name {
        font-size: 1.1em;
    }
    .team-member-title {
        font-size: 0.85em;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* 3 or 4 columns on tablets */
        max-width: 600px;
        gap: 15px;
    }
    .client-logo-wrapper {
        height: 100px;
        padding: 10px;
    }
    .client-logo {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .section-title-object {
        font-size: 1.8em;
    }
    .team-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 300px;
        gap: 15px;
    }
    .team-member-image {
        width: 110px;
        height: 110px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small mobile */
        max-width: 300px;
        gap: 10px;
    }
    .client-logo-wrapper {
        height: 80px;
        padding: 8px;
    }
    .client-logo {
        max-height: 60px;
    }
}