.team-detail-section {
    background: #f1f5f9;
    padding: calc(var(--header-height-large, 90px) + 40px) 0 80px;
    min-height: 80vh;
}

body.scrolled-body .team-detail-section {
    padding-top: calc(var(--header-height-small, 70px) + 40px);
}

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

/* Back Button */
.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;
}

/* Card */
.td-card {
    background: white;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 500px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

/* Left Photo Column */
.td-photo-col {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 40px;
    gap: 14px;
}

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

/* Name in Left Column */
.td-name-left {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: center;
    margin: 8px 0 0;
    word-break: break-word;
}

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

.td-role-right {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    margin: 0 0 24px;
}

/* Experience Text in Left Column */
.td-experience-text {
    background: var(--primary-dark);
    color: white;
    padding: 14px 18px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 20px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

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

.td-exp-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Right Info Column */
.td-info-col {
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Name */
.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;
}

/* Stats */
.td-stats-row {
    display: grid;
    grid-template-columns: 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;
}

/* Biography */
.td-bio-section {
    margin-top: 0;
}

.td-contact-section {
    margin-top: 30px;
}

.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; 
}

.td-contact-section p {
    font-family: 'Lato', sans-serif;
    font-size: 0.93rem;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .td-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-left { font-size: 1.8rem; }
    .td-name { font-size: 2rem; }
}

@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; }
}