/* =====================================================
   lab-activity.css  –  Styles for lab-activity.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;
}

/* ── Activities wrapper ── */
.activity-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Activity card ── */
.activity-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 #3ab5b0;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.13);
}

/* Photo column – can hold 1 or 2 stacked photos */
.activity-photos {
  flex-shrink: 0;
  width: 300px;
  background: #f0f3f8;
  border-right: 1px solid #e4e7ed;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.activity-photos img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.activity-photos img + img {
  border-top: 3px solid #fff;
}

.activity-card:hover .activity-photos img {
  transform: scale(1.04);
}

/* Fallback placeholder when no image */
.activity-photos .img-placeholder {
  width: 100%;
  height: 185px;
  border-radius: 0;
  border: none;
  background: #e0e4ea;
}

/* Info column */
.activity-info {
  flex: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.activity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3ab5b0;
}

.activity-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a2a4a;
  margin: 0;
  line-height: 1.3;
}

.activity-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.72;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 750px) {
  .activity-card {
    flex-direction: column;
    border-left: none;
    border-top: 5px solid #3ab5b0;
  }

  .activity-photos {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #e4e7ed;
    height: 180px;
  }

  .activity-photos img {
    flex: 1;
    height: 180px;
  }

  .activity-photos img + img {
    border-top: none;
    border-left: 3px solid #fff;
  }

  .activity-info {
    padding: 22px 22px;
  }

  .page-title-bar h1 { font-size: 1.9rem; }
}