/* ═══════════════════════════════════════════════════════════
   Custom Loop Widget — Styles globaux
   ═══════════════════════════════════════════════════════════ */

/* ── Editor Placeholder ─────────────────────────────────── */
.clw-editor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #1a1a2e;
  border: 2px dashed #4a90d9;
  border-radius: 12px;
  text-align: center;
  gap: 10px;
}
.clw-editor-placeholder__icon { font-size: 40px; }
.clw-editor-placeholder__title { font-size: 18px; font-weight: 700; color: #fff; }
.clw-editor-placeholder__desc { font-size: 13px; color: #aaa; line-height: 1.6; }

.clw-post-image--placeholder,
.clw-course-image--placeholder,
.clw-product-image--placeholder {
  width: 100%; height: 100%;
  background-image: url('/wp-content/uploads/326c068042174b863d2eb0d180afd2be.webp');
  background-size: cover;
  background-position: center;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.clw-wrapper { width: 100%; }

/* ── Filtres ─────────────────────────────────────────────── */
.clw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}

.clw-filters select,
.clw-filters input[type="text"] {
  padding: 12px 14px !important;
  min-width:200px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.clw-filters select,
.clw-filters input[type="text"] {
  background: #08080880;
  border: 1px solid #303036;
  color: #cdd6f4;
}
.clw-filters input[type="text"]::placeholder {
  color: #cdd6f4;
  opacity: 1;
}
.clw-filters select:focus,
.clw-filters input[type="text"]:focus {
  border-color: #5658D6!important;
  color:#ffffff;
}

.clw-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  position: relative;
}
.clw-use-cases-wrapper .clw-search-wrap {
  max-width: 280px;
}
.clw-search-wrap input { width: 100%; padding-right: 36px; }
.clw-search-icon {
  position: absolute;
  right: 10px;
  font-size: 16px;
  opacity: .6;
  pointer-events: none;
}

/* Filtres produits — reset + prix à gauche, recherche à droite */
.clw-filters--products {
  flex-wrap: nowrap;
}
.clw-filters--products .clw-search-wrap--small {
  margin-left: auto;
}
.clw-filters--products .clw-filter-price {
  min-width: 0;
  width: auto;
  padding: 12px 14px !important;
  font-size: 14px;
}
.clw-search-wrap--small {
  flex: 0 0 auto;
  min-width: 0;
  width: 500px;
}
.clw-search-wrap--small input {
  width: 100%;
  padding: 8px 36px 8px 12px !important;
  font-size: 13px;
  min-width: 0;
}

.clw-btn-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
}
.clw-btn-reset svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}
.clw-btn-reset:hover {
  opacity: 1;
}
.clw-btn-reset.is-spinning svg {
  animation: clw-spin .5s linear;
}
@keyframes clw-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.clw-filter-all {
  padding: 8px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #2e3a55;
  color: #cdd6f4;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.clw-filter-all.active,
.clw-filter-all:hover {
  background: #4a90d9;
  border-color: #4a90d9;
  color: #fff;
}

.clw-filters select {
  appearance: none;
  -webkit-appearance: none;
  background: #08080880;
  border: 1px solid #303036;
  border-radius: 8px;
  color: #cdd6f4;
  font-size: 14px;
  cursor: pointer;
  /* Flèche custom en SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23cdd6f4' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  outline: none;
}

.clw-filters select:focus {
  border-color: #4a90d9;
}

.clw-filters select option {
  background: #0f0f14;
  color: #cdd6f4;
}

/* ── Load More ───────────────────────────────────────────── */
.clw-loadmore-wrap { text-align: center; margin-top: 36px; }
.clw-btn-loadmore {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #5856D6 !important;
  color: #000;
  transition: opacity .2s;
}
.clw-btn-loadmore:hover { opacity: .85; }
.clw-btn-loadmore:disabled { opacity: .5; cursor: wait; }

/* ── No Results ──────────────────────────────────────────── */
.clw-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════════════
   POSTS — Layout liste
   ═══════════════════════════════════════════════════════════ */
.clw-list-container { display: flex; flex-direction: column; gap: 32px; }

.clw-post-card {
  display: flex;
  gap: 0;
  background: #131316;
  border: 1px solid #303036 !important;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.clw-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.clw-post-image {
  position: relative;
  width: 500px!important;
  min-width: 500px!important;
  height: 300px !important;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1a20;
}
.clw-post-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  transition: transform .3s;
}
.clw-post-card:hover .clw-post-image img { transform: scale(1.03); }

.clw-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px;
  min-width: 0;
  justify-content: center; /* ← ajouter cette ligne */
}

/* Badges */
.clw-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  width: fit-content;
}
.clw-badge--trending {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.clw-badge--cat {
  background: transparent;
  border: 1px solid #303036 !important;
  border-radius: 100px;
  color: #fff !important;
}

.clw-post-title, .clw-post-title a {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: #fff !important;
}
.clw-post-title a { text-decoration: none; color: #fff!important; }
.clw-post-title a:hover { color: rgba(255,255,255,.75)!important; }

.clw-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #fff!important;
  align-items: center;
}

/* Icônes outline via SVG inline ou caractères unicode neutres */
.clw-meta-author::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }
.clw-meta-read::before   { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }
.clw-meta-date::before   { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }

.clw-post-excerpt {
  font-size: 16px;
  margin: 0;
  line-height: 1.7;
  color: #fff!important;
}

.clw-btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  width: fit-content;
}

.clw-btn-readmore:hover {
  color: rgba(255,255,255,.75)!important; 
}

.clw-post-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clw-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.clw-post-icon {
    width: 32px;
    height: 32px;
    background: rgba(88, 86, 214, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clw-post-icon i {
    font-size: 16px;
    color: #5856D6;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   GRILLES — Cours & Produits
   ═══════════════════════════════════════════════════════════ */
.clw-grid-container {
  display: grid;
  gap: 24px;
}
.clw-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.clw-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.clw-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════════════════════
   COURSES — Cartes sombres
   ═══════════════════════════════════════════════════════════ */
.clw-course-card {
  background: #1A1A1D !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid #161A22 !important;
}
.clw-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.clw-course-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1f35;
}
.clw-course-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: 30% 10%;
  display: block;
  transition: transform .3s;
}
.clw-course-card:hover .clw-course-image img { transform: scale(1.05); }

.clw-course-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 2;
}

.clw-badge--level {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #5856D6;
  color: #fff;
  z-index: 2;
}

.clw-course-tags--overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}

.clw-course-content {
  padding: 24px !important;
  padding-bottom: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 12px !important;
  flex: 1;
}

.clw-course-title {
  font-size: 24px !important;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.clw-course-title a { color: inherit; text-decoration: none; }
.clw-course-title a:hover { color: #4a90d9; }

.clw-course-excerpt { font-size: 16px !important; color: #ffffff; margin: 0; line-height: 1.5; }

.clw-course-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.clw-meta-duration { font-size: 12px; color: #fff; }
.clw-meta-sep { font-size: 10px; color: #fff; opacity: 0.5; align-self: center; }

.clw-course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.clw-course-tags--top { margin-bottom: 6px; }
.clw-tag {
  background: #5856D6 !important;
  color: #fff !important;
  border-radius: 50px;
  padding: 2px 12px;
  font-size: 11px;
}
.clw-tag--outline {
  background: transparent !important;
  border: 1px solid #fff;
  color: #fff !important;
}

.clw-meta-lessons { font-size: 12px; color: #fff; }

.clw-meta-cats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.clw-course-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.clw-category {
  color: #fff !important;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS — Cartes sombres
   ═══════════════════════════════════════════════════════════ */
.clw-product-card {
  background: #1A1A1D !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #161A22 !important;
  transition: transform .25s, box-shadow .25s;
}
.clw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.clw-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1A1A1D !important;
}
.clw-product-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: 30% 10%;
  display: block;
  transition: transform .3s;
}
.clw-product-card:hover .clw-product-image img { transform: scale(1.05); }

.clw-product-star {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  background: #ffc570;
  border-radius: 50px;
  padding: 3px 7px;
}
.clw-product-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #5856D6;
  color: #fff;
  border-radius: 50px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
}

.clw-product-content {
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  gap: 12px !important;
  flex: 1;
}

.clw-product-type {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50px;
  padding: 2px 12px;
  letter-spacing: .5px;
  width: fit-content;
}

.clw-product-title {
  font-size: 24px !important;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.clw-product-title a { color: inherit; text-decoration: none; }
.clw-product-title a:hover { color: #4a90d9; }

.clw-product-excerpt { font-size: 16px !important; color: #fff; margin: 0; line-height: 1.5; }

.clw-product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.clw-price { font-size: 30px !important; font-weight: 800; color: #fff; }
.clw-price-compare { font-size: 14px; color: #6677aa; text-decoration: line-through; }

.clw-btn-details {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  background: #5856D6 !important;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
  margin-top: 8px;
}
.clw-btn-details:hover { opacity: .85; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   CAROUSEL — Latest Posts Carousel
   ═══════════════════════════════════════════════════════════ */
.lpc-wrapper {
    --lpc-primary:  #5856D6;
    --lpc-bg:       #131316;
    --lpc-border:   #131316;
    --lpc-text:     #ffffff;
    --lpc-muted:    #6b7280;
    --lpc-radius:   14px;
    --lpc-shadow:   0 4px 24px rgba(0,0,0,.08);
    --lpc-img-flex: 42;
    --lpc-txt-flex: 58;
    --lpc-card-h:   380px;

    width: 100%;
    padding: 12px 0 68px;
    overflow: hidden;
}
.lpc-swiper {
    overflow: hidden !important;
    padding: 8px 0 !important;
}
.lpc-card {
    background: var(--lpc-bg);
    border: 1px solid var(--lpc-border);
    border-radius: var(--lpc-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: row;
    box-shadow: var(--lpc-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    min-height: var(--lpc-card-h);
}
.lpc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.lpc-card__left {
    flex: var(--lpc-img-flex);
    min-width: 0;
    flex-shrink: 0;
}
.lpc-card__thumb-link { display: block; height: 100%; }
.lpc-card__thumb {
    height: 100%;
    min-height: var(--lpc-card-h);
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}
.lpc-card:hover .lpc-card__thumb { transform: scale(1.03); }
.lpc-card__thumb--placeholder {
    background: #1e1e22;
    min-height: var(--lpc-card-h);
}
.lpc-card__right {
    flex: var(--lpc-txt-flex);
    min-width: 0;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.lpc-card__top-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lpc-card__cat {
    display: inline-block;
    background: var(--lpc-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity .2s;
}
.lpc-card__cat:hover { opacity: .82; }
.lpc-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--lpc-text);
}
.lpc-card__title a { color: inherit; text-decoration: none; }
.lpc-card__title a:hover { color: var(--lpc-primary); }
.lpc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .77rem;
    color: var(--lpc-muted);
}
.lpc-card__date,
.lpc-card__author { display: flex; align-items: center; gap: 5px; }
.lpc-card__author a { color: var(--lpc-muted); text-decoration: none; }
.lpc-card__author a:hover { color: var(--lpc-primary); }
.lpc-card__excerpt {
    font-size: .88rem;
    color: var(--lpc-muted);
    line-height: 1.75;
    margin: 0;
    padding-bottom: 20px;
}
.lpc-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    align-self: flex-start;
    background: var(--lpc-primary);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background .2s, gap .2s, transform .2s;
}
.lpc-card__read-more:hover {
    background: #4644b8;
    gap: 12px;
    transform: translateY(-1px);
}
/* Prix produit dans la single card */
.lpc-card__price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--lpc-text);
}
.lpc-card__price-compare {
    font-size: .9rem;
    color: var(--lpc-muted);
    text-decoration: line-through;
}
.lpc-card__cat--sale {
    background: #e53e3e;
}

.lpc-pagination {
    position: relative !important;
    margin-top: 20px !important;
}
.lpc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #333;
    opacity: 1;
}
.lpc-pagination .swiper-pagination-bullet-active {
    background: var(--lpc-primary);
    width: 24px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   USE CASES — Cartes
   ═══════════════════════════════════════════════════════════ */
.clw-uc-card {
  background: linear-gradient(135deg, #131316, #1D1D20);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .25s, box-shadow .25s;
}
.clw-uc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* Header */
.clw-uc-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.clw-uc-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clw-uc-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clw-uc-card__title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clw-uc-card__title {
  font-size: 18px !important;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.clw-uc-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.clw-uc-card__author-name { font-weight: 600; color: rgba(255,255,255,.75); }
.clw-uc-card__author-sep  { opacity: .4; }
.clw-uc-card__tag {
  flex-shrink: 0;
  margin-left: auto;
}
.clw-uc-card__tag-badge {
  display: inline-block;
  background: rgba(88,86,214,.25);
  color: #a5a3ff;
  border: 1px solid rgba(88,86,214,.5);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Excerpt */
.clw-uc-card__excerpt {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0;
}

/* KPIs */
.clw-uc-card__kpis {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.clw-uc-card__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 60px;
}
.clw-uc-card__kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: #5856D6;
  line-height: 1;
}
.clw-uc-card__kpi-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  line-height: 1.3;
}

/* Footer */
.clw-uc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.clw-uc-card__build-with {
  font-size: 12px;
  color: #5856D6;
  font-weight: 500;
}
.clw-uc-card__popup-btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #5856D6;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.clw-uc-card__popup-btn a:hover {
  background: #4644b8;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .clw-post-image { width: 360px; min-width: 360px; height: 240px; }
}

@media (max-width: 900px) {
  .clw-post-image { width: 280px; min-width: 280px; height: 200px; }
  .clw-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .clw-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .clw-post-card { flex-direction: column; }
  .clw-post-image { width: 100%; min-width: unset; height: 220px; }
  .clw-post-content { padding: 20px; }
  .clw-grid-cols-2,
  .clw-grid-cols-3,
  .clw-grid-cols-4 { grid-template-columns: 1fr; }
  .clw-filters { flex-direction: column; }
  .clw-filters select,
  .clw-filters input { width: 100%; }

  .lpc-card { flex-direction: column; min-height: auto; }
  .lpc-card__left { flex: none; }
  .lpc-card__thumb,
  .lpc-card__thumb--placeholder { height: 200px; min-height: 200px; }
  .lpc-card__right { padding: 18px 18px 20px; gap: 10px; }
}
