/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --green-dark:  #1B5E20;
  --green-mid:   #4CAF50;
  --green-light: #A5D6A7;
  --green-pale:  #E8F5E9;
  --white:       #FFFFFF;
  --bg-alt:      #F9FBF9;
  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --border:  #DCEDC8;
  --shadow:  0 2px 12px rgba(27,94,32,0.08);
  --shadow-hover: 0 6px 24px rgba(27,94,32,0.16);
  --radius:  10px;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Source Sans 3', sans-serif;
  --transition: 0.22s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
}
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-mid); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-secondary); }

/* ── Layout Utilities ─────────────────────────────────────────────────────── */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--green-mid);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: #2E7D32;
  border-color: #2E7D32;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-secondary:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-body { padding: 1.5rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.card-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-green  { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--border); }
.badge-mid    { background: var(--green-dark); color: var(--white); }
.badge-light  { background: var(--green-light); color: var(--green-dark); }
.badge-ongoing   { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.badge-completed { background: #F3F3F3; color: #555; border: 1px solid #ccc; }
.badge-approved  { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.badge-published { background: #E3F2FD; color: #0D47A1; border: 1px solid #90CAF9; }
.badge-filed     { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 70%; }
.nav-links a.active { color: var(--green-dark); }
.nav-links a:hover  { color: var(--green-dark); background: var(--green-pale); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 10 Q55 25 50 40 Q65 35 70 50 Q55 55 45 45 Q40 60 25 55 Q30 40 20 35 Q35 30 30 15 Z' fill='%231B5E20'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 1.5rem;
}
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-mid);
  box-shadow: 0 0 0 8px var(--green-pale);
}
.hero-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 4px solid var(--green-mid);
  box-shadow: 0 0 0 8px var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--green-mid);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: 1.05rem;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.hero-institution {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ── Identity Bar ─────────────────────────────────────────────────────────── */
.identity-bar {
  background: var(--green-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.identity-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0;
}
.identity-scroll::-webkit-scrollbar { display: none; }
.id-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: all var(--transition);
  text-decoration: none;
}
.id-pill:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.id-pill .id-label { color: var(--text-secondary); font-weight: 400; font-size: 0.78rem; }
.id-pill:hover .id-label { color: rgba(255,255,255,0.75); }

/* ── News Grid ────────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-card-image {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.news-card-image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-pale) 0%, #C8E6C9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.news-body { flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.news-excerpt { font-size: 0.9rem; color: var(--text-secondary); flex: 1; margin-bottom: 1rem; }
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.like-btn:hover, .like-btn.liked {
  background: #FFF0F0;
  border-color: #E57373;
  color: #C62828;
}
.like-btn .heart { font-size: 1rem; }
.read-more-btn {
  background: none;
  border: none;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.read-more-btn:hover { color: var(--green-mid); }
.news-full-body { display: none; margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); }
.news-full-body.open { display: block; }

.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ── Highlights Strip ────────────────────────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.highlight-col h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.highlight-col h3 a { font-size: 0.8rem; font-family: var(--font-body); font-weight: 600; }
.highlight-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.highlight-item:last-child { border-bottom: none; }
.highlight-year { font-size: 0.78rem; color: var(--green-mid); font-weight: 700; }
.highlight-name { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; margin: 0.2rem 0; }
.highlight-sub  { font-size: 0.82rem; color: var(--text-secondary); }

/* ── Research Snapshot ────────────────────────────────────────────────────── */
.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.project-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.project-agency { font-size: 0.8rem; color: var(--text-secondary); }
.project-amount { display: inline-block; margin-top: 0.5rem; }

/* ── About Page ───────────────────────────────────────────────────────────── */
.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-mid);
  box-shadow: 0 0 0 6px var(--green-pale);
}
.profile-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 4px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--green-mid);
}
.profile-ids { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-family: var(--font-body);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:hover td { background: #F9FBF9; }
.data-table .sno { width: 2.5rem; color: var(--text-secondary); }

/* ── Experience Timeline ──────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-mid);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-mid);
}
.timeline-item.current::before { background: var(--green-dark); box-shadow: 0 0 0 2px var(--green-dark); }
.timeline-year { font-size: 0.78rem; color: var(--green-mid); font-weight: 700; margin-bottom: 0.3rem; }
.timeline-role { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.timeline-place { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* ── Research Tabs ────────────────────────────────────────────────────────── */
.tabs { margin-bottom: 2rem; }
.tab-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}
.tab-btn:hover { color: var(--green-dark); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pub-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-authors { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.pub-title   { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.pub-journal { font-size: 0.88rem; color: var(--text-secondary); font-style: italic; }
.pub-doi a   { font-size: 0.82rem; color: var(--green-dark); }

/* ── Patents Page ─────────────────────────────────────────────────────────── */
.patents-table-wrap { overflow-x: auto; }

/* ── Awards Page ──────────────────────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.award-card {
  border-left: 4px solid var(--green-mid);
}
.award-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: 0.3rem;
}
.award-agency { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.4rem; }
.award-desc { font-size: 0.88rem; margin-top: 0.75rem; color: var(--text-secondary); }

/* ── Events ───────────────────────────────────────────────────────────────── */
.event-row td { vertical-align: middle; }

/* ── Contact Page ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { font-size: 0.95rem; color: var(--text-primary); margin-top: 0.15rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; }

/* ── Page Hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-pale) 0%, #C8E6C9 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-hero p  { color: var(--text-secondary); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: all var(--transition);
}
.pagination a:hover, .pagination span.current {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error   { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
    border-top: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .site-header { position: relative; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .profile-header { grid-template-columns: 1fr; text-align: center; }
  .profile-photo, .profile-photo-placeholder { margin: 0 auto; }
  .profile-ids { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .tab-list { flex-wrap: wrap; }
  .hero { padding: 3rem 0; }
  .hero-photo-wrap { margin: 0 auto 1.5rem; }
}
