* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #0a6cff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar nav a {
  margin-left: 1.5rem;
  font-weight: 500;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #0a6cff, #1fc8db);
  color: white;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin-bottom: 2rem;
}

/* SECTIONS */
.section {
  padding: 5rem 0;
}

.section.alt {
  background: #f7f9fc;
}

.section h2 {
  margin-bottom: 1.5rem;
}

.section-text {
  max-width: 800px;
  margin-bottom: 1rem;
}

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

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
}

.btn-primary {
  background: white;
  color: #0a6cff;
}

.btn-secondary {
  background: #0a6cff;
  color: white;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* FOOTER */
.footer {
  background: #0a6cff;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== JS-Driven Enhancements ===== */

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar nav a.active {
  color: #0a6cff;
  border-bottom: 2px solid #0a6cff;
  padding-bottom: 4px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Search & Filter Bar ===== */

/* ===== Modern Search & Filter ===== */

.filter-section {
  padding: 2rem 0 0;
}

.filter-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: white;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  max-width: 700px;
}

.filter-card input,
.filter-card select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: all 0.2s ease;
}

.filter-card input {
  flex: 1;
}

.filter-card input::placeholder {
  color: #999;
}

.filter-card input:focus,
.filter-card select:focus {
  outline: none;
  border-color: #0a6cff;
  background: white;
  box-shadow: 0 0 0 3px rgba(10,108,255,0.12);
}

/* Mobile */
@media (max-width: 600px) {
  .filter-card {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== Research Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.6rem 0;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0a6cff;
  font-weight: 500;
}

/* ===== Profile Links ===== */
.profile-links {
  display: flex;
  gap: 10px;
  margin: 0.4rem 0;
}

.profile-links a {
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.profile-links a:hover {
  color: #0a6cff;
}

.email {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

/* ===== Team Card Layout Fix ===== */

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-footer {
  margin-top: auto; /* 🔑 pushes footer to bottom */
  padding-top: 0.8rem;
}

.email {
  display: block;
  font-size: 0.85rem;
  color: #555;
  word-break: break-word;
  margin-top: 0.3rem;
}

/* Optional: subtle hover polish */
.email:hover {
  color: #0a6cff;
}
.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.role {
  font-size: 0.85rem;
  color: #555;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.6rem 0;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0a6cff;
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
}

.profile-links {
  display: flex;
  gap: 10px;
}

.profile-links a {
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.profile-links a:hover {
  color: #0a6cff;
}

.email {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #555;
  word-break: break-word;
}

.email:hover {
  color: #0a6cff;
}


/* ===============================
   RESEARCH PAGE ONLY
   =============================== */

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;            /* ← THIS fixes the blue text */
}

.project-link:visited {
  color: inherit;
}

.project-link:hover {
  text-decoration: none;
}

.project-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover .project-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.page-research .filter-section {
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.page-research .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.page-research .project-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.page-research .section.alt {
  padding-bottom: 6rem;
}

/* ===== Projects ===== */

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

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

/* ===== Modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.modal-content {
  background: white;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  border-radius: 18px;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hidden templates */
.project-details {
  display: none;
}

/* ===============================
   PUBLICATIONS PAGE ONLY
   =============================== */

.page-publications .pub-search-section {
  padding: 2rem 0 1.5rem;
}

.page-publications .year-heading {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid #0a6cff;
  display: inline-block;
  padding-bottom: 4px;
}

.page-publications .publication-list {
  list-style: none;
  padding: 0;
}

.page-publications .publication-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid #eee;
}

.page-publications .publication-item:last-child {
  border-bottom: none;
}

.page-publications .pub-main {
  max-width: 85%;
}

.page-publications .pub-title {
  display: block;
  font-weight: 600;
}

.page-publications .pub-authors,
.page-publications .pub-venue {
  display: block;
  font-size: 0.85rem;
  color: #555;
}

.page-publications .pub-venue {
  font-style: italic;
}

.page-publications .pub-links {
  display: flex;
  gap: 12px;
}

.page-publications .pub-links a {
  color: #666;
  transition: color 0.2s ease;
}

.page-publications .pub-links a:hover {
  color: #0a6cff;
}

.page-publications .section.alt {
  padding-bottom: 6rem;
}

/* Mobile */
@media (max-width: 768px) {
  .page-publications .publication-item {
    flex-direction: column;
  }

  .page-publications .pub-main {
    max-width: 100%;
  }
}
/* ===============================
   INDEX PAGE – SCROLLABLE NEWS
   =============================== 

.page-index .news-box {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 1rem;
}

/* Scrollbar (subtle, modern) 
.page-index .news-box::-webkit-scrollbar {
  width: 6px;
}

.page-index .news-box::-webkit-scrollbar-thumb {
  background: #cfd6e0;
  border-radius: 4px;
}

.page-index .news-box::-webkit-scrollbar-thumb:hover {
  background: #aeb7c5;
}

.page-index .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-index .news-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.page-index .news-list li:last-child {
  border-bottom: none;
}

.page-index .news-date {
  font-weight: 600;
  margin-right: 8px;
  color: #0a6cff;
}
*/