/*
 * GarageActive — Blog simple
 * Feuille de style autonome du module (chargée uniquement sur ses propres
 * pages) : reprend les couleurs/typo du thème "garageactive" en dur (une
 * feuille de module ne peut pas lire les variables SCSS du thème), pour
 * s'intégrer visuellement sans dépendre d'une recompilation du thème.
 */

.page-gablog-list .gablog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .page-gablog-list .gablog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .page-gablog-list .gablog-grid {
    grid-template-columns: 1fr;
  }
}

.gablog-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e3e6ea;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gablog-card:hover {
  border-color: #2f7bf5;
  box-shadow: 0 4px 12px rgba(20, 24, 28, 0.08);
}

.gablog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gablog-card-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f4f5f7;
}

.gablog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gablog-card-body {
  padding: 1.25rem;
}

.gablog-card-date {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: #5b6470;
}

.gablog-card-title {
  margin: 0 0 0.5rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #14181c;
}

.gablog-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #5b6470;
}

.gablog-pagination {
  margin-top: 2rem;
}

/* Article */
.gablog-article {
  max-width: 48rem;
  margin: 0 auto;
}

.gablog-article-date {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #5b6470;
}

.gablog-article-image {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #f4f5f7;
  border-radius: 4px;
}

.gablog-article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.gablog-article-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #3d434b;
}

.gablog-article-content p {
  margin: 0 0 1rem;
}

.gablog-article-content img {
  max-width: 100%;
  height: auto;
}

.gablog-article-back {
  margin-top: 2rem;
}

.gablog-article-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #2f7bf5;
}
