/* Teams Styles */

/* ── Section ─────────────────────────────────────── */
.page-section { 
    margin-top: 130px; 
    padding: 100px 0; 
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

#team.page-section {
    background: #f1f5f9;
    padding: 80px 0;
}

#team .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* ── Header ──────────────────────────────────────── */
.team-header {
    margin-bottom: 50px;
}

.team-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-header p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ── Grid Layout ─────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

/* ── Card ────────────────────────────────────────── */
.team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 18px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* ── Photo — passport style ──────────────────────── */
.team-photo-wrap {
    width: 100px;
    height: 110px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ── Info ────────────────────────────────────────── */
.team-info {
    width: 100%;
    text-align: center;
}

.team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.team-designation {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-know-more {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.team-know-more:hover {
    color: var(--accent-color);
}

/* ── Team Detail Section ─────────────────────────── */
.team-detail-section {
    background: #f1f5f9;
    padding: 40px 0 80px;
    min-height: 100vh;
}

.td-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.td-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent-color);
    border: none;
    padding: 10px 22px;
    margin-bottom: 28px;
    text-decoration: none;
    transition: background 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.td-back-btn:hover {
    background: #e65100;
    color: white;
}

.td-card {
    background: white;
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 500px;
    border: 1px solid #e2e8f0;
}

.td-photo-col {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 40px;
}

.td-photo {
    width: 190px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.td-info-col {
    padding: 45px 55px;
}

.td-role {
    font-family: 'Oswald', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.td-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    line-height: 1;
}

.td-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.td-stat-box {
    background: var(--primary-dark);
    color: white;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.td-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.td-stat-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.td-bio-section {
    margin-top: 5px;
}

.td-bio-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: inline-block;
}

.td-bio-underline {
    width: 38px;
    height: 2.5px;
    background: var(--accent-color);
    margin-bottom: 22px;
}

.td-bio-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.93rem;
    line-height: 1.85;
    color: var(--text-dark);
    text-align: justify;
}

.td-bio-text p { 
    margin-bottom: 1rem; 
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #team .container {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    .td-card {
        grid-template-columns: 1fr;
    }
    .td-photo-col {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 36px;
    }
    .td-info-col {
        padding: 36px;
    }
    .td-name { 
        font-size: 2rem; 
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    #team .container {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .td-container { 
        padding: 0 16px; 
    }
    .td-stats-row { 
        grid-template-columns: 1fr; 
    }
    .td-name { 
        font-size: 1.7rem; 
    }
    .td-info-col { 
        padding: 24px 18px; 
    }
}

@media (max-width: 400px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
