/* =====================================================
   lab-facility.css  –  Styles for lab-facility.html
   Depends on: domain.css (loaded first)
   MEMBER Lab, IIT Kharagpur
   ===================================================== */

/* ── Page title bar ── */
.page-title-bar {
  background: linear-gradient(135deg, #1a2a4a 0%, #2a3f6e 60%, #c97d2e 100%);
  padding: 48px 0 36px;
  text-align: center;
  color: #fff;
}

.page-title-bar h1 {
  font-family: 'Crimson Pro', serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-title-bar p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-top: 8px;
}

/* ── Instruments list wrapper ── */
.facility-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Instrument card ── */
.instrument-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 5px solid #c97d2e;
}

.instrument-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.13);
}

/* Photo column */
.instr-photo {
  flex-shrink: 0;
  width: 210px;
  background: #f0f3f8;
  border-right: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.instr-photo img {
  width: 170px;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  border: 2px solid #e0e4ea;
  display: block;
}

/* Fallback placeholder when no image */
.instr-photo .img-placeholder {
  width: 170px;
  height: 210px;
  font-size: 0.8rem;
}

/* Info column */
.instr-info {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.instr-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c97d2e;
}

.instr-name {
  font-family: 'Crimson Pro', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2a4a;
  margin: 0;
  line-height: 1.3;
}

.instr-desc {
  font-size: 0.91rem;
  color: #555;
  line-height: 1.72;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .instrument-card {
    flex-direction: column;
    border-left: none;
    border-top: 5px solid #c97d2e;
  }

  .instr-photo {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e4e7ed;
    padding: 20px;
  }

  .instr-photo img {
    width: 100%;
    height: 200px;
  }

  .page-title-bar h1 {
    font-size: 1.9rem;
  }
}