/* ============================================= */
/* NEW: Team Grid Header Styles */
/* ============================================= */
.team-grid-header {
    margin-bottom: 2.5rem;
	margin-top:100px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.team-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a2f47; /* A dark blue/black color from image */
    margin-bottom: 0.5rem;
}

.team-header-description {
    font-size: 1rem;
    color: #6c757d;
    max-width: 550px; /* Constrains the text width */
}

.btn-team-primary, .btn-team-secondary {
    border-radius: 50px; /* Fully rounded corners */
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-team-primary {
    background-color: #5A4FCF; /* Purple color from image */
    color: #fff;
    border-color: #5A4FCF;
}
.btn-team-primary:hover {
    background-color: #4a40b1; /* Darker purple */
    border-color: #4a40b1;
    color: #fff;
}

.btn-team-secondary {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
}
.btn-team-secondary:hover {
    background-color: #f8f9fa; /* Light grey */
    border-color: #ccc;
}

/* Responsive fix for buttons on small screens */
@media (max-width: 767px) {
    .text-md-end {
        text-align: left !important;
        margin-top: 1.5rem;
    }
}


/* ============================================= */
/* Grid System Styles (Pure CSS) */
/* ============================================= */
.team-grid-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.team-grid-container .col-lg-3,
.team-grid-container .col-md-4,
.team-grid-container .col-sm-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

@media (min-width: 576px) { .team-grid-container .col-sm-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 768px) { .team-grid-container .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; } }
@media (min-width: 992px) { .team-grid-container .col-lg-3 { flex: 0 0 25%; max-width: 25%; } }

/* ============================================= */
/* Styling for Team Member Card */
/* ============================================= */
.team-member-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.team-member-image {
    width: 100%;
    height: 250px;
}

.team-member-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.team-member-content {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.team-member-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-member-name a {
    text-decoration: none;
    color: #333;
}

.team-member-socials {
    margin-top: 10px;
}

.team-member-socials a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #888;
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-member-socials a.social-icon i {
    font-size: 14px;
}

.team-member-socials a.social-icon:hover {
    background-color: #4D0032;
    border-color: #4D0032;
    color: #fff;
}

/* ============================================= */
/* Styling for Single Team Member Profile Page */
/* ============================================= */
.team-member-profile-avatar img {
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.team-member-profile-name {
    color: #4D0032;
    font-weight: 700;
}
.team-member-profile-social-links a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #888;
    margin: 0 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.team-member-profile-social-links a.social-icon i {
    font-size: 16px;
}

.team-member-profile-social-links a.social-icon:hover {
    background-color: #4D0032;
    border-color: #4D0032;
    color: #fff;
}
.bio-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #343a40;
}