/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --success-color: #28a745;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --news-media-ratio: 16 / 9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ===== Header ===== */
.header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 15px 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    padding: 4px;
}

.site-title h1 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.site-title p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #ffffff;
    color: #111111;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-menu-bars,
.mobile-menu-bars::before,
.mobile-menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-bars {
    position: relative;
}

.mobile-menu-bars::before,
.mobile-menu-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.mobile-menu-bars::before {
    top: -6px;
}

.mobile-menu-bars::after {
    top: 6px;
}

.mobile-menu-btn.is-open .mobile-menu-bars {
    transform: rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-bars::before {
    transform: translateY(6px) rotate(-90deg);
}

.mobile-menu-btn.is-open .mobile-menu-bars::after {
    opacity: 0;
}

.header-home .container {
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 20px;
}

.header-home .home-logo-left,
.header-home .home-logo-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-home .home-site-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    color: #ffffff;
    flex: 0 1 auto;
    min-width: 190px;
}

.header-home .home-site-title:hover {
    color: #ffffff;
}

.header-home .home-site-title h1 {
    font-size: 1.42rem;
    line-height: 1.15;
    margin: 0;
}

.header-home .home-site-title p {
    font-size: 0.82rem;
    line-height: 1.2;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.header-home .home-logo-left img,
.header-home .home-logo-right img {
    height: 58px;
    width: auto;
    border-radius: 8px;
    padding: 4px;
}

.header-home .main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-home .main-nav ul {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
}

.header-home .main-nav a {
    padding: 9px 11px;
    font-size: 1.02rem;
    white-space: nowrap;
}

.header-home .mobile-menu-btn {
    margin-left: 0;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    color: var(--bg-white);
    padding: 0;
    text-align: center;
}

.hero-carousel-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(120deg, rgba(0, 30, 60, 0.72) 0%, rgba(0, 20, 35, 0.45) 55%, rgba(0, 20, 35, 0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.hero-content .btn {
    pointer-events: auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

.carousel-track {
    position: relative;
    height: 360px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    color: #111111;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 4;
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.carousel-dot.active {
    background-color: var(--bg-white);
}

/* ===== Page Header ===== */
.page-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--bg-white);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* ===== Sections ===== */
.section {
    padding: 48px 0 36px;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ===== Research Showcase ===== */
.research-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.research-nav {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 2px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.research-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.research-nav-spacer {
    flex: 0 0 auto;
    pointer-events: none;
    height: 1px;
}

.research-nav-item {
    border: none;
    background: transparent;
    color: var(--text-light);
    text-align: center;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 14px 10px;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.research-nav-item:hover,
.research-nav-item.active {
    color: var(--secondary-color);
    border-bottom-color: var(--accent-color);
    transform: translateY(-1px);
}

.research-display {
    position: relative;
    min-height: 360px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.research-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

.research-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.research-panel-media {
    flex: 0 0 40%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.research-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.research-panel-body {
    flex: 1;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.research-panel-body h3 {
    color: var(--primary-color);
}

.research-panel-body p {
    color: var(--text-light);
    margin: 0;
}

.about-text p,
.research-panel-body p,
.research-list-body p,
.news-content p,
.news-highlight-content p,
.news-article p,
.research-intro-content p,
.related-pub-line,
.positions-intro p,
.position-card p,
.teaching-intro,
.abstract-text {
    text-align: justify;
    text-justify: inter-ideograph;
}

.research-panel-body .btn {
    margin-top: auto;
}

/* ===== News List ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.home-news-section-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-news-section-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.home-news-highlight-carousel {
    position: relative;
}

.home-news-highlight-track {
    position: relative;
    display: grid;
}

.home-news-highlight-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.42s ease, transform 0.42s ease, visibility 0.42s ease;
    pointer-events: none;
}

.home-news-highlight-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.home-news-highlight-slide .news-item {
    margin-bottom: 0;
}

.home-news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111111;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow);
}

.home-news-nav.prev {
    left: -20px;
}

.home-news-nav.next {
    right: -20px;
}

.home-news-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 51, 102, 0.28);
    cursor: pointer;
}

.home-news-dot.active {
    background-color: var(--primary-color);
}

.home-news-regular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-news-regular-grid .news-item--regular-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 10px;
    padding: 22px;
    margin-bottom: 0;
}

.home-news-regular-grid .news-item--regular-card .news-meta {
    display: block;
    margin: 0;
}

.home-news-regular-grid .news-item--regular-card h3 {
    margin: 0;
    color: var(--primary-color);
    line-height: 1.35;
}

.home-news-regular-grid .news-item--regular-card h3 a {
    color: var(--primary-color);
}

.home-news-regular-grid .news-item--regular-card h3 a:hover {
    color: var(--secondary-color);
}

.home-news-regular-grid .news-item--regular-card p {
    color: var(--text-light);
    margin: 0;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    margin-top: 5px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-light);
}

.news-item--highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    gap: 24px;
    align-items: stretch;
    min-height: 300px;
}

.news-highlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #fce8d6;
    color: #9a3e00;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.news-item--highlight .news-meta {
    margin-bottom: 12px;
}

.news-item--highlight .news-content h3,
.news-item--highlight .news-highlight-content h3 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

.news-item--highlight .news-content p,
.news-item--highlight .news-highlight-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

.news-highlight-media {
    min-width: 0;
}

.news-item--highlight-no-media {
    grid-template-columns: 1fr;
}

.news-item--highlight .news-highlight-media .news-media-frame {
    aspect-ratio: 16 / 9;
}

/* ===== Publications ===== */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pub-item {
    display: flex;
    gap: 20px;
    padding: 35px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.pub-year {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    height: fit-content;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pub-title a {
    color: var(--primary-color);
}

.pub-authors {
    color: var(--text-color);
    margin-bottom: 5px;
}

.pub-journal {
    color: var(--text-light);
    font-style: normal;
}

.pub-journal em,
.research-pub-venue em {
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--bg-white);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
}

/* ===== People List Styles ===== */
.people-category {
    margin-bottom: 50px;
}

.people-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 12px;
    justify-content: start;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: left;
    padding: 10px 12px;
    min-height: 116px;
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.person-card-photo {
    flex: 0 0 78px;
}

.person-card img {
    width: 78px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 2px solid var(--border-color);
}

.person-card-info {
    min-width: 0;
}

.person-card:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.person-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.person-card .position {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.person-card:hover h4 {
    color: var(--secondary-color);
}

.alumni-list {
    list-style: none;
    padding: 0;
}

.alumni-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===== Publications List Page ===== */
.pub-filters {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 11px 24px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pub-by-year h3 {
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.publications.section .pub-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.publications-list .pub-year-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.publications-list .pub-item.pub-item--card,
.publications.section .pub-item.pub-item--card {
    display: block;
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.publications-list .pub-item.pub-item--card:hover,
.publications.section .pub-item.pub-item--card:hover {
    border-color: #cfd8e3;
    box-shadow: 0 2px 8px rgba(15, 38, 77, 0.08);
}

.publications-list .pub-item.pub-item--card .pub-content,
.publications.section .pub-item.pub-item--card .pub-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publications-list .pub-title-row,
.publications.section .pub-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.publications-list .pub-title.pub-title--strong,
.publications.section .pub-title.pub-title--strong {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color);
}

.publications-list .pub-type-tag,
.publications.section .pub-type-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.publications-list .pub-type-tag.preprints,
.publications.section .pub-type-tag.preprints {
    background-color: #fce8d6;
    color: #9a3e00;
    border-color: #f4d3b3;
}

.publications-list .pub-type-tag.journal-articles,
.publications.section .pub-type-tag.journal-articles {
    background-color: #dff3e5;
    color: #155724;
    border-color: #c4e5cf;
}

.publications-list .pub-type-tag.theses,
.publications.section .pub-type-tag.theses {
    background-color: #ece3fa;
    color: #4b2d83;
    border-color: #d7c5f4;
}

.publications-list .pub-type-tag.book-chapters,
.publications.section .pub-type-tag.book-chapters {
    background-color: #dceffd;
    color: #0d4e7b;
    border-color: #c2e3fa;
}

.publications-list .pub-item.pub-item--card .pub-authors,
.publications-list .pub-item.pub-item--card .pub-journal,
.publications.section .pub-item.pub-item--card .pub-authors,
.publications.section .pub-item.pub-item--card .pub-journal {
    margin: 0;
    line-height: 1.55;
}

.publications-list .pub-item.pub-item--card .pub-links,
.publications.section .pub-item.pub-item--card .pub-links {
    margin-top: 2px;
}

.publications-list .pub-item.pub-item--card .pub-link,
.publications.section .pub-item.pub-item--card .pub-link {
    background-color: #f2f5f8;
}

.pub-type {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.pub-type.journal {
    background-color: #d4edda;
    color: #155724;
}

.pub-type.conference {
    background-color: #cce5ff;
    color: #004085;
}

.pub-type.preprints {
    background-color: #fce8d6;
    color: #9a3e00;
}

.pub-type.journal-articles {
    background-color: #d4edda;
    color: #155724;
}

.pub-type.theses {
    background-color: #e7def8;
    color: #4b2d83;
}

.pub-type.book-chapters {
    background-color: #d7edf9;
    color: #0d4e7b;
}

.pub-links {
    margin-top: 10px;
}

.pub-link {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 8px;
}

.pub-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ===== News List Page ===== */
.news-article {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-meta .category {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.news-article h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-article p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
}

.news-article--highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    gap: 24px;
    align-items: stretch;
    min-height: 300px;
}

.news-article--highlight-no-media {
    grid-template-columns: minmax(0, 1fr);
}

.news-article--highlight h3 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

.news-article--highlight p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

.news-article h3 a {
    color: var(--primary-color);
}

.news-article h3 a:hover {
    color: var(--secondary-color);
}

.news-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: transparent;
}

.news-list-pagination--top {
    margin-bottom: 20px;
}

.news-list-pagination--bottom {
    margin-top: 8px;
}

.news-page-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.news-page-btn {
    min-width: 38px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0, 51, 102, 0.28);
    border-radius: 7px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.08);
}

.news-page-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.news-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news-page-btn--nav {
    min-width: 64px;
}

.news-page-summary {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-left: 4px;
}

/* ===== Research List ===== */
.research-list-item {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.research-list-media {
    flex: 0 0 42%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.research-list-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.research-list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.research-list-body h3 {
    color: var(--primary-color);
    margin: 0;
}

.research-list-body p {
    color: var(--text-light);
    margin: 0;
}

.research-list-body .btn {
    align-self: flex-start;
}

.research-media-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.research-media-single,
.research-media-empty {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
}

.research-media-empty {
    display: grid;
    place-items: center;
}

.research-media-empty p {
    color: var(--text-light);
    margin: 0;
}

.research-media-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
}

.research-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.research-media-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.research-media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.research-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.research-media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111111;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow);
}

.research-media-arrow.prev {
    left: -20px;
}

.research-media-arrow.next {
    right: -20px;
}

.research-media-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.research-media-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 51, 102, 0.28);
    cursor: pointer;
}

.research-media-dot.active {
    background-color: var(--primary-color);
}

.positions-intro {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.positions-intro h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.positions-intro p {
    margin-bottom: 12px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.position-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.position-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.position-card p {
    margin-bottom: 12px;
}

.position-card ul {
    padding-left: 20px;
}

.position-card li {
    margin-bottom: 6px;
}

.teaching-intro {
    margin-bottom: 18px;
    color: var(--text-light);
}

.teaching-term {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.teaching-term h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.teaching-term ul {
    padding-left: 22px;
}

.teaching-term li {
    margin-bottom: 8px;
}

/* ===== Detail Page Styles ===== */
.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.person-detail-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.person-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.person-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.person-position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.person-contact p {
    margin-bottom: 10px;
}

.person-links-detail {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.pub-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.pub-detail-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pub-authors-detail {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.pub-venue {
    color: var(--text-light);
    font-style: italic;
}

.pub-detail-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.abstract-text {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.keywords {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.keyword {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.citation-box {
    position: relative;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.citation-box button {
    position: absolute;
    top: 10px;
    right: 10px;
}

.research-detail-header {
    margin-bottom: 24px;
}

.research-detail-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.research-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 24px;
    align-items: start;
}

.research-intro-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-intro-content p {
    margin: 0;
}

.related-pubs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-pub-line {
    display: block;
    color: #111;
    text-decoration: none;
    line-height: 1.65;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-pub-line:last-child {
    border-bottom: none;
}

.related-pub-line:hover {
    color: #111;
    text-decoration: underline;
}

.research-pub-title {
    font-weight: 700;
    color: #111;
}

.research-pub-authors,
.research-pub-venue {
    font-weight: 400;
    color: #111;
}

.research-pub-sep {
    color: #111;
}

.pub-item-small {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
}

.pub-item-small .pub-title {
    margin-bottom: 8px;
}

.team-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.team-member-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--bg-light);
    text-decoration: none;
    color: inherit;
}

.team-member-mini img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-name {
    margin: 0 0 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.team-member-role {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

.news-detail-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.news-detail-header time {
    color: var(--text-light);
}

.news-category {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 4px;
}

.news-detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    --news-media-ratio: 16 / 9;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    margin: 0;
}

.news-image-carousel,
.news-media-carousel {
    position: relative;
    margin: 30px 0;
}

.news-media-carousel {
    width: 100%;
    overflow: visible;
}

.news-media-single,
.news-media-empty {
    position: relative;
    width: 100%;
    aspect-ratio: var(--news-media-ratio);
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
}

.news-media-empty {
    display: grid;
    place-items: center;
}

.news-media-empty p {
    margin: 0;
    color: var(--text-light);
}

.news-media-track {
    position: relative;
    aspect-ratio: var(--news-media-ratio);
    border-radius: 10px;
    overflow: hidden;
}

.news-item--highlight .news-media-carousel,
.news-item--highlight .news-media-single,
.news-item--highlight .news-media-empty,
.news-article--highlight .news-media-carousel,
.news-article--highlight .news-media-single,
.news-article--highlight .news-media-empty {
    margin: 0;
}

.news-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.news-media-slide.active {
    opacity: 1;
    pointer-events: auto;
}

#news-media {
    margin-top: 24px;
}

#news-media > .news-media-frame {
    margin: 0;
}

.news-media-frame {
    position: relative;
    aspect-ratio: var(--news-media-ratio);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.news-media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111111;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow);
}

.news-media-arrow.prev {
    left: -20px;
}

.news-media-arrow.next {
    right: -20px;
}

.news-media-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.news-media-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 51, 102, 0.28);
    cursor: pointer;
}

.news-media-dot.active {
    background-color: var(--primary-color);
}

.empty-state-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.news-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.news-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.share-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 5px;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2,
.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== Content Layout ===== */
.content-wrapper {
    display: flex;
    gap: 40px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    position: sticky;
    top: 100px;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.content-area {
    flex: 1;
}

.content-area [data-column] > h2 {
    margin-bottom: 30px;
}

.main-content {
    padding: 72px 0 96px;
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===== Loading State ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}