/* ==========================================
   MANAGEMENT DETAIL PAGE STYLES
   ========================================== */

/* Reset untuk body */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Profile Section - Background Abu-abu */
.profile-section {
    width: 100%;
    background-color: #f5f5f4;
    padding: 60px 0 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.profile-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: flex-end;
    gap: 80px;
    width: 100%;
}

/* =============================================
   FOTO: pakai aspect-ratio 3:4 (1200x1600px)
   Tidak ada fixed height, tidak ada cropping
   ============================================= */
.profile-image-wrapper {
    flex-shrink: 0;
    width: 300px;
    /* Aspect ratio 3:4 sesuai ukuran foto 1200x1600 */
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    /* contain = tampilkan full foto tanpa potong */
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.profile-position {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
    margin: 0;
    display: block;
}

.profile-name {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: #71717a;
    margin: 0;
    display: block;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 28px;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 8px;
}

.back-button:hover {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    transform: translateY(-1px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Biography Section - Background Putih */
.biography-section {
    width: 100%;
    min-height: 300px;
    padding: 80px 0 120px 0;
    background-color: white;
}

.biography-container {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 2rem;
}

.biography-text {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #27272a;
    margin: 0;
    text-align: justify;
    max-width: 100%;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .profile-container {
        gap: 40px;
        padding: 0 2rem;
    }

    .biography-container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 40px 0 0 0;
        margin-top: 60px;
        align-items: flex-end;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
        gap: 24px;
        align-items: center;
    }

    /* Di mobile foto lebih kecil tapi tetap full tanpa crop */
    .profile-image-wrapper {
        width: 220px;
        aspect-ratio: 3 / 4;
        justify-content: center;
        overflow: hidden;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    .profile-info {
        align-items: center;
        padding-bottom: 32px;
    }

    .profile-position {
        font-size: 28px;
    }

    .profile-name {
        font-size: 20px;
    }

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

    .biography-container {
        padding: 0 1rem;
    }

    .biography-text {
        font-size: 15px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 30px 0 0 0;
        margin-top: 60px;
        align-items: flex-end;
    }

    .profile-container {
        padding: 0 1rem;
        gap: 20px;
    }

    /* Foto lebih kecil lagi di HP kecil, tapi tetap full */
    .profile-image-wrapper {
        width: 180px;
        aspect-ratio: 3 / 4;
        justify-content: center;
        overflow: hidden;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    .profile-position {
        font-size: 24px;
    }

    .profile-name {
        font-size: 18px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 20px;
    }

    .biography-section {
        padding: 40px 0 60px 0;
    }

    .biography-container {
        padding: 0 1rem;
    }

    .biography-text {
        font-size: 14px;
        line-height: 1.6;
    }
}
