/* Profile Page Styles */
.profile-breadcrumb-bar {
    margin-top: 80px;
    padding: 12px 5%;
    background: #fdf8f5;
    border-bottom: 1px solid #f0e8e0;
}
.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
    max-width: 900px;
    margin: 0 auto;
}
.profile-breadcrumb a { color: var(--primary-color); text-decoration: none; }
.profile-breadcrumb a:hover { text-decoration: underline; }
.profile-breadcrumb .sep { opacity: 0.5; }
.profile-breadcrumb .current { color: var(--secondary-color); font-weight: 600; }

.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 5% 80px;
}

/* Hero card */
.profile-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}
@media (max-width: 700px) {
    .profile-hero { grid-template-columns: 1fr; gap: 30px; }
}
.profile-photo-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    aspect-ratio: 3/4;
    background: #f3ede8;
}
.profile-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.profile-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(142,68,173,0.35);
}
.profile-info { padding-top: 10px; }
.profile-eyebrow {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary-color); margin-bottom: 10px;
}
.profile-name {
    font-family: var(--font-heading);
    font-size: 2.4rem; font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 6px; line-height: 1.2;
}
.profile-role {
    font-size: 1rem; font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.profile-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.profile-tag {
    background: #f3eaf9; color: var(--primary-color);
    font-size: 0.78rem; font-weight: 600;
    padding: 5px 14px; border-radius: 20px;
    border: 1px solid #e8d5f5;
}
.profile-cta-group {
    display: flex; gap: 12px; flex-wrap: wrap;
}

/* Bio section */
.profile-bio {
    background: #fdf8f5;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}
.profile-bio h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.profile-bio p {
    font-size: 0.97rem;
    color: var(--text-color);
    line-height: 1.85;
    margin-bottom: 14px;
}
.profile-bio p:last-child { margin-bottom: 0; }

/* Bottom CTA */
.profile-cta-section {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f9f0ff 0%, #fdf8f5 100%);
    border-radius: 16px;
    border: 1px solid #e8d5f5;
}
.profile-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.profile-cta-section p {
    color: #888; margin-bottom: 24px; font-style: italic;
}

/* =============================================
   Fix A – Force header visibility on profile pages
   (spa.js is not loaded → .scrolled class never added)
   ============================================= */
#main-header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
#main-header .top-utility {
    color: var(--text-color);
    text-shadow: none;
}
#main-header .top-utility .hotline {
    opacity: 1;
    color: var(--text-color);
}
#main-header .top-utility .hotline:hover {
    color: var(--primary-color);
}
#main-header .top-utility .lang-link {
    color: var(--text-color);
    opacity: 0.7;
}
#main-header .top-utility .lang-link:hover {
    opacity: 1;
    color: var(--primary-color);
}
#main-header .top-utility .lang-link.active {
    opacity: 1;
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}
#main-header .brand-overlay img {
    filter: none;
}

/* =============================================
   Fix B – Graduation section styles
   ============================================= */
.profile-graduation {
    background: #fdf8f5;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}
.profile-graduation h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 12px;
}
.graduation-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.graduation-photo-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.graduation-photo-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(142, 68, 173, 0.15);
}
.graduation-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =============================================
   Fix C – Mobile responsive enhancements
   ============================================= */
@media (max-width: 600px) {
    .profile-breadcrumb-bar {
        margin-top: 70px;
        padding: 10px 4%;
    }
    .profile-wrapper {
        padding: 30px 4% 50px;
    }
    .profile-name {
        font-size: 1.8rem;
    }
    .profile-role {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    .profile-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    .profile-bio {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    .profile-bio h2 {
        font-size: 1.25rem;
    }
    .profile-bio p {
        font-size: 0.92rem;
    }
    .profile-graduation {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    .profile-graduation h2 {
        font-size: 1.25rem;
    }
    .graduation-desc {
        font-size: 0.88rem;
    }
    .profile-cta-section {
        padding: 30px 20px;
    }
    .profile-cta-section h2 {
        font-size: 1.4rem;
    }
    .profile-cta-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   Profile Reviews Section
   ============================================= */
.profile-reviews {
    margin-bottom: 40px;
}
.profile-reviews h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 6px;
}
.profile-reviews-summary {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.profile-reviews-stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; }
.profile-reviews-count { font-size: 13px; color: #888; }
.profile-reviews-carousel {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-behavior: smooth;
    padding: 8px 2px 12px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.profile-reviews-carousel::-webkit-scrollbar { display: none; }
.profile-review-card {
    flex: 0 0 280px; min-width: 280px;
    background: #fff; border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 14px rgba(123,45,142,0.07);
    border: 1px solid rgba(123,45,142,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
    min-height: 180px;
}
.profile-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.profile-review-stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.profile-review-text { font-size: 13.5px; line-height: 1.65; color: #555; flex: 1; margin-bottom: 14px; font-style: italic; }
.profile-review-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #f0ecf5; padding-top: 10px;
}
.profile-review-author { font-weight: 600; color: #2d1b3e; font-size: 12px; }
.profile-review-service { font-size: 11px; color: #aaa; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-reviews-link {
    display: inline-block; margin-top: 16px;
    color: var(--primary-color); font-size: 13px;
    font-weight: 500; text-decoration: none;
}
.profile-reviews-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .profile-review-card { flex: 0 0 85vw; min-width: 85vw; }
    .profile-reviews h2 { font-size: 1.25rem; }
}
