/* =========================================================
   LIFE SCIENCES RESEARCH PORTAL STYLESHEET
   Guru Nanak Institute of Pharmaceutical Science & Technology
   (Life Sciences Department)
   Loaded by research.php & external-project.php
   ========================================================= */

/* ---- Section Scaffolding ---- */
.rp-section {
  padding: 68px 0;
}
.rp-section--tint {
  background: #f7faf7;
}
.rp-section--white {
  background: #ffffff;
}

.rp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lsc-leaf, #1e7e34);
  margin-bottom: 10px;
}
.rp-kicker::before {
  content: '';
  width: 20px;
  height: 2.5px;
  background: var(--lsc-amber, #f59e0b);
  border-radius: 2px;
}

.rp-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.rp-lede {
  max-width: 780px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4b5563;
  margin: 0 0 36px;
}

/* =========================================================
   METRICS BAR (Top Ribbon)
   ========================================================= */
.res-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -36px;
  margin-bottom: 48px;
  position: relative;
  z-index: 10;
}
.res-metric-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(15, 42, 74, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.res-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.1);
}
.res-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.res-metric-icon.icon-green {
  background: #e8f5e9;
  color: #1e7e34;
}
.res-metric-icon.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}
.res-metric-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}
.res-metric-icon.icon-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
.res-metric-icon svg {
  width: 26px;
  height: 26px;
}
.res-metric-info {
  display: flex;
  flex-direction: column;
}
.res-metric-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  line-height: 1.1;
}
.res-metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .res-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .res-metrics-bar {
    grid-template-columns: 1fr;
    margin-top: -24px;
    margin-bottom: 32px;
  }
}

/* =========================================================
   THRUST AREAS GRID
   ========================================================= */
.res-thrust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.res-thrust-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.res-thrust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lsc-leaf, #1e7e34), var(--lsc-amber, #f59e0b));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.res-thrust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 42, 74, 0.08);
  border-color: #cbd5e1;
}
.res-thrust-card:hover::before {
  opacity: 1;
}
.res-thrust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lsc-leaf, #1e7e34);
  background: #eef8ee;
  border-radius: 6px;
  padding: 4px 10px;
  width: fit-content;
  margin-bottom: 14px;
}
.res-thrust-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 10px;
  line-height: 1.35;
}
.res-thrust-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 18px;
  flex: 1;
}
.res-thrust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
}
.res-thrust-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 3px 8px;
}

/* =========================================================
   MAJOR SPONSORED PROJECTS (Highlight Cards)
   ========================================================= */
.rp-major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.rp-major-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rp-major-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.09);
}
.rp-major-banner {
  background: linear-gradient(135deg, #0b2239 0%, #153e6b 100%);
  color: var(--lsc-amber, #f59e0b);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rp-major-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fbd38d;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.rp-major-body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rp-major-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.rp-major-pi {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 14px;
  line-height: 1.3;
}
.rp-major-project {
  font-size: 0.91rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 20px;
  flex: 1;
}
.rp-major-project strong {
  color: var(--lsc-navy, #0f2a4a);
}
.rp-major-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
  background: #f8fafc;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -26px;
  padding: 14px 24px;
}
.rp-major-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.rp-major-stat-label {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #64748b;
  flex-shrink: 0;
}
.rp-major-stat-value {
  color: var(--lsc-navy, #0f2a4a);
  font-weight: 700;
  text-align: right;
}
.rp-major-stat-value.is-amount {
  font-family: 'Poppins', sans-serif;
  color: #b45309;
  font-size: 1.05rem;
  font-weight: 800;
}

/* =========================================================
   SEARCH & FILTER CONTROLS
   ========================================================= */
.rp-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.rp-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}
.rp-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}
.rp-search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rp-search-input:focus {
  border-color: var(--lsc-leaf, #1e7e34);
  box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.15);
}
.rp-stats-tally {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}
.rp-stats-tally strong {
  color: var(--lsc-navy, #0f2a4a);
}

/* =========================================================
   SEED GRANTS — YEAR-WISE PANELS & ROWS
   ========================================================= */
.rp-year-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.rp-year-panel:last-child {
  margin-bottom: 0;
}
.rp-year-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f8f3;
}
.rp-year-panel-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rp-year-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--lsc-leaf, #1e7e34);
  background: #ffffff;
  border: 1px solid #d1e7dd;
  border-radius: 999px;
  padding: 3px 12px;
  flex-shrink: 0;
}

.rp-grant-list {
  display: flex;
  flex-direction: column;
}
.rp-grant-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}
.rp-grant-row:last-child {
  border-bottom: none;
}
.rp-grant-row:hover {
  background: #f8fafc;
}
.rp-grant-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 0;
  text-align: center;
}
.rp-grant-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-grant-investigator {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
}
.rp-grant-title {
  font-size: 0.87rem;
  line-height: 1.55;
  color: #4b5563;
}
.rp-grant-funding {
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lsc-leaf, #1e7e34);
  background: #eef8ee;
  border: 1px solid #cbe9cf;
  border-radius: 6px;
  padding: 5px 12px;
  white-space: nowrap;
  text-align: center;
  max-width: 220px;
}

@media (max-width: 768px) {
  .rp-grant-row {
    grid-template-columns: 34px 1fr;
    row-gap: 8px;
    padding: 14px 16px;
  }
  .rp-grant-funding {
    grid-column: 2;
    max-width: none;
    width: fit-content;
  }
  .rp-year-panel-head {
    padding: 14px 16px;
  }
}

/* =========================================================
   SIDEBAR + TWO-COLUMN LAYOUT
   ========================================================= */
.rp-body {
  padding: 0 0 56px;
}
.rp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.rp-sidebar {
  position: sticky;
  top: 96px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rp-nav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.rp-nav-card h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lsc-leaf, #1e7e34);
  margin-bottom: 14px;
}
.rp-jump-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rp-jump-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border-left: 2.5px solid transparent;
  transition: all 0.2s ease;
}
.rp-jump-nav a:hover {
  background: #f1f8f3;
  color: var(--lsc-leaf, #1e7e34);
}
.rp-jump-nav a.is-active {
  background: #eef8ee;
  color: var(--lsc-leaf, #1e7e34);
  border-left-color: var(--lsc-amber, #f59e0b);
  font-weight: 700;
}
.rp-jump-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lsc-leaf, #1e7e34);
  background: #e2f2e5;
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.rp-jump-nav a.is-active .rp-jump-count {
  background: #ffffff;
}

.rp-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, #0b2239 0%, #153e6b 100%);
  border-radius: 12px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 34, 57, 0.15);
}
.rp-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--lsc-amber, #f59e0b);
  line-height: 1.1;
}
.rp-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.rp-main {
  min-width: 0;
  padding-top: 48px;
}

@media (max-width: 980px) {
  .rp-layout {
    grid-template-columns: 1fr;
  }
  .rp-sidebar {
    position: static;
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .rp-nav-card,
  .rp-stat-card {
    flex: 1 1 260px;
  }
}
@media (max-width: 640px) {
  .rp-sidebar {
    flex-direction: column;
  }
  .rp-main {
    padding-top: 32px;
  }
}

/* =========================================================
   INSTRUMENTATION & FACILITIES SHOWCASE
   ========================================================= */
.res-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.res-fac-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.res-fac-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef8ee;
  color: var(--lsc-leaf, #1e7e34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.res-fac-icon svg {
  width: 22px;
  height: 22px;
}
.res-fac-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 4px;
}
.res-fac-desc {
  font-size: 0.83rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* ---- Disclaimer & Archive Notes ---- */
.rp-note {
  max-width: 760px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #64748b;
  font-style: italic;
  border-left: 3px solid var(--lsc-amber, #f59e0b);
  padding-left: 16px;
  margin-top: 20px;
}

.no-results-msg {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  display: none;
}
