/* ===================================
   EI Lab Custom Academic Theme
   =================================== */

:root {
    --primary-color: #0B1F3F;
    --accent-color: #FFC72C;
    --light-bg: #F7F9FB;
    --text-color: #333333;
    --muted-text: #6B7280;
    --border-color: #DFE4E8;
    --white: #FFFFFF;
}


/* ================================
   Global
   ================================ */

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: var(--white);
}


/* ================================
   Header
   ================================ */

#header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1em 3em;
    background: rgba(255, 255, 255, 0.96);
}

#header #nav ul {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin: 0;
}

#header #nav li {
    list-style: none;
}

#header #nav a {
    color: var(--primary-color);
    font-size: 0.9em;
    text-decoration: none;
}

#header #nav a:hover {
    color: var(--accent-color);
}


/* ================================
   Hero
   ================================ */

#banner {
    min-height: 0 !important;
    height: auto !important;
    padding: 4.5em 0 1.5em 0 !important;

    background-image: url("../../images/banner.jpg");
    background-position: center;
    background-size: cover;
}

#banner:after {
    background: rgba(255, 255, 255, 0.82);
}

#banner .inner {
    padding: 0;
    margin: 0 auto;
}

#banner h2 {
    display: inline-block;
    margin: 0 0 0.6em 0;

    color: var(--primary-color);
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

#banner h2:after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 0.45em;

    background: var(--accent-color);
    border-radius: 2px;
}

#banner p {
    margin: 0;

    color: var(--primary-color);
    font-size: 1.05em;
    line-height: 1.7;
}


/* ================================
   Lab Banner
   ================================ */

.lab-banner-image {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--white);
    overflow: hidden;
}

.lab-banner-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* ================================
   About
   ================================ */

.wrapper.style1 {
    background: var(--white);
}

.wrapper.style1 .inner {
    max-width: 1000px;
    margin: 0 auto;
}

.wrapper.style1 .major {
    text-align: left !important;
}

.wrapper.style1 .major h2 {
    margin-bottom: 0.8em;

    color: var(--primary-color);
    font-size: 2em;
    font-weight: 600;
    text-align: left !important;
}

.wrapper.style1 .major p {
    max-width: none;
    margin: 0 0 1em 0;

    color: var(--text-color);
    font-size: 1em;
    line-height: 1.8;
    text-align: left !important;
}


/* ================================
   News
   ================================ */

#news {
    background: var(--light-bg);
}

#news .inner {
    max-width: 1000px;
    margin: 0 auto;
}

#news .major {
    text-align: left;
}

#news h2 {
    color: var(--primary-color);
    font-size: 2em;
    font-weight: 600;
}

.news-year {
    margin-top: 2.5em;
}

.news-year:first-of-type {
    margin-top: 0.5em;
}

.news-year > h3 {
    margin: 0 0 0.8em 0;

    color: var(--primary-color);
    font-size: 1.6em;
    font-weight: 700;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2em;

    padding: 1.1em 0;

    border-bottom: 1px solid var(--border-color);
}

.news-date {
    color: var(--muted-text);
    font-size: 0.9em;
    line-height: 1.6;
}

.news-content {
    min-width: 0;
    text-align: left;
}

.news-content h4 {
    margin: 0 0 0.4em 0;

    color: var(--primary-color);
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    margin: 0;

    font-size: 0.95em;
    line-height: 1.6;
}


/* News Icon */

.news-title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.news-title-with-icon .news-icon {
    width: 38px;
    height: 38px;

    object-fit: contain;
    flex-shrink: 0;
}


/* Open Position */

.news-tag {
    display: inline-block;
    flex-shrink: 0;

    margin-right: 0.6em;
    padding: 0.2em 0.5em;

    background: var(--accent-color);
    color: var(--primary-color);

    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;

    border-radius: 2px;
    vertical-align: middle;
}

.news-tag.closed {
    background: #9CA3AF;
    color: #FFFFFF;
}

/* ================================
   Common Page Header
   ================================ */

.page-header {
    padding: 3em 0 2em 0;
    background: var(--light-bg);
}

.page-header .inner {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header h1 {
    margin: 0 0 0.3em 0;

    color: var(--primary-color);
    font-size: 2.2em;
    font-weight: 600;
}

.page-header p {
    margin: 0;

    color: var(--muted-text);
    font-size: 0.95em;
}


/* ================================
   Team
   ================================ */

.team-section {
    padding: 2.5em 0;
    background: var(--white);
}

.team-section-light {
    background: var(--light-bg);
}

.team-section .inner {
    max-width: 1000px;
    margin: 0 auto;
}

.team-section h2 {
    margin: 0 0 1.2em 0;

    color: var(--primary-color);
    font-size: 1.6em;
    font-weight: 600;
}


/* Faculty */

.faculty-card {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.faculty-photo {
    flex: 0 0 160px;
}

.faculty-photo img {
    display: block;
    width: 160px;
    height: 160px;

    object-fit: cover;
    border-radius: 50%;
}

.faculty-info {
    flex: 1;
    max-width: 720px;
    text-align: left;
}

.faculty-info h3 {
    margin: 0 0 0.25em 0;

    color: var(--primary-color);
    font-size: 1.35em;
    font-weight: 600;
}

.member-role {
    margin: 0 0 0.7em 0;

    color: var(--muted-text);
    font-weight: 600;
}

.faculty-info p {
    margin: 0 0 0.8em 0;

    line-height: 1.65;
    text-align: left;
}


/* Students */

.student-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2em;
}

.student-card {
    text-align: center;
}

.student-card img {
    width: 95px;
    height: 95px;
    margin-bottom: 0.5em;

    object-fit: cover;
    border-radius: 50%;
}

.student-card h3 {
    margin: 0 0 0.2em 0;

    color: var(--primary-color);
    font-size: 0.95em;
    font-weight: 600;
}

.student-card p {
    margin: 0;

    color: var(--muted-text);
    font-size: 0.8em;
    line-height: 1.4;
}


/* Alumni / Former Members */

.alumni-list {
    border-top: 1px solid var(--border-color);
}

.alumni-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;

    padding: 0.65em 0;

    border-bottom: 1px solid var(--border-color);
}

.alumni-item strong {
    color: var(--primary-color);
    font-size: 0.95em;
}

.alumni-item span {
    color: var(--muted-text);
    font-size: 0.88em;
}


/* ================================
   Publications
   ================================ */

.publication-page {
    padding: 2.5em 0 3em 0;
    background: var(--white);
}

.publication-page .inner {
    max-width: 1000px;
    margin: 0 auto;
}

.page-heading {
    margin-bottom: 2em;
    text-align: left;
}

.page-heading h1 {
    margin: 0 0 0.3em 0;

    color: var(--primary-color);
    font-size: 2.1em;
    font-weight: 600;
}

.page-heading p {
    margin: 0;

    color: var(--muted-text);
    font-size: 0.9em;
}

.page-heading .publication-links {
    margin-top: 0.7em;
}

.publication-links {
    display: flex;
    gap: 1em;
}

.publication-links a {
    color: var(--primary-color);
    font-size: 0.85em;
    text-decoration: none;
}

.publication-links a:hover {
    color: var(--accent-color);
}


/* Publication Year */

.publication-year {
    margin-bottom: 1.8em;
}

.publication-year h2 {
    margin: 0 0 0.6em 0;
    padding-bottom: 0.3em;

    color: var(--primary-color);
    font-size: 1.45em;
    font-weight: 700;

    border-bottom: 2px solid var(--accent-color);
}


/* Publication Item */

.publication-item {
    padding: 0.5em 0;
    border-bottom: 1px solid var(--border-color);
}

.publication-details {
    font-size: 0.85em;
    line-height: 1.55;
}

.publication-number {
    color: var(--primary-color);
    font-weight: 600;
}

.publication-title {
    color: var(--primary-color);
    font-weight: 600;
}

.publication-authors {
    color: var(--text-color);
}

.publication-venue,
.publication-pages {
    color: var(--muted-text);
}

.publication-details a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.publication-details a:hover {
    color: var(--accent-color);
}

.publication-loading,
.publication-error,
.publication-empty {
    color: var(--muted-text);
    font-size: 0.9em;
}


/* ================================
   Research
   ================================ */

.research-page {
    padding: 2.5em 0 4em 0;
    background: var(--white);
}

.research-page .inner {
    max-width: 1000px;
    margin: 0 auto;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.research-card {
    padding: 0;

    background: var(--white);
    border: 1px solid var(--border-color);
}

.research-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.research-card h2 {
    margin: 0.9em 1em 0.35em 1em;

    color: var(--primary-color);
    font-size: 1.05em;
    font-weight: 600;
}

.research-card p {
    margin: 0 1em 0.8em 1em;

    color: var(--text-color);
    font-size: 0.85em;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    margin: 0 1em 1em 1em;

    color: var(--primary-color);
    font-size: 0.8em;
    font-weight: 600;
    text-decoration: none;
}

.project-link:hover {
    color: var(--accent-color);
}


/* ================================
   Teaching
   ================================ */

.teaching-term {
    margin-bottom: 2em;
}

.teaching-term h3 {
    margin: 0 0 0.7em 0;
    padding-bottom: 0.4em;

    color: var(--primary-color);
    font-size: 1.35em;
    font-weight: 600;

    border-bottom: 2px solid var(--accent-color);
}

.course-list {
    margin: 0;
    padding-left: 1.2em;
}

.course-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.course-list strong {
    color: var(--primary-color);
}


/* ================================
   Footer
   ================================ */

#footer {
    padding: 2.5em 0;

    background: var(--primary-color);
    text-align: center;
}

#footer p {
    color: var(--white);
}

#footer a {
    color: var(--accent-color);
    text-decoration: none;
}

#footer a:hover {
    color: var(--white);
}


/* ================================
   Responsive: Tablet
   ================================ */

@media screen and (max-width: 980px) {

    .student-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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


/* ================================
   Responsive: Mobile
   ================================ */

@media screen and (max-width: 736px) {

    /* Header */

    #header {
        justify-content: center;
        padding: 1em;
    }

    #header #nav ul {
        gap: 0.8em;
        flex-wrap: wrap;
        justify-content: center;
    }

    #header #nav a {
        font-size: 0.8em;
    }


    /* Hero */

    #banner {
        padding: 4em 1.5em 1em 1.5em !important;
    }

    #banner h2 {
        font-size: 2em;
    }

    #banner p {
        font-size: 0.9em;
    }

    #banner h2:after {
        width: 50px;
        height: 3px;
    }


    /* About */

    .wrapper.style1 h2 {
        font-size: 1.7em;
    }


    /* News */

    #news h2 {
        font-size: 1.7em;
    }

    .news-year > h3 {
        font-size: 1.4em;
    }

    .news-item {
        grid-template-columns: 75px 1fr;
        gap: 1em;
    }

    .news-date {
        font-size: 0.8em;
    }

    .news-content h4 {
        font-size: 1em;
    }

    .news-title-with-icon .news-icon {
        width: 32px;
        height: 32px;
    }

    .news-tag {
        font-size: 0.6em;
    }


    /* Team */

    .page-header {
        padding: 2.5em 1.5em 1.5em 1.5em;
    }

    .team-section {
        padding: 2em 1.5em;
    }

    .team-section h2 {
        margin-bottom: 1em;
        font-size: 1.4em;
    }

    .faculty-card {
        display: block;
        text-align: center;
    }

    .faculty-photo {
        margin: 0 auto 1em auto;
    }

    .faculty-info {
        margin: 0 auto;
        text-align: left;
    }

    .student-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2em;
    }

    .student-card img {
        width: 85px;
        height: 85px;
    }

    .alumni-item {
        display: block;
        padding: 0.6em 0;
    }

    .alumni-item span {
        display: block;
        margin-top: 0.2em;
    }


    /* Publications */

    .publication-page {
        padding: 2em 1.5em 2.5em 1.5em;
    }

    .page-heading h1 {
        font-size: 1.8em;
    }

    .publication-year h2 {
        font-size: 1.3em;
    }

    .publication-details {
        font-size: 0.82em;
        line-height: 1.5;
    }


    /* Research */

    .research-page {
        padding: 2em 1.5em 3em 1.5em;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-card img {
        height: 200px;
    }
}