@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --navy: #0f1b2d;
    --navy-soft: #172942;
    --burgundy: #8b1e2d;
    --burgundy-dark: #641321;
    --gold: #d7ad56;
    --cream: #f6f2eb;
    --ink: #1a2433;
    --muted: #647184;
    --line: #dfe4ea;
    --white: #ffffff;
    --rail-width: 94px;
    --shadow: 0 18px 50px rgba(15, 27, 45, .12);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #f7f8fa;
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
}

a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dark); }

.brand-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%),
        linear-gradient(180deg, var(--burgundy), var(--burgundy-dark));
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 0 30px rgba(76, 15, 28, .16);
}

.brand-rail::before {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 14px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), transparent 24%, transparent 76%, var(--gold));
    opacity: .85;
}

.brand-rail__word {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-shadow: 0 3px 12px rgba(0,0,0,.22);
}

.brand-rail__line {
    position: absolute;
    bottom: 30px;
    width: 2px;
    height: 90px;
    background: var(--gold);
}

.site-shell { margin-left: var(--rail-width); min-height: 100vh; }

.site-navbar {
    background: rgba(15, 27, 45, .97);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--gold);
    min-height: 82px;
}

.navbar-brand strong { font-family: 'Playfair Display', serif; font-size: 1.1rem; letter-spacing: .01em; }
.navbar-brand small { color: #c3ccd7; font-size: .75rem; }

.site-navbar .nav-link {
    color: rgba(255,255,255,.82);
    font-size: .83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
    padding: .8rem .72rem !important;
    position: relative;
}

.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .72rem;
    right: .72rem;
    bottom: .35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: #fff; }

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }

.mobile-monogram {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    place-items: center;
    background: var(--burgundy);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(215,173,86,.18), transparent 28%),
        linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f6f2eb 100%);
    min-height: 670px;
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(139,30,45,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(139,30,45,.04), 0 0 0 120px rgba(215,173,86,.04);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--burgundy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .76rem;
}

.eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--gold);
}

.display-title {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 1.05;
    margin: 1rem 0 1.25rem;
}

.hero-copy { max-width: 720px; color: var(--muted); font-size: 1.08rem; }

.btn-brand {
    background: var(--burgundy);
    color: #fff;
    border: 1px solid var(--burgundy);
    padding: .8rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
}
.btn-brand:hover { background: var(--burgundy-dark); color: #fff; border-color: var(--burgundy-dark); }

.btn-outline-brand {
    color: var(--navy);
    border: 1px solid #b9c2ce;
    padding: .8rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    background: #fff;
}
.btn-outline-brand:hover { border-color: var(--burgundy); color: var(--burgundy); }

.profile-panel {
    position: relative;
    background: var(--navy);
    border-radius: 26px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin-inline: auto;
}

.profile-panel::before {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--gold);
    border-radius: 26px;
    z-index: -1;
}

.profile-panel img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    background: #fff;
}

.profile-panel__body { padding: 1.25rem .7rem .35rem; color: #fff; }
.profile-panel__body small { color: #bbc7d7; }
.profile-panel__body .degree { color: var(--gold); font-weight: 700; }

.stat-strip {
    margin-top: -55px;
    position: relative;
    z-index: 3;
}

.stat-card {
    background: #fff;
    border: 1px solid rgba(15,27,45,.08);
    border-radius: 18px;
    padding: 1.3rem;
    box-shadow: 0 12px 30px rgba(15,27,45,.08);
    height: 100%;
}

.stat-card strong {
    display: block;
    color: var(--burgundy);
    font-size: 1.55rem;
    margin-bottom: .2rem;
}

.section { padding: 88px 0; }
.section-sm { padding: 58px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: .9rem;
}
.section-navy .section-title { color: #fff; }

.section-lead { color: var(--muted); max-width: 760px; }
.section-navy .section-lead { color: #b8c4d2; }

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(15,27,45,.10);
    border-color: rgba(139,30,45,.25);
}

.content-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--burgundy);
    background: rgba(139,30,45,.08);
    font-size: 1.3rem;
}

.page-hero {
    background:
        linear-gradient(115deg, rgba(15,27,45,.98), rgba(23,41,66,.93)),
        url('../images/professor-legacy.jpg') center/cover;
    padding: 76px 0;
    color: #fff;
    border-bottom: 4px solid var(--gold);
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}
.page-hero p { color: #c1cbd8; max-width: 760px; }

.breadcrumb { --bs-breadcrumb-divider-color: #9facbd; }
.breadcrumb-item a { color: var(--gold); text-decoration: none; }
.breadcrumb-item.active { color: #dbe2ea; }

.record-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem;
    height: 100%;
    box-shadow: 0 7px 22px rgba(15,27,45,.04);
}
.record-card h3 { font-size: 1.15rem; color: var(--navy); }
.record-card .meta { color: var(--muted); font-size: .9rem; }
.badge-soft { background: rgba(139,30,45,.09); color: var(--burgundy); border: 1px solid rgba(139,30,45,.13); }

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 7px 18px rgba(15,27,45,.16);
    background: #eef1f5;
}

.paper-item {
    border-left: 4px solid var(--gold);
    background: #fff;
    padding: 1.4rem 1.5rem;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 7px 22px rgba(15,27,45,.05);
}
.paper-item h3 { font-size: 1.15rem; color: var(--navy); }
.paper-item + .paper-item { margin-top: 1rem; }

.gallery-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    height: 100%;
}
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card figcaption { padding: 1rem; }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: var(--shadow);
}
.form-control, .form-select {
    border-radius: 11px;
    border-color: #cfd6df;
    padding: .75rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(139,30,45,.55);
    box-shadow: 0 0 0 .25rem rgba(139,30,45,.10);
}

.contact-card {
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}
.contact-card a { color: #fff; text-decoration: none; }
.contact-card .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(215,173,86,.14);
    color: var(--gold);
}

.site-footer {
    background: #0a1320;
    color: #fff;
    padding: 34px 0;
    border-top: 3px solid var(--gold);
}
.footer-link { color: #fff; text-decoration: none; }
.footer-link:hover { color: var(--gold); }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--burgundy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(100,19,33,.25);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 1050;
}
.back-to-top.show { opacity: 1; visibility: visible; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    border: 1px dashed #cbd2db;
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 1199.98px) {
    .site-navbar .nav-link { padding: .6rem 0 !important; }
    .site-navbar .nav-link::after { left: 0; right: auto; width: 40px; bottom: .2rem; }
}

@media (max-width: 991.98px) {
    .brand-rail { display: none; }
    .site-shell { margin-left: 0; }
    .mobile-monogram { display: grid; }
    .hero { min-height: auto; padding: 70px 0 95px; }
    .profile-panel { margin-top: 2.5rem; }
    .stat-strip { margin-top: -40px; }
}

@media (max-width: 575.98px) {
    .navbar-brand strong { font-size: .92rem; }
    .navbar-brand small { font-size: .66rem; }
    .section { padding: 64px 0; }
    .hero { padding-top: 55px; }
    .display-title { font-size: 2.35rem; }
    .profile-panel::before { inset: 8px -7px -7px 8px; }
}

.place-items-center { place-items: center; }
