:root {
    --navy: #071b3a;
    --navy-soft: #10294f;
    --gold: #b58a2b;
    --gold-light: #d8bd7a;
    --grey: #f4f6f9;
    --text: #263142;
}

body {
    color: var(--text);
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.75;
    background: #fff;
}

.top-strip {
    background: var(--navy);
    color: rgba(255,255,255,.85);
    font-family: Arial, sans-serif;
    font-size: .9rem;
    padding: 8px 0;
}

.top-strip a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
}

.top-strip a:hover {
    color: var(--gold-light);
}

.social-links a {
    align-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.site-header {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 24px rgba(7, 27, 58, .08);
}

.navbar-brand {
    color: var(--navy);
}

.legacy-logo {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}

.logo-seal {
    align-items: center;
    background: radial-gradient(circle at 35% 25%, #d8bd7a, #b58a2b 58%, #7b5918);
    border: 2px solid #f3e5b8;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(7,27,58,.18);
    color: #fff;
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    letter-spacing: .04em;
    width: 48px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-copy span {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-copy small {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-link {
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-weight: 600;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.hero-slide {
    min-height: 620px;
    background: linear-gradient(90deg, rgba(7, 27, 58, .82) 0%, rgba(7, 27, 58, .56) 42%, rgba(7, 27, 58, .12) 100%), var(--hero-image), linear-gradient(135deg, #071b3a, #1b355e);
    background-size: cover, contain, cover;
    background-position: center, right center, center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5.25rem);
    line-height: 1.08;
    font-weight: 700;
}

.hero-subtitle {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.btn-gold:hover {
    background: #96701e;
    border-color: #96701e;
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--navy);
}

.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--grey);
}

.pattern-section {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(159, 211, 245, .78) 0%, rgba(213, 236, 251, .48) 28%, transparent 52%),
        radial-gradient(circle at 100% 100%, rgba(125, 196, 239, .62) 0%, rgba(219, 241, 252, .48) 30%, transparent 55%),
        linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
        url("legacy-bg.png");
    background-position: center;
    background-size: cover;
}

.navy-pattern {
    background-image: linear-gradient(120deg, rgba(7,27,58,.95), rgba(16,41,79,.88)), url("legacy-bg.png");
    background-position: center;
    background-size: cover;
    color: rgba(255,255,255,.86);
}

.gold-band {
    background: linear-gradient(135deg, #fff9e8, #f2e3b9);
}

.books-band {
    background-image: linear-gradient(90deg, rgba(255,249,232,.96), rgba(242,227,185,.84)), url("books-bg.png");
    background-position: center;
    background-size: cover;
}

.wiki-profile-art {
    align-items: center;
    background-image: linear-gradient(135deg, rgba(7,27,58,.92), rgba(181,138,43,.72)), url("legacy-bg.png");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 250px;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.wiki-profile-art .wiki-seal {
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 700;
    height: 88px;
    line-height: 88px;
    margin-bottom: 16px;
    width: 88px;
}

.mist-band {
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
}

.profile-impact-section {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(126, 199, 242, .68) 0%, rgba(185, 224, 248, .42) 28%, transparent 56%),
        radial-gradient(circle at 100% 100%, rgba(126, 199, 242, .58) 0%, rgba(185, 224, 248, .38) 30%, transparent 58%),
        radial-gradient(circle at 88% 16%, rgba(181, 138, 43, .16) 0%, rgba(181, 138, 43, .07) 24%, transparent 46%),
        linear-gradient(135deg, #eef8ff 0%, #dceffc 48%, #f6fbff 100%);
    background-position: 0 0, 100% 100%, 100% 0, center;
    background-size: 72% 72%, 72% 72%, 48% 48%, cover;
    overflow: hidden;
    position: relative;
}

.profile-impact-section::before {
    animation: profileBgDrift 26s ease-in-out infinite alternate;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 46%, transparent 66%),
        repeating-linear-gradient(110deg, rgba(7, 27, 58, .025) 0 1px, transparent 1px 42px);
    content: "";
    inset: -20%;
    pointer-events: none;
    position: absolute;
}

.profile-impact-section > .container {
    position: relative;
    z-index: 1;
}

@keyframes profileBgDrift {
    from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
    to { transform: translate3d(3%, 2%, 0) rotate(1deg); }
}

.portrait-panel {
    background: #fff;
    border: 1px solid rgba(181, 138, 43, .25);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(7, 27, 58, .12);
    overflow: hidden;
}

.portrait-panel img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.biography-image {
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(7, 27, 58, .18);
    overflow: hidden;
    position: relative;
}

.biography-image::after {
    border: 1px solid rgba(181, 138, 43, .55);
    content: "";
    inset: 14px;
    pointer-events: none;
    position: absolute;
}

.biography-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.portrait-placeholder {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #071b3a, #b58a2b);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

.portrait-placeholder .initials {
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    font-size: 3rem;
    height: 120px;
    line-height: 120px;
    margin-bottom: 18px;
    width: 120px;
}

.fact-card {
    background: rgba(255,255,255,.92);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(7,27,58,.08);
    padding: 22px;
}

.fact-label {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.office-list, .book-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.office-list li, .book-list li {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(7,27,58,.08);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px 18px;
}

.navy-pattern > .container > .text-center .section-title,
.navy-pattern > .container > .text-center h2 {
    color: #fff;
}

.navy-pattern .eyebrow {
    color: var(--gold-light);
}

.eyebrow {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-title {
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
}

.legacy-card, .gallery-card, .video-card {
    border: 1px solid rgba(7, 27, 58, .08);
    border-radius: 8px;
    background: #fff;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(7, 27, 58, .07);
}

.legacy-card {
    padding: 30px;
}

.legacy-card h3 {
    color: var(--navy);
    font-size: 1.35rem;
}

.legacy-card p {
    color: #4d5a6b;
}

.legacy-card.with-bg {
    background-image: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.82)), url("legacy-bg.png");
    background-position: center;
    background-size: cover;
    min-height: 230px;
}

.navy-pattern .legacy-card.with-bg {
    background-color: #fff;
    color: var(--text);
}

.navy-pattern .legacy-card.with-bg h3 {
    color: var(--navy) !important;
}

.navy-pattern .legacy-card.with-bg p {
    color: #3f4d60 !important;
}

.legacy-card.card-diplomacy {
    background-image: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.82)), url("gallery-public-service.png");
}

.legacy-card.card-thought {
    background-image: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.82)), url("gallery-scholarship.png");
}

.legacy-card.card-community {
    background-image: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.82)), url("gallery-archives.png");
}

.legacy-card.with-bg::before {
    background: var(--gold);
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin-bottom: 22px;
    width: 54px;
}

.gallery-card img, .video-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.news-card img {
    height: 230px;
    object-fit: cover;
    width: 100%;
}

.news-card .date {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-detail-image {
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(7, 27, 58, .14);
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.gallery-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-card:hover {
    box-shadow: 0 24px 52px rgba(7, 27, 58, .16);
    transform: translateY(-8px);
}

.gallery-card:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.06);
}

.gallery-card button {
    border: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    text-align: left;
}

.page-title {
    background: linear-gradient(120deg, #071b3a, #10294f);
    color: #fff;
    padding: 96px 0 54px;
}

.breadcrumb a {
    color: var(--gold-light);
}

.content-body h2, .content-body h3 {
    color: var(--navy);
    margin-top: 1.75rem;
}

.contact-box {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 38px;
}

.site-footer {
    background: linear-gradient(120deg, rgba(6,20,43,.96), rgba(7,27,58,.88)), url("legacy-bg.png");
    background-position: 0 50%;
    background-size: 120% auto;
    color: rgba(255,255,255,.76);
    padding: 64px 0 46px;
    animation: footerDrift 28s linear infinite alternate;
    overflow: hidden;
}

.footer-about {
    max-width: 420px;
}

.site-footer a {
    color: var(--gold-light);
}

.footer-links {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,.94);
    border: 0;
    min-height: 46px;
}

.footer-social a {
    align-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-right: 8px;
    text-decoration: none;
    width: 38px;
}

@keyframes footerDrift {
    from { background-position: 0 50%; }
    to { background-position: 100% 50%; }
}

.lightbox {
    align-items: center;
    background: rgba(3, 12, 28, .92);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img, .video-modal iframe {
    max-height: 84vh;
    max-width: 94vw;
}

.lightbox-control, .lightbox-close {
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: var(--navy);
    font-size: 1.4rem;
    height: 44px;
    position: fixed;
    width: 44px;
}

.lightbox-close {
    right: 24px;
    top: 24px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 540px;
    }
    .section {
        padding: 58px 0;
    }
    .gallery-card img, .video-card img {
        height: 210px;
    }
}
