/* TINT Website Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2d3748;
    --accent-blue: #3182ce;
    --light-blue: #f1f5f9;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #cbd5e1;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}



body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.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);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.nav-brand .tint-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    animation: none !important;
    filter: none !important;
}

.nav-brand .tint-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-logo .tint-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-brand .brand-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-blue);
    line-height: 1;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.search-toggle:hover {
    background-color: var(--gray-200);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Global Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}



.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-header h3 {
    color: var(--primary-blue);
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-close:hover {
    background-color: var(--gray-200);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.search-input-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.search-results {
    min-height: 200px;
}

/* Search results items */
.search-result-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    color: inherit;
    text-decoration: none;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item h4 { margin-bottom: 0.25rem; color: var(--primary-blue); }
.search-result-item p { color: var(--gray-600); }

/* Publications header tags inline */
.pub-header { align-items: flex-start; }
.pub-header .pub-tags { margin-top: 0.5rem; justify-content: center; }

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--light-blue) 100%);
    text-align: center;
}



.page-header h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--light-blue) 100%);
    padding: 4rem 0 2rem 0;
    margin-top: 70px;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    margin-bottom: 2.5rem;
}

.hero-punchline {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
}

    .typing-cursor {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--accent-blue);
        animation: blink 1s infinite;
        margin-left: 2px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        font-style: italic;
        margin-top: 1rem;
        text-align: center;
        min-height: 2.5rem;
    }



.emphasized-letter {
    color: var(--accent-blue);
    font-weight: 800;
}





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

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn:hover {
    transform: translateY(-2px);
}






/* Section Styles */
.about, .team, .ongoing-projects, .finished-projects, .publications, .teaching, .openings, .contact, .research-areas {
    padding: 6rem 0;
}

.about, .ongoing-projects, .finished-projects, .teaching, .contact {
    background: var(--white);
}

.team, .research-areas, .openings {
    background: var(--gray-100);
    padding: 6rem 0 2rem 0; /* Reduced bottom padding from 6rem to 2rem */
}

.publications {
    background: var(--white);
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    border-radius: 2px;
}

/* Quick Links */
.quick-links {
    padding: 6rem 0;
    background: var(--gray-100);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-link-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.quick-link-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.quick-link-card p {
    color: var(--gray-600);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.mission-vision {
    display: grid;
    gap: 2rem;
}

.mission, .vision {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
}

.mission h3, .vision h3 {
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mission i, .vision i {
    color: var(--accent-blue);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Team Section */
.team-categories {
    display: grid;
    gap: 3rem;
}

.team-category h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-title i {
    color: var(--accent-blue);
}

/* Team Filter */
.team-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-blue);
    background: var(--white);
    color: var(--accent-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.filter-btn.active {
    background: var(--accent-blue);
    color: var(--white);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--secondary-blue);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

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

.team-member.hidden {
    display: none !important;
}

.team-member:not(.hidden) {
    display: flex !important;
}



.member-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.member-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.member-education {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.member-expertise {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    flex: 1;
}

.member-co-advisor {
    color: var(--secondary-blue);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-visit-period {
    color: var(--secondary-blue);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.member-links a {
    color: #000000;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
}

.member-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}



/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--primary-blue);
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.ongoing {
    background: var(--accent-blue);
    color: var(--white);
}

.project-status.completed {
    background: var(--gray-600);
    color: var(--white);
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.conference {
    background: var(--accent-blue);
    color: var(--white);
}

.tag.journal {
    background: var(--primary-blue);
    color: var(--white);
}

.tag.award {
    background: #f6ad55;
    color: var(--white);
}

.tag.area {
    background: var(--gray-300);
    color: var(--gray-800);
}

.project-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.outcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Publications Section */
.publication-year {
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.year-header {
    background: var(--light-blue);
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}



.year-header:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.year-header h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin: 0;
    margin-left: 0.5rem;
    font-weight: 600;
}

.year-header:hover h3 {
    color: var(--white);
}

.year-header i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.year-header:hover i {
    color: var(--white);
}

.year-header.expanded i {
    transform: rotate(180deg);
}

.year-content {
    display: none;
    background: var(--white);
}

.year-content.expanded {
    display: block;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
}

.publication-item {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: start;
}



.pub-tags-column {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 90px;
}



.tag.venue {
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0.2rem;
}

.tag.award {
    background: var(--success);
    color: var(--white);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.pub-content-column {
    flex: 1;
}

.pub-content-column h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.pub-authors {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-style: normal;
    font-size: 1rem;
}

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

.pub-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    transition: all 0.3s ease;
}

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

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
}

/* Updated Footer */
.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--gray-300);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--gray-600);
    padding-top: 1rem;
}

.footer-bottom p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-punchline {
        font-size: 2.2rem;
    }
    

    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .research-areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-card {
        height: 180px;
    }
    
    .card-main,
    .card-details {
        padding: 1.5rem;
    }
    
    .card-main h3,
    .card-details h3 {
        font-size: 1.1rem;
    }
    
    .card-details p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    

}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (min-width: 769px) {
  .publication-item { grid-template-columns: 90px 1fr; }
  .pub-header { align-items: flex-start; }
}

@media (max-width: 768px) {
  .publication-item { 
    grid-template-columns: 1fr; 
    gap: 0.5rem;
    display: block !important;
  }
  .pub-header { 
    align-items: flex-start; 
    margin-bottom: 0.5rem;
    display: block !important;
  }
  .publications-list {
    padding: 0.5rem;
    display: block !important;
  }
  .publications {
    padding: 2rem 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .publications .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: block !important;
  }
  #publicationsContainer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* News Section */
.news {
    background: var(--white);
    padding: 2rem 0;
}

/* News hyperlinks */
.news-highlight a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.news-highlight a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-blue);
    text-decoration: none;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.news-entry {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--accent-blue);
    background: var(--light-blue);
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
    overflow: hidden;
}

.news-date {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.news-highlight {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Load More Button */
.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.load-more-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* Show Less Button - Same style as Load More */
.show-less-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.show-less-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.show-less-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.show-less-btn:hover i {
    transform: translateY(2px);
}

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

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}





/* Research Areas - Fresh Implementation */
.research-areas {
    padding: 6rem 0 3rem 0;
    background: #f8fafc;
}

.research-areas-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 350px) !important; /* Use fixed widths instead of 1fr */
    gap: 2rem !important;
    margin-top: 2rem !important;
    /* Force the grid to use full width */
    width: 100% !important;
    min-width: 100% !important;
    /* Limit the maximum width to make cards narrower */
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important; /* Center the fixed-width grid */
}

/* Override the conflicting media query rule */
@media (max-width: 768px) {
    .research-areas .research-areas-grid {
        grid-template-columns: repeat(2, 300px) !important; /* Smaller fixed widths on mobile */
        gap: 2rem !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .research-areas .research-areas-grid {
        grid-template-columns: 280px !important; /* Single column with fixed width on very small screens */
        gap: 1.5rem !important;
    }
}

.research-card {
    background: #f8fafc;
    border: none; /* Remove the gray border */
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Force cards to use full grid cell width */
    width: 100% !important;
    min-width: 100% !important;
}

.card-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
    border-radius: 12px; /* Match the parent card's border radius */
    border: none; /* Remove all borders */
}

.card-main h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: white !important;
    /* Remove debug properties */
    white-space: normal;
    word-wrap: break-word;
    max-width: none;
    width: 100%;
}

.card-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 3;
    border: 2px solid var(--primary-blue);
    border-radius: 12px; /* Match the parent card's border radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.research-card:hover .card-details {
    opacity: 1;
    visibility: visible;
}

.card-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: var(--primary-blue) !important;
}

.card-details p {
    color: var(--secondary-blue) !important;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Research Overview */
.research-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Former Members Section */
.former-members {
    background: var(--white);
    padding: 3rem 0;
}

.table-container {
    margin-top: 3rem;
    overflow-x: auto;
}

.former-members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.former-members-table thead {
    background: var(--accent-blue);
    color: var(--white);
}

.former-members-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.former-members-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.former-members-table tbody tr:hover {
    background: var(--gray-100);
}

.former-members-table tbody tr:last-child td {
    border-bottom: none;
}

/* Teaching Page */
.teaching {
    background: var(--gray-100);
    padding: 6rem 0;
}

.term-frame {
    margin-bottom: 2rem;
}

.term-header {
    background: var(--primary-blue);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.term-header:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.term-header h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    margin-left: 0.5rem;
    font-weight: 600;
}

.term-header:hover h2 {
    color: var(--white);
}

.term-header i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.term-header:hover i {
    color: var(--white);
}

.term-header.expanded i {
    transform: rotate(180deg);
}

.term-content {
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.75rem 0;
}

.term-content.expanded {
    display: block;
}

.academic-year {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-blue);
    border-radius: 12px;
}

.academic-year h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

.course {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--white);
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.course:hover {
    background: var(--gray-50);
}

.course:last-child {
    margin-bottom: 0;
}

.course h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.course h3 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.course h3 a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.course p {
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}



.course-level {
    margin-bottom: 2rem;
}

.course-level h3 {
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}



.course-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.course-code {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-level-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-level-badge.pg {
    background: var(--accent-blue);
    color: var(--white);
}

.course-level-badge.ug {
    background: var(--gray-500);
    color: var(--white);
}

.course-semester {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.academic-programs {
    margin-top: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--secondary-blue);
    text-align: center;
}

.program h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.program p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.program-meta span {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Team Member Updates */
.member-co-advisor {
    color: var(--accent-blue);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-visit-period {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-item h3 {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Teaching Page */
.term-group {
    margin-bottom: 2rem;
}

.term-group.first-term {
    margin-top: 3rem;
}

.term-group h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}





/* Typing Animation */
    @keyframes blink {
        0%, 50% { opacity: 1; }
        51%, 100% { opacity: 0; }
    }

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



/* Openings Page */
.openings {
    background: var(--gray-100);
    padding: 6rem 0 1rem 0;
}

/* Openings page hyperlinks (excluding apply button) */
.openings a:not(.apply-button) {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.openings a:not(.apply-button):hover {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-blue);
    text-decoration: none;
}

/* Great Bay Area Section */
.great-bay-area-section {
    padding: 3rem 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.city-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.city-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.city-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.city-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.benefits-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

.benefit-item span {
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive adjustments for Great Bay Area section */
@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .city-card {
        padding: 1.5rem;
    }
    
    .city-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefit-item {
        padding: 0.5rem 0.75rem;
    }
}

.openings-content {
    max-width: 800px;
    margin: 0 auto;
}

.recruitment-summary {
    padding-top: 2rem;
}

.recruitment-summary p {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

.recruitment-summary ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.recruitment-summary li {
    color: var(--gray-800);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 500;
}

.apply-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.apply-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.apply-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.apply-button i {
    font-size: 1rem;
}



/* Contact Page Map */
.contact {
    background: var(--gray-100);
    padding: 6rem 0 4rem 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}



.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-width: 500px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.contact-item i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}



.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    margin-left: -2rem;
}


