/* Trang đội ngũ: hero kiểu VinUni CAS + thẻ có notch; màu FIT (--edu-primary, vàng thương hiệu) */

.vin-faculty-page {
    --vin-blue: #004c97;
    --vin-blue-soft: #e8f1f8;
    --vin-text: #1a1a1a;
    --vin-muted: #5c5c5c;
    --vin-border: #e0e0e0;
    --fit-gold: #f4c542;
    --fit-hero-min-h: clamp(320px, 58vh, 720px);
    /* Thẻ giảng viên — tỷ lệ khung ảnh (rộng / cao). Tăng --fit-faculty-visual-ar-h hoặc giảm --fit-faculty-visual-ar-w → khung cao hơn; ngược lại → thấp hơn */
    --fit-faculty-visual-ar-w: 5;
    --fit-faculty-visual-ar-h: 3.5;
    /* Tuỳ chọn: trần cao khung ảnh (vd. min(52vw, 320px)) — để none nếu không dùng */
    --fit-faculty-visual-max-h: none;
    background: #fafafa;
    min-height: 60vh;
}

/* Full-bleed hero (tràn viewport ngang) */
.fit-faculty-hero--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Hero ảnh nền (cấu hình Admin) — kiểu VinUni */
.fit-faculty-hero--photo {
    --fit-hero-min-h: clamp(380px, 72vh, 820px);
    min-height: var(--fit-hero-min-h);
    background: #0f172a;
}

.fit-faculty-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.fit-faculty-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.45) 0%,
        rgba(15, 23, 42, 0.55) 45%,
        rgba(15, 23, 42, 0.72) 100%
    );
    pointer-events: none;
}

.fit-faculty-kicker--on-photo {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fit-faculty-hero-title--on-photo {
    color: #fff !important;
}

.fit-faculty-hero-title--on-photo .fit-faculty-hero-title-line {
    color: #fff !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.fit-faculty-hero-title--on-photo .fit-faculty-hero-title-line--accent {
    color: #fde68a !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.fit-faculty-hero-lead--on-photo {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.fit-faculty-hero-lead--on-photo .fit-faculty-brand {
    color: #fde68a !important;
}

/* Vùng dưới hero: nền ảnh tùy chọn */
.fit-faculty-page-body {
    position: relative;
    background: transparent;
}

.fit-faculty-page-body--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--fit-body-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.14;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .fit-faculty-page-body--bg::before {
        background-attachment: scroll;
    }
}

.fit-faculty-page-body .container {
    position: relative;
    z-index: 1;
}

/* ─── Hero lớn (tham chiếu cas.vinuni.edu.vn đội ngũ) ─── */
.fit-faculty-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--vin-border);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4rem);
    min-height: var(--fit-hero-min-h);
    display: flex;
    align-items: center;
    background: #fff;
}

.fit-faculty-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, rgba(220, 53, 69, 0.06) 0%, transparent 42%),
        linear-gradient(300deg, rgba(244, 197, 66, 0.12) 0%, transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8f9fb 55%, #f1f3f6 100%);
    pointer-events: none;
}

.fit-faculty-hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fit-gold), var(--edu-primary, #dc3545));
    opacity: 0.85;
}

.fit-faculty-hero-inner {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.fit-faculty-hero-inner .fit-faculty-hero-lead {
    margin-left: auto;
    margin-right: auto;
}

.fit-faculty-kicker {
    font-size: clamp(0.7rem, 1.6vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--edu-primary, #dc3545);
    margin-bottom: 0.85rem !important;
}

.fit-faculty-hero-title {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 6.5vw, 3.85rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--vin-text);
    margin: 0 0 1.15rem;
    text-transform: uppercase;
}

.fit-faculty-hero-title-line {
    display: block;
}

.fit-faculty-hero-title-line--accent {
    color: var(--edu-primary, #dc3545);
}

.fit-faculty-hero-lead {
    color: var(--vin-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    max-width: 40rem;
}

.fit-faculty-brand {
    color: var(--edu-primary, #dc3545);
    font-weight: 700;
}

/* Hiệu ứng cuộn: hiện từ dưới lên */
[data-fit-reveal] {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

[data-fit-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-fit-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.vin-faculty-hero:not(.fit-faculty-hero) {
    background: linear-gradient(135deg, #fff 0%, var(--vin-blue-soft) 100%);
    border-bottom: 1px solid var(--vin-border);
    padding: 2.5rem 0 2rem;
}

.vin-faculty-hero:not(.fit-faculty-hero) h1 {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--vin-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.vin-faculty-hero:not(.fit-faculty-hero) .vin-faculty-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vin-blue);
    margin-bottom: 0.5rem;
}

.vin-faculty-hero:not(.fit-faculty-hero) p.lead {
    color: var(--vin-muted);
    font-size: 1rem;
    max-width: 42rem;
    margin-bottom: 0;
}

.vin-faculty-section {
    padding: 2.25rem 0 1rem;
}

.vin-faculty-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vin-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vin-blue);
    display: inline-block;
    min-width: 12rem;
}

.fit-faculty-section-title {
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    min-width: 0;
    display: block;
    width: 100%;
    text-align: center;
    color: var(--vin-text);
}

.fit-faculty-section-title::after {
    content: "";
    display: block;
    width: min(5.5rem, 28vw);
    height: 3px;
    margin-top: 0.7rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--fit-gold), var(--edu-primary, #dc3545));
}

/* Carousel đội ngũ lãnh đạo */
.fit-faculty-leadership {
    padding-top: 2.5rem;
}

/* Tiêu đề carousel lãnh đạo dùng chung .fit-faculty-section-title; chỉ tách màu hai nửa */
.fit-faculty-section-title .fit-faculty-leadership-title-a {
    color: var(--vin-text);
    margin-right: 0.35em;
}

.fit-faculty-section-title .fit-faculty-leadership-title-b {
    color: var(--edu-primary, #dc3545);
}

.fit-faculty-swiper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--edu-primary, #dc3545);
    background: #fff;
    color: var(--edu-primary, #dc3545);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fit-faculty-swiper-btn:hover {
    background: var(--edu-primary, #dc3545);
    color: #fff;
    transform: scale(1.05);
}

.fit-faculty-swiper-btn:focus-visible {
    outline: 2px solid var(--edu-primary, #dc3545);
    outline-offset: 2px;
}

.fit-faculty-swiper-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

.fit-faculty-swiper {
    overflow: hidden;
    padding-bottom: 0.25rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Mỗi slide cao theo nội dung — không kéo bằng slide cao nhất (thẻ carousel = chân dung + chữ vừa đủ) */
.fit-faculty-swiper .swiper-wrapper {
    align-items: flex-start;
}

.fit-faculty-swiper .swiper-slide {
    height: auto;
    align-self: flex-start;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Thẻ carousel: chiều cao = khung ảnh (aspect-ratio) + khối tên/vai trò, không stretch theo hàng */
.fit-faculty-swiper .swiper-slide > .fit-faculty-card {
    width: min(100%, var(--fit-faculty-card-w));
    max-width: var(--fit-faculty-card-w);
    min-width: 0;
    min-height: 0;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    align-self: flex-start;
    flex: 0 0 auto;
}

.fit-faculty-card--carousel {
    height: auto;
}

/* Carousel: khối chữ không giãn để lấp đầy chiều cao slide; border-top như .home-soict-box-body */
.fit-faculty-card--carousel .fit-faculty-card-body {
    padding: 1.1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.fit-faculty-card--carousel h3 {
    font-size: clamp(0.98rem, 1.9vw, 1.2rem);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    transition: color 0.22s ease;
}

.fit-faculty-card--carousel .vin-faculty-role {
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.fit-faculty-card--carousel .vin-faculty-desc {
    font-size: 0.9rem;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/*
 * Lưới nhóm: flex + wrap + căn giữa hàng — 1 hoặc 2 thẻ vẫn nằm giữa (không lệch trái như grid 2/3 cột 1fr).
 */
.vin-faculty-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1rem, 2.2vw, 1.5rem);
    margin-bottom: 2rem;
}

.vin-faculty-grid > .fit-faculty-card {
    flex: 0 1 var(--fit-faculty-card-w);
    width: min(100%, var(--fit-faculty-card-w));
    max-width: var(--fit-faculty-card-w);
    min-width: 0;
}

/* Thẻ: tỷ lệ khung ảnh kế thừa từ .vin-faculty-page (hoặc đặt lại trên .fit-faculty-card); bề ngang --fit-faculty-card-w */
.fit-faculty-card {
    --fit-faculty-card-w: 400px;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    width: min(100%, var(--fit-faculty-card-w));
    max-width: var(--fit-faculty-card-w);
    height: auto;
    min-height: 0;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 12px 28px -8px rgba(220, 53, 69, 0.12);
    transition:
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fit-faculty-card:hover {
    border-color: rgba(220, 53, 69, 0.28);
    box-shadow:
        0 12px 28px -6px rgba(0, 0, 0, 0.12),
        0 20px 48px -12px rgba(220, 53, 69, 0.18);
    transform: translateY(-4px);
}

/* Carousel: đồng bộ với .home-tin-moi-grid.home-tin-moi-grid--cols-3 .home-soict-box.home-soict-news-card */
.fit-faculty-card.fit-faculty-card--carousel {
    border-radius: 0.55rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fit-faculty-card.fit-faculty-card--carousel:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow:
        0 10px 28px rgba(26, 47, 74, 0.15),
        0 2px 6px rgba(220, 53, 69, 0.1);
}

.fit-faculty-card.fit-faculty-card--carousel .vin-faculty-photo {
    transition: transform 0.42s ease;
}

.fit-faculty-card.fit-faculty-card--carousel:hover .vin-faculty-photo {
    transform: scale(1.06);
}

.fit-faculty-card.fit-faculty-card--carousel:hover h3 {
    color: var(--edu-primary, #dc3545);
}

/* Khung chân dung: aspect-ratio = ar-w / ar-h; max-h tùy chọn (ưu tiên khi đặt px/vw) */
.fit-faculty-card-visual {
    position: relative;
    background: linear-gradient(180deg, #eceff3 0%, #d8dde4 100%);
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    aspect-ratio: var(--fit-faculty-visual-ar-w, 5) / var(--fit-faculty-visual-ar-h, 4);
    max-height: var(--fit-faculty-visual-max-h, none);
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.vin-faculty-card:not(.fit-faculty-card) .vin-faculty-photo-wrap {
    margin: -0.25rem -0.5rem 1rem;
    text-align: center;
}

.fit-faculty-card .vin-faculty-photo-wrap {
    position: absolute;
    inset: 0;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.vin-faculty-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--vin-border);
    background: var(--vin-blue-soft);
}

.fit-faculty-card .vin-faculty-photo {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center center;
    border: none;
    border-radius: 0;
    vertical-align: top;
}

.fit-faculty-photo-placeholder {
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.18);
    font-size: clamp(3.5rem, 12vw, 5rem);
}

.fit-faculty-card .fit-faculty-photo-placeholder {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    width: 100%;
    aspect-ratio: unset;
    height: 100%;
    font-size: clamp(2.25rem, 14vw, 3rem);
}

.fit-faculty-notch {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 11px solid #fff;
    z-index: 2;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.04));
}

.fit-faculty-card-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.05rem 0.95rem 1rem;
    background: #fff;
    overflow: hidden;
}

.fit-faculty-more-link {
    color: var(--edu-primary, #dc3545);
    transition: color 0.2s ease;
}

.fit-faculty-card:hover .fit-faculty-more-link {
    color: var(--edu-primary-dark, #bb2d3b);
}

.vin-faculty-card:not(.fit-faculty-card) {
    background: #fff;
    border: 1px solid var(--vin-border);
    border-radius: 4px;
    padding: 1.35rem 1.25rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.vin-faculty-card:not(.fit-faculty-card):hover {
    box-shadow: 0 8px 24px rgba(0, 76, 151, 0.08);
    border-color: #c5d9ec;
}

/* Nội dung nằm trên lớp stretched-link */
.vin-faculty-card.position-relative > .position-relative,
.fit-faculty-card-body .position-relative {
    text-align: center;
    z-index: 1;
}

.vin-faculty-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vin-text);
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.vin-faculty-role {
    font-size: 0.9rem;
    color: var(--vin-blue);
    font-weight: 600;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.fit-faculty-card .vin-faculty-role {
    color: var(--vin-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.fit-faculty-card:not(.fit-faculty-card--carousel) .vin-faculty-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vin-faculty-desc {
    font-size: 0.875rem;
    color: var(--vin-muted);
    line-height: 1.55;
    margin: 0;
}

.vin-faculty-back {
    margin-top: 1.5rem;
}

.vin-faculty-back .btn {
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.875rem;
}

body.theme-dark .vin-faculty-page {
    --vin-text: #f3f4f6;
    --vin-muted: #9ca3af;
    --vin-border: #374151;
    background: #111827;
}

body.theme-dark .vin-faculty-hero:not(.fit-faculty-hero) {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom-color: #374151;
}

body.theme-dark .fit-faculty-hero {
    background: #111827;
    border-bottom-color: #374151;
}

body.theme-dark .fit-faculty-hero-bg {
    background:
        linear-gradient(118deg, rgba(220, 53, 69, 0.12) 0%, transparent 45%),
        linear-gradient(300deg, rgba(244, 197, 66, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

body.theme-dark .fit-faculty-hero-title {
    color: #f9fafb;
}

body.theme-dark .fit-faculty-hero-lead {
    color: #9ca3af;
}

body.theme-dark .fit-faculty-brand {
    color: #f87171;
}

body.theme-dark .fit-faculty-card-visual {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
}

body.theme-dark .fit-faculty-notch {
    border-top-color: #1f2937;
}

body.theme-dark .fit-faculty-card-body {
    background: #1f2937;
}

body.theme-dark .vin-faculty-card:not(.fit-faculty-card) {
    background: #1f2937;
    border-color: #374151;
}

body.theme-dark .vin-faculty-card:not(.fit-faculty-card):hover {
    border-color: #4b5563;
}

body.theme-dark .fit-faculty-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .fit-faculty-card:hover {
    border-color: rgba(248, 113, 113, 0.35);
}

body.theme-dark .fit-faculty-card.fit-faculty-card--carousel {
    border: none;
    border-radius: 0.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-dark .fit-faculty-card.fit-faculty-card--carousel:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow:
        0 10px 28px rgba(26, 47, 74, 0.25),
        0 2px 6px rgba(220, 53, 69, 0.15);
}

body.theme-dark .fit-faculty-card.fit-faculty-card--carousel:hover h3 {
    color: #ff8a8a;
}

body.theme-dark .fit-faculty-card.fit-faculty-card--carousel .fit-faculty-card-body {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .fit-faculty-photo-placeholder {
    color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .fit-faculty-section-title .fit-faculty-leadership-title-a {
    color: #f9fafb;
}

body.theme-dark .fit-faculty-swiper-btn {
    background: #1f2937;
    border-color: #f87171;
    color: #f87171;
}

body.theme-dark .fit-faculty-swiper-btn:hover {
    background: #f87171;
    color: #111827;
}

body.theme-dark .fit-faculty-page-body--bg::before {
    opacity: 0.22;
}

/* ─── Trang chi tiết (profile) kiểu VinUni ─── */

.vin-profile-page {
    --vin-blue: #004c97;
    --vin-text: #1a1a1a;
    --vin-muted: #5c5c5c;
    background: #fff;
    min-height: 60vh;
}

.vin-profile-banner {
    height: 140px;
    background: linear-gradient(90deg, #003d7a 0%, #0056a8 45%, #e8f1f8 100%);
    opacity: 0.95;
}

.vin-profile-inner {
    margin-top: -3rem;
    position: relative;
    z-index: 1;
}

.vin-profile-breadcrumb {
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.vin-profile-breadcrumb a {
    color: var(--vin-blue);
    text-decoration: none;
    font-weight: 500;
}

.vin-profile-breadcrumb a:hover {
    text-decoration: underline;
}

.vin-profile-bc-sep {
    margin: 0 0.35rem;
    color: #9ca3af;
}

.vin-profile-photo {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.vin-profile-photo-placeholder {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    background: #e8f1f8;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 4rem;
}

.vin-profile-name {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--vin-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.vin-profile-unit {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vin-blue);
}

.vin-profile-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vin-muted);
}

.vin-profile-section {
    margin-top: 1.5rem;
}

.vin-profile-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vin-text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--vin-blue);
    display: inline-block;
}

.vin-profile-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--vin-muted);
}

.vin-profile-body p:last-child {
    margin-bottom: 0;
}

.vin-profile-plain {
    white-space: pre-wrap;
    word-break: break-word;
}

body.theme-dark .vin-profile-page {
    background: #111827;
    --vin-text: #f3f4f6;
    --vin-muted: #d1d5db;
}

body.theme-dark .vin-profile-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 50%, #1f2937 100%);
}

body.theme-dark .vin-profile-photo {
    border-color: #374151;
}

body.theme-dark .vin-profile-photo-placeholder {
    background: #1f2937;
    border-color: #374151;
    color: #6b7280;
}

/* ═══ Trang chi tiết đội ngũ — hero lớn + khối VinUni + accordion ═══ */

.fit-profile-public {
    --fit-profile-navy: #152c52;
    --fit-profile-navy-soft: #1e3a5f;
    --fit-profile-panel-bg: #eef1f5;
    --fit-gold: #f4c542;
    background: #fff;
    min-height: 60vh;
}

/* Cùng quy mô & scrim với .fit-faculty-hero--photo + .fit-faculty-hero-scrim (trang /doi-ngu-giang-vien) */
.fit-profile-top-photo--bleed {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(380px, 72vh, 820px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0f172a;
    overflow: hidden;
    border-bottom: 1px solid var(--vin-border, #e0e0e0);
}

.fit-profile-top-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.fit-profile-top-photo-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.45) 0%,
        rgba(15, 23, 42, 0.55) 45%,
        rgba(15, 23, 42, 0.72) 100%
    );
    pointer-events: none;
}

.fit-profile-top-photo-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fit-profile-top-photo-name {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.65rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.fit-profile-breadcrumb-wrap {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
}

.fit-profile-breadcrumb {
    font-size: 0.875rem;
}

.fit-profile-breadcrumb a {
    color: var(--edu-primary, #dc3545);
    text-decoration: none;
    font-weight: 500;
}

.fit-profile-breadcrumb a:hover {
    text-decoration: underline;
}

.fit-profile-bc-sep {
    margin: 0 0.4rem;
    color: #9ca3af;
    font-weight: 400;
}

.fit-profile-hero-panel--bleed {
    /* Nền “studio” xanh-xám: một gradient chéo, không radial / không kem — ảnh là trung tâm */
    --fit-hero-paper: #ebf0f6;
    --fit-hero-paper-deep: #dfe6f0;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: none;
    overflow: hidden;
    background-color: #e5ebf3;
    background-image: linear-gradient(
        122deg,
        #fbfcfe 0%,
        #f4f7fb 34%,
        #ebf0f6 68%,
        #e0e7f1 100%
    );
}

/*
 * Mẫu nền 2 — giấy kem ấm + đốm sáng + wash FIT rất nhẹ.
 * Gắn class fit-profile-hero-bg-alt cùng .fit-profile-hero-panel--bleed; bỏ class để dùng mẫu studio (trên).
 */
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-alt {
    --fit-hero-paper: #f3efe6;
    --fit-hero-paper-deep: #e5dfd2;
    border-top: 1px solid rgba(184, 148, 58, 0.22);
    background-color: #ede8dd;
    background-image:
        radial-gradient(ellipse 85% 72% at 10% 18%, rgba(255, 252, 246, 0.95) 0%, transparent 58%),
        radial-gradient(ellipse 55% 48% at 92% 72%, rgba(244, 197, 66, 0.07) 0%, transparent 52%),
        radial-gradient(ellipse 45% 40% at 28% 88%, rgba(220, 53, 69, 0.04) 0%, transparent 50%),
        linear-gradient(168deg, #fdfbf7 0%, var(--fit-hero-paper) 48%, var(--fit-hero-paper-deep) 100%);
}

/*
 * Mẫu 3 — hero lễ: nền kem + wash đỏ/vàng rất nhạt (không SVG), thẻ kính & ảnh giữ nguyên.
 * Gắn fit-profile-hero-bg-ceremony.
 */
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony {
    --fit-hero-paper: #fffbf8;
    --fit-hero-paper-deep: #fff5f2;
    border-top: 1px solid rgba(244, 197, 66, 0.28);
    background-color: #fffcf9;
    background-image:
        radial-gradient(ellipse 85% 65% at 14% 18%, rgba(244, 197, 66, 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 75% 60% at 90% 78%, rgba(220, 53, 69, 0.05) 0%, transparent 52%),
        linear-gradient(168deg, #fffefb 0%, var(--fit-hero-paper) 45%, var(--fit-hero-paper-deep) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.fit-profile-hero-bg-ceremony .fit-profile-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(244, 197, 66, 0.05) 0%, transparent 52%);
}

.fit-profile-hero-bg-ceremony .fit-profile-hero-row {
    position: relative;
    z-index: 1;
}

/* Khung gọn: viền mảnh + ring vàng/đỏ rõ nét, không glow vàng–trắng nhòe */
.fit-profile-hero-bg-ceremony .fit-profile-hero-photo-wrap--card-match {
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px #c9a227,
        0 0 0 2px rgba(163, 15, 34, 0.28),
        0 10px 26px rgba(15, 23, 42, 0.11),
        0 2px 6px rgba(15, 23, 42, 0.06);
}

.fit-profile-hero-bg-ceremony .fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f5ebe3 100%);
    color: rgba(90, 40, 45, 0.2);
}

.fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony .fit-profile-hero-text {
    padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.35rem, 2.8vw, 2rem);
    padding-right: clamp(1.75rem, 4vw, 2.6rem);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-right-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.1);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 88%,
        rgba(0, 0, 0, 0.65) 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 88%,
        rgba(0, 0, 0, 0.65) 96%,
        transparent 100%
    );
}

.fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony .fit-profile-hero-contact {
    border-top-color: rgba(15, 23, 42, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
    .fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony .fit-profile-hero-text {
        background: rgba(255, 252, 248, 0.94);
    }
}

.fit-profile-hero-bg-ceremony .fit-profile-name {
    color: #141c2e;
}

.fit-profile-hero-bg-ceremony .fit-profile-unit {
    color: #3d4a63;
}

.fit-profile-hero-bg-ceremony .fit-profile-role {
    color: #4b5568;
}

/*
 * Mẫu 6 — editorial: xám lạnh gọn, ít màu, kiểu profile học thuật / tạp chí.
 * Mẫu 7 — pearl: trắng ngọc ấm, điểm nhấn đỏ/vàng cực nhạt.
 * Gắn một class; dùng chung khối chữ & ảnh như studio (không thẻ kính ceremony).
 */
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-editorial {
    --fit-hero-paper: #f5f7fa;
    --fit-hero-paper-deep: #e8ecf1;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 105% 88% at 96% 6%, rgba(255, 255, 255, 0.9) 0%, transparent 52%),
        radial-gradient(ellipse 72% 58% at 0% 94%, rgba(220, 53, 69, 0.03) 0%, transparent 48%),
        linear-gradient(168deg, #fcfdfe 0%, var(--fit-hero-paper) 46%, var(--fit-hero-paper-deep) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.fit-profile-hero-bg-editorial .fit-profile-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 62% 42% at 50% -5%, rgba(255, 255, 255, 0.65) 0%, transparent 60%);
}

.fit-profile-hero-bg-editorial .fit-profile-hero-row {
    position: relative;
    z-index: 1;
}

.fit-profile-hero-panel--bleed.fit-profile-hero-bg-pearl {
    --fit-hero-paper: #faf9f7;
    --fit-hero-paper-deep: #f1efeb;
    border-top: 1px solid rgba(15, 23, 42, 0.055);
    background-color: #fafaf8;
    background-image:
        radial-gradient(ellipse 88% 72% at 50% -8%, rgba(255, 255, 255, 0.92) 0%, transparent 56%),
        radial-gradient(ellipse 58% 48% at 100% 88%, rgba(220, 53, 69, 0.025) 0%, transparent 46%),
        linear-gradient(178deg, #fdfdfc 0%, var(--fit-hero-paper) 44%, var(--fit-hero-paper-deep) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.fit-profile-hero-bg-pearl .fit-profile-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 52% 40% at 20% 20%, rgba(244, 197, 66, 0.045) 0%, transparent 54%);
}

.fit-profile-hero-bg-pearl .fit-profile-hero-row {
    position: relative;
    z-index: 1;
}

/*
 * Mẫu 4 — đỏ đậm giống header/navbar site: cùng biến --header-deep-bg-image (style.css).
 * Gắn fit-profile-hero-bg-navbar; không trộn với ceremony / alt.
 * Mẫu 5 — fit-profile-hero-bg-navbar-bright: cùng kiểu chữ/ảnh, nền đỏ sáng (--header-bright-bg-image).
 */
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar {
    --fit-hero-paper: #a30f22;
    --fit-hero-paper-deep: #7c0b18;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #a30f22;
    background-image: var(
        --header-deep-bg-image,
        linear-gradient(90deg, #c8142a 0%, #a30f22 45%, #7c0b18 100%)
    );
    background-size: var(--header-deep-bg-size);
    background-repeat: var(--header-deep-bg-repeat);
    background-position: var(--header-deep-bg-position);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar-bright {
    --fit-hero-paper: #dc3545;
    --fit-hero-paper-deep: #b02a37;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #dc3545;
    background-image: var(
        --header-bright-bg-image,
        linear-gradient(90deg, #ff3b30 0%, #dc3545 40%, #b02a37 100%)
    );
    background-size: var(--header-bright-bg-size);
    background-repeat: var(--header-bright-bg-repeat);
    background-position: var(--header-bright-bg-position);
    box-shadow: 0 10px 26px rgba(220, 53, 69, 0.2);
}

.fit-profile-hero-bg-navbar .fit-profile-hero-inner::before,
.fit-profile-hero-bg-navbar-bright .fit-profile-hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 75% 50% at 10% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 52%);
}

.fit-profile-hero-bg-navbar-bright .fit-profile-hero-inner::before {
    background:
        radial-gradient(ellipse 38% 30% at 92% 5%, rgba(244, 197, 66, 0.15) 0%, transparent 46%),
        radial-gradient(ellipse 76% 50% at 10% 0%, rgba(255, 255, 255, 0.13) 0%, transparent 52%);
}

.fit-profile-hero-bg-navbar .fit-profile-hero-row,
.fit-profile-hero-bg-navbar-bright .fit-profile-hero-row {
    position: relative;
    z-index: 1;
}

/* Bỏ thẻ giấy trắng — chữ như menu trên nền đỏ */
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar .fit-profile-hero-text,
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar-bright .fit-profile-hero-text {
    padding-left: 0;
    padding-right: clamp(0.5rem, 2vw, 1rem);
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar .fit-profile-hero-contact,
.fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar-bright .fit-profile-hero-contact {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.fit-profile-hero-bg-navbar .fit-profile-name,
.fit-profile-hero-bg-navbar-bright .fit-profile-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.fit-profile-hero-bg-navbar .fit-profile-unit,
.fit-profile-hero-bg-navbar-bright .fit-profile-unit {
    color: #f4c542;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fit-profile-hero-bg-navbar .fit-profile-role,
.fit-profile-hero-bg-navbar-bright .fit-profile-role {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.fit-profile-hero-bg-navbar .fit-profile-email,
.fit-profile-hero-bg-navbar .fit-profile-phone,
.fit-profile-hero-bg-navbar-bright .fit-profile-email,
.fit-profile-hero-bg-navbar-bright .fit-profile-phone {
    color: rgba(255, 255, 255, 0.88);
}

.fit-profile-hero-bg-navbar .fit-profile-email a,
.fit-profile-hero-bg-navbar .fit-profile-phone a,
.fit-profile-hero-bg-navbar-bright .fit-profile-email a,
.fit-profile-hero-bg-navbar-bright .fit-profile-phone a {
    color: #fff;
    font-weight: 600;
}

.fit-profile-hero-bg-navbar .fit-profile-email a:hover,
.fit-profile-hero-bg-navbar .fit-profile-phone a:hover,
.fit-profile-hero-bg-navbar-bright .fit-profile-email a:hover,
.fit-profile-hero-bg-navbar-bright .fit-profile-phone a:hover {
    color: #f4c542;
}

.fit-profile-hero-bg-navbar .fit-profile-hero-contact .text-muted,
.fit-profile-hero-bg-navbar-bright .fit-profile-hero-contact .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.fit-profile-hero-bg-navbar .fit-profile-hero-photo-wrap--card-match,
.fit-profile-hero-bg-navbar-bright .fit-profile-hero-photo-wrap--card-match {
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px #d4af37,
        0 0 0 2px rgba(0, 0, 0, 0.22),
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.18);
}

.fit-profile-hero-bg-navbar .fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder,
.fit-profile-hero-bg-navbar-bright .fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
}

.fit-profile-hero-panel .container.fit-profile-hero-inner {
    position: relative;
    z-index: 1;
}

/* z-index để ảnh luôn trên layer nội dung cột phải (không bị che bởi khối liên hệ) */
.fit-profile-hero-photo-stack {
    position: relative;
    z-index: 2;
    width: min(100%, 378.4px);
    margin-left: auto;
    margin-right: auto;
    isolation: isolate;
}

@media (min-width: 768px) {
    .fit-profile-hero-photo-stack {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Khối .row hero: chỉ min-height + padding; nền do panel */
.fit-profile-hero-row {
    position: relative;
    z-index: 1;
    min-height: clamp(300px, 52vh, 649px);
    padding-top: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
   
}

/* Khung ảnh: viền đậm + ring vàng FIT + inset sáng — ảnh tách nền rõ */
.fit-profile-hero-photo-wrap--card-match {
    width: min(100%, 378.4px);
    max-width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
    border: 2px solid rgba(15, 23, 42, 0.18);
    box-shadow:
        0 0 0 1px rgba(244, 197, 66, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.11),
        0 28px 64px rgba(15, 23, 42, 0.08);
}

/* Cắt cover trong khung 3×4 — không méo */
.fit-profile-hero-photo-wrap--card-match .fit-profile-hero-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: none;
    box-shadow: none;
}

.fit-profile-hero-photo-wrap--fullbody .fit-profile-hero-photo {
    object-position: center 15%;
}

.fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.12);
    font-size: clamp(3.5rem, 10vw, 5rem);
    background: linear-gradient(180deg, #f4f7fa 0%, #e8edf3 100%);
}

/* Chỉ trong cột chữ — không margin/width âm (tránh đè lên ảnh bên trái) */
.fit-profile-hero-contact {
    position: relative;
    z-index: 0;
}

.fit-profile-hero-panel--bleed .fit-profile-hero-contact {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fit-profile-contact-kicker {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fit-profile-phone {
    font-size: 1rem;
    color: #374151;
}

.fit-profile-phone a {
    color: var(--fit-profile-navy-soft);
    font-weight: 600;
    text-decoration: none;
}

.fit-profile-phone a:hover {
    text-decoration: underline;
    color: var(--edu-primary, #dc3545);
}

.fit-profile-hero-text {
    position: relative;
    z-index: 2;
}

/* Khối chữ: mask theo trục X — trái đậm, nhạt dần về mép phải (hòa tan ngang) */
.fit-profile-hero-panel--bleed .fit-profile-hero-text {
    padding: clamp(1.2rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.85rem);
    padding-right: clamp(1.85rem, 4.5vw, 2.85rem);
    margin-left: 0;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-right-color: transparent;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 38%,
        rgba(0, 0, 0, 0.94) 52%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.18) 84%,
        rgba(0, 0, 0, 0.04) 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 38%,
        rgba(0, 0, 0, 0.94) 52%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.18) 84%,
        rgba(0, 0, 0, 0.04) 93%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Chi tiết giảng viên — hiệu ứng vào trang (hero: chữ phải→trái, ảnh dưới→lên) */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fit-profile-hero-text-enter {
        from {
            opacity: 0;
            transform: translateX(1.85rem);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fit-profile-hero-photo-enter {
        from {
            opacity: 0;
            transform: translateY(2.15rem);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fit-profile-breadcrumb-enter {
        from {
            opacity: 0;
            transform: translateY(-0.45rem);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fit-profile-public .fit-profile-breadcrumb-wrap {
        animation: fit-profile-breadcrumb-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .fit-profile-hero-panel--bleed .fit-profile-hero-photo-stack {
        animation: fit-profile-hero-photo-enter 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }

    .fit-profile-hero-panel--bleed .fit-profile-hero-text {
        animation: fit-profile-hero-text-enter 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fit-profile-public .fit-profile-breadcrumb-wrap,
    .fit-profile-hero-panel--bleed .fit-profile-hero-photo-stack,
    .fit-profile-hero-panel--bleed .fit-profile-hero-text {
        animation: none !important;
    }
}

/* Khối dưới hero: nâng nhẹ khi cuộn vào viewport (.is-revealed do JS) */
@media (prefers-reduced-motion: no-preference) {
    .fit-profile-public .fit-profile-rise {
        opacity: 0;
        transform: translateY(1.5rem);
        transition:
            opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .fit-profile-public .fit-profile-rise.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fit-profile-public .fit-profile-rise {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.fit-profile-public .fit-profile-name {
    font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 2rem);
    font-weight: 800;
    color: var(--fit-profile-navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.fit-profile-public .fit-profile-unit {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--fit-profile-navy-soft);
    margin-bottom: 0.35rem;
}

.fit-profile-role {
    font-size: 1.05rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.55;
    max-width: 40rem;
}

.fit-profile-email {
    font-size: 1rem;
    color: #374151;
}

.fit-profile-email a {
    color: var(--fit-profile-navy-soft);
    font-weight: 600;
    text-decoration: none;
}

.fit-profile-email a:hover {
    text-decoration: underline;
    color: var(--edu-primary, #dc3545);
}

.fit-profile-content {
    padding-top: 2.5rem;
}

.fit-profile-intro-block {
    margin-bottom: 2.5rem;
}

.fit-profile-block-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fit-profile-navy);
    margin-bottom: 1rem;
}

.fit-profile-block-body {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #4b5563;
    max-width: 100%;
    width: 100%;
}

.fit-profile-plain {
    max-width: 100%;
}

.fit-profile-block-body p {
    margin-bottom: 1rem;
}

.fit-profile-block-body p:last-child {
    margin-bottom: 0;
}

.fit-profile-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.fit-profile-accordion .accordion-item {
    margin-bottom: 0;
    border: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
    border: 1px solid #e8edf3;
}

.fit-profile-accordion .accordion-header {
    margin: 0;
}

/* Grid: tiêu đề cột trái, mũi tên cột phải — căn giữa dọc ổn định hơn flex + margin-left:auto */
.fit-profile-accordion .accordion-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    width: 100%;
    background: #fff !important;
    color: #1e293b !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: none;
    padding: 1.05rem 1.25rem 1.05rem 1.35rem;
    box-shadow: inset 6px 0 0 0 var(--edu-primary, #dc3545);
    border: none !important;
    border-radius: 0 !important;
    text-align: left;
}

.fit-profile-accordion .accordion-button:not(.collapsed) {
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: inset 6px 0 0 0 var(--edu-primary, #dc3545);
}

.fit-profile-accordion .accordion-button:focus {
    box-shadow: inset 6px 0 0 0 var(--edu-primary, #dc3545), 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

.fit-profile-accordion .accordion-button::after {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem;
    background-position: center center;
    background-repeat: no-repeat;
    filter: opacity(0.45);
}

.fit-profile-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    /* Bootstrap đổi sang chevron xanh khi mở — giữ cùng tông với trang hồ sơ */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.fit-profile-accordion .accordion-collapse {
    border: none;
}

.fit-profile-accordion .accordion-body {
    padding: 1.15rem 1.25rem 1.35rem;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.fit-profile-acc-body p:last-child {
    margin-bottom: 0;
}

body.theme-dark .fit-profile-public {
    background: #111827;
}

body.theme-dark .fit-profile-top-photo--bleed {
    border-bottom-color: #374151;
}

body.theme-dark .fit-profile-hero-panel--bleed {
    --fit-hero-paper: #131920;
    --fit-hero-paper-deep: #0b0e13;
    border-top-color: rgba(148, 163, 184, 0.14);
    background-color: #10141a;
    background-image: linear-gradient(
        125deg,
        #181e27 0%,
        #131920 48%,
        #0c1016 100%
    );
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-alt {
    --fit-hero-paper: #1c1914;
    --fit-hero-paper-deep: #12100c;
    border-top-color: rgba(244, 197, 66, 0.2);
    background-color: #16130f;
    background-image:
        radial-gradient(ellipse 75% 60% at 12% 22%, rgba(255, 248, 235, 0.06) 0%, transparent 52%),
        radial-gradient(ellipse 50% 45% at 88% 78%, rgba(244, 197, 66, 0.06) 0%, transparent 48%),
        linear-gradient(172deg, #221e18 0%, var(--fit-hero-paper) 50%, var(--fit-hero-paper-deep) 100%);
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony {
    border-top-color: rgba(244, 197, 66, 0.22);
    background-color: #151210;
    background-image:
        radial-gradient(ellipse 80% 58% at 12% 16%, rgba(244, 197, 66, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 88% 82%, rgba(220, 53, 69, 0.06) 0%, transparent 50%),
        linear-gradient(170deg, #1a1614 0%, #141210 48%, #100e0c 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-hero-inner::before {
    opacity: 1;
    background: radial-gradient(ellipse 65% 42% at 50% 4%, rgba(244, 197, 66, 0.06) 0%, transparent 50%);
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-editorial {
    --fit-hero-paper: #14181d;
    --fit-hero-paper-deep: #0c0f13;
    border-top-color: rgba(148, 163, 184, 0.16);
    background-color: #12161b;
    background-image:
        radial-gradient(ellipse 95% 75% at 92% 10%, rgba(51, 65, 85, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 65% 55% at 4% 90%, rgba(220, 53, 69, 0.045) 0%, transparent 46%),
        linear-gradient(168deg, #171c22 0%, var(--fit-hero-paper) 48%, var(--fit-hero-paper-deep) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

body.theme-dark .fit-profile-hero-bg-editorial .fit-profile-hero-inner::before {
    opacity: 0.75;
    background: radial-gradient(ellipse 58% 38% at 50% 0%, rgba(248, 250, 252, 0.07) 0%, transparent 58%);
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-pearl {
    --fit-hero-paper: #171514;
    --fit-hero-paper-deep: #0f0e0d;
    border-top-color: rgba(244, 197, 66, 0.11);
    background-color: #141312;
    background-image:
        radial-gradient(ellipse 82% 65% at 50% 6%, rgba(255, 252, 248, 0.05) 0%, transparent 54%),
        radial-gradient(ellipse 56% 48% at 96% 86%, rgba(220, 53, 69, 0.045) 0%, transparent 44%),
        linear-gradient(175deg, #1a1816 0%, var(--fit-hero-paper) 50%, var(--fit-hero-paper-deep) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

body.theme-dark .fit-profile-hero-bg-pearl .fit-profile-hero-inner::before {
    opacity: 0.85;
    background: radial-gradient(ellipse 50% 36% at 18% 16%, rgba(244, 197, 66, 0.055) 0%, transparent 52%);
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-ceremony .fit-profile-hero-text {
    background: rgba(24, 28, 36, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    border-right-color: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.4);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 86%,
        rgba(0, 0, 0, 0.55) 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 86%,
        rgba(0, 0, 0, 0.55) 95%,
        transparent 100%
    );
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-name {
    color: #f1f5f9;
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-unit {
    color: #cbd5e1;
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-role {
    color: #94a3b8;
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-hero-photo-wrap--card-match {
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 1px rgba(244, 197, 66, 0.72),
        0 0 0 2px rgba(0, 0, 0, 0.45),
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

body.theme-dark .fit-profile-hero-bg-ceremony .fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder {
    background: linear-gradient(180deg, #2d3544 0%, #1e2430 100%);
    color: rgba(255, 255, 255, 0.12);
}

/* Hero navbar: giữ đỏ đậm + pattern như header, chỉ thêm lớp tối nhẹ */
body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar {
    border-top-color: rgba(255, 255, 255, 0.1);
    background-color: #7c0b18;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 42%),
        var(--header-deep-bg-image);
    background-size: 100% 100%, var(--header-deep-bg-size);
    background-repeat: no-repeat, var(--header-deep-bg-repeat);
    background-position: center, var(--header-deep-bg-position);
}

body.theme-dark .fit-profile-hero-panel--bleed.fit-profile-hero-bg-navbar-bright {
    border-top-color: rgba(255, 255, 255, 0.12);
    background-color: #9e2230;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 40%),
        var(--header-bright-bg-image);
    background-size: 100% 100%, var(--header-bright-bg-size);
    background-repeat: no-repeat, var(--header-bright-bg-repeat);
    background-position: center, var(--header-bright-bg-position);
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-hero-inner::before,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-hero-inner::before {
    opacity: 0.85;
    background: radial-gradient(ellipse 70% 45% at 12% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-hero-inner::before {
    background:
        radial-gradient(ellipse 36% 28% at 90% 4%, rgba(244, 197, 66, 0.1) 0%, transparent 44%),
        radial-gradient(ellipse 72% 46% at 10% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-name,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-name {
    color: #fff;
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-unit,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-unit {
    color: #f4c542;
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-role,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-role {
    color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-email,
body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-phone,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-email,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-phone {
    color: rgba(255, 255, 255, 0.86);
}

body.theme-dark .fit-profile-hero-bg-navbar .fit-profile-hero-photo-wrap--card-match,
body.theme-dark .fit-profile-hero-bg-navbar-bright .fit-profile-hero-photo-wrap--card-match {
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(244, 197, 66, 0.65),
        0 0 0 2px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Một lớp nền trên panel; bỏ lưới cũ để đồng bộ hero đội ngũ */
body.theme-dark .fit-profile-hero-row {
    background-image: none;
}

body.theme-dark .fit-profile-public .fit-profile-name,
body.theme-dark .fit-profile-block-title {
    color: #f1f5f9;
}

body.theme-dark .fit-profile-public .fit-profile-unit {
    color: #cbd5e1;
}

body.theme-dark .fit-profile-role,
body.theme-dark .fit-profile-block-body,
body.theme-dark .fit-profile-accordion .accordion-body {
    color: #9ca3af;
}

body.theme-dark .fit-profile-hero-photo-wrap--card-match {
    border-radius: 4px;
    background: linear-gradient(180deg, #252d3a 0%, #1a1f2a 100%);
    border: 2px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 0 0 1px rgba(244, 197, 66, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 14px 44px rgba(0, 0, 0, 0.48),
        0 32px 72px rgba(0, 0, 0, 0.36);
}

body.theme-dark .fit-profile-hero-panel--bleed .fit-profile-hero-text {
    border-radius: 4px;
    border-color: rgba(148, 163, 184, 0.2);
    border-right-color: transparent;
    background: rgba(30, 36, 46, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.93) 50%,
        rgba(0, 0, 0, 0.52) 68%,
        rgba(0, 0, 0, 0.16) 82%,
        rgba(0, 0, 0, 0.04) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.93) 50%,
        rgba(0, 0, 0, 0.52) 68%,
        rgba(0, 0, 0, 0.16) 82%,
        rgba(0, 0, 0, 0.04) 92%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

body.theme-dark .fit-profile-hero-panel--bleed .fit-profile-hero-contact {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .fit-profile-hero-photo-wrap--card-match.fit-profile-hero-placeholder {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    color: rgba(255, 255, 255, 0.12);
}


body.theme-dark .fit-profile-phone,
body.theme-dark .fit-profile-phone a {
    color: #9ca3af;
}

body.theme-dark .fit-profile-phone a:hover {
    color: #f87171;
}

body.theme-dark .fit-profile-accordion .accordion-item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .fit-profile-accordion .accordion-button {
    background: #1f2937 !important;
    color: #f1f5f9 !important;
    box-shadow: inset 6px 0 0 0 #f87171;
}

body.theme-dark .fit-profile-accordion .accordion-button:not(.collapsed) {
    background: #1f2937 !important;
    color: #f1f5f9 !important;
    box-shadow: inset 6px 0 0 0 #f87171;
}

body.theme-dark .fit-profile-accordion .accordion-button:focus {
    box-shadow: inset 6px 0 0 0 #f87171, 0 0 0 0.2rem rgba(248, 113, 113, 0.25);
}

body.theme-dark .fit-profile-accordion .accordion-button::after,
body.theme-dark .fit-profile-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e2e8f0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: opacity(0.55);
}

body.theme-dark .fit-profile-accordion .accordion-body {
    background: #111827;
    border-top-color: #374151;
    color: #9ca3af;
}
