/* Isolated component wrapper */
.ccm-cards{
  --ccm-dark: #1e3c3c;
  --ccm-light: #d1ffbb;
}

.ccm-cards,
.ccm-cards *{
  box-sizing:border-box;
}

/* List */
.ccm-cards .ccm-card-list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* Card */
.ccm-cards .ccm-card{
  width:100%;
  margin:0;
}

/* Whole card is a link */
.ccm-cards .ccm-card__link{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  width:100%;
  gap:3em; /* CHANGED (was 28px) */
  align-items:center;
  text-decoration:none;
  color:inherit;
}

/* 50/50 columns */
.ccm-cards .ccm-card__media{
  flex:0 0 50%;
  max-width:50%;
  width:50%;
  aspect-ratio:16/9;
  min-height:240px;
  overflow:hidden;
  border-radius:12px;
  background:#e6e6e6;
}

.ccm-cards .ccm-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ccm-cards .ccm-card__placeholder{
  width:100%;
  height:100%;
}

.ccm-cards .ccm-card__body{
  flex:0 0 50%;
  max-width:50%;
  width:50%;
  min-width:0;
  padding-right:8px;
}

/* Category / Tag pill (was green) */
.ccm-cards .ccm-card__badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:999px;
  background:#ff6e83;
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  margin:0 0 5px; /* CHANGED (was 0 0 12px) */
}

/* Title */
.ccm-cards .ccm-card__title{
  margin:0 0 12px;
  padding-top:10px !important; /* CHANGED (new) */
  color:var(--ccm-dark);
  font-weight:900;
  font-size:22px;
  line-height:1.15;
  letter-spacing:0;
  text-transform:none;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Meta lines */
.ccm-cards .ccm-card__meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0 0;
  color:var(--ccm-dark);
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.ccm-cards .ccm-card__icon{
  display:inline-flex;
  width:18px;
  justify-content:center;
}

.ccm-cards .ccm-card__icon img.emoji{
  width:16px;
  height:16px;
}

/* Excerpt */
.ccm-cards .ccm-card__excerpt{
  margin:10px 0 0;
  color:#333;
  font-size:14px;
  line-height:1.55;
  font-weight:400;
  max-width:55ch;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* CTA */
.ccm-cards .ccm-card__cta{
  margin-top:14px;
}

.ccm-cards .ccm-card__button{
  display:inline-block;
  padding:9px 16px;
  border-radius:999px;
  background:var(--ccm-dark);
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:1;
}

/* Hover */
.ccm-cards .ccm-card__link:hover .ccm-card__title{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}

/* Stack only on small screens (you are in 2/3 column) */
@media (max-width: 640px){
  .ccm-cards .ccm-card__link{
    flex-direction:column;
    gap:12px;
    align-items:stretch;
  }

  .ccm-cards .ccm-card__media,
  .ccm-cards .ccm-card__body{
    width:100%;
    max-width:100%;
    flex:0 0 auto;
  }

  .ccm-cards .ccm-card__media{
    min-height:220px;
  }
}