/* ========================================
   LPD — Device Research Laboratory
   Modernized Static Site Stylesheet
   Color identity: Deep Red (#8B1A2B)
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --red: #8B1A2B;
    --red-dark: #6B0F1E;
    --red-light: #B5283C;
    --red-glow: rgba(139, 26, 43, 0.15);
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --gray-900: #1a1a1a;
    --gray-700: #4a4a4a;
    --gray-500: #888888;
    --gray-300: #d0d0d0;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --bg-alt: #f8f8fb;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--red);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-900);
    flex-shrink: 0;
}

.logo-badge {
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
}

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

.logo-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-500);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--red);
    background: var(--red-glow);
}

.main-nav a.active {
    color: var(--red);
    font-weight: 600;
}

/* Nav Dropdown */
.has-dropdown > a::after {
    content: '▾';
    font-size: 0.7em;
    margin-left: 6px;
    opacity: 0.6;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 10;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    list-style: none;
}

.dropdown a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.dropdown a:hover {
    background: var(--red-glow);
    color: var(--red);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(139, 26, 43, 0.3) 0%, transparent 60%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 24px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 26, 43, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ========================================
   Page Banner (interior pages)
   ======================================== */
.page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 26, 43, 0.25) 0%, transparent 60%);
}

.page-banner h1 {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 64px 0;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 32px;
    margin-top: -16px;
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-glow);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   News Cards
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--red);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    display: inline-block;
    background: var(--red-glow);
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--red);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.news-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.news-card p a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.news-card p a:hover {
    text-decoration: underline;
}

.news-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    text-decoration: underline;
}

/* ========================================
   Quick Info
   ======================================== */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.quick-info-item {
    text-align: center;
    padding: 32px 24px;
}

.quick-info-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.quick-info-item p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ========================================
   People Grid
   ======================================== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.person-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.person-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--red);
    background: var(--gray-100);
}

.person-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    padding: 16px 16px 4px;
}

.person-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.person-card h3 a:hover {
    color: var(--red);
}

.person-role {
    color: var(--gray-500);
    font-size: 0.85rem;
    padding: 0 16px 8px;
}

/* Scholar link */
.scholar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    margin: 0 16px 16px;
    background: var(--gray-100);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.scholar-link:hover {
    background: var(--red-glow);
    color: var(--red);
}

.scholar-link svg {
    width: 14px;
    height: 14px;
}

/* Alumni table */
.alumni-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.alumni-table th,
.alumni-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.alumni-table th {
    font-weight: 700;
    color: var(--gray-900);
    background: var(--gray-50);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.alumni-table td {
    color: var(--gray-700);
}

.alumni-table tr:hover td {
    background: var(--red-glow);
}

.alumni-table .alumni-name {
    font-weight: 600;
    color: var(--gray-900);
}

.alumni-table .alumni-current {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* PI filter buttons */
.pi-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pi-filter {
    padding: 6px 16px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.pi-filter:hover {
    border-color: var(--red);
    color: var(--red);
}

.pi-filter.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.person-card.hidden {
    display: none;
}

/* ========================================
   Gallery (group photos & lab)
   ======================================== */
.gallery-grid,
.lab-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item,
.lab-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img,
.lab-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img,
.lab-item:hover img {
    transform: scale(1.05);
}

.gallery-caption,
.lab-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
    padding: 24px 16px 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   Prose (text-heavy pages)
   ======================================== */
.prose {
    max-width: 800px;
}

.prose p {
    margin-bottom: 20px;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
}

.prose p.lead {
    font-size: 1.25rem;
    color: var(--gray-900);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 32px;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
}

.prose a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    text-decoration: underline;
}

.prose ul {
    margin: 16px 0 24px 24px;
}

.prose li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.coordinators-list {
    list-style: none;
    margin-left: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.coordinators-list li {
    background: var(--gray-50);
    padding: 12px 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
    font-weight: 500;
}

.coordinators-list li em {
    color: var(--red);
    font-style: normal;
    font-weight: 600;
}

.history-attribution {
    margin-top: 48px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gray-300);
}

.history-attribution p {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
}

/* ========================================
   Achievements
   ======================================== */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.achievement-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--red);
}

.achievement-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.achievement-item p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ========================================
   Publications (revised)
   ======================================== */
.pub-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pub-filter {
    padding: 8px 20px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.pub-filter:hover {
    border-color: var(--red);
    color: var(--red);
}

.pub-filter.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Accordion year headers */
.pub-year-header {
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    width: 100%;
}

.pub-year-header > button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    transition: var(--transition);
    text-align: left;
    box-sizing: border-box;
}

.pub-year-header > button:hover {
    background: var(--red-glow);
}

.pub-year-header > button .pub-count {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pub-year-header > button .pub-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.pub-year-header.open > button .pub-chevron {
    transform: rotate(180deg);
}

.pub-year-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pub-year-header.open .pub-year-content {
    max-height: 5000px;
}

/* Publication entry */
.pub-entry {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    transition: opacity 0.3s ease;
}

.pub-entry:last-child {
    border-bottom: none;
}

.pub-entry.hidden {
    display: none;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.pub-entry h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.pub-entry h3 a.pub-title-link {
    color: var(--gray-900);
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-300);
    transition: var(--transition);
}

.pub-entry h3 a.pub-title-link:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.pub-venue strong {
    color: var(--red);
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: var(--red-glow);
    color: var(--red);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 16px;
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--red);
    color: var(--white);
}

/* Copyright Notice */
.copyright-notice {
    max-width: 800px;
}

.copyright-notice h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.copyright-notice p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* ========================================
   Callout
   ======================================== */
.callout {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.callout h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.callout p {
    color: var(--gray-700);
}

.callout a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.callout a:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-affil {
    color: var(--red-light) !important;
    font-weight: 600;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--red-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--red-light);
}

.site-footer .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

.site-footer .btn-outline:hover {
    border-color: var(--red-light);
    color: var(--red-light);
    background: rgba(181, 40, 60, 0.1);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 500px;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    /* Mobile dropdown: show inline, not hover */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open-mobile .dropdown {
        max-height: 300px;
    }

    .main-nav a {
        padding: 12px 16px;
        border-radius: 0;
    }

    .logo-title {
        font-size: 0.75rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .hero-content {
        padding: 60px 24px;
    }

    .section {
        padding: 40px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .person-card img {
        height: 160px;
    }

    .alumni-table {
        font-size: 0.8rem;
    }

    .alumni-table th,
    .alumni-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.3rem;
    }
}
