* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
    color: #222;
    background: #ffffff;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

header {
    background: #17365d;
    color: white;
    padding: 2rem 0 1.3rem;
}

header h1 {
    margin: 0;
    font-size: 2.4rem;
}

.subtitle {
    margin-top: 0.3rem;
    font-size: 1.15rem;
}

nav {
    margin-top: 1.4rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1.2rem;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #17365d;
    border-bottom: 2px solid #e2e2e2;
    padding-bottom: 0.4rem;
}

h3 {
    color: #17365d;
}

.hero {
    font-size: 1.08rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 1.5rem;
}

.card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.4rem;
    background: #fafafa;
}

.card a {
    color: #17365d;
    font-weight: bold;
    text-decoration: none;
}

footer {
    border-top: 1px solid #dddddd;
    padding: 1.5rem 0;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

@media (max-width: 700px) {

    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}

blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.3rem;
    border-left: 4px solid #17365d;
    background: #f7f7f7;
    font-style: italic;
}

.source {
    margin-top: -0.7rem;
    font-size: 0.9rem;
    color: #666;
}

.evaluation {
    margin-bottom: 2rem;
}

.course-list p {
    margin-bottom: 1.2rem;
}

/* Teaching Evaluations */

.evaluation-note {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(300px, 1fr)
    );
    gap: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.evaluation-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.4rem;
    background: #fafafa;
}

.evaluation-card blockquote {
    margin: 0.7rem 0 1rem 0;
    padding: 0;
    border-left: none;
    background: transparent;
    font-style: italic;
}

.evaluation-theme {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #17365d;
}

.evaluation-source {
    font-size: 0.88rem;
    color: #666666;
    margin-bottom: 0;
}

.faculty-observations {
    margin-top: 3rem;
}

.observation-card {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-left: 4px solid #17365d;
    background: #f7f7f7;
}

.observation-card h4 {
    margin-top: 0;
    margin-bottom: 0.2rem;
    color: #17365d;
    font-size: 1.15rem;
}

.observation-meta {
    margin-top: 0;
    color: #666666;
    font-size: 0.9rem;
}

.observation-card blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid #999999;
    background: transparent;
    font-style: italic;
}

.evaluation-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666666;
    font-style: italic;
}

/* Research Page */

.research-card {
    border-left: 4px solid #17365d;
    background: #f8f9fb;
    padding: 1.2rem 1.4rem;
    margin: 1.2rem 0;
    border-radius: 4px;
}

.research-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.method-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.3rem;
    background: #ffffff;
}

.method-card h3 {
    margin-top: 0;
}

/* Publications Page */

.publication-card {
    position: relative;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: #ffffff;
}

.publication-card h3 {
    margin-top: 0.4rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.publication-year {
    display: inline-block;
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    color: #17365d;
}

.publication-authors {
    color: #444444;
}

.doi-link {
    display: inline-block;
    margin-top: 0.3rem;
    color: #17365d;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

.doi-link:hover {
    text-decoration: underline;
}


/* Research Presentations */

.presentation-card {
    border-left: 4px solid #17365d;
    background: #f8f9fb;
    padding: 1.3rem 1.5rem;
    margin: 1.4rem 0;
}

.presentation-card h3 {
    margin-top: 0.4rem;
    margin-bottom: 0.7rem;
}

.presentation-date {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
}


/* Research Themes */

.research-theme-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 1.3rem;
    margin-top: 1.5rem;
}

.research-theme-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.3rem;
    background: #fafafa;
}

.research-theme-card h3 {
    margin-top: 0;
    color: #17365d;
}

/* Projects Page */

.featured-project {
    border: 1px solid #d7dce2;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0 3rem;
    background: #f8f9fb;
}

.featured-project h2 {
    border-bottom: none;
    margin-bottom: 0.3rem;
}

.project-subtitle {
    color: #555555;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.project-label {
    margin-bottom: 0.4rem;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-size: 0.78rem;
    font-weight: bold;
    color: #17365d;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 1.2rem;
    margin: 2rem 0;
}

.project-detail {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.2rem;
}

.project-detail h3 {
    margin-top: 0;
}

.project-card {
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 1.7rem;
    margin: 2rem 0;
    background: #ffffff;
}

.project-card-header h2 {
    margin-top: 0;
    border-bottom: none;
}

.project-card h3 {
    margin-bottom: 0.3rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.project-tools span {
    background: #edf1f5;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: #17365d;
}

.project-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fb;
    border-radius: 8px;
}

/* Service & Outreach Page */

.service-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.service-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.4rem;
    margin: 1.2rem 0;
    background: #ffffff;
}

.featured-service {
    border-left: 4px solid #17365d;
    background: #f8f9fb;
}

.service-card h3 {
    margin-top: 0.3rem;
    margin-bottom: 0.4rem;
    color: #17365d;
}

.service-year {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: bold;
    color: #17365d;
}

.service-event {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.service-organization {
    margin-top: 0;
    color: #666666;
    font-size: 0.95rem;
}

/* CV Page */

.cv-intro {
    max-width: 850px;
}

.cv-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

.primary-button {
    background: #17365d;
    color: #ffffff;
}

.primary-button:hover {
    opacity: 0.9;
}

.secondary-button {
    border: 1px solid #17365d;
    color: #17365d;
    background: #ffffff;
}

.secondary-button:hover {
    background: #f3f5f8;
}

.cv-highlight-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(230px, 1fr)
    );
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.cv-highlight-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.4rem;
    background: #ffffff;
}

.cv-highlight-card h3 {
    margin-top: 0;
    color: #17365d;
}

.cv-timeline {
    margin-top: 1.5rem;
}

.cv-timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #eeeeee;
}

.cv-timeline-item h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.cv-year {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #17365d;
}

.cv-download-section {
    margin-top: 3rem;
    padding: 1.7rem;
    background: #f8f9fb;
    border-radius: 8px;
}

@media (max-width: 600px) {

    .cv-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

}

/* Contact Page */

.contact-intro {
    max-width: 800px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(230px, 1fr)
    );
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.contact-card {
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
}

.contact-card h3 {
    margin-top: 0;
    color: #17365d;
}

.contact-card a {
    color: #17365d;
    text-decoration: none;
    font-weight: bold;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-availability {
    margin-top: 3rem;
}

.contact-cv {
    margin-top: 3rem;
    padding: 1.7rem;
    background: #f8f9fb;
    border-radius: 8px;
}

/* ==========================================================
   PROFESSIONAL PORTFOLIO REDESIGN
   ========================================================== */


/* ---------- GLOBAL ---------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;
    color: #263238;
    background: #ffffff;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.narrow-container {
    max-width: 850px;
}

p {
    margin-top: 0;
}

a {
    transition: 0.2s ease;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.site-header,
body > header {

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.97);

    border-bottom: 1px solid #e8ecef;

    box-shadow:
        0 2px 12px rgba(0,0,0,0.04);

    padding: 0;
}


.nav-container {
    min-height: 78px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 2rem;
}


.site-name {
    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.12rem;
    font-weight: bold;

    text-decoration: none;

    white-space: nowrap;
}


.main-nav {
    display: flex;
    align-items: center;

    gap: 1.45rem;

    margin: 0;
}


.main-nav a,
body > header nav a {

    color: #35495e;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.91rem;

    text-decoration: none;

    margin: 0;
}


.main-nav a:hover,
body > header nav a:hover {

    color: #0d5b91;
}


.main-nav a.active {

    color: #0d5b91;
    font-weight: 600;
}


/*
Old-page headers still contain h1 and subtitle.
Make them fit the modern appearance.
*/

body > header:not(.site-header) h1 {

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;

    margin: 0;
}


body > header:not(.site-header) .subtitle {

    color: #607080;
    margin: 0.2rem 0 0.7rem;

    font-size: 0.85rem;
}


body > header:not(.site-header) {

    color: #263238;
    padding: 1rem 0;
}



/* ==========================================================
   HOME HERO
   ========================================================== */

.home-hero {

    padding: 6rem 0 5rem;

    background:
        linear-gradient(
            135deg,
            #f7fafc 0%,
            #ffffff 58%,
            #edf4f8 100%
        );
}


.hero-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(280px, 0.7fr);

    gap: 5rem;

    align-items: center;
}


.eyebrow,
.section-label,
.section-label-light {

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.13em;

    font-weight: 700;

    margin-bottom: 1rem;
}


.eyebrow,
.section-label {

    color: #0d5b91;
}


.hero-content h1 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: #102f4f;

    font-size: clamp(
        2.6rem,
        5vw,
        4.7rem
    );

    line-height: 1.07;

    letter-spacing: -0.03em;

    margin: 0 0 0.8rem;
}


.hero-content h2 {

    color: #526475;

    font-size: clamp(
        1.3rem,
        2vw,
        1.75rem
    );

    font-weight: 500;

    line-height: 1.35;

    margin: 0 0 1.4rem;

    border: none;
    padding: 0;
}


.hero-affiliation {

    color: #405466;

    font-weight: 600;

    margin-bottom: 1.6rem;
}


.hero-description {

    max-width: 720px;

    color: #4c5965;

    font-size: 1.04rem;
}


.hero-buttons {

    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 1rem;

    margin-top: 2rem;
}



/* ==========================================================
   PROFILE PHOTO
   ========================================================== */

.hero-photo-wrapper {

    max-width: 355px;

    margin-left: auto;

    background: #ffffff;

    padding: 0.75rem;

    border-radius: 18px;

    box-shadow:
        0 20px 50px
        rgba(17, 47, 79, 0.15);
}


.profile-photo {

    display: block;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    object-position: center;

    border-radius: 12px;
}


.photo-caption {

    display: flex;
    flex-direction: column;

    padding: 1rem 0.5rem 0.4rem;

    color: #102f4f;
}


.photo-caption span {

    color: #71808d;

    font-size: 0.88rem;

    margin-top: 0.2rem;
}



/* ==========================================================
   BUTTONS
   ========================================================== */

.primary-button,
.secondary-button,
.light-button {

    display: inline-block;

    padding:
        0.78rem
        1.25rem;

    border-radius: 6px;

    font-size: 0.9rem;

    font-weight: 650;

    text-decoration: none;
}


.primary-button {

    background: #123f68;

    color: #ffffff;

    border: 1px solid #123f68;
}


.primary-button:hover {

    background: #0d3152;
}


.secondary-button {

    background: transparent;

    color: #123f68;

    border: 1px solid #123f68;
}


.secondary-button:hover {

    background: #f0f5f8;
}


.text-button,
.inline-link,
.card-link {

    color: #0d5b91;

    text-decoration: none;

    font-weight: 650;
}


.text-button:hover,
.inline-link:hover,
.card-link:hover {

    color: #083e66;
}



/* ==========================================================
   HOME SECTIONS
   ========================================================== */

.home-section {

    padding: 5.2rem 0;

    margin: 0;
}


.section-soft {

    background: #f7f9fb;
}


.section-heading {

    margin-bottom: 2.3rem;
}


.home-section-title {

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        2rem,
        3vw,
        2.8rem
    );

    line-height: 1.2;

    border: none;

    margin-top: 0;

    padding: 0;
}


.large-intro {

    color: #34495e;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.4rem;

    line-height: 1.7;
}



/* ==========================================================
   HOME FEATURE CARDS
   ========================================================== */

.home-card-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.6rem;
}


.home-feature-card {

    min-height: 290px;

    display: flex;
    flex-direction: column;

    border:
        1px solid #e2e7eb;

    border-radius: 12px;

    padding: 2rem;

    background: #ffffff;

    box-shadow:
        0 6px 22px
        rgba(0,0,0,0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.home-feature-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 16px 36px
        rgba(17,47,79,0.08);
}


.card-number {

    color: #8da1b2;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.home-feature-card h3 {

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.5rem;

    margin:
        0.7rem 0
        0.8rem;
}


.home-feature-card p {

    color: #586672;
}


.home-feature-card .card-link {

    margin-top: auto;
}



/* ==========================================================
   FEATURED RESEARCH
   ========================================================== */

.featured-home-grid {

    display: grid;

    grid-template-columns:
        1.25fr 0.75fr;

    gap: 4rem;

    align-items: start;
}


.research-summary-box {

    background: #102f4f;

    border-radius: 12px;

    padding: 2rem;

    color: #ffffff;
}


.summary-heading {

    font-size: 1.1rem;

    font-weight: 700;

    margin-bottom: 1.3rem;
}


.research-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 0.65rem;
}


.research-tags span {

    padding:
        0.48rem
        0.78rem;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.1);

    border:
        1px solid
        rgba(255,255,255,0.18);

    font-size: 0.82rem;
}



/* ==========================================================
   TEACHING HOME FEATURE
   ========================================================== */

.section-dark {

    background: #102f4f;

    color: #ffffff;
}


.section-dark h2 {

    color: #ffffff;

    border: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        2rem,
        3vw,
        2.8rem
    );

    padding: 0;
}


.section-dark p {

    color: #d7e0e7;
}


.section-label-light {

    color: #9ec6e2;
}


.teaching-highlight-grid {

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 5rem;

    align-items: center;
}


.home-quote {

    margin: 0;

    padding: 2rem;

    border: none;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.08);

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.3rem;

    line-height: 1.7;
}


.home-quote span {

    display: block;

    margin-top: 1rem;

    color: #b9c8d3;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.82rem;

    font-style: normal;
}


.light-button {

    background: #ffffff;

    color: #102f4f;

    margin-top: 1rem;
}



/* ==========================================================
   ACADEMIC HIGHLIGHTS
   ========================================================== */

.highlight-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid #dfe5e9;

    border-bottom:
        1px solid #dfe5e9;
}


.highlight-stat {

    padding: 2rem;

    border-right:
        1px solid #dfe5e9;
}


.highlight-stat:last-child {

    border-right: none;
}


.stat-number {

    display: block;

    color: #0d5b91;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2rem;

    font-weight: bold;
}


.stat-label {

    display: block;

    color: #536371;

    margin-top: 0.4rem;

    font-size: 0.9rem;
}



/* ==========================================================
   CTA
   ========================================================== */

.home-cta {

    padding: 4rem 0;

    background: #edf3f7;
}


.home-cta-inner {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 2rem;
}


.home-cta h2 {

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    margin: 0;

    border: none;

    padding: 0;
}



/* ==========================================================
   OTHER PAGES
   ========================================================== */

main.container {

    padding-top: 4rem;

    padding-bottom: 5rem;
}


main.container > section {

    margin-bottom: 4rem;
}


main.container h2 {

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


.publication-card,
.project-card,
.service-card,
.contact-card,
.cv-highlight-card,
.method-card,
.evaluation-card {

    box-shadow:
        0 5px 18px
        rgba(0,0,0,0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.publication-card:hover,
.project-card:hover,
.service-card:hover,
.contact-card:hover,
.cv-highlight-card:hover,
.method-card:hover,
.evaluation-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 26px
        rgba(17,47,79,0.07);
}



/* ==========================================================
   FOOTER
   ========================================================== */

.modern-footer,
footer {

    background: #0c263e;

    color: #d7e0e7;

    border: none;

    padding: 0;
}


.footer-grid {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 2rem;

    padding:
        2.5rem 0
        1.8rem;
}


.footer-grid p {

    margin:
        0.2rem 0 0;

    color: #aebbc5;
}


.footer-links {

    display: flex;

    gap: 1.3rem;
}


.footer-links a {

    color: #d7e0e7;

    text-decoration: none;

    font-size: 0.9rem;
}


.footer-links a:hover {

    color: #ffffff;
}


.footer-bottom {

    padding:
        1rem 0
        1.4rem;

    border-top:
        1px solid
        rgba(255,255,255,0.1);
}


.footer-bottom p {

    margin: 0;

    color: #8fa0ad;

    font-size: 0.82rem;
}



/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */

@media (max-width: 950px) {

    .nav-container {

        flex-direction: column;

        align-items: flex-start;

        padding:
            1rem 0;
    }


    .main-nav {

        width: 100%;

        overflow-x: auto;

        padding-bottom:
            0.3rem;
    }


    .hero-grid {

        grid-template-columns:
            1fr;

        gap: 3rem;
    }


    .hero-photo-wrapper {

        margin:
            0 auto;

        max-width: 330px;
    }


    .home-card-grid {

        grid-template-columns:
            1fr;
    }


    .featured-home-grid,
    .teaching-highlight-grid {

        grid-template-columns:
            1fr;

        gap: 2.5rem;
    }


    .highlight-stat-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .highlight-stat:nth-child(2) {

        border-right: none;
    }

}



@media (max-width: 600px) {

    .home-hero {

        padding:
            3.5rem 0;
    }


    .hero-content h1 {

        font-size: 2.6rem;
    }


    .home-section {

        padding:
            3.5rem 0;
    }


    .home-cta-inner,
    .footer-grid {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .highlight-stat-grid {

        grid-template-columns:
            1fr;
    }


    .highlight-stat {

        border-right: none;

        border-bottom:
            1px solid #dfe5e9;
    }


    .highlight-stat:last-child {

        border-bottom: none;
    }


    .footer-links {

        flex-wrap: wrap;
    }

}


/* ==========================================================
   FINAL HOMEPAGE HEADER + HERO OVERRIDES
   KEEP THIS AT THE VERY BOTTOM
   ========================================================== */

header.site-header {
    background: #ffffff !important;
    color: #263238 !important;
    padding: 0 !important;

    position: sticky;
    top: 0;
    z-index: 1000;

    border-bottom: 1px solid #e5e9ed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
    min-height: 76px;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.site-name,
.site-name:visited,
.site-name:hover,
.site-name:active {
    color: #123f68 !important;
    text-decoration: none !important;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.main-nav {
    display: flex !important;
    align-items: center;
    gap: 1.4rem;

    margin: 0 !important;
}

.main-nav a,
.main-nav a:visited {
    color: #35495e !important;
    text-decoration: none !important;

    font-family: Arial, sans-serif;
    font-size: 0.92rem;

    margin: 0 !important;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0d5b91 !important;
}


/* HERO */

.home-hero {
    padding: 5.5rem 0 !important;

    background:
        linear-gradient(
            135deg,
            #f7fafc 0%,
            #ffffff 60%,
            #eef4f8 100%
        ) !important;
}

.hero-grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap: 4.5rem;

    align-items: center;
}

.hero-content h1 {
    color: #102f4f !important;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    line-height: 1.08;

    margin: 0 0 0.8rem;
}

.hero-content h2 {
    color: #435d73 !important;

    border: none !important;

    font-family: Arial, sans-serif;

    font-size: 1.55rem;

    font-weight: 500;

    padding: 0 !important;

    margin: 0 0 1.4rem;
}

.eyebrow {
    color: #0d5b91 !important;

    font-family: Arial, sans-serif;

    font-size: 0.78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.09rem;
}

.hero-affiliation {
    color: #405466;

    font-family: Arial, sans-serif;

    font-weight: 600;

    line-height: 1.6;
}

.hero-description {
    color: #4c5965;

    font-family: Arial, sans-serif;

    font-size: 1.02rem;

    line-height: 1.8;

    max-width: 720px;
}


/* PROFILE PHOTO */

.hero-photo-wrapper {
    width: 100%;
    max-width: 340px;

    margin-left: auto;

    padding: 0.7rem;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(17, 47, 79, 0.15);
}

.profile-photo {
    display: block !important;

    width: 100% !important;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 12px;
}


/* MOBILE */

@media (max-width: 900px) {

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-photo-wrapper {
        margin: 1rem auto 0;
    }
}

/* ==========================================================
   INNER PAGE HERO
   ========================================================== */

.page-hero {
    padding: 2.5rem 0 3.5rem;
    margin-bottom: 4rem !important;

    border-bottom: 1px solid #e2e7eb;
}

.page-kicker {
    margin-bottom: 0.8rem;

    color: #0d5b91;

    font-family: Arial, sans-serif;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 1rem;

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        2.7rem,
        5vw,
        4.2rem
    );

    line-height: 1.1;
}

.page-intro {
    max-width: 780px;

    margin-bottom: 0;

    color: #536371;

    font-size: 1.12rem;

    line-height: 1.8;
}

/* ==========================================================
   FINAL TEACHING PAGE DESIGN
   ========================================================== */

.teaching-page-hero {
    max-width: 950px;
}


.teaching-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}


/* TEACHING PRINCIPLES */

.teaching-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}


.teaching-principle-card {
    padding: 1.6rem;

    border: 1px solid #e1e6ea;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.035);
}


.principle-number {
    color: #7c96aa;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.teaching-principle-card h3 {
    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;

    margin:
        0.55rem 0
        0.8rem;
}


.teaching-principle-card p {
    color: #596875;

    font-size: 0.94rem;

    margin-bottom: 0;
}



/* TWO COLUMN */

.teaching-two-column {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 3rem;

    align-items: start;
}


.teaching-callout {
    padding: 1.7rem;

    background: #f3f7fa;

    border-left: 4px solid #0d5b91;

    border-radius: 6px;
}


.teaching-callout h3 {
    margin-top: 0;

    color: #102f4f;
}



/* COURSES */

.course-section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 2rem;

    margin-top: 2rem;
    margin-bottom: 1.3rem;

    padding-bottom: 0.8rem;

    border-bottom: 1px solid #dfe5e9;
}


.course-section-header h3 {
    margin: 0;

    color: #102f4f;
}


.course-section-header p {
    margin:
        0.2rem 0 0;

    color: #667684;
}


.course-section-header span {
    color: #0d5b91;

    font-weight: 700;
}


.teaching-course-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.1rem;
}


.teaching-course-card {
    padding: 1.35rem;

    border: 1px solid #e2e7eb;
    border-radius: 8px;

    background: #ffffff;
}


.course-code {
    color: #0d5b91;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
}


.teaching-course-card h3 {
    margin:
        0.35rem 0
        0.4rem;

    color: #102f4f;

    font-size: 1.05rem;
}


.teaching-course-card p {
    color: #697884;

    font-size: 0.88rem;

    margin: 0;
}


.additional-teaching-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1.3rem;

    margin-top: 2rem;
}


.additional-teaching-card {
    padding: 1.5rem;

    background: #f7f9fb;

    border-radius: 8px;
}


.additional-teaching-card h3 {
    margin:
        0.25rem 0
        0.6rem;

    color: #102f4f;
}


.small-label {
    margin: 0;

    color: #0d5b91;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}



/* TECHNOLOGY */

.section-width {
    max-width: 800px;
}


.teaching-tech-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 0.7rem;

    margin:
        1.5rem 0
        2rem;
}


.teaching-tech-tags span {
    padding:
        0.5rem
        0.85rem;

    border: 1px solid #d3dde4;

    border-radius: 22px;

    background: #f8fafb;

    color: #31516b;

    font-size: 0.87rem;

    font-weight: 600;
}


.innovation-box {
    max-width: 850px;

    padding: 1.7rem;

    background: #102f4f;

    color: #dce5ec;

    border-radius: 10px;
}


.innovation-box h3 {
    color: #ffffff;

    margin-top: 0;
}


.innovation-box p {
    margin-bottom: 0;
}



/* AWARDS */

.teaching-awards-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.3rem;

    margin-top: 1.5rem;
}


.teaching-award-card {
    padding: 1.5rem;

    border-top: 3px solid #0d5b91;

    background: #f8fafb;
}


.award-year {
    color: #0d5b91;

    font-size: 0.82rem;

    font-weight: 700;
}


.teaching-award-card h3 {
    color: #102f4f;

    margin:
        0.4rem 0
        0.5rem;
}



/* STUDENT FEEDBACK */

.evaluation-introduction {
    max-width: 800px;

    color: #5c6975;
}


.teaching-evidence-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1.3rem;

    margin-top: 1.8rem;
}


.teaching-quote-card {
    display: flex;
    flex-direction: column;

    padding: 1.6rem;

    border: 1px solid #e0e6ea;

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 6px 20px
        rgba(0,0,0,0.035);
}


.quote-theme {
    margin: 0;

    color: #0d5b91;

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.teaching-quote-card blockquote {
    flex-grow: 1;

    margin:
        1rem 0;

    padding: 0;

    border: none;

    background: transparent;

    color: #34495e;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.08rem;

    line-height: 1.7;
}


.quote-source {
    margin-bottom: 0;

    color: #75828d;

    font-size: 0.83rem;
}



/* FACULTY OBSERVATIONS */

.coordinator-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1.4rem;

    margin-top: 1.8rem;
}


.coordinator-card {
    padding: 1.7rem;

    border: 1px solid #dce3e8;

    border-radius: 10px;

    background: #f8fafb;
}


.coordinator-top {
    display: flex;

    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1rem;
}


.coordinator-top h3 {
    margin:
        0.25rem 0
        0;

    color: #102f4f;
}


.coordinator-top p {
    margin-bottom: 0;
}


.observation-badge {
    height: fit-content;

    padding:
        0.35rem
        0.6rem;

    border-radius: 15px;

    background: #e6eef4;

    color: #31516b;

    font-size: 0.72rem;

    white-space: nowrap;
}


.coordinator-card blockquote {
    margin:
        1.2rem 0;

    padding-left: 1rem;

    border-left: 3px solid #0d5b91;

    color: #34495e;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-style: italic;
}


.evaluation-availability {
    margin-top: 1.5rem;

    color: #74818b;

    font-size: 0.88rem;

    font-style: italic;
}



/* MENTORING */

.teaching-mentoring-section {
    padding:
        2rem 0;
}


.mentoring-research-box {
    padding: 1.7rem;

    border-radius: 10px;

    background: #f2f6f8;
}


.mentoring-research-box h3 {
    margin-top: 0;

    color: #102f4f;
}



/* TEACHING CTA */

.teaching-cta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 3rem;

    padding: 2.2rem !important;

    background: #edf3f7;

    border-radius: 10px;
}


.teaching-cta h2 {
    margin-bottom: 0.7rem;
}


.teaching-cta p {
    max-width: 650px;

    margin-bottom: 0;
}


.teaching-cta-buttons {
    display: flex;

    flex-shrink: 0;

    gap: 0.8rem;
}



/* ==========================================================
   TEACHING RESPONSIVE
   ========================================================== */

@media (max-width: 950px) {

    .teaching-overview-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .teaching-course-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .teaching-two-column,
    .coordinator-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .teaching-overview-grid,
    .teaching-course-grid,
    .additional-teaching-grid,
    .teaching-awards-grid,
    .teaching-evidence-grid {
        grid-template-columns: 1fr;
    }


    .course-section-header,
    .teaching-cta,
    .coordinator-top {
        flex-direction: column;

        align-items: flex-start;
    }


    .teaching-cta-buttons {
        flex-wrap: wrap;
    }

}
/* ==========================================================
   ACADEMIC PROFILE LAYOUT + RESEARCH EQUATIONS
   FINAL OVERRIDES
   ========================================================== */


/* ==========================================================
   HOMEPAGE: LEFT PROFILE + RIGHT CONTENT
   ========================================================== */

.academic-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
}


/* ---------- LEFT PROFILE ---------- */

.academic-profile {
    padding-top: 0.4rem;
}

.academic-photo-wrapper {
    width: 175px;
    height: 175px;
    margin-bottom: 1.5rem;

    border-radius: 50%;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e0e6ea;

    box-shadow:
        0 10px 30px rgba(17, 47, 79, 0.12);
}


.academic-profile-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


.profile-name {
    margin:
        0 0
        0.35rem;

    padding: 0;

    border: none;

    color: #263238;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.2rem;
    font-weight: 700;

    line-height: 1.3;
}


.profile-title {
    margin-bottom: 0.15rem;

    color: #566470;

    font-size: 0.91rem;
    line-height: 1.5;
}


.profile-affiliation {
    margin-bottom: 1.2rem;

    color: #71808d;

    font-size: 0.86rem;
}


.profile-divider {
    width: 42px;
    height: 2px;

    margin:
        1.3rem 0;

    background: #0d5b91;
}


.profile-details {
    font-size: 0.88rem;
}


.profile-details p {
    display: flex;
    align-items: center;

    gap: 0.55rem;

    margin:
        0 0
        0.72rem;

    color: #5d6a75;
}


.profile-details a,
.profile-details a:visited {
    color: #465a6b;

    text-decoration: none;
}


.profile-details a:hover {
    color: #0d5b91;
}


.profile-icon {
    width: 18px;

    color: #607686;

    text-align: center;
}


/* ---------- RIGHT HERO CONTENT ---------- */

.academic-hero-content {
    max-width: 790px;
}


.academic-hero-content h1 {
    margin:
        0 0
        0.7rem;

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2.7rem,
            5vw,
            4.4rem
        );

    line-height: 1.08;

    letter-spacing: -0.025em;
}


.academic-hero-content h2 {
    margin:
        0 0
        1.3rem;

    padding: 0;

    border: none;

    color: #435d73;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.5rem;

    font-weight: 500;

    line-height: 1.4;
}


.academic-hero-content .hero-description {
    max-width: 760px;
}


/* Keep hero slightly more compact with sidebar */

.home-hero {
    padding:
        4.7rem 0
        5.2rem !important;
}



/* ==========================================================
   RESEARCH EQUATION PANELS
   ========================================================== */

.research-equation-panel {
    margin:
        2.3rem 0;

    padding:
        1.8rem
        2rem;

    background: #f7f9fb;

    border-left:
        4px solid
        #0d5b91;

    border-radius:
        0 8px 8px 0;
}


.research-equation-panel.statistical-panel {
    background: #fbfcfd;

    border-left-color:
        #607d92;
}


.equation-label {
    margin:
        0 0
        0.9rem;

    color: #0d5b91;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}


.equation-display {
    margin:
        1.8rem 0;

    padding:
        0.8rem 0;

    overflow-x: auto;

    text-align: center;
}


/*
   Prevent large MathJax equations from
   overflowing on smaller screens.
*/

.equation-display mjx-container {
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;
}



/* ==========================================================
   STATISTICAL–MATHEMATICAL BRIDGE
   ========================================================== */

.research-bridge {
    margin:
        2.5rem 0;

    padding:
        1.8rem
        2rem;

    background: #102f4f;

    border-radius: 10px;

    color: #dce5ec;
}


.research-bridge .equation-label {
    color: #9ec6e2;
}


.research-bridge p:last-child {
    margin-bottom: 0;
}


.research-flow {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 0.8rem;

    margin:
        1.5rem 0;

    font-size: 0.88rem;

    font-weight: 600;
}


.research-flow span:not(.flow-arrow) {
    padding:
        0.55rem
        0.8rem;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius: 6px;
}


.flow-arrow {
    color: #9ec6e2;

    font-size: 1.2rem;
}



/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .academic-hero-grid {
        grid-template-columns: 1fr;

        gap: 2.8rem;
    }


    .academic-profile {
        display: grid;

        grid-template-columns:
            145px 1fr;

        column-gap: 1.7rem;

        align-items: center;
    }


    .academic-photo-wrapper {
        grid-row:
            1 / span 5;

        width: 145px;
        height: 145px;

        margin-bottom: 0;
    }


    .profile-divider {
        margin:
            0.8rem 0;
    }


    .profile-details {
        grid-column: 2;
    }

}



@media (max-width: 600px) {

    .academic-profile {
        display: block;

        text-align: center;
    }


    .academic-photo-wrapper {
        width: 145px;
        height: 145px;

        margin:
            0 auto
            1.3rem;
    }


    .profile-divider {
        margin:
            1rem auto;
    }


    .profile-details p {
        justify-content: center;
    }


    .academic-hero-content h1 {
        font-size: 2.55rem;
    }


    .research-equation-panel,
    .research-bridge {
        padding:
            1.4rem
            1.2rem;
    }


    .research-flow {
        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }


    .flow-arrow {
        transform: rotate(90deg);
    }

}

/* ==========================================================
   FINAL HOMEPAGE PROFILE FIX
   KEEP AT VERY BOTTOM
   ========================================================== */


/* Navigation: no repeated name */

.nav-container {
    justify-content: flex-end !important;
}


/* Desktop profile layout */

@media (min-width: 901px) {

    .academic-hero-grid {
        display: grid !important;

        grid-template-columns:
            220px minmax(0, 1fr) !important;

        gap: 4rem !important;

        align-items: start !important;
    }

    .academic-profile {
        width: 220px !important;
        min-width: 220px !important;
    }

}


/* Small circular profile photo */

.academic-photo-wrapper {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;

    margin:
        0 0
        1.25rem 0 !important;

    padding: 0 !important;

    border-radius: 50% !important;

    overflow: hidden !important;

    background: #ffffff;

    border:
        1px solid #e0e6ea;

    box-shadow:
        0 6px 18px
        rgba(17, 47, 79, 0.10);
}


.academic-profile-photo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 50% !important;
}


/* Main professional title */

.academic-hero-content .hero-heading {
    max-width: 760px;

    color: #102f4f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.5rem
        );

    line-height: 1.15;

    letter-spacing: -0.02em;

    margin:
        0 0
        1.7rem;
}


/* Mobile */

@media (max-width: 900px) {

    .academic-hero-grid {
        grid-template-columns:
            1fr !important;
    }

    .academic-profile {
        width: auto !important;
    }

}


@media (max-width: 600px) {

    .academic-photo-wrapper {
        margin:
            0 auto
            1.25rem !important;
    }

    .academic-profile {
        text-align: center;
    }

    .profile-divider {
        margin:
            1rem auto !important;
    }

    .profile-details p {
        justify-content: center;
    }

}
