/* ===============================
   MEMORIA HÁBIL CATEGORY TEMPLATE
================================ */

.mh-category-page {
  background:
    radial-gradient(circle at top left, rgba(46,125,168,0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(47,143,120,0.10), transparent 30%),
    linear-gradient(180deg, #f4fbf9 0%, #edf7f5 100%);
  color: #163a3c;
  min-height: 100vh;
}

/* HERO */

.mh-category-hero {
  padding: 72px 22px 42px;
}

.mh-category-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 32px;
  text-align: center;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(46,125,168,0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(47,143,120,0.16), transparent 34%),
    rgba(255,255,255,0.9);
  border: 1px solid rgba(46,125,168,0.14);
  box-shadow: 0 24px 60px rgba(22,58,60,0.08);
}

.mh-category-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47,143,120,0.11);
  color: #2f8f78;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mh-category-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 850;
}

.mh-category-description {
  max-width: 760px;
  margin: 24px auto 0;
  color: #48696a;
}

/* GRID */

.mh-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px 90px;
}

/* CARD */

.mh-post-card {
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(46,125,168,0.12);
  box-shadow: 0 18px 45px rgba(22,58,60,0.08);
  transition: 0.3s;
}

.mh-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(22,58,60,0.13);
}

/* IMAGE */

.mh-post-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* évite les images cassées ou mal centrées */
.mh-post-image-link {
  display: block;
  overflow: hidden;
}

/* PLACEHOLDER */

.mh-post-image-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(46,125,168,0.16), rgba(47,143,120,0.16));
  color: #2f8f78;
  font-weight: bold;
}

/* CONTENT */

.mh-post-card-body {
  padding: 26px;
}

.mh-post-meta {
  font-size: 0.85rem;
  color: #789091;
  margin-bottom: 10px;
}

.mh-post-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mh-post-title a {
  text-decoration: none;
  color: #163a3c;
}

.mh-post-title a:hover {
  color: #2e7da8;
}

.mh-post-excerpt {
  font-size: 0.95rem;
  color: #48696a;
  line-height: 1.6;
}

/* BUTTON */

.mh-read-more {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e7da8, #2f8f78);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* PAGINATION */

.mh-category-pagination {
  text-align: center;
  margin-top: 40px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .mh-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .mh-post-grid {
    grid-template-columns: 1fr;
  }

  .mh-post-image,
  .mh-post-image-placeholder {
    height: 220px;
  }
}