/* Apply Border Box model */
.borna-team-member-single,
.borna-team-member-single *,
.borna-team-member-single *::before,
.borna-team-member-single *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Enable Container Query context */
.borna-team-member-single {
    container-type: inline-size;
    width: 100%;
    max-width: 100%;
}

.borna-team-member-single__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    text-align: center;
}

/* CTA Headline Styles - H3 Global inherits */
.borna-team-member-single__cta {
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    margin: 0 0 14px 0;
    color: #ef8118; /* Theme Color 1 */
}

/* Dynamic Responsive Compact Blob Portrait Shape */
.borna-team-member-single__portrait {
    position: relative;
    width: min(55%, 210px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    overflow: hidden;
    /* Soft, modern asymmetrical blob shape */
    border-radius: 60% 40% 50% 50% / 40% 55% 45% 60%;
    background: #f7f7f7;
    transition: border-radius 0.4s ease-in-out, transform 0.3s ease;
}

.borna-team-member-single__portrait:hover {
    border-radius: 50% 50% 40% 60% / 55% 40% 60% 45%;
    transform: scale(1.02);
}

.borna-team-member-single__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Details & Spacing */
.borna-team-member-single__details {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.borna-team-member-single__name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 3px 0;
    color: #ef8118; /* Theme Color 1 */
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.borna-team-member-single__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 7px 0;
    color: #333333; /* Regular text color */
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Contact block styles */
.borna-team-member-single__contacts {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
}

.borna-team-member-single__phone,
.borna-team-member-single__email {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    color: #ef8118; /* Theme Color 1 */
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, opacity 0.2s ease;
    outline: none;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}

.borna-team-member-single__phone {
    margin: 0 0 3px 0;
}

.borna-team-member-single__email {
    margin: 0;
}

.borna-team-member-single__phone:hover,
.borna-team-member-single__email:hover {
    border-bottom-color: #ef8118;
    opacity: 0.85;
}

.borna-team-member-single__phone:focus-visible,
.borna-team-member-single__email:focus-visible {
    outline: 2px dashed #ef8118;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Container Query Breakpoints --- */

@container (max-width: 460px) {
    .borna-team-member-single__portrait {
        width: min(60%, 190px);
    }
    .borna-team-member-single__name {
        font-size: 24px;
    }
    .borna-team-member-single__title {
        font-size: 18px;
    }
    .borna-team-member-single__phone,
    .borna-team-member-single__email {
        font-size: 17px;
    }
}

@container (max-width: 340px) {
    .borna-team-member-single__name {
        font-size: 22px;
    }
    .borna-team-member-single__title {
        font-size: 16px;
    }
    .borna-team-member-single__phone,
    .borna-team-member-single__email {
        font-size: 16px;
    }
}
