/* Team Section */
.team-page {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
}

.team-header {
    text-align: center;
    margin-bottom: 5rem;
}

.team-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* --- THE NEW LAYOUT BITS --- */

/* Parent container for Image + Name */
.card-top {
    display: flex;
    align-items: center; 
    gap: 25px;
    margin-bottom: 1.5rem;
}

.header-details h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-main);
}

.image-box {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0; /* Keeps image circular/square */
    margin-bottom: 0; /* Removed old margin */
}

.image-box img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* --- REST OF STYLING --- */

.profile-card {
    background: var(--bg-panel);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--glass);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.role-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

.profession-tag {
    display: inline-block;
    background: rgba(255, 45, 85, 0.1);
    color: var(--accent-pink);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 8px;
}

.bio {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Icons Fix */
.social-grid {
    display: flex;
    gap: 15px;
}

.social-grid a {
    color: var(--text-dim);
    font-size: 1.3rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-grid a:hover {
    color: var(--text-main);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .team-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .card-top {
        flex-direction: column;
        align-items: flex-start;
    }
}