/* ===== CSS Variables ===== */
:root {
    --primary-dark: #0a2540;
    --primary-blue: #1e3a5f;
    --primary-light: #2c5282;
    --accent-amber: #f59e0b;
    --accent-orange: #ea580c;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-amber);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--primary-light) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(234, 88, 12, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-info {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-amber);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: var(--accent-orange);
}

/* ===== Section Base Styles ===== */
.section {
    padding: 4rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.lead-paragraph {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.about-logo img {
    max-width: 100%;
    width: 280px;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    cursor: pointer;
}

.about-logo img:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 10px 30px rgba(10, 37, 64, 0.3));
}

/* ===== Research Section - Urban Knowledge Graph ===== */
.research-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
}

/* UKG Container */
.ukg-container {
    position: relative;
    width: 100%;
    height: 820px;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    box-sizing: border-box;
}

/* Grid Background */
.ukg-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(to right, #0a2540 1px, transparent 1px),
        linear-gradient(to bottom, #0a2540 1px, transparent 1px);
    background-size: 40px 40px;
}

/* SVG Lines */
.ukg-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ukg-line {
    stroke: #cbd5e0;
    stroke-width: 2;
    transition: all 0.3s ease;
}

/* Nodes */
.ukg-node {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: z-index 0s;
}

.ukg-node.center {
    z-index: 20;
}

.ukg-card {
    position: relative;
    width: 340px;
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

/* Center card is smaller */
.ukg-node.center .ukg-card {
    width: 320px;
    padding: 1rem;
    text-align: center;
}

.ukg-node.center .ukg-icon {
    margin: 0 auto 0.5rem;
}

.ukg-node.center .ukg-title {
    margin-bottom: 0.5rem;
}

.ukg-node.center .ukg-keywords {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.ukg-node.center .ukg-keyword {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
}

.ukg-node:hover .ukg-card {
    transform: translateY(-4px);
}

.ukg-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    display: block;
}

.ukg-title {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
}

.ukg-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ukg-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ukg-node:hover .ukg-arrow {
    opacity: 1;
}

.ukg-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.4;
}

/* Keywords Grid - 2x2 layout */
.ukg-keywords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ukg-keyword {
    display: block;
    padding: 0.4rem 0.75rem;
    background: var(--bg-lighter);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-medium);
    text-align: center;
    transition: all 0.2s ease;
}

.ukg-node:hover .ukg-keyword {
    background: var(--bg-light);
}

/* ===== Team Section ===== */
.subsection-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem 0;
    color: var(--primary-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.pi-section {
    margin-bottom: 2.5rem;
}

.pi-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.member-photo-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Crimson Pro', serif;
}

.pi-photo {
    width: 200px;
    height: 266px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.pi-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.member-info h4 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1.2rem;
    color: var(--accent-amber);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-department {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.member-bio {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.member-links {
    display: flex;
    gap: 1.5rem;
}

.member-link {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    transition: var(--transition);
}

.member-link:hover {
    background: var(--primary-blue);
    color: white;
}

.member-card .member-links {
    margin-top: 0.5rem;
}

.member-card .member-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-width: 1px;
}

.team-category {
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.member-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-card .member-photo-placeholder {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.member-card .member-photo {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-lighter);
}

.member-card .member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.member-card .member-info-right {
    flex: 1;
}

.member-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.member-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.member-detail {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.member-position {
    color: var(--accent-amber);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-research {
    color: var(--accent-amber);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.member-email {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-decoration: underline;
}

.alumni-list {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.alumni-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

.alumni-item:last-child {
    border-bottom: none;
}

/* Junior Partners Grid */
.junior-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.junior-card {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
}

.junior-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.junior-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 0 0 0.25rem 0;
}

.junior-school {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* ===== Publications Section ===== */
.pub-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Manrope', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.filter-btn.active {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: var(--primary-dark);
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.publication-item {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.publication-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.pub-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
    font-family: 'Crimson Pro', serif;
}

.pub-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.pub-authors {
    color: var(--text-medium);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.pub-venue {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
}

.pub-link {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: var(--transition);
}

.pub-link:hover {
    background: #f0f0f0;
    color: var(--text-medium);
    border-color: #bbb;
}

/* ===== Publications Page Styles ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--primary-light) 100%);
    padding: 6rem 0 2.5rem 0;
    text-align: center;
    color: white;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.publications-page-section {
    padding-top: 3rem;
}

.year-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: sticky;
    top: 70px;
    background: var(--bg-white);
    padding: 1rem 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.year-link {
    padding: 0.75rem 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.year-link:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.year-link.active {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: var(--primary-dark);
}

.year-section {
    margin-bottom: 4rem;
    scroll-margin-top: 150px;
    text-align: center;
}

.year-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-amber);
    display: inline-block;
}

/* Index page publication description and button */
.pub-description {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    margin: 0 auto;
    text-align: center;
}

.publications-section .container {
    text-align: center;
}

.view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Year Cards Grid for publications.html */
.year-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.year-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--accent-amber);
    display: block;
}

.year-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-orange);
}

.year-card-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Crimson Pro', serif;
    margin-bottom: 0.5rem;
}

.year-card-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Back link for year pages */
.back-link {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* ===== News Section ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--accent-amber);
    min-height: 200px;
}

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

/* Featured news card with image */
.news-card-featured {
    padding: 0;
    border-left: none;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: auto;
}

.news-card-featured .news-image {
    width: 180px;
    min-width: 180px;
    display: flex;
    background: var(--bg-lighter);
    overflow: hidden;
}

.news-card-featured .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Binky 图片保持完整显示 */
.news-card-featured .news-image img[src*="Binky"] {
    object-fit: contain;
}

.news-card-featured:hover .news-image img {
    transform: scale(1.05);
}

.news-card-featured .news-content {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent-amber);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-featured .news-content .news-date {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.news-card-featured .news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-card-featured .news-content p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.news-date {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.news-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-item p {
    color: var(--text-medium);
    line-height: 1.8;
}

.contact-item a {
    color: var(--primary-blue);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-amber);
}

.map-placeholder {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-medium);
    border: 2px dashed var(--border-color);
}

.contact-map {
    min-height: 250px;
    max-height: 280px;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-amber);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    /* UKG Responsive - Large Tablets */
    .ukg-container {
        height: 720px;
    }

    .ukg-card {
        width: 300px;
        padding: 1.25rem;
    }

    .ukg-icon {
        width: 48px;
        height: 48px;
    }

    .ukg-title {
        font-size: 1.2rem;
    }

    .ukg-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-logo {
        order: -1;
    }

    .about-logo img {
        width: 280px;
    }

    .pi-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .member-photo-placeholder {
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .member-links {
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .junior-grid {
        grid-template-columns: 1fr;
    }

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

    .news-card-featured {
        flex-direction: column;
    }

    .news-card-featured .news-image {
        width: 100%;
        height: 180px;
    }

    /* UKG Responsive - Tablet: vertical layout */
    .ukg-container {
        height: auto;
        padding: 1rem 0;
    }

    .ukg-lines, .ukg-grid-bg {
        display: none;
    }

    .ukg-node {
        position: relative;
        transform: none;
        left: auto !important;
        top: auto !important;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .ukg-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .ukg-title {
        font-size: 1.25rem;
    }

    .ukg-desc {
        font-size: 0.95rem;
    }

    .ukg-keyword {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    /* Animate nodes immediately on tablet (no scroll trigger needed) */
    .ukg-node {
        opacity: 1 !important;
        transform: none !important;
    }

    .ukg-line {
        display: none;
    }

    #ukg-nodes-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* UKG Responsive - Mobile */
    .ukg-container {
        padding: 0.5rem 0;
    }

    .ukg-card {
        padding: 1.25rem;
    }

    .ukg-keyword {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }

    .ukg-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }

    .ukg-title {
        font-size: 1.1rem;
    }
    .ukg-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    }

    .ukg-node {
        margin-bottom: 1rem;
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}