/* =========================================================
   FACILITIES & LABORATORIES STYLESHEET
   Guru Nanak Institute of Pharmaceutical Science & Technology
   (Life Sciences Department)
   Loaded by facilities.php
   ========================================================= */

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

.fac-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;
}
.fac-kicker::before {
  content: '';
  width: 20px;
  height: 2.5px;
  background: var(--lsc-amber, #f59e0b);
  border-radius: 2px;
}

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

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

/* =========================================================
   METRICS BAR (Top Ribbon)
   ========================================================= */
.fac-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -36px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}
.fac-metric-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px;
  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;
}
.fac-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.1);
}
.fac-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fac-metric-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}
.fac-metric-icon.icon-green {
  background: #e8f5e9;
  color: #1e7e34;
}
.fac-metric-icon.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}
.fac-metric-icon.icon-purple {
  background: #f3e8ff;
  color: #7e22ce;
}
.fac-metric-icon svg {
  width: 24px;
  height: 24px;
}
.fac-metric-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lsc-navy, #0f2a4a);
  line-height: 1.1;
}
.fac-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* =========================================================
   SEARCH & FILTER CONTROLS
   ========================================================= */
.fac-controls-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.fac-controls-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fac-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}
.fac-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}
.fac-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;
}
.fac-search-input:focus {
  border-color: var(--lsc-leaf, #1e7e34);
  box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.15);
}
.fac-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}
.fac-filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fac-filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.fac-filter-btn.is-active {
  background: #eef8ee;
  border-color: #cbe9cf;
  color: var(--lsc-leaf, #1e7e34);
  font-weight: 700;
}

/* =========================================================
   LABORATORY CARDS GRID
   ========================================================= */
.fac-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
.fac-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 42, 74, 0.09);
  border-color: #cbd5e1;
}
.fac-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}
.fac-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.fac-card:hover .fac-card-img-wrap img {
  transform: scale(1.05);
}
.fac-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 42, 74, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.fac-card-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fac-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 8px;
  line-height: 1.35;
}
.fac-card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 16px;
  flex: 1;
}
.fac-equip-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.fac-equip-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lsc-leaf, #1e7e34);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fac-equip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fac-equip-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
}
.fac-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* =========================================================
   DIAGNOSTIC SUITES & CLINICAL INFRASTRUCTURE
   ========================================================= */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.diag-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 42, 74, 0.06);
}
.diag-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eef8ee;
  color: var(--lsc-leaf, #1e7e34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diag-icon svg {
  width: 24px;
  height: 24px;
}
.diag-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 6px;
}
.diag-info p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* =========================================================
   CAMPUS & ACADEMIC INFRASTRUCTURE
   ========================================================= */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.infra-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.infra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.08);
}
.infra-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.infra-card-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lsc-navy, #0f2a4a);
  margin: 0 0 6px;
}
.infra-card-body p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* =========================================================
   BIOSAFETY & SAFETY STANDARDS BANNER
   ========================================================= */
.biosafety-banner {
  background: linear-gradient(135deg, #0b2239 0%, #153e6b 100%);
  border-radius: 16px;
  padding: 32px 36px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 28px rgba(11, 34, 57, 0.14);
}
.biosafety-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}
.biosafety-content p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}
.biosafety-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.biosafety-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fbd38d;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .biosafety-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* =========================================================
   PHOTO GALLERY GRID (Shared with gallery-page.css)
   ========================================================= */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gal-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gal-item:hover img {
  transform: scale(1.06);
}
.gal-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gal-item:hover .gal-item-overlay {
  opacity: 1;
}
.gal-item-overlay svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.no-results-msg {
  padding: 40px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: none;
  grid-column: 1 / -1;
}
