﻿
.team {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 98px 0 100px !important;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    min-height: calc(100vh - 400px);
}

.profile-layout-wrapper {
    max-width: 1050px;
    margin: 0 auto;
}

.profile-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    letter-spacing: -0.5px;
    text-align: left;
}

.title-separator {
    color: #cbd5e1;
    font-weight: 300;
}

.lecturer-hover {
    color: #0077ff;
    font-weight: 800;
    cursor: default;
}

.profile-buttons-area {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #243474;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 119, 255, 0.2);
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

    .btn-primary-action:hover {
        opacity: 0.95;
        transform: translateY(-1px);
        box-shadow: 0 6px 12px -2px rgba(0, 119, 255, 0.3);
    }

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .btn-secondary-action:hover {
        background: #f8fafc;
        border-color: #94a3b8;
        color: #0f172a !important;
    }

.profile-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 0 0 36px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 2.8fr 1fr;
    gap: 36px;
    align-items: start;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 36px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    text-align: left;
}

.profile-main-info {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
}

.profile-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    background: #f8fafc;
    height: fit-content;
}

.profile-avatar {
    width: 100%;
    height: auto;
    display: block;
}

.profile-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-section-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-block-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 6px;
}

.profile-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .profile-details-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

.detail-icon {
    color: #3b82f6;
    margin-top: 3px;
    flex-shrink: 0;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    display: block;
    font-weight: 600;
    margin-bottom: 1px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: break-word;
}

.clinic-details-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clinic-info-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
}

.clinic-info-phone, .clinic-info-address {
    font-size: 14px;
    color: #334155;
    line-height: 1.4;
}

.clinic-sub-label {
    font-weight: 600;
    color: #64748b;
}

.profile-biography {
    border-top: 1px solid #f1f5f9;
    padding-top: 28px;
}

.bio-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    position: relative;
    display: inline-block;
}

    .bio-title::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 32px;
        height: 3px;
        background: #0077ff;
        border-radius: 2px;
    }

.bio-content {
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
}

.profile-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
    text-align: left;
}

.widget-title {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f172a;
    margin: 0 0 16px;
    border-bottom: 2px solid #0077ff;
    padding-bottom: 8px;
    display: inline-block;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

    .widget-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }


.bio-content {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

    .bio-content pre {
        white-space: pre-wrap !important;
        font-family: inherit !important;
        margin: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

.item-date {
    font-size: 11px;
    font-weight: 600;
    color: #0077ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

    .item-link:hover {
        color: #0077ff;
        text-decoration: none;
    }

.sidebar-widget-dynamic {
    /* Inherit dynamic wrappers */
}

    .sidebar-widget-dynamic:not(:empty) {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        padding: 24px;
        box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
        text-align: left;
    }

.processbar1 {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 48px 0 60px !important;
    }

    .profile-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .profile-image-wrapper {
        width: 180px;
    }

    .profile-details-list li {
        justify-content: center;
    }

    .clinic-details-card {
        text-align: center;
    }

    .profile-block-title {
        justify-content: center;
    }
}

.profile-main-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    line-height: 1.4;
}

.title-separator {
    margin: 0 4px;
}

#lblLecturerName,
.lecturer-hover {
    word-break: break-word;
}

@media (max-width: 768px) {
    .profile-main-title {
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

        .profile-main-title .title-separator {
            margin: 0 0px;
        }
}


@media (max-width: 576px) {
    .profile-main-title {
        font-size: 22px;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: row;
        width: 100%;
        padding-left: 87px;
    }

    .title-separator {
        display: none;
    }


    .profile-buttons-area {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

        .profile-buttons-area .btn-primary-action,
        .profile-buttons-area .btn-secondary-action {
            width: 100%;
        }

    .profile-main-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }



    .profile-card {
        padding: 24px;
    }
}
