/* ── Profile Page Background ─────────────────────────────── */
body.portoadmin-profile-page {
    background:
        radial-gradient(circle at top left, rgba(167, 104, 206, 0.16), transparent 24%),
        linear-gradient(180deg, #fcf8f2 0%, #f6f7fb 42%, #eef2f8 100%);
}

.profile-main {
    padding-bottom: 56px;
}

/* ── Hero Section ────────────────────────────────────────── */
.profile-hero-section {
    padding: 40px 0 28px;
}

.profile-hero-card {
    background:
        radial-gradient(circle at top right, rgba(199, 138, 230, 0.18), transparent 28%),
        linear-gradient(135deg, #4f176c 0%, #7b3fa0 56%, #b06ecf 100%);
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    box-shadow: 0 8px 32px rgba(79, 23, 108, 0.22);
    color: #fff;
}

/* ── Avatar ──────────────────────────────────────────────── */
.profile-avatar-wrap {
    flex-shrink: 0;
}

.profile-avatar-wrap .profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    display: block;
}

.profile-avatar-wrap .profile-text-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* ── Hero Info ───────────────────────────────────────────── */
.profile-hero-info {
    flex: 1;
    min-width: 0;
}

.profile-role-badge-wrap {
    margin-bottom: 8px;
}

.profile-role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
}

.profile-role-badge--instructor {
    background: rgba(255, 216, 110, 0.22);
    color: #ffd86e;
    border: 1px solid rgba(255, 216, 110, 0.45);
}

.profile-role-badge--student {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.profile-name {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.profile-job-title {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 10px;
}

/* ── Rating Row ──────────────────────────────────────────── */
.profile-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.profile-rating-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffd86e;
}

/* ── Stats Row ───────────────────────────────────────────── */
.profile-stats-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd86e;
    line-height: 1.1;
}

.profile-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Social Row ──────────────────────────────────────────── */
.profile-social-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.profile-social-link:hover {
    background: rgba(255, 216, 110, 0.28);
    color: #ffd86e;
    border-color: rgba(255, 216, 110, 0.5);
}

/* ── Body Section ────────────────────────────────────────── */
.profile-body-section {
    padding-top: 12px;
}

.profile-section-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(100, 30, 140, 0.07);
}

.profile-section-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4f176c;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e8f8;
    letter-spacing: 0.01em;
}

/* ── About Text ──────────────────────────────────────────── */
.profile-about-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
}

/* ── Courses Grid ────────────────────────────────────────── */
.profile-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-course-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ede8f5;
    background: #faf8fd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(100, 30, 140, 0.13);
    text-decoration: none;
}

.profile-course-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e0f5;
}

.profile-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-course-card:hover .profile-course-thumb img {
    transform: scale(1.04);
}

.profile-course-body {
    padding: 14px 16px 16px;
}

.profile-course-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #243043;
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-course-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7b3fa0;
}

.profile-course-price--free {
    color: #22a06b;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .profile-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 24px;
    }

    .profile-stats-row {
        justify-content: center;
    }

    .profile-social-row {
        justify-content: center;
    }

    .profile-role-badge-wrap {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .profile-courses-grid {
        grid-template-columns: 1fr;
    }

    .profile-section-card {
        padding: 20px 18px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-hero-card {
        padding: 22px 16px;
    }
}
