/* =========================================
   DatingNetwork: Articles Archive (Category)
   Scoped to: body.category-articles
   ========================================= */

body.category-articles .space-archive-section-ins {
  /* keep theme structure, just ensure it behaves */
}

body.category-articles .space-archive-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

/* Turn each post into a card */
body.category-articles .space-archive-loop-item {
  float: none !important;
  width: auto !important;
  margin: 0 !important;

  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);

  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

body.category-articles .space-archive-loop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

/* Kill the old 33/66 float layout inside cards */
body.category-articles .space-archive-loop-item-img,
body.category-articles .space-archive-loop-item-title-box {
  float: none !important;
  width: 100% !important;
}

/* Image block */
body.category-articles .space-archive-loop-item-img-ins {
  border-radius: 0;
}

body.category-articles .space-archive-loop-item-img img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block;
}

/* Hide category ribbon on the image (optional) */
body.category-articles .space-archive-loop-item-img-category {
  display: none !important;
}

/* Content area */
body.category-articles .space-archive-loop-item-title-box-ins {
  text-align: center;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Title */
body.category-articles .space-archive-loop-item-title a {
  color: #111;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

body.category-articles .space-archive-loop-item-title a:hover {
  color: #6d28d9;
  text-decoration: none;
}

/* Excerpt */
body.category-articles .space-archive-loop-item-excerpt {
  opacity: .88;
  line-height: 1.6;
  margin: 0;
}

/* Read more -> purple capsule button */
body.category-articles .space-archive-loop-item-meta .read-more a {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(139, 92, 246, .25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

body.category-articles .space-archive-loop-item-meta .read-more a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, .35);
  opacity: .96;
}

/* Optional: soften/disable the dark overlay hover layer if you don’t want it */
body.category-articles .space-archive-loop-item-img-link .space-overlay {
  opacity: 0 !important;
}

/* Responsive grid */
@media (max-width: 1100px) {
  body.category-articles .space-archive-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.category-articles .space-archive-loop-item-img img {
    height: 190px !important;
  }
}

@media (max-width: 640px) {
  body.category-articles .space-archive-loop {
    grid-template-columns: 1fr;
  }
  body.category-articles .space-archive-loop-item-img img {
    height: 240px !important;
  }
}