﻿* ===== Profile page ===== */

.main {
    margin: 50px 10px;
}

.profile-page {
    padding: 48px 20px 72px;
    background: #ffffff;
}

.profile-wrap {
    max-width: 980px;
    margin: 0 auto;
}

/* Wide photo banner */
.profile-photo {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #eef0f2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

    /* Show the WHOLE image at its real shape - never crop */
    .profile-photo img {
        width: auto !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain !important;
        display: block;
    }

/* Name row: name + role on left, social icons on right */
.profile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-top: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-name {
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #0b344f;
    line-height: 1.05;
    margin: 0;
}

.profile-role {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-style: italic;
    color: #0b344f;
    margin: 6px 0 0;
}

.profile-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .profile-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: #9ca3af;
        font-size: 15px;
        border: 1px solid #e5e7eb;
        text-decoration: none;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

        .profile-social a:hover {
            color: #2563eb;
            border-color: #2563eb;
        }

/* Bio */
.profile-bio {
    margin-top: 24px;
}

    .profile-bio p {
        font-family: 'Inter', Arial, sans-serif;
        font-size: 15px;
        line-height: 1.8;
        color: #4b5563;
        margin: 0 0 16px;
    }

/* Mobile */
@media (max-width: 767px) {
    .profile-page {
        padding: 24px 16px 48px;
    }

    .profile-photo {
        aspect-ratio: 4 / 3;
    }

    .profile-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-name {
        font-size: 32px;
    }
}
