.instructor-profile-page {
    --profile-accent: var(--color-1, #109fc6);
    --profile-dark: #192335;
    --profile-muted: #667085;
    --profile-border: #e7eef1;
    background: #fff;
    color: var(--profile-dark);
    padding-bottom: 80px;
}

.instructor-profile-page .instructor-breadcrumb {
    padding: 28px 0 20px;
}

.instructor-profile-page .breadcrumb {
    margin-bottom: 0;
}

.instructor-profile-page .breadcrumb-item,
.instructor-profile-page .breadcrumb-item a {
    color: var(--profile-muted);
    font-size: 14px;
}

.instructor-profile-page .breadcrumb-item.active {
    color: var(--profile-dark);
}

.instructor-profile-page .profile-cover {
    background: #eef8fb;
    border-radius: 18px;
    height: 300px;
    overflow: hidden;
}

.instructor-profile-page .profile-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.instructor-profile-page .profile-cover-placeholder {
    background:
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, .45) 0 7%, transparent 7.5%),
        radial-gradient(circle at 74% 72%, rgba(255, 255, 255, .28) 0 13%, transparent 13.5%),
        linear-gradient(135deg, #e9f8fc 0%, #bfeaf4 52%, #7fd1e3 100%);
    height: 100%;
    position: relative;
    width: 100%;
}

.instructor-profile-page .profile-cover-placeholder::after {
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    content: "";
    height: 180px;
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
}

.instructor-profile-page .profile-summary {
    align-items: center;
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    display: grid;
    gap: 24px;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    margin: -66px 30px 0;
    padding: 20px 24px;
    position: relative;
    z-index: 2;
}

.instructor-profile-page .profile-avatar {
    height: 148px;
    width: 148px;
}

.instructor-profile-page .profile-avatar .instructor-profile-avatar {
    background: #fff;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(25, 35, 53, .12);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.instructor-profile-page .profile-avatar .instructor-profile-initials {
    align-items: center;
    background: var(--profile-accent);
    color: #fff;
    display: flex;
    font-size: 40px;
    font-weight: 700;
    justify-content: center;
}

.instructor-profile-page .profile-role {
    color: var(--profile-accent);
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.instructor-profile-page .profile-name {
    color: var(--profile-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 9px;
}

.instructor-profile-page .profile-rating {
    align-items: center;
    color: var(--profile-muted);
    display: flex;
    font-size: 14px;
    gap: 7px;
}

.instructor-profile-page .profile-rating .star {
    color: #f4b400;
    font-size: 17px;
    line-height: 1;
}

.instructor-profile-page .profile-rating strong {
    color: var(--profile-dark);
    font-weight: 600;
}

.instructor-profile-page .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.instructor-profile-page .profile-stats.profile-stats-two {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
}

.instructor-profile-page .profile-stat {
    border-left: 1px solid var(--profile-border);
    min-width: 92px;
    padding: 7px 20px;
    text-align: center;
}

.instructor-profile-page .profile-stat strong {
    color: var(--profile-dark);
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.instructor-profile-page .profile-stat span {
    color: var(--profile-muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.instructor-profile-page .profile-content-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
    margin-top: 32px;
}

.instructor-profile-page .profile-content-grid.profile-content-single {
    grid-template-columns: 1fr;
}

.instructor-profile-page .profile-section {
    background: #fff;
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    padding: 26px;
}

.instructor-profile-page .profile-section-title {
    color: var(--profile-dark);
    font-size: 19px;
    font-weight: 650;
    margin: 0 0 16px;
}

.instructor-profile-page .profile-about-text {
    color: #475467;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

.instructor-profile-page .education-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.instructor-profile-page .education-list li {
    color: #475467;
    display: grid;
    font-size: 14px;
    gap: 10px;
    grid-template-columns: 20px minmax(0, 1fr);
    line-height: 1.55;
}

.instructor-profile-page .education-list li::before {
    align-items: center;
    background: rgba(16, 159, 198, .1);
    border-radius: 50%;
    color: var(--profile-accent);
    content: "✓";
    display: flex;
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    margin-top: 1px;
    width: 20px;
}

.instructor-profile-page .profile-media-section,
.instructor-profile-page .instructor-courses-section {
    margin-top: 48px;
}

.instructor-profile-page .content-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.instructor-profile-page .content-heading h2 {
    color: var(--profile-dark);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.instructor-profile-page .media-group + .media-group {
    margin-top: 32px;
}

.instructor-profile-page .media-group-title {
    color: var(--profile-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
}

.instructor-profile-page .gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.instructor-profile-page .gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.instructor-profile-page .gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.instructor-profile-page .gallery-item:hover img {
    transform: scale(1.03);
}

.instructor-profile-page .video-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instructor-profile-page .video-item {
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    overflow: hidden;
}

.instructor-profile-page .video-item video {
    background: #0f172a;
    display: block;
    width: 100%;
}

.instructor-profile-page .video-title {
    color: var(--profile-dark);
    font-size: 13px;
    margin: 0;
    overflow: hidden;
    padding: 12px 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-profile-page .document-list {
    border-top: 1px solid var(--profile-border);
}

.instructor-profile-page .document-item {
    align-items: center;
    border-bottom: 1px solid var(--profile-border);
    color: var(--profile-dark);
    display: flex;
    font-size: 14px;
    gap: 12px;
    padding: 14px 2px;
}

.instructor-profile-page .document-item:hover {
    color: var(--profile-accent);
}

.instructor-profile-page .document-item .document-icon {
    color: var(--profile-accent);
    font-size: 18px;
}

.instructor-profile-page .document-item .document-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-profile-page #instructorCourseList {
    row-gap: 28px;
}

.instructor-profile-page .load-more-wrap {
    margin-top: 32px;
    text-align: center;
}

.instructor-profile-page .load-more-button {
    background: var(--profile-accent);
    border: 1px solid var(--profile-accent);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-height: 46px;
    min-width: 150px;
    padding: 11px 24px;
    transition: filter .2s ease, transform .2s ease;
}

.instructor-profile-page .load-more-button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.instructor-profile-page .load-more-button:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

@media (max-width: 991px) {
    .instructor-profile-page .profile-cover {
        height: 250px;
    }

    .instructor-profile-page .profile-summary {
        grid-template-columns: 124px minmax(0, 1fr);
        margin-left: 18px;
        margin-right: 18px;
    }

    .instructor-profile-page .profile-avatar {
        height: 124px;
        width: 124px;
    }

    .instructor-profile-page .profile-stats {
        grid-column: 1 / -1;
        width: 100%;
    }

    .instructor-profile-page .profile-stat:first-child {
        border-left: 0;
    }

    .instructor-profile-page .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .instructor-profile-page .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .instructor-profile-page {
        padding-bottom: 56px;
    }

    .instructor-profile-page .profile-cover {
        border-radius: 14px;
        height: 190px;
    }

    .instructor-profile-page .profile-summary {
        gap: 14px;
        grid-template-columns: 92px minmax(0, 1fr);
        margin: -42px 10px 0;
        padding: 16px;
    }

    .instructor-profile-page .profile-avatar {
        height: 92px;
        width: 92px;
    }

    .instructor-profile-page .profile-avatar .instructor-profile-initials {
        font-size: 30px;
    }

    .instructor-profile-page .profile-name {
        font-size: 22px;
    }

    .instructor-profile-page .profile-stat {
        min-width: 0;
        padding: 6px 10px;
    }

    .instructor-profile-page .profile-stat strong {
        font-size: 17px;
    }

    .instructor-profile-page .profile-content-grid {
        gap: 16px;
        margin-top: 24px;
    }

    .instructor-profile-page .profile-section {
        border-radius: 12px;
        padding: 20px;
    }

    .instructor-profile-page .profile-media-section,
    .instructor-profile-page .instructor-courses-section {
        margin-top: 38px;
    }

    .instructor-profile-page .content-heading h2 {
        font-size: 21px;
    }

    .instructor-profile-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .instructor-profile-page .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .instructor-profile-page .profile-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .instructor-profile-page .profile-avatar {
        justify-self: center;
    }

    .instructor-profile-page .profile-rating {
        justify-content: center;
    }

    .instructor-profile-page .profile-stats {
        grid-column: auto;
    }

    .instructor-profile-page .profile-stat {
        padding-left: 6px;
        padding-right: 6px;
    }
}
