﻿.courses {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0 120px !important;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    min-height: calc(100vh - 400px);
}

.section_title_container {
    margin-bottom: 60px;
    position: relative;
}

.lecture-list-hover {
    color: #0f172a;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

    .lecture-list-hover::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #0077ff, #6c47ff);
        border-radius: 4px;
    }

    .lecture-list-hover:hover {
        color: deepskyblue;
    }

.section_subtitle p {
    font-size: 16.5px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}


.lecturers-grid-wrapper {
    width: 100%;
    margin-top: -21px;
}

.lecturers-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1137px;
    margin: 0 auto;
}

.lecturer-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    gap: 28px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
    text-align: left;
}

    .lecturer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }

.lecturer-photo-container {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s, border-color 0.3s;
}

.lecturer-card:hover .lecturer-photo-container {
    transform: scale(1.03);
    border-color: #e2e8f0;
}

.lecturer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
    background: #f8fafc;
    cursor: pointer;
}

.lecturer-info-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lecturer-header {
    margin-bottom: 8px;
}

.lecturer-name {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin: 0 0 6px;
    display: inline-block;
    transition: color 0.2s;
}

    .lecturer-name:hover {
        color: #0077ff;
        text-decoration: none;
    }

.lecturer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    margin-top: 4px;
}

.clinic-name-label, .clinic-address-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.clinic-name-label {
    color: #1e3a8a;
}

.clinic-address-label {
    color: #475569;
}

.clinic-icon {
    color: #3b82f6;
    flex-shrink: 0;
}

/*.lecturer-bio {
            font-size: 14.5px;
            color: #475569;
            line-height: 1.6;
            margin-bottom: 16px;
        }
*/
.lecturer-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background-color: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

    .btn-read-more:hover {
        background-color: #0077ff;
        color: #ffffff;
        transform: translateX(2px);
        text-decoration: none;
    }

    .btn-read-more svg {
        transition: transform 0.2s;
        stroke: currentColor;
    }

    .btn-read-more:hover svg {
        transform: translateX(3px);
    }

.no-data-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.no-data-icon {
    color: #cbd5e1;
    margin-bottom: 8px;
}

.no-data-card label {
    font-size: 16px;
    font-weight: 600;
    color: #64748b !important;
}

/* Main container */
.lecturer-bio,
.description-content {
    width: 100%;
    max-width: 100%;
    color: #000 !important;
    line-height: 1.8;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

    /* All HTML elements inside */
    .lecturer-bio *,
    .description-content * {
        color: #000 !important;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal !important;
        box-sizing: border-box;
    }

    /* Paragraphs */
    .lecturer-bio p,
    .description-content p {
        margin-bottom: 10px;
        line-height: 1.8;
    }

    /* Images */
    .lecturer-bio img,
    .description-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Tables */
    .lecturer-bio table,
    .description-content table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
    }

    /* Long URLs or single words */
    .lecturer-bio a,
    .description-content a,
    .lecturer-bio span,
    .description-content span {
        word-break: break-word;
    }

    /* PRE and CODE tags */
    .lecturer-bio pre,
    .description-content pre,
    .lecturer-bio code,
    .description-content code {
        white-space: pre-wrap !important;
        word-break: break-word;
        overflow-x: auto;
    }


@media (max-width: 640px) {
    .lecturer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }

    .courses {
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        padding: 41px 0 120px !important;
        font-family: 'Outfit', 'Segoe UI', sans-serif;
        min-height: calc(100vh - 400px);
    }

    .lecturer-photo-container {
        width: 120px;
        height: 120px;
    }

    .lecturer-meta {
        justify-content: center;
    }

    .lecturer-footer {
        justify-content: center;
    }
}
