
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.6;
}

.disease-header {
  background: linear-gradient(135deg, #0f3460 0%, #1a5276 100%);
  color: white;
  padding: 28px 32px 24px;
}
.disease-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.authors {
  font-size: 13px;
  color: #90cdf4;
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  background: #63b3ed33;
  border: 1px solid #63b3ed66;
  color: #90cdf4;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.card {
  background: white;
  margin: 16px 24px;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px #0001;
}
.card h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f3460;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
}
.card p {
  font-size: 14px;
  color: #2d3748;
  margin-bottom: 10px;
  line-height: 1.7;
}
.card p:last-child { margin-bottom: 0; }
.card p.subhdr { border-left: 3px solid #bee3f8; padding-left: 10px; background: #f0f8ff; border-radius: 0 4px 4px 0; }
.card p.subhdr strong { color: #0f3460; }

.card ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.card ul li {
  font-size: 14px;
  color: #2d3748;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
figure {
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0002;
}
figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
figcaption {
  padding: 8px 10px;
  font-size: 11px;
  color: #718096;
  line-height: 1.5;
  border-top: 1px solid #e2e8f0;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000d;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px #000a;
  object-fit: contain;
}
#lb-cap {
  color: #e2e8f0;
  font-size: 13px;
  margin-top: 14px;
  max-width: 700px;
  text-align: center;
  line-height: 1.6;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .disease-header { padding: 20px 16px 16px; }
  .disease-header h1 { font-size: 18px; }
  .card { margin: 12px 12px; padding: 16px 14px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  #lb-cap { font-size: 12px; }
  .page-nav { padding: 12px 12px 24px; }
}

/* ── Page nav ── */
.page-nav {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 32px;
  gap: 8px;
}
.page-nav a {
  color: #4299e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid #4299e133;
  transition: background 0.15s;
}
.page-nav a:hover { background: #ebf8ff; }
