/* ==========================================================================
   SARAS Lab - IIT Ropar Official Academic Website
   Style: Clean, Classic Academic / University Portal (Google Sites aesthetic)
   ========================================================================== */

:root {
  --primary-color: #1e3a8a;       /* Academic Navy */
  --primary-dark: #0f2456;
  --primary-light: #2563eb;
  --accent-color: #0284c7;        /* Sky Blue */
  --accent-soft: #e0f2fe;
  --bg-color: #ffffff;
  --bg-alt: #f8fafc;              /* Soft slate tint */
  --bg-card: #ffffff;
  --text-main: #1e293b;           /* Slate 800 */
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --tag-bg: #f1f5f9;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --isro-orange: #f97316;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-alt);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ================= Top University Header ================= */
.top-header {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 14px 20px;
  border-bottom: 3px solid #f59e0b; /* IIT Ropar subtle gold line */
}

.top-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.lab-brand-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-logo-emblem {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 2px;
}

.header-affil {
  text-align: right;
  font-size: 12px;
  color: #e2e8f0;
}

.header-affil strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

/* ================= Navigation Bar ================= */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links li a {
  display: block;
  padding: 14px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-decoration: none;
  background-color: #f8fafc;
}

/* ================= Page Container ================= */
.page-container {
  max-width: var(--max-width);
  margin: 24px auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 32px 36px;
}

@media (max-width: 768px) {
  .page-container {
    padding: 20px 16px;
    margin: 12px;
  }
}

/* ================= Section Layout ================= */
section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .section-badge {
  font-size: 11px;
  font-weight: 600;
  background-color: var(--accent-soft);
  color: var(--accent-color);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 18px;
}

/* ================= Lab Banner / Hero ================= */
.hero-box {
  background: linear-gradient(to right, #f8fafc, #edf2f7);
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--primary-color);
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.6;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 4px;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================= Highlight Box: Multidisciplinary Scope ================= */
.multidisciplinary-banner {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0 28px 0;
}

.multidisciplinary-banner h3 {
  color: #92400e;
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.multidisciplinary-banner p {
  color: #78350f;
  font-size: 13.5px;
  line-height: 1.55;
}

.discipline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.discipline-chip {
  background: #ffffff;
  border: 1px solid #fcd34d;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ================= PI / Head Profile Card ================= */
.pi-card {
  display: flex;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 22px;
  margin-bottom: 24px;
  align-items: flex-start;
}

@media (max-width: 680px) {
  .pi-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.pi-avatar-wrap {
  flex-shrink: 0;
  text-align: center;
}

.pi-avatar {
  width: 170px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--border-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #e2e8f0;
  display: block;
}

.pi-info h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pi-title-badge {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.pi-roles {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.pi-roles li {
  padding: 3px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pi-roles li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
}

.pi-meta {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.pi-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-academic {
  display: inline-block;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
}

.btn-academic:hover {
  background-color: #e2e8f0;
  text-decoration: none;
  color: var(--primary-color);
}

/* ================= Research Areas Grid ================= */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.research-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.research-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.research-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.research-icon {
  width: 34px;
  height: 34px;
  background-color: var(--accent-soft);
  color: var(--accent-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.research-card h4 {
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 700;
}

.research-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background-color: var(--tag-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
}

/* ================= Tables (Grants / Projects) ================= */
.academic-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background-color: #ffffff;
}

.academic-table th {
  background-color: #f1f5f9;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-color);
}

.academic-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.academic-table tr:last-child td {
  border-bottom: none;
}

.academic-table tr:hover {
  background-color: #f8fafc;
}

.funding-badge {
  display: inline-block;
  background-color: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}

.agency-isro {
  color: #ea580c;
  font-weight: 700;
}

.agency-serb {
  color: #2563eb;
  font-weight: 700;
}

.agency-tih {
  color: #7c3aed;
  font-weight: 700;
}

/* ================= Team Roster ================= */
.team-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.member-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-light);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-role-tag {
  font-size: 11px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 3px;
}

.member-topic {
  font-size: 13px;
  color: var(--text-main);
  margin: 6px 0;
  line-height: 1.45;
}

.member-topic strong {
  color: var(--primary-color);
}

.member-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.member-badge-special {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

/* ================= Publications List ================= */
.pub-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.pub-search-input {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: 260px;
  max-width: 100%;
}

.pub-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 16px;
}

.pub-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pub-authors strong {
  color: var(--primary-color);
}

.pub-venue {
  font-size: 12.5px;
  color: #047857;
  font-style: italic;
  margin-bottom: 6px;
}

.pub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pub-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.pub-btn:hover {
  background-color: #e2e8f0;
  color: var(--primary-color);
  text-decoration: none;
}

/* ================= Outreach / News ================= */
.news-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid #0284c7;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.news-date {
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.news-body {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.55;
}

/* ================= Contact Section ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 18px;
}

.contact-card h4 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-card p,
.contact-card address {
  font-size: 13.5px;
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= Footer ================= */
.academic-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
}

.academic-footer p {
  margin: 4px 0;
}
