/* ==========================
   BASE
========================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    background: #f1f5f9;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ==========================
   REVEAL ANIMATIONS
========================== */

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease .12s;
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1; transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-left, .reveal-right { opacity:1; transform:none; transition:none; }
}

/* ==========================
   WRAPPER
========================== */

.td-wrapper {
    max-width: 1060px;
    margin: 0 auto;
    padding: 32px 18px 70px;
}

/* ==========================
   HERO BANNER (REMOVED)
========================== */

.td-hero {
    display: none;
}

/* ==========================
   PROFILE CARD
========================== */

.td-profile-card {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 24px;
    padding: 36px 32px 28px;
    margin: 0 0 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 32px rgba(15,23,42,.08);
    text-align: center;
    animation: cardIn .6s cubic-bezier(.22,1,.36,1) .1s both;
}

@keyframes cardIn {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Avatar */
.td-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
    margin-top: 0;
}

.td-avatar {
    width: 210px;
    height: 210px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 36px rgba(15,23,42,.12), 0 0 0 1px #e2e8f0;
    display: block;
    animation: popIn .55s cubic-bezier(.34,1.56,.64,1) .25s both;
    transition: transform .25s ease, box-shadow .25s ease;
}

.td-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15,23,42,.16), 0 0 0 1px #cbd5e1;
}

.td-avatar-ph {
    width: 210px;
    height: 210px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes popIn {
    from { opacity:0; transform:scale(.85); }
    to   { opacity:1; transform:scale(1); }
}

.avatar-ring-spin {
    display: none;
}

/* Name */
.td-name {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.5px;
    margin-bottom: 8px;
    animation: fadeUp .45s ease .35s both;
}

/* Designation pill */
.td-designation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    animation: fadeUp .45s ease .42s both;
}

/* Meta chips */
.td-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .45s ease .48s both;
}

.td-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    transition: .2s;
}

.td-chip:hover { background: #f1f5f9; border-color: #bfdbfe; color: #2563eb; }

@keyframes fadeUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ==========================
   BODY GRID
========================== */

.td-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ==========================
   SHARED CARD
========================== */

.td-card {
    background: white;
    border-radius: 18px;
    padding: 24px 26px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    margin-bottom: 16px;
}

.td-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.td-card-title svg { color: #2563eb; }

/* Description */
.td-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
}

/* Tags */
.td-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.td-tag {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 10px;
    transition: .2s;
    cursor: default;
}

.td-tag:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Share row */
.td-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #334155;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: .2s;
}

.share-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

/* ==========================
   SIDEBAR
========================== */

.td-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Info rows */
.td-info-rows { display:flex; flex-direction:column; gap:0; }

.td-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
    transition: .2s;
}

.td-info-row:last-child { border-bottom: none; }
.td-info-row:hover { transform: translateX(4px); }

.td-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    transition: .25s;
}

.td-info-row:hover .td-info-icon {
    background: #2563eb;
    color: white;
}

.info-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.info-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Lab card */
.td-lab-card {
    position: relative;
    background: white;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15,23,42,.05);
    padding: 24px 22px;
    text-align: center;
    color: #0f172a;
    overflow: hidden;
    margin-bottom: 14px;
}

.lab-card-rings { display: none; }

.lab-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #2563eb;
    position: relative;
}

.lab-icon svg {
    stroke: #2563eb;
}

.td-lab-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    position: relative;
}

.td-lab-card p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    position: relative;
}

.lab-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
    position: relative;
}

.lab-card-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* Back button */
.td-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    transition: .25s;
}

.td-back-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,.12);
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .td-wrapper {
        padding: 20px 14px 60px;
    }

    .td-hero { display: none; }

    .td-profile-card {
        margin: 0 0 20px;
        padding: 28px 18px 24px;
        border-radius: 18px;
    }

    .td-avatar {
        width: 175px;
        height: 175px;
        border-radius: 16px;
        border-width: 4px;
    }

    .td-avatar-ph {
        width: 175px;
        height: 175px;
        border-radius: 16px;
    }

    .td-avatar-wrap {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .td-name { font-size: 22px; }

    .td-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .td-sidebar { position: static; }

    .td-card { padding: 18px 14px; border-radius: 14px; }
}