/* =========================
   SOPERO - Cards UI Upgrade
   Paste at END of style.css
========================= */

:root{
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow2: 0 14px 40px rgba(0,0,0,.10);
}

/* Generic page spacing */
.site-main, main { padding: 26px 0; }

/* Nice page title */
.page .entry-title, .page h1{
  font-size: clamp(24px, 3vw, 38px);
  margin: 10px 0 8px;
  font-weight: 900;
  letter-spacing: .2px;
}
.page .entry-content p{
  color: var(--muted);
}

/* Grid container for cards */
.sopero-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 980px){
  .sopero-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .sopero-grid{ grid-template-columns: 1fr; }
}

/* Card */
.sopero-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  transition: .2s ease;
  position: relative;
  overflow: hidden;
}

.sopero-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 220px at 100% 0%, rgba(111,143,58,.14), transparent 55%);
  pointer-events:none;
}

.sopero-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: rgba(111,143,58,.35);
}

.sopero-card a{
  text-decoration: none;
  display:flex;
  gap: 12px;
  align-items: flex-start;
}

.sopero-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(111,143,58,.14);
  color: var(--brand-dark);
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
}

.sopero-card h3{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}
.sopero-card p{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Small badges */
.sopero-badges{
  display:flex;
  gap:8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sopero-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  color: var(--muted);
  border: 1px solid rgba(0,0,0,.06);
}

/* Section headline */
.sopero-section-title{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.sopero-section-title h2{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.sopero-section-title .hint{
  color: var(--muted);
  font-size: 13px;
}

/* Optional: make excerpt cards from loops nicer */
.card h2 a{ text-decoration:none; }
.card h2 a:hover{ color: var(--brand); }