/* ============================================
   Diagnozy 07 - Opiekun Diagnostów
   ============================================ */

.opiekun-section {
    width: 100%;
    padding: 1rem 0;
}

.opiekun-container {
    max-width: 84.3rem;
    margin: 0 auto;
    padding: 0 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
}

/* Header */
.opiekun-header {
    width: 100%;
    max-width: 62.4rem;
    text-align: center;
}

.opiekun-tytul-sekcji {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 2rem !important;
    line-height: 3.2rem !important;
    letter-spacing: -0.02rem !important;
    color: #1f1f1f !important;
    text-align: center !important;
}

/* Card */
.opiekun-card {
    background: #f7f8fb;
    border-radius: 2rem;
    padding: 1.2rem;
    max-width: 62.4rem;
    width: 100%;
}

.opiekun-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.opiekun-profil-top {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.opiekun-zdjecie {
    width: 13.6rem;
    height: 13.6rem;
    border-radius: 99.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

.opiekun-zdjecie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.opiekun-dane {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.opiekun-tytul {
    font-family: 'Poppins', sans-serif;
    font-weight: 400 !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
    color: #3b3d45 !important;
    margin:0 !important;
}

.opiekun-imie {
    font-family: 'Poppins', sans-serif;
    font-weight: 600 !important;
    font-size: 1.8rem !important;
    line-height: 2.4rem !important;
    color: #000000 !important;
    margin:0 !important;
}

.opiekun-opis {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.opiekun-opis p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #3b3d45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.opiekun-bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-primary, #199ACC) !important;
    background: none !important;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.opiekun-bio-toggle:hover {
    opacity: 0.75;
    background: none !important;
}

.opiekun-bio-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.opiekun-bio-toggle[aria-expanded="true"] .opiekun-bio-toggle-icon {
    transform: rotate(180deg);
}

.opiekun-bio-expanded {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.opiekun-bio-expanded-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #3b3d45;
}

.opiekun-bio-expanded-text p {
    margin: 0 0 1.6rem 0;
}

.opiekun-bio-expanded-text p:last-child {
    margin-bottom: 0;
}

.opiekun-bio-profile-link-wrap {
    display: flex;
}

.opiekun-bio-profile-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-primary, #199ACC) !important;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    transition: opacity 0.2s ease;
}

.opiekun-bio-profile-link:hover {
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
    .opiekun-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .opiekun-profil-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .opiekun-zdjecie {
        width: 10rem;
        height: 10rem;
    }
    .opiekun-tytul-sekcji {
        font-size: 1.8rem;
    }
}
