/* ==============================
   Site-wide & Article-page styles
   ============================== */

/* Reset & base typography */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Constrain the main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #ffffff;
}

/* Back button */
.btn-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.btn-back:hover {
  color: #343a40;
}

/* Page header */
header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header .lead {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Header image */
.header-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* Article wrapper */
.article-content {
  line-height: 1.7;
  color: #444;
}

/* Headings inside article */
.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #222;
}

/* Paragraphs inside article */
.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Lists inside article */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Figures & captions */
.article-content figure {
  margin: 2rem 0;
  text-align: center;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content figcaption {
  margin-top: 0.5rem;
  font-style: italic;
  color: #6c757d;
  font-size: 0.9rem;
}
/* Responsive adjustments for .cards/.card */
@media (max-width: 992px) {
  .card {
    width: calc(50% - 20px);
  }
}
@media (max-width: 576px) {
  .card {
    width: 100%;
  }
}
/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #f4f4f4;
}

/* ---- Page header ---- */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  color: #6c757d;
  font-size: 1.1rem;
}

/* ---- Card grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- Individual card ---- */
.card {
  display: block;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.card h2 {
  margin: 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
}
.card p {
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .cards {
    grid-template-columns: 1fr;
  }
}