/* ===== ROOT VARIABLES ===== */
:root {
    --bg-primary: #0b1120;
    --bg-secondary: #0f1729;
    --bg-card: rgba(15, 25, 50, 0.7);
    --bg-card-hover: rgba(20, 35, 65, 0.8);
    --border-color: rgba(79, 209, 197, 0.15);
    --border-hover: rgba(79, 209, 197, 0.4);
    --teal: #4fd1c5;
    --teal-dark: #38b2ac;
    --teal-glow: rgba(79, 209, 197, 0.2);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== UTILITY ===== */
.text-teal {
    color: var(--teal) !important;
}

/* ===== NAVBAR ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-header .navbar {
    padding: 0.5rem 1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.nav-flat-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.7rem !important;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.25s, background 0.25s;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-flat-link i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.25s;
    flex-shrink: 0;
}

.nav-flat-link:hover {
    color: #fff !important;
    background: rgba(79, 209, 197, 0.08);
}

.nav-flat-link:hover i {
    color: var(--teal);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    margin-top: 72px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.88) 0%, rgba(11, 17, 32, 0.4) 60%, rgba(11, 17, 32, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.btn-teal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--teal);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}

.btn-teal:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--teal-glow);
    color: var(--bg-primary);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.hero-nav:hover {
    background: var(--teal);
    color: var(--bg-primary);
    border-color: var(--teal);
}

.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots .dot.active {
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal-glow);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== ENZYMES SECTION ===== */
.enzymes-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.enzymes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.enzyme-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.enzyme-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.enzyme-card-featured {
    grid-row: 1 / 3;
    grid-column: 1;
}

.enzyme-card-featured .enzyme-image {
    height: 280px;
}

.enzyme-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.enzyme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.enzyme-card:hover .enzyme-image img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
}

.enzyme-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enzyme-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.6rem;
}

.enzyme-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: all 0.3s;
}

.detail-link:hover {
    color: #fff;
    gap: 4px;
}

/* ===== RESEARCH AREAS ===== */
.research-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.research-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.research-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    background: var(--teal-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--teal);
    transition: all 0.3s;
}

.research-card:hover .research-icon {
    background: var(--teal);
    color: var(--bg-primary);
}

.research-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.research-info .detail-link {
    font-size: 0.78rem;
    margin-top: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 3.5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--teal-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: inline;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.15rem;
}

.stat-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.footer-info-item i {
    margin-top: 3px;
    font-size: 0.9rem;
}

.footer-info-item strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-info-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.2rem; }
    .enzymes-grid { grid-template-columns: 1fr; }
    .enzyme-card-featured { grid-row: auto; grid-column: auto; }
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-icon-link { flex-direction: row; gap: 8px; }
    .nav-icon-link i { font-size: 0.9rem; }
}

@media (max-width: 576px) {
    .hero-content { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 1.7rem; }
    .research-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; }
    .footer-info { flex-direction: column; gap: 1rem; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(79, 209, 197, 0.07);
    border: 1px solid rgba(79, 209, 197, 0.2);
    color: var(--text-primary);
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.btn-lang:hover, .btn-lang:focus {
    background: rgba(79, 209, 197, 0.15);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.15);
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-flag-img {
    display: inline-block;
    width: 22px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.lang-code {
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
}

.lang-chevron {
    font-size: 0.65rem !important;
    opacity: 0.6;
    transition: transform 0.25s;
}

.btn-lang[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

/* Hide default Bootstrap caret */
.btn-lang::after { display: none !important; }

.lang-dropdown {
    background: rgba(12, 20, 42, 0.98) !important;
    border: 1px solid rgba(79, 209, 197, 0.2) !important;
    border-radius: 12px !important;
    padding: 0.4rem !important;
    min-width: 170px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-top: 6px !important;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: none;
    width: 100%;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-item:hover {
    color: #fff !important;
    background: rgba(79, 209, 197, 0.1) !important;
}

.lang-item.active {
    color: var(--teal) !important;
    background: rgba(79, 209, 197, 0.07) !important;
}

.lang-item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.2;
}

.lang-item-code {
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.lang-item-name {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.lang-item.active .lang-item-name {
    color: var(--teal);
    opacity: 0.8;
}

.lang-check {
    font-size: 0.7rem;
    color: var(--teal);
    margin-left: auto;
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 2rem 0 5rem;
    background: var(--bg-primary);
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-desc-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-desc-card h3 {
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.about-desc-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
}

.about-icon-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: var(--teal-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--teal);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-grid .about-card h3 {
    color: var(--teal);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
}

.about-grid .about-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.9rem;
}

.mission-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.vision-icon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* Values */
.about-values { margin-top: 1rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.value-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.value-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.value-item i {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.value-item h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

/* ===== NEWS PAGE ===== */
.news-section {
    padding: 2rem 0 5rem;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img { transform: scale(1.05); }

.news-body {
    padding: 1.25rem;
}

.news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.news-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.news-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* News Detail */
.news-detail-section {
    padding: 2rem 0 5rem;
    background: var(--bg-primary);
}

.news-detail-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 400px;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* Members Section */
.members-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.member-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}
.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 2px solid var(--teal);
}
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-info h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.member-info span {
    font-size: 0.8rem;
    color: var(--teal);
    display: block;
    margin-bottom: 0.75rem;
}
.member-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.member-email:hover { color: var(--teal); }

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.project-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s;
}
.project-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.project-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--teal);
    min-width: 100px;
}
.project-details h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.project-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.badge-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(79, 209, 197, 0.1);
    color: var(--teal);
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Publications Section */
.publications-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.publication-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
}
.publication-item:hover { border-color: var(--teal); }
.pub-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 60px;
}
.pub-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}
.pub-authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.25rem;
}
.pub-journal {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.pub-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.pub-link:hover { color: var(--teal); }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-desc-card { flex-direction: column; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .values-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO BANNER  (shared across all inner pages)
   ============================================================ */
.page-hero {
    position: relative;
    padding-top: 72px; /* navbar height */
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #0b1120 0%, #0f1f3d 50%, #071528 100%);
    overflow: hidden;
}

/* decorative glow blobs */
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,209,197,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234fd1c5' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 2.5rem;
    padding-top: 1.5rem;
}

/* Breadcrumb */
.page-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.page-breadcrumb .breadcrumb-item a {
    color: var(--teal);
    font-size: 0.82rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.page-breadcrumb .breadcrumb-item a:hover { opacity: 1; }

.page-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.page-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.page-hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 540px;
}

.page-hero-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), transparent);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

/* Stats bar in hero */
.page-hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.ph-stat {
    display: flex;
    flex-direction: column;
}

.ph-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.ph-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ============================================================
   INNER SECTION  (content below hero)
   ============================================================ */
.inner-section {
    padding: 4rem 0 6rem;
    background: var(--bg-primary);
}

/* Section label / group header */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(79, 209, 197, 0.07);
    border: 1px solid rgba(79, 209, 197, 0.18);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
}

.section-label.label-green { color: #4ade80; background: rgba(74,222,128,0.07); border-color: rgba(74,222,128,0.2); }
.section-label.label-amber { color: #fbbf24; background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.2); }
.section-label.label-muted { color: var(--text-muted); background: rgba(100,116,139,0.07); border-color: rgba(100,116,139,0.2); }

/* Pulse dot animation */
.pulse-dot {
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1rem;
}

/* ============================================================
   MEMBERS PAGE
   ============================================================ */
.members-leader-wrap { }

.member-leader-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.member-leader-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--teal), transparent);
    border-radius: 4px 0 0 4px;
}

.member-leader-photo {
    width: 140px;
    height: 140px;
    min-width: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--teal);
    box-shadow: 0 0 30px rgba(79,209,197,0.2);
}

.member-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-leader-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.member-leader-title {
    font-size: 0.88rem;
    color: var(--teal);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.member-leader-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 540px;
}

.member-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.member-contact-link:hover { color: var(--teal); }

/* Member cards grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.member-card-full {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.member-card-full:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.member-photo-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--teal);
}

.member-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.member-card-title {
    font-size: 0.78rem;
    color: var(--teal);
    display: block;
    margin-bottom: 0.5rem;
}

.member-card-bio {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

/* ============================================================
   RESEARCH AREAS PAGE
   ============================================================ */
.research-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.research-area-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-area-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.ra-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-teal   { background: rgba(79,209,197,0.12);   color: var(--teal); }
.icon-purple { background: rgba(99,102,241,0.12);   color: #818cf8; }
.icon-amber  { background: rgba(251,191,36,0.12);   color: #fbbf24; }
.icon-blue   { background: rgba(56,189,248,0.12);   color: #38bdf8; }
.icon-pink   { background: rgba(236,72,153,0.12);   color: #f472b6; }
.icon-green  { background: rgba(74,222,128,0.12);   color: #4ade80; }

.research-area-card:hover .ra-icon-wrap {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.ra-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ra-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ra-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    user-select: none;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.project-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-full-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-full-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    border-radius: 3px 0 0 3px;
}

.status-ongoing::before   { background: #4ade80; }
.status-planning::before  { background: #fbbf24; }
.status-completed::before { background: var(--text-muted); }

.project-full-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.pfc-year {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal);
    min-width: 70px;
    opacity: 0.85;
}

.pfc-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pfc-body p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.pfc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
}

.badge-ongoing   { background: rgba(74,222,128,0.1);   color: #4ade80;   border: 1px solid rgba(74,222,128,0.2); }
.badge-planning  { background: rgba(251,191,36,0.1);   color: #fbbf24;   border: 1px solid rgba(251,191,36,0.2); }
.badge-completed { background: rgba(100,116,139,0.1);  color: #94a3b8;   border: 1px solid rgba(100,116,139,0.2); }

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.pub-year-group { margin-bottom: 3rem; }

.pub-year-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pub-year-badge {
    font-size: 1rem;
    font-weight: 800;
    color: var(--teal);
    background: rgba(79,209,197,0.08);
    border: 1px solid rgba(79,209,197,0.2);
    border-radius: 10px;
    padding: 0.3rem 0.9rem;
    white-space: nowrap;
}

.pub-year-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.pub-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pub-full-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s;
    align-items: flex-start;
}

.pub-full-card:hover {
    border-color: rgba(79,209,197,0.35);
    background: var(--bg-card-hover);
    transform: translateX(3px);
}

.pub-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.12);
    min-width: 28px;
    padding-top: 2px;
}

.pub-full-body h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.pub-full-authors {
    font-size: 0.83rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-full-journal {
    font-size: 0.83rem;
    color: var(--teal);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-doi-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.2rem 0.65rem;
    transition: all 0.2s;
}

.pub-doi-link:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: rgba(79,209,197,0.06);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-success-msg {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #4ade80;
    font-size: 0.9rem;
}

.contact-success-msg i { font-size: 1.2rem; }

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.cf-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-group label i {
    color: var(--teal);
    font-size: 0.8rem;
}

.cf-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.cf-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(79,209,197,0.1);
}

.cf-input::placeholder { color: var(--text-muted); }

.cf-textarea { resize: vertical; min-height: 140px; }

.cf-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Info card */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.ci-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ci-item:last-child { border-bottom: none; padding-bottom: 0; }
.ci-item:first-child { padding-top: 0; }

.ci-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--teal-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 0.95rem;
}

.ci-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.ci-text span, .ci-text a {
    font-size: 0.88rem;
    color: #fff;
    transition: color 0.2s;
}

.ci-text a:hover { color: var(--teal); }

/* Map */
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

/* Social */
.contact-social {
    display: flex;
    gap: 0.75rem;
}

.cs-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s;
}

.cs-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-wrap { order: -1; }
}

@media (max-width: 992px) {
    .page-hero-title { font-size: 2rem; }
    .member-leader-card { flex-direction: column; text-align: center; }
    .member-leader-card::before { width: 100%; height: 4px; bottom: auto; top: 0; }
    .members-grid { grid-template-columns: 1fr 1fr; }
    .research-areas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .page-hero-title { font-size: 1.6rem; }
    .page-hero-sub { font-size: 0.88rem; }
    .members-grid { grid-template-columns: 1fr; }
    .research-areas-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    .member-card-full { flex-direction: column; align-items: center; text-align: center; }
    .project-full-card { flex-direction: column; gap: 0.5rem; }
    .pfc-year { font-size: 1rem; }
}