/*
Theme Name: Materials Lab HCMUS
Theme URI: https://materials-lab.hcmus.edu.vn
Author: Hoang Van Dung
Author URI: https://materials-lab.hcmus.edu.vn
Description: Theme WordPress tùy chỉnh chuyển đổi từ giao diện site tĩnh của Laboratory of Advanced Materials - HCMUS. Giữ nguyên thiết kế gốc, thêm khả năng quản lý Tin tức, Thành viên, Bài báo qua wp-admin.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: materials-lab
*/

/*=====================================================================
  Tên File: style.css
  Mô Tả: Các quy tắc CSS chính cho trang web.
  Chứa các định nghĩa chung, bố cục, và kiểu dáng cho từng phần.
  (Giữ nguyên 100% từ site tĩnh gốc - assets/css/style.css)
=====================================================================*/

/*---------------------------------------------------------------------
  Thiết Lập Chung & Phông Chữ
---------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
    --accent-color: #dc3545;
    --background-color: #f8f9fa;
    --card-background-color: #ffffff;
    --text-color: #343a40;
    --light-text-color: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 12px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 12px 20px rgba(0, 0, 0, 0.2);
    --gradient-blue: linear-gradient(45deg, #007BFF, #0056b3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: #212529;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text-color);
    font-weight: 400;
}

/*---------------------------------------------------------------------
  Các Nút (Buttons)
---------------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn .fab {
    margin-right: 8px;
}

/*---------------------------------------------------------------------
  Loading Screen
---------------------------------------------------------------------*/
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d1a26;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading .loading-content {
    text-align: center;
}

.loading .fas {
    font-size: 4rem;
    animation: spin 2s linear infinite;
    color: var(--primary-color);
}

.loading p {
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*---------------------------------------------------------------------
  Header & Navigation
---------------------------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--shadow-light);
    z-index: 999;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* Header dung position:fixed nen khong tu chay xuong duoi WP admin bar
   (32px khi dang nhap) - phai day thu cong, neu khong logo se bi che mat. */
body.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #fff;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 400;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/*---------------------------------------------------------------------
  Hero Section
---------------------------------------------------------------------*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 180px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/*---------------------------------------------------------------------
  Slideshow Controls / Indicators
---------------------------------------------------------------------*/
.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.slide-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.slide-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slide-btn:active {
    transform: scale(0.95);
}

.slideshow-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.slide-indicator.active {
    background-color: #fff;
    border-color: #fff;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hero-slide.slide-next { animation: slideInFromRight 1s ease-in-out; }
.hero-slide.slide-prev { animation: slideInFromLeft 1s ease-in-out; }

/*---------------------------------------------------------------------
  News Section
---------------------------------------------------------------------*/
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--card-background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    background-color: var(--primary-color);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.news-image i {
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover i {
    margin-left: 10px;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

.section-footer .btn {
    margin: 0 10px;
}

/*---------------------------------------------------------------------
  About Section
---------------------------------------------------------------------*/
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-description {
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.feature-item i {
    font-size: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-text-color);
    font-weight: 500;
}

/*---------------------------------------------------------------------
  Publications Preview Section
---------------------------------------------------------------------*/
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.publication-card {
    background-color: var(--card-background-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.publication-image {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.publication-image i {
    font-size: 2rem;
    color: #fff;
}

.publication-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--light-text-color);
    font-style: italic;
    margin-bottom: 15px;
}

.publication-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.publication-journal { font-weight: 600; }
.publication-impact { font-style: italic; }

.publication-abstract {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

/*---------------------------------------------------------------------
  Publications - Khoi thong ke mau khac (stats bar), dung tren dau trang
  tong quan va cac trang con - so luong theo muc + IF/h-index cao nhat.
---------------------------------------------------------------------*/
.pub-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-medium);
}

/* So lieu (so bai/de tai/patent...) xep thanh luoi 3 cot - voi 5 muc se ra
   dung 2 hang (3 + 2), danh cho khong gian ben phai cho Highest IF/h-index. */
.pub-stats-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 18px 32px;
    flex-shrink: 0;
}

.pub-stats-pills-grid-single {
    grid-template-columns: auto;
}

/* Dung cho trang khong co khoi Highest IF/h-index (Hoi nghi/De tai/Patents):
   cac so lieu tu do xep tren 1 hang, chi xuong dong khi thuc su het cho. */
.pub-stats-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
}

.pub-stat-pill {
    text-align: center;
}

.pub-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    line-height: 1.1;
}

a.pub-stat-value:hover {
    text-decoration: underline;
}

.pub-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.pub-stats-divider {
    width: 1px;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.25);
}

/* Highest IF + Highest h-index dat canh nhau (khong xep chong nua). */
.pub-stats-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    flex-grow: 1;
}

.pub-stat-highlight {
    flex: 1 1 220px;
    max-width: 320px;
}

.pub-stat-highlight-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.pub-stat-highlight-value {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 6px;
}

.pub-stat-highlight-value:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.pub-stat-highlight-journal {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    margin-bottom: 2px;
}

.pub-stat-highlight-authors {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .pub-stats-bar { flex-direction: column; align-items: flex-start; }
    .pub-stats-divider { display: none; }
    .pub-stats-highlights { width: 100%; }
}

@media (max-width: 480px) {
    .pub-stats-pills-grid { grid-template-columns: repeat(2, auto); }
}

/*---------------------------------------------------------------------
  Publications - Trang tong quan (page-publications.php)
  5 khoi: Quoc te / Trong nuoc / Hoi nghi / De tai / Patents, moi khoi
  hien 3 muc moi nhat + anh rieng cho tung muc, link sang trang con.
---------------------------------------------------------------------*/
.pub-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .pub-overview-grid { grid-template-columns: 1fr; }
}

.pub-overview-block {
    background-color: var(--card-background-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* International Publications duoc uu tien: chiem tron 1 hang (ca 2 cot). */
.pub-overview-block-featured {
    grid-column: 1 / -1;
}

/* Khoi featured van la 3 bai nhu cac khoi khac, nhung do chiem tron 1 hang
   (2 cot) nen anh/chu se to, ro hon han. */
.pub-overview-items-wide {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 560px) {
    .pub-overview-items-wide { grid-template-columns: 1fr; }
}

.pub-overview-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.pub-overview-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.pub-overview-block-title i {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-overview-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.pub-overview-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    flex-grow: 1;
}

@media (max-width: 560px) {
    .pub-overview-items { grid-template-columns: 1fr; }
}

/* Anh dang banner nam tren (khong phai icon nho ben trai nua) - du rong de
   nhin ro do thi/hinh minh hoa khi ban chen anh that vao Featured Image. */
.pub-overview-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.pub-overview-item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pub-overview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-overview-item-image i {
    color: var(--light-text-color);
    font-size: 2rem;
}

.pub-overview-item-body h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.pub-overview-item-body p {
    font-size: 0.8rem;
    color: var(--light-text-color);
}

.pub-overview-empty {
    color: var(--light-text-color);
    font-size: 0.9rem;
    font-style: italic;
}

/*---------------------------------------------------------------------
  Publications - Trang con (Quoc te / Trong nuoc / Hoi nghi / De tai /
  Patents): moi cong bo la 1 block gon gang nam ngang thay vi danh sach
  dai lien tuc.
---------------------------------------------------------------------*/
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 18px 22px;
}

.pub-row-index {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-row-body {
    flex-grow: 1;
    min-width: 0;
}

.pub-row-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pub-row-authors {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.pub-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.pub-row-meta .pub-row-citation {
    font-style: italic;
}

.pub-row-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
}

.pub-row-tag.pub-row-tag-if {
    background-color: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}

@media (max-width: 600px) {
    .pub-row { flex-direction: column; }
    .pub-row-index { margin-bottom: 6px; }
}

/* Nhom cap quan ly cua trang De tai, tai su dung style .team-level */
.pub-level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}
.pub-level-header i { font-size: 1.5rem; color: var(--primary-color); }
.pub-level-header h3 { font-size: 1.4rem; }
.pub-level-block { margin-bottom: 45px; }
.pub-level-block:last-child { margin-bottom: 0; }

/*---------------------------------------------------------------------
  Team Overview Section
---------------------------------------------------------------------*/
.team-structure {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-level {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.team-level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.team-level-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.team-level-header h3 {
    font-size: 1.5rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Nhom chi co 1 nguoi (VD Head, Deputy Head) - keo the nen rong het hang
   thay vi chi chiem 1 nua o luoi, con nua kia de trong. */
.team-members .member-card:only-child {
    grid-column: 1 / -1;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background-color: var(--background-color);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    background-color: #e9ecef;
}

.member-avatar {
    width: 70px;
    height: 95px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.6rem;
    overflow: hidden;
}

@media (max-width: 480px) {
    .member-avatar { width: 60px; height: 80px; }
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.member-info p { font-size: 0.9rem; color: var(--light-text-color); }

/* Head + Deputy Head shown side by side at the top of the team structure */
.leadership-row {
    display: flex;
    gap: 40px;
}
.leadership-row .team-level {
    flex: 1;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .leadership-row {
        flex-direction: column;
    }
}

/*---------------------------------------------------------------------
  Member Detail Page (single-lab_member.php)
---------------------------------------------------------------------*/
.member-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    padding: 160px 0 80px;
}

.member-image-large img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.back-to-team {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
}

.member-name { font-size: 2.2rem; margin-bottom: 5px; }
.member-title { color: var(--light-text-color); font-size: 1.1rem; margin-bottom: 20px; }
.member-bio p { margin-bottom: 15px; color: var(--text-color); }
.member-contact { margin-top: 20px; font-weight: 600; }

@media (max-width: 768px) {
    .member-profile {
        grid-template-columns: 1fr;
        padding-top: 130px;
        text-align: center;
    }
    .member-image-large img { max-width: 250px; margin: 0 auto; }
}

/*---------------------------------------------------------------------
  Equipment Preview Section
---------------------------------------------------------------------*/
.equipment-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.equipment-category {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header i { font-size: 2rem; color: var(--primary-color); }
.category-header h3 { font-size: 1.5rem; }

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.equipment-item:hover { background-color: #e9ecef; }
.equipment-icon { font-size: 1.5rem; color: var(--primary-color); }
.equipment-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.equipment-info p { font-size: 0.9rem; color: var(--light-text-color); }

/*---------------------------------------------------------------------
  Contact Section
---------------------------------------------------------------------*/
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 { font-size: 1.8rem; margin-bottom: 30px; }

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
}

.contact-details h4 { font-size: 1.1rem; margin-bottom: 5px; }
.contact-details p { color: var(--light-text-color); }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 8px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form textarea { resize: vertical; }
.contact-form button.btn-primary { width: 100%; padding: 15px; }

.form-status-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 600;
}
.form-status-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/*---------------------------------------------------------------------
  Footer
---------------------------------------------------------------------*/
.footer {
    background-color: #212529;
    color: #f8f9fa;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo i { font-size: 2.2rem; color: var(--primary-color); margin-right: 10px; }
.footer-description { font-size: 0.9rem; color: #ced4da; margin-bottom: 20px; }

.social-links { display: flex; gap: 15px; }

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-link:hover { background-color: var(--primary-color); }

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ced4da; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #ced4da;
    font-size: 0.95rem;
}

.footer-contact i { color: var(--primary-color); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #adb5bd;
}

.footer-bottom p { margin-bottom: 5px; }
.footer-bottom i { color: var(--accent-color); }

/*---------------------------------------------------------------------
  Back to Top Button
---------------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s ease;
    z-index: 998;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/*---------------------------------------------------------------------
  Generic page template (page-research/equipment/gallery/page.php)
---------------------------------------------------------------------*/
.generic-page-content {
    padding: 160px 0 80px;
}
.generic-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/*---------------------------------------------------------------------
  Responsive
---------------------------------------------------------------------*/
@media (max-width: 1024px) {
    .nav-list { gap: 20px; }
    .about-content { grid-template-columns: 1fr; }
    .about-text .section-header { text-align: center; }
    .about-stats { margin-top: 40px; }
    .publications-grid, .equipment-categories, .contact-content, .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-section { text-align: center; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .footer-contact { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100%;
        background-color: #fff;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 100px;
        transition: right 0.4s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; padding: 0 30px; gap: 15px; }
    .nav-link { font-size: 1.2rem; padding: 15px 0; }
    .nav-link::after { display: none; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        padding-top: 0;
        transform: translateY(0);
    }
    .dropdown:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .section-title { font-size: 2rem; }
    .news-grid, .team-members { grid-template-columns: 1fr; }
    .contact-form-container { margin-top: 40px; }
    .contact-info { text-align: center; }
    .contact-item { flex-direction: column; align-items: center; text-align: center; }
    .contact-details h4, .contact-details p { text-align: center; }
    .slideshow-controls { padding: 0 20px; }
    .slide-btn { width: 40px; height: 40px; font-size: 1rem; }
    .slideshow-indicators { bottom: 20px; gap: 10px; }
    .slide-indicator { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
    .slideshow-controls { display: none; }
    .slideshow-indicators { bottom: 15px; gap: 8px; }
    .slide-indicator { width: 8px; height: 8px; }
}


/* ---- Alumni ---- */
.alumni-row .alumni-year { width: 56px; height: 56px; font-size: 0.95rem; }
.alumni-line { font-size: 0.9rem; margin: 3px 0; color: var(--text-color); }
.alumni-line i { width: 18px; color: var(--primary-color); margin-right: 6px; text-align: center; }
.alumni-label { font-weight: 600; }
.alumni-count { font-size: 0.9rem; font-weight: 400; color: var(--light-text-color); margin-left: 8px; }

/* Nut nhay nhanh trong trang Alumni */
html { scroll-behavior: smooth; }
.alumni-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.alumni-jump-btn {
    flex: 1 1 200px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 18px; border-radius: 10px; background: var(--card-background-color);
    box-shadow: var(--shadow-light); color: var(--primary-color); font-weight: 600;
    text-decoration: none; border: 2px solid transparent; transition: all .2s;
}
.alumni-jump-btn:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.alumni-jump-count { background: var(--primary-color); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: .8rem; }
.pub-level-block[id^="alumni-"] { scroll-margin-top: 100px; }
.alumni-top-link { margin-left: auto; color: var(--light-text-color); font-size: .9rem; }

/* Khoi thong ke trang chu: Publications rong bang 2 o cu, 3 o nho ben duoi */
.about-stats { grid-template-columns: repeat(3, 1fr); }
.stat-card-wide { grid-column: 1 / -1; padding: 24px 26px; }
.stat-wide-top { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-wide-top .stat-icon { margin: 0; font-size: 1.6rem; }
.stat-wide-top .stat-number { margin: 0; font-size: 2.6rem; }
.stat-breakdown { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stat-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 10px; background: rgba(0,123,255,.07); text-decoration: none; color: inherit; transition: background .2s; }
.stat-mini:hover { background: rgba(0,123,255,.14); }
.stat-mini-num { font-size: 1.6rem; font-weight: 800; color: #212529; line-height: 1.1; }
.stat-mini-label { font-size: .8rem; color: var(--light-text-color); font-weight: 600; }
.stat-mini-q { display: flex; gap: 8px; margin-top: 4px; font-size: .72rem; color: var(--light-text-color); }
.stat-mini-q b { color: #1e7e34; }
.stat-mini-intl { background: rgba(40,167,69,.09); }
.stat-card-small { padding: 16px 10px; }
.stat-card-small .stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-card-small .stat-number { font-size: 1.9rem; margin-bottom: 2px; }
.stat-card-small .stat-label { font-size: .85rem; }
@media (max-width: 600px) {
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-breakdown { grid-template-columns: repeat(2, 1fr); }
    .stat-mini-intl { grid-column: 1 / -1; }
    .stat-card-small .stat-number { font-size: 1.5rem; }
}

/* Hang 4 o nho: Years / Members / Average IF / Students */
.about-stats { grid-template-columns: 1fr 1fr 1fr 1.9fr; gap: 14px; }
.stat-card-small { padding: 12px 8px; }
.stat-card-small .stat-icon { font-size: 1.2rem; margin-bottom: 2px; }
.stat-card-small .stat-number { font-size: 1.6rem; }
.stat-card-small .stat-label { font-size: .78rem; }
.stat-students { display: flex; justify-content: space-around; gap: 6px; margin: 2px 0; }
.stat-student { display: flex; flex-direction: column; align-items: center; }
.stat-student-num { font-size: 1.6rem; font-weight: 800; color: #212529; line-height: 1.2; }
@media (max-width: 600px) {
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-card-students { grid-column: 1 / -1; }
}

.stat-students-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2px; color: var(--light-text-color); font-weight: 600; font-size: .95rem; }
.stat-students-head i { font-size: 1.3rem; color: var(--primary-color); }

/* Hang 3 o: Years / Members / Students trained (rong hon) */
.about-stats { grid-template-columns: 1fr 1fr 2.4fr; }
a.stat-card-students { text-decoration: none; color: inherit; }
.stat-card-students .stat-student-num { font-size: 1.9rem; }
@media (max-width: 600px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-card-students { grid-column: 1 / -1; }
}

/* Can chinh 3 o: cung hang icon / so / nhan, cung co chu */
.about-stats { align-items: stretch; }
.stat-card-small { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding: 16px 10px; }
.stat-card-small .stat-icon,
.stat-students-head { height: 34px; margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; }
.stat-students-head span { font-size: 1.05rem; font-weight: 600; color: var(--light-text-color); }
.stat-card-small .stat-number,
.stat-card-students .stat-student-num { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; font-weight: 800; color: #212529; }
.stat-card-small .stat-label { font-size: .9rem; white-space: nowrap; line-height: 1.3; }
.stat-card-students .stat-students { width: 100%; margin: 0; align-items: flex-start; }
.stat-card-students .stat-student { align-items: center; }

a.feature-item { text-decoration: none; transition: transform .2s, opacity .2s; }
a.feature-item:hover { transform: translateY(-2px); opacity: .8; }


/* ===== Trang ca nhan thanh vien (profile) ===== */
.profile-page { --prof-navy: #0d3a80; --prof-navy-dark: #0a2e66; --prof-soft: #eef4fc; --prof-line: #d6e2f3; }
.prof-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--prof-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.prof-hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 36px; align-items: start; margin: 18px 0 30px; padding: 26px; border-radius: 16px; background: linear-gradient(135deg, #f4f8ff 0%, #e7effb 100%); box-shadow: var(--shadow-light); }
.prof-photo { border-radius: 14px; overflow: hidden; background: #dbe6f6; aspect-ratio: 4 / 5; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.prof-photo-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #9db4d6; }
.prof-name { font-size: 2.6rem; line-height: 1.15; color: var(--prof-navy); margin: 0 0 6px; }
.prof-headline { font-size: 1.2rem; font-weight: 600; color: #1e63c9; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--prof-line); }
.prof-contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.prof-contact-row { display: flex; align-items: center; gap: 14px; }
.prof-contact-row small { color: var(--light-text-color); }
.prof-contact-row a { color: var(--prof-navy); }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prof-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border: 1.5px solid var(--prof-line); border-radius: 12px; background: #fff; }
.prof-stat-big { font-size: 1.7rem; font-weight: 800; color: var(--prof-navy); line-height: 1.1; overflow-wrap: anywhere; }
.prof-stat-label { font-size: .78rem; font-weight: 700; color: var(--prof-navy); letter-spacing: .03em; }
.prof-stat-note { font-size: .78rem; color: var(--light-text-color); }
.prof-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.prof-body:has(> .prof-col:only-child) { grid-template-columns: 1fr; }
.prof-col { display: flex; flex-direction: column; gap: 20px; }
.prof-block { background: var(--card-background-color); border-radius: 14px; box-shadow: var(--shadow-light); padding: 22px 24px; }
.prof-block-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--prof-navy); margin: 0 0 14px; }
.prof-list, .prof-bullets, .prof-checks, .prof-pubs { margin: 0; padding: 0; list-style: none; }
.prof-list li { padding: 8px 0; border-bottom: 1px dashed var(--prof-line); }
.prof-list li:last-child { border-bottom: 0; }
.prof-list strong, .prof-current strong { display: block; }
.prof-list small, .prof-current small { display: block; color: var(--light-text-color); }
.prof-bullets li { position: relative; padding: 4px 0 4px 18px; }
.prof-bullets li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--prof-navy); }
.prof-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 14px; background: var(--prof-navy); color: #fff; }
.prof-banner .prof-icon { background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.6); }
.prof-banner small { display: block; opacity: .85; letter-spacing: .04em; }
.prof-banner strong { font-size: 1.15rem; line-height: 1.3; }
.prof-pubs { counter-reset: pub; }
.prof-pubs li { counter-increment: pub; position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--prof-line); }
.prof-pubs li:last-child { border-bottom: 0; }
.prof-pubs li::before { content: counter(pub) '.'; position: absolute; left: 0; font-weight: 700; color: var(--prof-navy); }
.prof-pub-badge { display: inline-block; margin-left: 4px; font-weight: 700; color: #1e63c9; }
.prof-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.prof-checks i { color: var(--prof-navy); margin-top: 4px; }
.prof-about { margin-top: 24px; }
.prof-footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; padding: 20px 26px; border-radius: 14px; background: var(--prof-navy-dark); color: #fff; }
.prof-footer-item { display: flex; align-items: center; gap: 14px; }
.prof-footer .prof-icon { background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.6); }
.prof-footer small { display: block; opacity: .8; letter-spacing: .04em; }
.prof-footer a, .prof-footer span { color: #fff; }
@media (max-width: 900px) {
    .prof-hero { grid-template-columns: 1fr; }
    .prof-photo { max-width: 320px; aspect-ratio: 4 / 5; margin: 0 auto; }
    .prof-body { grid-template-columns: 1fr; }
    .prof-stats { grid-template-columns: repeat(2, 1fr); }
    .prof-name { font-size: 2rem; }
}

.equipment-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.equipment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Khoi nhom con thiet bi (bam duoc) */
a.equipment-subgroup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
a.equipment-subgroup .equipment-info { flex: 1; min-width: 0; }
.equipment-count { background: rgba(0,123,255,.12); color: var(--primary-color); font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }
.equipment-arrow { color: var(--light-text-color); font-size: .8rem; }
a.equipment-subgroup:hover .equipment-arrow { color: var(--primary-color); transform: translateX(3px); }

/* Trang nhom thiet bi: moi thiet bi 1 block, anh 1/3 - thong tin 2/3 */
.equip-detail-list { display: flex; flex-direction: column; gap: 24px; }
.equip-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; background: var(--card-background-color); border-radius: 14px; box-shadow: var(--shadow-light); padding: 22px; }
.equip-detail-media { border-radius: 10px; overflow: hidden; background: #eef2f7; min-height: 200px; align-self: start; aspect-ratio: 4 / 3; }
.equip-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equip-detail-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: #b6c4d8; }
.equip-detail-name { font-size: 1.5rem; color: var(--primary-color); margin: 0 0 14px; }
.equip-detail-section { margin-bottom: 14px; }
.equip-detail-section h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: #212529; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.equip-detail-section h3 i { color: var(--primary-color); font-size: .9rem; }
.equip-detail-section p { margin: 0; color: var(--text-color); }
.equip-specs { margin: 0; padding: 0; list-style: none; }
.equip-specs li { position: relative; padding: 3px 0 3px 16px; }
.equip-specs li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-color); }
@media (max-width: 768px) { .equip-detail { grid-template-columns: 1fr; } }

/* Can deu 2 ben noi dung thiet bi */
.equip-detail-section p, .equip-specs li { text-align: justify; }
/* Phong to anh */
.equip-zoom { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.equip-zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.equip-zoom:hover .equip-zoom-hint { opacity: 1; }
.equip-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.equip-lightbox.open { display: flex; }
.equip-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: default; }
.equip-lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* Anh thiet bi: giu dung ty le goc, khong cat */
.equip-detail-media { aspect-ratio: auto; min-height: 0; background: transparent; }
.equip-detail-media img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.equip-zoom { height: auto; }
.equip-detail-placeholder { aspect-ratio: 4 / 3; background: #eef2f7; border-radius: 10px; }
.equip-detail-media { position: sticky; top: 110px; }

/* ===== Trang Research Interests ===== */
.research-intro { max-width: 980px; margin: 0 auto 36px; padding: 22px 26px; border-radius: 14px; background: linear-gradient(135deg, #f4f8ff, #e7effb); box-shadow: var(--shadow-light); text-align: justify; }
.research-intro p { margin: 0 0 10px; }
.research-intro p:last-child { margin: 0; color: var(--light-text-color); }
.research-list { display: flex; flex-direction: column; gap: 28px; }
.research-block { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; background: var(--card-background-color); border-radius: 14px; box-shadow: var(--shadow-light); padding: 24px; scroll-margin-top: 100px; }
.research-media { align-self: start; position: sticky; top: 110px; }
.research-media img { width: 100%; height: auto; display: block; border-radius: 10px; }
.research-placeholder { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #eef2f7, #dde7f5); display: flex; align-items: center; justify-content: center; color: #b6c4d8; font-size: 3rem; }
.research-num-big { position: absolute; top: 8px; left: 16px; font-size: 3.4rem; font-weight: 800; opacity: .5; }
.research-title { display: flex; align-items: flex-start; gap: 14px; font-size: 1.5rem; line-height: 1.3; color: var(--primary-color); margin: 0 0 4px; }
.research-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--primary-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 700; }
.research-title-vi { margin: 0 0 16px 52px; font-size: 1.05rem; font-weight: 600; color: var(--light-text-color); }
.research-text { position: relative; margin-bottom: 14px; text-align: justify; }
.research-text p { margin: 0 0 10px; }
.research-text-vi { padding: 14px 16px; border-left: 4px solid #9cc2f0; background: #f5f9ff; border-radius: 0 10px 10px 0; color: #3d4652; }
.research-lang { display: inline-block; margin-bottom: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(0,123,255,.12); color: var(--primary-color); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.research-leader { margin-top: 6px; padding: 14px 16px; border-radius: 10px; background: #0d3a80; color: #fff; }
.research-leader-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.research-leader-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.research-leader-person { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.research-leader-person strong { display: block; }
.research-leader-person small { display: block; opacity: .8; }
.research-leader-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.research-leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.research-leader-note { opacity: .9; font-size: .9rem; }
@media (max-width: 800px) {
    .research-block { grid-template-columns: 1fr; }
    .research-media { position: static; }
    .research-title-vi { margin-left: 0; }
}

/* Trang tong quan Research: 5 the (anh + tieu de) */
.research-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.research-card { display: flex; flex-direction: column; background: var(--card-background-color); border-radius: 14px; box-shadow: var(--shadow-light); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.research-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.research-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; }
.research-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.research-card:hover .research-card-media img { transform: scale(1.04); }
.research-card-media .research-placeholder { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.research-card-num { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.research-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.research-card-body h2 { font-size: 1.2rem; line-height: 1.3; color: var(--primary-color); margin: 0; }
.research-card-body p { margin: 0; color: var(--light-text-color); font-weight: 600; font-size: .95rem; }
.research-card-more { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 600; color: var(--primary-color); }
.research-card-more i { font-size: .75rem; margin-left: 4px; transition: transform .2s; }
.research-card:hover .research-card-more i { transform: translateX(4px); }
.research-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.research-pager a { display: flex; flex-direction: column; max-width: 48%; padding: 14px 18px; border-radius: 10px; background: var(--card-background-color); box-shadow: var(--shadow-light); text-decoration: none; color: var(--primary-color); font-weight: 600; }
.research-pager a small { color: var(--light-text-color); font-weight: 500; }
.research-pager-next { text-align: right; margin-left: auto; }
@media (max-width: 1000px) { .research-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .research-cards { grid-template-columns: 1fr; } .research-pager a { max-width: 100%; } .research-pager { flex-direction: column; } }

/* Truong nhom: ngay duoi tieu de */
.research-title-vi + .research-leader, .research-title + .research-leader { margin: 0 0 18px; }
.research-body > .research-leader { margin-top: 0; margin-bottom: 18px; }
/* Selected publications */
.research-pubs { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--border-color); }
.research-pubs-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--primary-color); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.research-pubs ol { margin: 0; padding: 0; list-style: none; counter-reset: rp; }
.research-pubs li { counter-increment: rp; position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--border-color); display: flex; flex-direction: column; gap: 3px; }
.research-pubs li:last-child { border-bottom: 0; }
.research-pubs li::before { content: counter(rp); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,123,255,.12); color: var(--primary-color); font-weight: 700; font-size: .78rem; display: flex; align-items: center; justify-content: center; }
.research-pub-title { font-weight: 600; line-height: 1.35; }
.research-pub-title a { color: #212529; text-decoration: none; }
.research-pub-title a:hover { color: var(--primary-color); }
.research-pub-authors { font-size: .88rem; color: var(--text-color); }
.research-pub-meta { font-size: .85rem; color: var(--light-text-color); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Anh the Research ty le 3:4 (doc) - hien du, khong cat */
.research-card-media { aspect-ratio: 3 / 4; background: #fff; }
.research-card-media img { object-fit: contain; }
.research-card-media .research-placeholder { background: linear-gradient(135deg, #eef2f7, #dde7f5); }
