/* =========================================
   assets/css/team.css
========================================= */

/* --- PAGE HEADER & BREADCRUMBS --- */
.page-header {
    background-color: #f4f7f6;
    background-image: radial-gradient(circle at 50% 50%, rgba(23, 111, 145, 0.05) 0%, rgba(244, 247, 246, 1) 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header__title {
    font-size: 2.8rem;
    color: #176f91; /* iHerd Theme Color */
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    font-size: 0.95rem;
}

.breadcrumb__list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb__item a {
    color: #176f91;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb__item a:hover {
    color: #0f4c64;
    text-decoration: underline;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    margin: 0 12px;
    color: #aaa;
    font-size: 0.9rem;
}

.breadcrumb__item--active {
    color: #333;
    font-weight: 600;
}

/* --- TEAM SECTION --- */
.team-section {
    padding: 90px 0 110px;
    background-color: #ffffff;
}

.team-section__header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: #176f91;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    color: #333;
    font-weight: 700;
}

/* --- TEAM GRID --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(23, 111, 145, 0.12);
}

.team-card__img-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space */
    transition: transform 0.6s ease;
}

/* Crop framing for the single composite image_4e3b66.jpg */
.img-laura {
    object-position: 15% center;
}

.img-kagiso {
    object-position: 50% center;
}

.img-thato {
    object-position: 85% center;
}

.team-card:hover .team-card__img {
    transform: scale(1.05);
}

.team-card__info {
    padding: 30px 25px;
    text-align: center;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.team-card__name {
    font-size: 1.25rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.team-card__title {
    font-size: 0.85rem;
    color: #176f91;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.team-card__divider {
    width: 40px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 auto;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.team-card:hover .team-card__divider {
    background-color: #176f91;
    width: 60px;
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .team-grid {
        gap: 25px;
    }
    
    .team-card__img-wrapper {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }

    .page-header__title {
        font-size: 2.25rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .team-card__img-wrapper {
        height: 400px;
    }
}