
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    --navy: #10243a;
    --navy-light: #193954;
    --blue: #2c6e91;
    --blue-soft: #eaf2f7;
    --gold: #b69b69;
    --text: #263747;
    --muted: #748391;
    --white: #ffffff;
    --surface: #f6f8fa;
    --border: #e7ecf0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    border-radius: 5px;
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 1px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.brand-name strong {
    color: var(--navy);
    font-size: 15px;
}

.brand-name small {
    color: var(--muted);
    font-size: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-size: 12px;
    color: #4c5c69;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--blue);
}


.language-list {
    display: flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
    font-size: 10px;
}

.language-list a {
    padding: 5px 7px;
    color: var(--muted);
    border-radius: 3px;
    transition: 0.2s;
}

.language-list a:hover,
.language-list a.active {
    background: var(--blue-soft);
    color: var(--navy);
    font-weight: 700;
}


.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 30%, #e9f1f6 0, transparent 32%),
        linear-gradient(120deg, #ffffff 40%, #f4f7fa 100%);
    padding-top: 75px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
    min-height: 470px;
}

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    direction: ltr;
}

.hero-content h1 {
    color: var(--navy);
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.55;
    font-weight: 700;
    margin: 20px 0;
}

.hero-content h1 span {
    color: var(--blue);
    display: block;
}

.hero-description {
    max-width: 570px;
    color: #617180;
    font-size: 15px;
    line-height: 2.3;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.button {
    min-height: 48px;
    padding: 10px 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    transition: 0.2s ease;
}

.button-primary {
    color: white;
    background: var(--navy);
}

.button-primary:hover {
    background: var(--blue);
}

.button-outline {
    border: 1px solid #cbd5dd;
    color: var(--navy);
}

.button-outline:hover {
    background: var(--blue-soft);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
    color: var(--muted);
    font-size: 11px;
}

.note-line {
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.portrait-frame {
    position: relative;
    z-index: 2;
    aspect-ratio: 0.86;
    padding: 12px;
    background: white;
    border: 1px solid #dce5eb;
    box-shadow: 0 25px 60px rgba(16, 36, 58, 0.10);
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #dce8ef, #b9ccd9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.portrait-placeholder span {
    font-family: Georgia, serif;
    font-size: 75px;
    font-weight: 400;
}

.portrait-placeholder small {
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 10px;
    direction: ltr;
}

.visual-caption {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    font-family: Georgia, serif;
    font-size: 11px;
    color: var(--muted);
    direction: ltr;
}

.caption-dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
}

.visual-decoration {
    position: absolute;
    border: 1px solid #cbdce7;
    z-index: 1;
}

.decoration-one {
    width: 90px;
    height: 90px;
    top: -28px;
    right: -28px;
}

.decoration-two {
    width: 130px;
    height: 130px;
    bottom: 35px;
    left: -35px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    padding: 35px 0 22px;
    border-top: 1px solid var(--border);
    margin-top: 65px;
    font-size: 9px;
    color: #94a1ab;
    letter-spacing: 1px;
    direction: ltr;
}

.section-padding {
    padding: 100px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.section-heading h2,
.section-title-row h2,
.split-section h2,
.research-inner h2,
.contact-inner h2 {
    color: var(--navy);
    font-size: 28px;
    line-height: 1.8;
    margin: 12px 0;
}

.intro-content p {
    color: #657482;
    font-size: 15px;
    line-height: 2.5;
    margin-top: 0;
}

.text-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.text-link:hover {
    color: var(--navy);
}

.expertise-section {
    background: var(--surface);
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.section-title-row p {
    max-width: 340px;
    color: var(--muted);
    font-size: 12px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.expertise-card {
    background: white;
    border: 1px solid var(--border);
    padding: 28px 22px;
    min-height: 225px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 36, 58, 0.07);
}

.card-number {
    font-family: Georgia, serif;
    color: var(--gold);
    font-size: 14px;
    direction: ltr;
}

.expertise-card h3 {
    font-size: 16px;
    color: var(--navy);
    margin: 22px 0 12px;
}

.expertise-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 2.1;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.split-section p,
.research-inner p,
.contact-inner p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.5;
}

.research-section {
    background: #f3f6f8;
}

.research-inner {
    max-width: 800px;
}

.research-inner p {
    max-width: 670px;
}

.contact-section {
    background: var(--navy);
    color: white;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.contact-inner h2 {
    color: white;
}

.contact-inner p {
    color: #c0ccd5;
    max-width: 620px;
}

.button-light {
    background: white;
    color: var(--navy);
    flex-shrink: 0;
}

.button-light:hover {
    background: var(--blue-soft);
}

.site-footer {
    background: #0b1a2a;
    color: #9baab6;
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero-grid {
        gap: 45px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 600px);
    }

    .header-inner {
        min-height: 75px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding: 8px 0;
        justify-content: flex-start;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .hero-section {
        padding-top: 50px;
    }

    .hero-grid,
    .intro-grid,
    .split-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-visual {
        max-width: 310px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-bottom {
        margin-top: 45px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .section-title-row,
    .contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card {
        min-height: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

.hero-professional-title {
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-top: -8px;
    margin-bottom: 15px;
}

.empty-content {
    color: var(--muted);
    font-size: 13px;
    padding: 20px 0;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    direction: ltr;
}

.footer-socials a {
    color: #c0ccd5;
    font-size: 11px;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: white;
}

.profile-portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* About Page */

.about-page {
    min-height: 65vh;
    padding-top: 80px;
    padding-bottom: 100px;
}

.about-page .section-heading {
    max-width: 780px;
    margin-bottom: 55px;
}

.about-page .section-heading h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin: 15px 0;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 60px;
    align-items: start;
}

.about-main h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.about-main h3 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-biography {
    line-height: 2.2;
    color: var(--text);
    font-size: 1rem;
}

.about-side {
    display: grid;
    gap: 18px;
}

.about-highlight {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.about-highlight span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-highlight p {
    margin: 0;
    color: var(--text);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-page .section-heading h1 {
        font-size: 2rem;
    }
}


/* ================================
   Expertise Detail Page
================================ */

.expertise-page {
    padding: 90px 0 110px;
    min-height: 65vh;
}

.expertise-page-header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.expertise-page-header .section-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #2563a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.expertise-page-header h1 {
    margin-bottom: 20px;
    color: #172b4d;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
}

.expertise-page-header p {
    color: #64748b;
    font-size: 16px;
    line-height: 2;
}

.expertise-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.expertise-detail-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(23, 43, 77, 0.08);
}

.expertise-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin-bottom: 20px;
    padding: 8px 12px;
    color: #2563a6;
    background: #edf4fc;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.expertise-detail-card h2 {
    margin-bottom: 14px;
    color: #172b4d;
    font-size: 20px;
    font-weight: 700;
}

.expertise-detail-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 2.1;
}

.expertise-empty {
    padding: 35px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 14px;
}

.expertise-page-footer {
    margin-top: 45px;
    text-align: center;
}

@media (max-width: 768px) {
    .expertise-page {
        padding: 60px 0 75px;
    }

    .expertise-page-grid {
        grid-template-columns: 1fr;
    }

    .expertise-detail-card {
        padding: 25px;
    }
}

.expertise-more {
    margin-top: 32px;
    text-align: center;
}

.profile-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: inherit;
}

.portrait-frame {
    overflow: hidden;
    position: relative;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #edf2f8;
    color: #172b4d;
}

.portrait-placeholder span {
    font-size: 64px;
    font-weight: 800;
}

.portrait-placeholder small {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 2px;
}


/* ========================================
   HOME PAGE — HERO REFINEMENT
======================================== */

.hero-section {
    padding-top: 88px;
    background:
        radial-gradient(circle at 82% 28%, #e9f1f6 0, transparent 34%),
        linear-gradient(120deg, #ffffff 35%, #f3f7fa 100%);
}

.hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 72px;
    min-height: 510px;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1.65;
    letter-spacing: -1px;
    margin: 22px 0 18px;
}

.hero-professional-title {
    font-size: 14px;
    line-height: 2.1;
    font-weight: 700;
    margin: 0 0 18px;
}

.hero-description {
    max-width: 590px;
    font-size: 15px;
    line-height: 2.5;
    color: #5d6d7b;
}

.hero-actions {
    margin-top: 32px;
}

.button {
    min-height: 50px;
    padding: 11px 26px;
}

.button-primary {
    box-shadow: 0 8px 20px rgba(16, 36, 58, 0.12);
}

.button-primary:hover {
    transform: translateY(-2px);
}

.button-outline:hover {
    transform: translateY(-2px);
}

.hero-visual {
    max-width: 410px;
}

.portrait-frame {
    aspect-ratio: 0.86;
    padding: 10px;
    border: 1px solid #dce5eb;
    background: #fff;
    box-shadow: 0 28px 65px rgba(16, 36, 58, 0.13);
}

.profile-portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
}

.visual-caption {
    padding-top: 20px;
}

.hero-note {
    margin-top: 38px;
}

@media (max-width: 760px) {
    .hero-section {
        padding-top: 45px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-content h1 {
        font-size: 35px;
        line-height: 1.7;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        max-width: 320px;
    }

    .hero-note {
        margin-top: 28px;
    }
}

/* ========================================
   HOME PAGE — INTRO SECTION REFINEMENT
======================================== */

.intro-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    align-items: start;
    gap: 80px;
}

.intro-section .section-heading h2 {
    max-width: 420px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.9;
    color: var(--navy);
}

.intro-content {
    max-width: 720px;
}

.intro-text {
    color: var(--text);
    font-size: 16px;
    line-height: 2.7;
    text-align: justify;
}

.intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-top: 30px;
}

.intro-links .text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    transition: color 0.2s ease;
}

.intro-links .text-link:hover {
    color: var(--navy);
}

@media (max-width: 760px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .intro-section .section-heading h2 {
        font-size: 27px;
    }

    .intro-text {
        font-size: 14px;
        line-height: 2.5;
        text-align: right;
    }

    .intro-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* =========================================
   PROFESSIONAL COLLABORATION SECTION
========================================= */

.collaboration-section {
    position: relative;
    background: var(--surface);
    overflow: hidden;
}

.collaboration-section .section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.collaboration-section .section-title-row h2,
.teaching-section h2 {
    color: var(--navy);
    margin-top: 12px;
}

.collaboration-section .section-title-row > p {
    max-width: 390px;
    color: var(--muted);
    line-height: 2;
    margin: 0;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.collaboration-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 310px;
    padding: 38px 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.collaboration-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to left,
        var(--blue),
        var(--gold)
    );
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.collaboration-card:hover {
    transform: translateY(-6px);
    border-color: rgba(44, 110, 145, 0.25);
    box-shadow: 0 18px 40px rgba(16, 36, 58, 0.09);
}

.collaboration-card:hover::before {
    transform: scaleX(1);
}

.collaboration-number {
    position: absolute;
    top: 22px;
    left: 26px;
    color: #dce5eb;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.collaboration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 14px;
}

.collaboration-icon i {
    display: block;
    font-size: 25px;
    font-style: normal;
}

.collaboration-icon i.icon-university::before {
    content: "∑";
}

.collaboration-icon i.icon-building::before {
    content: "⌬";
}

.collaboration-card h3 {
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}

.collaboration-card > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.1;
    margin: 0 0 25px;
    max-width: 480px;
}

.collaboration-card .text-link {
    margin-top: auto;
}


/* =========================================
   TEACHING INTRODUCTION
========================================= */

.teaching-section {
    background: var(--white);
}

.teaching-intro {
    margin-bottom: 65px;
}

.teaching-intro h2 {
    max-width: 470px;
    line-height: 1.8;
}

.teaching-intro > div:last-child > p {
    color: var(--muted);
    line-height: 2.2;
    margin-bottom: 20px;
}


/* =========================================
   TEACHING COURSES
========================================= */

.teaching-courses {
    margin-top: 55px;
}

.teaching-section .section-heading {
    margin-bottom: 28px;
}

.teaching-section .section-heading h3 {
    color: var(--navy);
    font-size: 22px;
    margin-top: 10px;
}

.teaching-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.teaching-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 205px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.teaching-course-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 36, 58, 0.07);
}

.course-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 19px;
}

.teaching-course-card h4 {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 10px;
}

.teaching-course-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin: 0 0 15px;
}

.course-duration {
    margin-top: auto;
    padding-top: 10px;
    color: var(--gold);
    font-size: 12px;
}


/* =========================================
   TEACHING ENGAGEMENTS
========================================= */

.teaching-engagements {
    margin-top: 75px;
}

.engagement-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.engagement-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) 1.7fr;
    gap: 30px;
    padding: 27px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: 3px solid var(--blue);
    border-radius: 8px;
    transition: box-shadow 0.25s ease;
}

.engagement-card:hover {
    box-shadow: 0 10px 25px rgba(16, 36, 58, 0.06);
}

.engagement-main h4 {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 8px;
}

.engagement-period {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
}

.engagement-details h5 {
    color: var(--blue);
    font-size: 14px;
    margin: 0 0 9px;
}

.engagement-details p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2.1;
    margin: 0;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 992px) {

    .teaching-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collaboration-card {
        padding: 30px 25px;
    }

    .engagement-card {
        grid-template-columns: 1fr 1.5fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .collaboration-section .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .collaboration-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .collaboration-card {
        min-height: auto;
        padding: 30px 25px;
    }

    .teaching-intro {
        margin-bottom: 45px;
    }

    .teaching-course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .teaching-course-card {
        min-height: auto;
    }

    .teaching-engagements {
        margin-top: 55px;
    }

    .engagement-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }
}

@media (max-width: 480px) {

    .collaboration-card h3 {
        font-size: 18px;
    }

    .collaboration-number {
        font-size: 28px;
        left: 20px;
    }

    .teaching-section .section-heading h3 {
        font-size: 19px;
    }
}


/* Accessibility: reduced motion */

@media (prefers-reduced-motion: reduce) {

    .collaboration-card,
    .collaboration-card::before,
    .teaching-course-card,
    .engagement-card {
        transition: none;
    }

    .collaboration-card:hover,
    .teaching-course-card:hover {
        transform: none;
    }
}


/* =========================================
   RESEARCH & INNOVATION
========================================= */

.research-section {
    background: var(--surface);
}

.research-intro {
    max-width: 760px;
    margin-bottom: 55px;
}

.research-intro h2 {
    color: var(--navy);
    margin: 12px 0 18px;
}

.research-intro > p {
    color: var(--muted);
    line-height: 2.2;
}

.research-areas,
.research-projects {
    margin-top: 50px;
}

.research-section .section-heading {
    margin-bottom: 25px;
}

.research-section .section-heading h3 {
    color: var(--navy);
    font-size: 21px;
}

.research-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.research-area-card {
    position: relative;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 36, 58, 0.07);
}

.research-card-number {
    display: block;
    color: var(--gold);
    font: 700 25px Arial, sans-serif;
    margin-bottom: 18px;
}

.research-area-card h4,
.research-project-card h4 {
    color: var(--navy);
    font-size: 17px;
    margin: 0 0 12px;
}

.research-area-card p,
.research-project-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2.1;
    margin: 0 0 10px;
}

.research-project-list {
    display: grid;
    gap: 16px;
}

.research-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 26px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-right: 3px solid var(--blue);
    border-radius: 9px;
}

.research-project-content {
    flex: 1;
}

.research-project-year {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 12px;
}

.research-project-card .text-link {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .research-area-grid {
        grid-template-columns: 1fr;
    }

    .research-project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .research-area-card {
        transition: none;
    }

    .research-area-card:hover {
        transform: none;
    }
}


/* ==============================
   Portfolio Page
================================ */

.portfolio-page {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(16, 36, 58, 0.09);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--surface);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 26px;
}

.portfolio-card-meta {
    margin-bottom: 14px;
}

.portfolio-status {
    display: inline-block;
    padding: 6px 12px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 30px;
    font-size: 0.82rem;
}

.portfolio-card h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1.8;
}

.portfolio-card h3 {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.98rem;
    font-weight: 500;
}

.portfolio-summary,
.portfolio-description,
.portfolio-role {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 2;
}

.portfolio-summary {
    margin-bottom: 12px;
}

.portfolio-description {
    margin-bottom: 12px;
}

.portfolio-role {
    margin-top: 8px;
}

.portfolio-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.portfolio-technologies span {
    padding: 6px 10px;
    color: var(--navy-light);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    direction: ltr;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.portfolio-link:hover {
    color: var(--navy);
}

.portfolio-empty {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background: var(--surface);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-card-content {
        padding: 22px;
    }
}
