/*
   MOTi Lab — Academic Theme
   Clean, professional, high-contrast, institutional
*/

:root {
    /* Sophisticated Tech palette: slate + cyan */
    --primary-color: #1E293B;       /* slate-800 */
    --primary-light: #475569;       /* slate-600 */
    --secondary-color: #06B6D4;     /* cyan-500 */
    --secondary-dark: #0891B2;      /* cyan-600 */
    --accent-color: #F59E0B;        /* amber-500 (for focus) */
    --text-main: #334155;           /* slate-700 */
    --text-light: #64748B;          /* slate-500 */
    --text-muted: #94A3B8;          /* slate-400 */
    --bg-main: #ffffff;
    --bg-light: #F8FAFC;            /* slate-50 */
    --bg-tint: #ECFEFF;             /* cyan-50 */
    --border-color: #E2E8F0;        /* slate-200 */
    --border-strong: #CBD5E1;       /* slate-300 */

    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --section-padding: 6rem 0;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --box-shadow-strong: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
    --transition: all 0.25s ease;
}

/* ----- Reset & base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--secondary-color); }

ul { list-style: none; }

img { max-width: 100%; height: auto; }

/* Visible focus styles for keyboard users */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    z-index: 2000;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ----- Language switching ----- */
/* Default: hide English elements; show Greek */
[data-lang="en"] { display: none !important; }
[data-lang="el"] { display: initial; }

html[lang="en"] [data-lang="en"] { display: initial !important; }
html[lang="en"] [data-lang="el"] { display: none !important; }

/* Restore block layout for block-level dual elements */
html[lang="el"] div[data-lang="el"],
html[lang="el"] p[data-lang="el"],
html[lang="el"] h1[data-lang="el"], html[lang="el"] h2[data-lang="el"], html[lang="el"] h3[data-lang="el"], html[lang="el"] h4[data-lang="el"],
html[lang="el"] ul[data-lang="el"], html[lang="el"] li[data-lang="el"] {
    display: block !important;
}
html[lang="en"] div[data-lang="en"],
html[lang="en"] p[data-lang="en"],
html[lang="en"] h1[data-lang="en"], html[lang="en"] h2[data-lang="en"], html[lang="en"] h3[data-lang="en"], html[lang="en"] h4[data-lang="en"],
html[lang="en"] ul[data-lang="en"], html[lang="en"] li[data-lang="en"] {
    display: block !important;
}

/* ----- Layout helpers ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-link {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--primary-color); }

/* ----- Section headers ----- */
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.divider {
    height: 2px;
    width: 48px;
    background-color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
.divider.center { margin-left: auto; margin-right: auto; }

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ----- Buttons ----- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
}

/* ----- Header / Navigation ----- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
header.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
}

.logo-text { display: flex; flex-direction: column; }

.logo h1 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 1px;
}
.logo h1 span { color: var(--secondary-color); }

.university-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 500;
    font-family: var(--font-body);
}

.institutional-logos {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
}
.inst-logo {
    height: 42px;
    width: auto;
}

/* Navigation list */
nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-color); }

.nav-links a.is-active:not(.btn-primary) {
    color: var(--primary-color);
}

.nav-links a.btn-primary {
    color: #fff;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}
.nav-links a.btn-primary:hover { color: var(--primary-color); }

/* Sliding indicator: thin line that follows the active link */
nav .nav-links { position: relative; }
.nav-indicator {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}
.nav-indicator.is-visible { opacity: 1; }

/* Language switch */
.lang-switch-wrap { display: flex; align-items: center; }
.lang-switch {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--border-radius-sm);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}
.lang-switch:hover { border-color: var(--primary-color); }
.lang-opt { padding: 0 2px; }
.lang-opt.active { color: var(--primary-color); }
.lang-sep { opacity: 0.4; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ----- Hero ----- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--primary-color) url('assets/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Respect reduced-motion preference: hide video, fall back to poster background */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.88) 0%, rgba(30, 41, 59, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-text { max-width: 800px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
}

/* Institutional logos pill (hero / page-header) */
.hero-institutional {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}
.hero-institutional a {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.hero-institutional a:hover { transform: scale(1.04); }
.hero-institutional img {
    height: 60px;
    width: auto;
    display: block;
}
.hero-institutional .logo-divider {
    width: 1px;
    height: 44px;
    background: rgba(0, 0, 0, 0.15);
}

.hero-text h2 {
    color: #fff;
    font-size: 3.3rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* ----- About ----- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1 / 1;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 41, 59, 0.92);
    color: #fff;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ----- Research: vertical tabs ----- */
.research-tabs {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.research-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 560px;
    overflow-y: auto;
    padding: 0.25rem 0.5rem 0.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.research-tabs-list::-webkit-scrollbar { width: 6px; }
.research-tabs-list::-webkit-scrollbar-track { background: transparent; }
.research-tabs-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.research-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
}
.research-tab:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.research-tab .tab-icon {
    color: var(--text-muted);
    font-size: 1.05rem;
    width: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}
.research-tab .tab-text {
    flex: 1;
    line-height: 1.35;
}
.research-tab .tab-chevron {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
    color: var(--secondary-color);
}

.research-tab.active {
    background: #fff;
    border-color: var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--box-shadow);
}
.research-tab.active .tab-icon { color: var(--secondary-color); }
.research-tab.active .tab-chevron {
    opacity: 1;
    transform: translateX(0);
}

/* Right-side panels */
.research-tabs-panels {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.75rem;
    min-height: 360px;
    overflow: hidden;
}

/* Minimal progress bar at top of the panel */
.research-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-tint);
    overflow: hidden;
    pointer-events: none;
}
.research-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform-origin: left center;
    transform: scaleX(0);
    animation: progressFill 5s linear infinite;
}
@keyframes progressFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.research-tabs.is-paused .research-progress-bar,
.research-tabs.is-out-of-view .research-progress-bar {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .research-progress { display: none; }
}

.research-panel { display: none; }
.research-panel.active {
    display: block;
    animation: panelFadeIn 0.45s var(--reveal-ease);
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
}

.research-panel h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.research-panel h3 small {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.research-panel > p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.research-panel .bullet-list {
    columns: 2;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
}
.research-panel .bullet-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.93rem;
    color: var(--text-main);
    line-height: 1.5;
    break-inside: avoid;
}
.research-panel .bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* ----- Projects ----- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.project-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}
.project-card:hover { border-color: transparent; box-shadow: var(--box-shadow-strong); transform: translateY(-2px); }

.project-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.status-active { background: #e6f4ea; color: #1e7e34; }
.status-completed { background: #f0f0f0; color: #555; }

.project-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.project-meta i { color: var(--primary-light); margin-right: 0.3rem; }
.project-card > p:last-child { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* ----- Publications ----- */
.publications-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.pub-tab {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}
.pub-tab:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pub-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.pub-item:hover { border-color: transparent; box-shadow: var(--box-shadow-strong); }
.pub-item.hidden { display: none; }

.pub-year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    min-width: 60px;
}

.pub-body { flex: 1; }
.pub-citation { font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.6rem; }
.pub-citation strong { color: var(--primary-color); }

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.pub-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--primary-light);
}
.pub-link:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

.pub-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-left: auto;
}

.see-all-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

/* Collapsed publications: hide entries beyond the 3rd */
.publications-list.collapsed > .pub-item:nth-child(n+4) {
    display: none;
}
.publications-list:not(.collapsed) > .pub-item:nth-child(n+4) {
    animation: pubFadeIn 0.55s var(--reveal-ease) both;
}
.publications-list:not(.collapsed) > .pub-item:nth-child(4) { animation-delay: 0.05s; }
.publications-list:not(.collapsed) > .pub-item:nth-child(5) { animation-delay: 0.10s; }
.publications-list:not(.collapsed) > .pub-item:nth-child(6) { animation-delay: 0.15s; }
.publications-list:not(.collapsed) > .pub-item:nth-child(7) { animation-delay: 0.20s; }
.publications-list:not(.collapsed) > .pub-item:nth-child(8) { animation-delay: 0.25s; }
.publications-list:not(.collapsed) > .pub-item:nth-child(n+9) { animation-delay: 0.30s; }

@keyframes pubFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Show more button */
.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.btn-show-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn-show-more .show-less-label,
.btn-show-more[aria-expanded="true"] .show-more-label,
.btn-show-more[aria-expanded="true"] .show-more-count {
    display: none;
}
.btn-show-more[aria-expanded="true"] .show-less-label { display: inline; }
.btn-show-more .show-more-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.btn-show-more:hover .show-more-count { color: rgba(255,255,255,0.7); }
.btn-show-more .show-more-chevron {
    transition: transform 0.3s var(--reveal-ease);
    font-size: 0.75rem;
}
.btn-show-more[aria-expanded="true"] .show-more-chevron {
    transform: rotate(180deg);
}

/* ----- Teaching ----- */
.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.teaching-column h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.7rem;
    margin-bottom: 1.5rem;
}
.teaching-column h3 i { color: var(--secondary-color); }

.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.course-list li {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.course-list strong {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}
.course-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.teaching-cta {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}
.teaching-cta h4 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.teaching-cta p { opacity: 0.9; margin-bottom: 1.5rem; }
.teaching-cta .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}
.teaching-cta .btn-primary:hover {
    background: transparent;
    color: #fff;
}

/* ----- Equipment (compact horizontal cards) ----- */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.equipment-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    min-height: 130px;
}
.equipment-card:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--box-shadow-strong); }

.equipment-photo {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    background: var(--bg-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.equipment-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}
.equipment-fallback-icon {
    font-size: 2.4rem;
    color: var(--primary-light);
    opacity: 0.45;
    z-index: 0;
}
.equipment-photo.no-image img { display: none; }

.equipment-body {
    padding: 1rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.equipment-cat {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.equipment-body h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.equipment-body p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ----- Software & Applications ----- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.software-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.software-card:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-strong);
}

.software-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tint);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.software-cat {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.software-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.software-card > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.software-tiers {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-top: 1px solid var(--border-color);
    flex: 1;
}
.software-tiers li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.45;
}
.software-tiers li:last-child {
    border-bottom: none;
}

.tier-name {
    flex-shrink: 0;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    background: var(--bg-tint);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    align-self: flex-start;
    min-width: 78px;
    text-align: center;
    margin-top: 1px;
}

.software-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: auto;
    transition: var(--transition);
}
.software-cta:hover {
    color: var(--secondary-color);
    gap: 0.7rem;
}

/* Live / Beta TrafficViz card */
.software-card-live {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.18);
}
.software-card-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.software-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    background: var(--bg-tint);
    color: var(--secondary-dark);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.live-dot {
    width: 7px;
    height: 7px;
    background: #16A34A;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
    animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25); }
    50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
}

/* Stacked CTAs (primary button + secondary text link) */
.software-cta-stack {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
}
.software-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    border: 1.5px solid var(--secondary-color);
}
.software-cta-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.25);
}
.software-cta-primary i { font-size: 0.78rem; }
.software-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.software-cta-secondary:hover {
    color: var(--secondary-dark);
    gap: 0.6rem;
}
.software-cta-secondary i { font-size: 0.8rem; }

/* ----- Team ----- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: #fff;
    padding: 2.2rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.team-member:hover {
    border-color: transparent;
    box-shadow: var(--box-shadow-strong);
    transform: translateY(-2px);
}

.member-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--bg-light);
    background-color: var(--bg-tint);
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
    position: absolute;
    inset: 0;
}

.team-member h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}
.team-member h3 a { color: var(--primary-color); }
.team-member h3 a:hover { color: var(--secondary-color); }

.role {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.dept {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
}
.member-links a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}
.member-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.member-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}
.member-profile-link:hover {
    color: var(--secondary-dark);
    gap: 0.7rem;
}

/* ----- People page (people.html) ----- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 7rem 0 3.5rem;
}
.page-header h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}
.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs i { font-size: 0.7rem; opacity: 0.6; }

.person-profile { scroll-margin-top: 100px; }
.person-profile + .person-profile { border-top: 1px solid var(--border-color); }

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-aside { position: sticky; top: 100px; }

.profile-photo {
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    background: var(--bg-tint);
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-contact {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}
.bg-light .profile-contact { background: var(--bg-main); }
.profile-contact h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}
.profile-contact ul { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.2rem; }
.profile-contact li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}
.profile-contact li i {
    color: var(--secondary-color);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.profile-links { display: flex; flex-direction: column; gap: 0.5rem; }
.profile-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.bg-light .profile-link-btn { background: var(--bg-main); }
.profile-link-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.profile-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-main h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.profile-role {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-tint);
}

.profile-section { margin-bottom: 2rem; }
.profile-section h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--secondary-color);
}
.profile-section h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.2rem 0 0.6rem;
    font-weight: 600;
}
.profile-section p { color: var(--text-main); font-size: 1rem; }

.bullet-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-main);
}
.bullet-list li {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

/* ----- News ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-2px); border-color: transparent; box-shadow: var(--box-shadow-strong); }

.news-date {
    background: var(--primary-color);
    color: #fff;
    padding: 1.2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    min-width: 90px;
    font-family: var(--font-heading);
}
.news-day { font-size: 2rem; font-weight: 700; line-height: 1; }
.news-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}
.news-year { font-size: 0.78rem; opacity: 0.7; margin-top: 0.3rem; }

.news-body { padding: 1.3rem 1.5rem; flex: 1; }

.news-tag {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.news-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.news-card p { color: var(--text-light); font-size: 0.93rem; }

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.news-read-more:hover { color: var(--secondary-dark); gap: 0.7rem; }

/* ----- Contact / Footer ----- */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 4rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-form-wrap h3 { color: #fff; }
.contact-info h2 { font-size: 2rem; }

.contact-info .divider { background: var(--secondary-color); }
.contact-info p { color: rgba(255, 255, 255, 0.85); }

.contact-list { margin-top: 1.5rem; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
}
.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
    width: 16px;
    flex-shrink: 0;
}
.contact-list a { color: rgba(255, 255, 255, 0.95); }
.contact-list a:hover { color: #fff; text-decoration: underline; }

/* Form */
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.7rem 0.9rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
}

.contact-form button {
    align-self: flex-start;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.contact-form button:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
}

.form-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-map-wrap {
    margin: 3rem 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-map-wrap iframe {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: block;
}
.footer-map-wrap small { display: block; margin-top: 0.5rem; }
.footer-map-wrap a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.85rem;
}
.footer-map-wrap a:hover { color: #fff; }

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ----- Reveal animations ----- */
:root {
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration: 0.85s;
}

.reveal,
.reveal-up,
.reveal-fade,
.reveal-scale,
.reveal-left,
.reveal-right,
.reveal-stagger {
    opacity: 0;
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
    will-change: opacity, transform;
}

.reveal,
.reveal-up { transform: translateY(36px); }
.reveal-scale { transform: scale(0.96); }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }

.reveal.active,
.reveal-up.active,
.reveal-fade.active,
.reveal-scale.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
}

/* Staggered children — opacity/transform on children, parent stays visible */
.reveal-stagger {
    opacity: 1;
    transform: none;
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--reveal-ease),
                transform 0.7s var(--reveal-ease);
}
.reveal-stagger.active > * {
    opacity: 1;
    transform: none;
}
.reveal-stagger.active > *:nth-child(1)  { transition-delay: 0.05s; }
.reveal-stagger.active > *:nth-child(2)  { transition-delay: 0.12s; }
.reveal-stagger.active > *:nth-child(3)  { transition-delay: 0.19s; }
.reveal-stagger.active > *:nth-child(4)  { transition-delay: 0.26s; }
.reveal-stagger.active > *:nth-child(5)  { transition-delay: 0.33s; }
.reveal-stagger.active > *:nth-child(6)  { transition-delay: 0.40s; }
.reveal-stagger.active > *:nth-child(7)  { transition-delay: 0.47s; }
.reveal-stagger.active > *:nth-child(8)  { transition-delay: 0.54s; }
.reveal-stagger.active > *:nth-child(n+9) { transition-delay: 0.6s; }

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-up, .reveal-fade, .reveal-scale,
    .reveal-left, .reveal-right, .reveal-stagger,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; }
    .institutional-logos { display: none; }
}

@media (max-width: 992px) {
    .hero-text h2 { font-size: 2.6rem; }

    .about-container,
    .contact-section,
    .teaching-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .profile-aside {
        position: static;
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .profile-photo { margin-bottom: 0; }
    .page-header { padding: 6rem 0 3rem; }
    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    nav .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 1.5rem 0;
        gap: 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    nav .nav-links.active { left: 0; }

    /* On mobile dropdown menu, hide the sliding line — color-only active state */
    .nav-indicator { display: none; }

    .hero-text h2 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { justify-content: center; }

    .hero-institutional {
        gap: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .hero-institutional img { height: 44px; }
    .hero-institutional .logo-divider { height: 32px; }

    .section-padding { padding: 3rem 0; }
    .section-header h2 { font-size: 1.7rem; }

    .pub-item { flex-direction: column; gap: 0.5rem; }
    .pub-year { min-width: 0; }

    /* Research tabs: stack vertically, list becomes horizontal scroll */
    .research-tabs { grid-template-columns: 1fr; gap: 1rem; }
    .research-tabs-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.25rem 0 0.5rem;
        gap: 0.5rem;
    }
    .research-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .research-tab .tab-chevron { display: none; }
    .research-tabs-panels { padding: 1.5rem; min-height: 0; }
    .research-panel h3 { font-size: 1.4rem; }
    .research-panel .bullet-list { columns: 1; }

    .equipment-grid { grid-template-columns: 1fr; }
    .equipment-photo { width: 110px; }
    .equipment-body { padding: 0.85rem 1rem; }
    .equipment-body h4 { font-size: 0.95rem; }
    .equipment-body p { font-size: 0.82rem; }

    .form-row { grid-template-columns: 1fr; }

    .news-card { flex-direction: column; }
    .news-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    .news-day, .news-month, .news-year { font-size: 0.95rem; margin: 0; }
    .news-day { font-size: 1.2rem; font-weight: 700; }

    .profile-aside { grid-template-columns: 1fr; }
    .profile-main h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .logo h1 { font-size: 1.4rem; }
    .university-name { font-size: 0.65rem; }
    .hero-text h2 { font-size: 1.7rem; }
    .badge { font-size: 0.75rem; }

    .hero-institutional img { height: 36px; }
    .hero-institutional .logo-divider { height: 26px; }
}
