/*BASE SETTINGS & VARIABLES*/
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --ink: #0e0e0e;
  --ink2: #2a2a2a;
  --mist: #f4f1eb;
  --warm: #ede8df;
  
  /* Ashoka Red */
  --gold: #c1272d;
  --gold2: #a3152c;

  /* Ashoka Blue */
  --teal: #0a2540;
  --teal2: #113458;
  
  /* Accents */
  --rose: #b5503a;
  --purple: #4a3b7a;
  --slate: #6b6459;
  --border: #d5cfc4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--mist);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*SMOOTH PAGE TRANSITIONS*/
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.2s ease-out both;
}
::view-transition-new(root) {
  animation: fade-in 0.2s ease-in both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/*PAGE LAYOUT UTILITIES & TYPOGRAPHY*/
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content {
  padding-top: 120px;
  flex-grow: 1;
}
.spacing-bottom-lg {
  margin-bottom: 3rem;
}
.footer-bottom {
  margin-top: auto;
}

.nav-logo, 
.hero-title, 
.hero-stat-num, 
.section-title, 
.rc-number, 
.rc-title, 
.team-name, 
.pub-year, 
.pub-title, 
.news-title,
.facility-title {
  font-family: 'Merriweather', serif;
}

/*NAVIGATION BAR*/
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244,241,235,0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 4vw;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1.2;
}
.nav-logo a { 
  text-decoration: none; 
  color: inherit; 
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  color: var(--slate); letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/*FLOATING HERO SECTION*/
.hero {
  position: relative;
  width: 96%; 
  max-width: 1800px; 
  margin: 7rem auto 5rem auto; 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
  min-height: 75vh; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding: 0 4vw; 
  
  /* A dark 40% opacity tint that keeps your data image perfectly sharp and visible underneath */
  background: linear-gradient(rgba(20, 20, 20, 0.40), rgba(20, 20, 20, 0.40)), url('images/homepage.png');
  background-size: cover;
  background-position: center;
}

/* Completely remove or comment out the .hero::before block since we don't need the blur layer anymore */
.hero::before {
  display: none;
}

.hero-content {
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: #c1272d;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  color: #ffffff; /* Restored back to crisp white */
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.a-red {
  color: #e63946; /* Slightly brighter red variant so it stays vibrant against the dark tint */
}

.hero-description {
  color: #d1d5db; /* Restored back to light gray for premium contrast */
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0 auto 2.5rem auto; 
  max-width: 650px;
}

.hero-cta {
  display: inline-block;
  background-color: var(--teal);
  color: #ffffff;
  padding: 1.1rem 2.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.hero-cta:hover {
  background-color: var(--teal2); 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/*GENERAL SECTIONS*/
section { 
  padding: 5.5rem 8vw; 
  scroll-margin-top: 80px; 
}

.section-label {
  font-size: 11px; 
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase; 
  color: var(--gold);
  display: flex; 
  align-items: center; 
  gap: 10px;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: ''; 
  width: 24px; 
  height: 1px; 
  background: var(--gold);
}

/* .section-title {
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 700; 
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem; 
  letter-spacing: -0.01em;
} */

.section-title {
  /* Reduced min-size (28px) and max-size (36px) for a more compact look */
  font-size: clamp(28px, 2.5vw, 36px);
  
  /* Reduced weight for a lighter, more elegant feel */
  font-weight: 600; 
  
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.6rem; /* Tightened spacing further */
  letter-spacing: -0.02em; /* Slightly tighter letter spacing complements the smaller size */
}

.section-intro {
  font-size: 16px;
  color: var(--slate); 
  line-height: 1.75;
  max-width: 620px;
}

/*RESEARCH SECTION*/
#research { background: #fff; }
.research-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: end; margin-bottom: 2.5rem;
}
.research-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
}
.research-card.expanded {
  align-self: start; /* Prevents neighboring cards from stretching ONLY when this card expands */
}
.research-card {
  background: #fff; 
  padding: 2.5rem 2rem;
  border-radius: 16px; /* Refined corners */
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  cursor: pointer; 
  position: relative; 
  overflow: hidden; /* Prevents color bar from breaking borders */
}
.research-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 0; /* Slightly thicker bar for better visibility */
  transition: height 0.3s ease;
}
.research-card.c1::before { background: var(--teal); }
.research-card.c2::before { background: var(--rose); }
.research-card.c3::before { background: var(--purple); }
.research-card.c4::before { background: var(--gold2); }
.research-card.c5::before { background: var(--teal); }
.research-card.c6::before { background: var(--rose); }
.research-card:hover { 
  background: var(--mist); 
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.research-card:hover::before { height: 100%; }

.rc-number {
  font-size: 40px; font-weight: 900;
  color: var(--border); margin-bottom: 1rem;
  line-height: 1;
}
.rc-title {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 0.75rem;
  line-height: 1.3;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.rc-title::after {
  content: '+';
  font-size: 24px; font-weight: 300; color: var(--border);
  transition: transform 0.3s ease; line-height: 1;
}
.research-card.expanded .rc-title::after { transform: rotate(45deg); }
.rc-desc { font-size: 14px; color: var(--slate); line-height: 1.7; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.rc-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px;
  background: var(--warm); color: var(--slate);
  border-radius: 6px; /* Pill shape for tags */
}
.rc-details {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: all 0.4s ease;
  font-size: 14px; color: var(--slate); line-height: 1.7;
}
.research-card.expanded .rc-details {
  max-height: 600px; 
  opacity: 1; 
  margin-top: 1.5rem; 
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/*ABOUT STRIP & PILLARS*/
.about-strip {
  background: var(--teal);/*#051626;*/
  padding: 7rem 8vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
  align-items: center;
}
.about-strip .section-title { color: #ffffff; }
.about-strip .section-label { color: var(--gold); } 
.about-strip .section-label::before { background: var(--gold); }
.about-text { font-size: 16px; color: #d1d5db; line-height: 1.85; } 
.about-text p + p { margin-top: 1rem; }
.about-pillars { display: flex; flex-direction: column; gap: 1rem; }

a.pillar {
  text-decoration: none;
  color: inherit;
}
.pillar {
  background: var(--teal2);/*#0c253d;*/
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  border-radius: 16px; /* Refined corners */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Soft inner border */
  transition: all 0.2s ease;
}
.pillar:hover { 
  background: #184473; 
  transform: translateX(8px); /* Sliding effect instead of jumping up */
}
.pillar-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pillar-icon.t { background: rgba(45, 206, 158, 0.15); color: #2dce9e; }
.pillar-icon.r { background: rgba(232, 131, 107, 0.15); color: #e8836b; }
.pillar-icon.c { background: rgba(155, 139, 212, 0.15); color: #9b8bd4; }
.pillar-text strong { display: block; font-size: 16px; font-weight: 500; color: #ffffff; }
.pillar-text span { font-size: 13px; color: #9ca3af; } 

/* STANDALONE PROFESSOR PROFILE (TWO-COLUMN)*/
.prof-profile-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
}

.prof-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 1000px; /* Widened slightly to give the text more breathing room */
  width: 100%;
  padding: 3.5rem 4rem;
  
  /* Layout Shift: Creates the two-column format */
  display: flex;
  align-items: center;
  text-align: left; /* Left-aligns text content for better side-by-side reading */
  gap: 4rem; /* Generates breathing space between image and text */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.prof-avatar {
  width: 180px; /* Made slightly larger since it has its own column now */
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* Prevents the image from getting squished by long text */
  border: 4px solid var(--mist);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.prof-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prof-name {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.prof-role {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.prof-bio {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.prof-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start; /* Aligns buttons under the text stream */
}

.prof-links a {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  background: var(--mist);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.prof-links a:hover {
  color: #ffffff;
  background: var(--teal2);
  transform: translateY(-1px);
}

/* Responsive adjust for mobile/tablet screens */
@media (max-width: 850px) {
  .prof-card {
    flex-direction: column; /* Snaps back to vertical stacking on small screens */
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
  
  .prof-avatar {
    width: 140px;
    height: 140px;
  }

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

/*PEOPLE SECTION*/
#people { background: var(--mist); }
.people-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: end; margin-bottom: 2.5rem;
}
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: start; 
}
.team-card {
  background: #fff; border: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 16px; /* Refined corners */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

.avatar-img {
  width: 96px; height: 96px; 
  border-radius: 50%;
  object-fit: cover; 
  margin: 0 auto 1.2rem;
  border: 3px solid var(--mist);
}
.team-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--slate); letter-spacing: 0.08em; }

.team-content {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: all 0.4s ease;
  font-size: 13px; color: var(--slate); line-height: 1.6;
  text-align: left; width: 100%;
}
.team-card.expanded .team-content {
  max-height: 500px; opacity: 1;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.team-links { display: flex; gap: 1rem; margin-top: 1.25rem; }
.team-links a {
  font-size: 11px; font-weight: 700; color: var(--teal); 
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em;
}
.team-links a:hover { color: var(--teal2); text-decoration: underline; }

/*PUBLICATIONS SECTION*/
#publications { background: #fff; }
.pubs-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem;
}
.pubs-link {
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-decoration: none; letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 8px; /* Refined button shape */
  transition: background 0.2s;
}
.pubs-link:hover { background: var(--mist); color: var(--teal2); }
.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item {
  padding: 2rem 1.5rem; 
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr;
  gap: 2.5rem; align-items: start;
  border-radius: 12px; /* Smooth corners for hover */
  transition: all 0.2s ease;
  cursor: default;
}
.pub-item:first-child { border-top: 1px solid var(--border); }
.pub-item:hover { background: var(--mist); border-color: transparent; }
.pub-year { font-size: 20px; font-weight: 700; color: var(--gold); min-width: 56px; padding-top: 2px; }
.pub-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  line-height: 1.35; margin-bottom: 6px;
  transition: color 0.2s;
}
a:hover .pub-title { color: var(--teal); }
.pub-read-more {
  display: inline-block; margin-top: 8px;
  font-size: 11px; font-weight: 700; color: var(--teal);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em;
}
.pub-read-more:hover { color: var(--teal2); text-decoration: underline; }
.pub-authors { font-size: 13px; color: var(--slate); margin-bottom: 4px; }
.pub-journal { font-size: 12px; font-style: italic; color: var(--gold2); font-weight: 500; }

/*FACILITIES SECTION*/
.facilities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 4rem; align-items: start; 
}
.facility-card {
  background: #fff; 
  border: 1px solid var(--border);
  border-radius: 16px; /* Refined corners */
  padding: 0 0 1.5rem; 
  overflow: hidden; /* Protects border-radius from image corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; 
  display: flex; flex-direction: column;
}
.facility-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
}
.facility-img {
  height: 260px; 
  width: 100%;
  object-fit: cover; 
  display: block;
  border-bottom: 1px solid var(--border);
}
.facility-body { padding: 1.5rem 1.5rem 0; }
.facility-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  line-height: 1.35; 
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.facility-title::after {
  content: '+';
  font-size: 24px; font-weight: 300; color: var(--teal);
  transition: transform 0.3s ease; line-height: 1;
}
.facility-card.expanded .facility-title::after { transform: rotate(45deg); }
.facility-content {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: all 0.4s ease;
  font-size: 14px; color: var(--slate); line-height: 1.7;
}
.facility-card.expanded .facility-content {
  max-height: 600px; opacity: 1; margin-top: 1rem;
}

/*CONTACT SECTION*/
.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 8rem;
}
.contact-header { margin-bottom: 4rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 16px; /* Refined corners */
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.contact-icon {
  width: 64px; height: 64px;
  background: var(--mist);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold); 
}
.contact-icon svg { width: 28px; height: 28px; stroke-width: 1.5px; }
.contact-card-content h3 {
  font-family: 'Merriweather', serif; font-size: 1.25rem;
  color: var(--ink); margin-bottom: 0.75rem;
}
.contact-card-content p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.contact-card-content a {
  color: var(--teal2); font-size: 1rem; font-weight: 600;
  text-decoration: none; display: block; margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.contact-card-content a:hover { text-decoration: underline; }
.contact-card-content .sub-text { font-size: 0.85rem; margin-top: 0.5rem; }

/*GALLERY CAROUSEL*/
.gallery-strip {
  padding: 4rem 0 6rem 0;
  background: transparent; /* Removes the full-width white block */
  border-top: none;
}

.gallery-header { 
  padding: 0 8vw; /* Aligns the heading perfectly with the rest of the site */
  margin-bottom: 2rem; 
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  
  /* The New Floating White Card */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px; 
  margin: 0 4vw; /* 4vw margins make it noticeably wider than the 8vw text blocks */
  padding: 3rem 0; /* Vertical breathing room inside the card */
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}

.gallery-track {
  display: flex; 
  gap: 1.5rem;
  
  /* 3rem (48px) padding on the left/right creates the resting buffer */
  padding: 0 3rem 1.5rem 3rem; 
  width: 100%;
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  
  /* THE MAGIC LINE: Forces the scroll-snap to stop AT the padding, not the edge */
  scroll-padding-inline: 3rem; 
  
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
}

.gallery-track::-webkit-scrollbar { 
  display: none; 
}

.gallery-item {
  flex: 0 0 320px; 
  height: 320px;
  scroll-snap-align: start;
  border-radius: 12px; 
  overflow: hidden; 
  background: var(--mist);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06); 
}

.gallery-item img {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  display: block;
  transition: transform 0.4s ease; 
  cursor: pointer; 
}

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

/* Scroll Arrows */
.gallery-arrow {
  position: absolute; 
  z-index: 10;
  top: calc(50% - 0.75rem); /* Accounts for the bottom padding on the track */
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid var(--border); 
  color: #333;
  width: 48px; 
  height: 48px; 
  border-radius: 50%;
  font-size: 20px; 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Placed fully inside the 3rem void we created with the padding */
.left-arrow { left: 1.25rem; }
.right-arrow { right: 1.25rem; }

/* Responsive adjustments for Mobile & Tablet */
@media (max-width: 900px) {
  .gallery-wrapper {
    margin: 0 4vw;
    padding: 2.5rem 0;
    border-radius: 16px;
  }
  .gallery-track { 
    padding: 0 2rem 1rem 2rem; 
    scroll-padding-inline: 2rem;
    gap: 1rem; 
  }
  .gallery-arrow { display: none; }
  .gallery-item { flex: 0 0 260px; height: 260px; }
}

/*LIGHTBOX MODAL*/
.modal-overlay {
  display: none; position: fixed; z-index: 2000; 
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; opacity: 1;
}
.modal-content {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 16px; /* Refined corners */
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
#modal-caption {
  margin-top: 15px; color: #ffffff;
  font-family: 'Inter', sans-serif; font-size: 1.1rem;
  font-weight: 300; text-align: center;
  max-width: 80vw; line-height: 1.5;
}
.modal-close {
  position: absolute; top: 20px; right: 35px;
  color: #f1f1f1; font-size: 45px; font-weight: 300;
  cursor: pointer; transition: color 0.2s ease;
}
.modal-close:hover, .modal-close:focus { color: var(--gold); } 

/*FOOTER*/
footer {
  background: #080808; 
  padding: 2rem 8vw;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #1a1a1a;
}
.footer-logo { font-size: 15px; color: #d5cfc4; font-weight: 700; }
.footer-logo .ashoka-link, .footer-logo .ashoka-link:visited { 
  color: var(--gold); text-decoration: none; transition: color 0.2s;
}
.footer-logo .ashoka-link:hover, .footer-logo .ashoka-link:active, .footer-logo .ashoka-link:focus {
  color: var(--teal2); text-decoration: underline;
}
.footer-copy { font-size: 12px; color: #b0a89f; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a, .footer-links a:visited { 
  font-size: 15px; color: #d5cfc4; font-weight: 700; 
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:active, .footer-links a:focus { 
  color: var(--teal2); text-decoration: underline; 
}

/*RESPONSIVE BREAKPOINTS (MOBILE/TABLET) */
@media (max-width: 900px) {
  /* Hero & General */
  .hero { 
    grid-template-columns: 1fr; 
    max-width: 92vw; min-height: 60vh;
    padding: 4rem 2rem; border-radius: 16px;
  }
  .hero-right { display: none; }
  .hero-title { font-size: 2.8rem; }
  .hero-description { font-size: 1.1rem; }
  
  /* Grids */
  .research-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
  .research-header, .people-header, .about-strip, #contact { grid-template-columns: 1fr; gap: 2rem; }
  
  /* Gallery */
  .gallery-arrow { display: none; }
  .gallery-item { flex: 0 0 260px; height: 260px; }

  /* Mobile Nav Menu */
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(244, 241, 235, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: center;
    padding: 2rem 0; gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.35s ease-out;
    border-bottom-left-radius: 24px; /* Refined menu corners */
    border-bottom-right-radius: 24px;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile Footer */
  footer {
    flex-direction: column; gap: 1.5rem; text-align: center; padding: 3rem 4vw;
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  /* Forces 1 column on smaller phones */
  .team-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
}
