/* ==========================================================================
   Team Grid Section (Leadership / Meet the Team)
   Layout: team_grid
   Ported from HTML/about.html lines 324-336, 458-497.
   ========================================================================== */

section.team-grid-section {
    background: var(--color-white);
}

.team-grid-section .section-heading-wrap {
    margin-bottom: 46px; max-width: 1100px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.team-grid[data-count="1"] { grid-template-columns: minmax(0, 360px); justify-content: center; }
.team-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.team-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.team-grid[data-count="5"],
.team-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }

.team-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid #e7ecf3;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm, 0 8px 20px rgba(0, 41, 122, 0.08));
}
.team-card .team-card-flink {
	position: absolute;
	width: 100%;
	height: 100%;
	inset: 0;
	z-index: 1000;
}

.tc-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-blue-soft);
    overflow: hidden;
    position: relative;
}

.tc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.tc-photo.ph::after {
    content: attr(data-i);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-blue);
    font-weight: 800;
    font-size: 50px;
    background: linear-gradient(160deg, var(--color-blue-soft), var(--color-blue-tint));
}

.tc-body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-body h3 {
    margin: 0;
  font-size: 23.5px;
  font-weight: 800;
  color: var(--color-blue-deep);
  line-height: 1.3;
}

.tc-body .role {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-green-deep);
    letter-spacing: 0.02em;
    line-height: 1;
}

.tc-body .years-experience {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 8px 0 0 0;
}

.tc-body p {
   margin: 20px 0 0;
  font-size: var(--font-size-18px);
  color: #4a4f57;
}

.tc-link {
    display: inline-block;
    margin-top: 14px;
    font-size: var(--font-size-18px);
    font-weight: 700;
    color: var(--color-blue);
    transition: color 0.2s ease;
}

.team-card:hover .tc-link {
    color: var(--color-green-deep);
}

.hide_short-bio .tc-body .short_bio{
    display: none !important;
}
.hide_read_bio-link .team-card .team-card-flink,
.hide_read_bio-link .team-card .tc-link{
    display: none !important;
}

/*================================*/
@media (max-width: 820px) {
    .team-grid,
    .team-grid[data-count="1"],
    .team-grid[data-count="2"],
    .team-grid[data-count="4"],
    .team-grid[data-count="5"],
    .team-grid[data-count="6"] {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .tc-body{
        padding: 25px 20px;
    }
    .tc-body p{
        margin: 15px 0 0;
    }
}
