/* =====================================================
   news.css  –  Styles for news.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.75);
  margin-top: 8px;
}

/* ── News section wrapper ── */
.news-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ── Individual news card ── */
.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 5px solid #c97d2e;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}

/* ── Card header strip ── */
.news-card-header {
  background: linear-gradient(to right, #1a2a4a, #2a3f6e);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.news-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(201,125,46,0.25);
  color: #f5b96b;
  border: 1px solid rgba(201,125,46,0.4);
  border-radius: 20px;
  padding: 3px 12px;
}

.news-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

/* ── Card body ── */
.news-card-body {
  padding: 28px 28px 0;
}

.news-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a2a4a;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* ── Photo block (provision to add image) ── */
.news-photo {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #eef0f4;
}

.news-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Placeholder shown when no photo yet */
.news-photo-placeholder {
  width: 100%;
  height: 260px;
  background: #e8eaed;
  border: 2px dashed #b8bcc4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #aab;
  font-size: 0.85rem;
  margin-bottom: 22px;
  transition: border-color 0.2s ease;
}

.news-photo-placeholder i {
  font-size: 2.2rem;
  opacity: 0.35;
}

.news-photo-placeholder span {
  font-size: 0.82rem;
  color: #99a;
}

/* ── Quote block ── */
.news-quote {
  border-left: 4px solid #c97d2e;
  background: #fdf8f2;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.news-quote p {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #3a2800;
  line-height: 1.65;
  margin: 0;
}

.news-quote cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  color: #c97d2e;
  margin-top: 10px;
}

/* ── Body paragraphs ── */
.news-body {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-body p { margin: 0; }

/* ── Card footer ── */
.news-card-footer {
  padding: 18px 28px;
  border-top: 1px solid #edf0f5;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #99a;
}

.news-card-footer i {
  color: #c97d2e;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-title-bar h1 { font-size: 1.9rem; }
  .news-card-body { padding: 20px 18px 0; }
  .news-card-footer { padding: 14px 18px; }
  .news-card-header { padding: 14px 18px; }
  .news-title { font-size: 1.3rem; }
}