/* [RCS] Rapyder Blog Cards 1.1.1 - override layer.
   The /blog/ listing widget carries its own Elementor/ElementsKit card styling (dark red gradient card,
   red border, square red button, white text). Those rules out-rank the card styles, so the contested
   properties are restated here with higher specificity and !important. Scoped to body.blog. */

.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card{
  background:#fff !important; background-image:none !important; background-color:#fff !important;
  border:1px solid var(--rt-line) !important; border-radius:18px !important;
  box-shadow:0 14px 30px -22px rgba(0,0,0,.35) !important;
}
.blog .ekit-wid-con .post-items .post-item:hover .elementskit-post-image-card{
  border-color:var(--rt-red) !important; box-shadow:0 34px 50px -26px rgba(196,0,0,.6) !important;
}

/* image: the widget adds 20px padding around the photo */
.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card .elementskit-entry-header .elementskit-entry-thumb{
  padding:0 !important; border-radius:0 !important; display:block !important;
}
.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card .elementskit-entry-thumb img{ border-radius:0 !important; }

/* body spacing */
.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card .elementskit-post-body{ padding:22px 24px 24px !important; }

/* text colours: dark on the white card, white once the red liquid rises on hover */
.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card .entry-title a{ color:var(--rt-ink) !important; }
.blog .ekit-wid-con .post-items .post-item .elementskit-post-image-card .elementskit-post-body > p{ color:#5a5a5a !important; }
.blog .ekit-wid-con .post-items .post-item:hover .elementskit-post-image-card .entry-title a{ color:#fff !important; }
.blog .ekit-wid-con .post-items .post-item:hover .elementskit-post-image-card .elementskit-post-body > p{ color:rgba(255,255,255,.9) !important; }

/* compact pill button instead of the square red one */
.blog .ekit-wid-con .post-items .post-item .elementskit-btn{
  display:inline-flex !important; align-items:center !important; gap:10px !important; height:36px !important; padding:0 5px 0 16px !important;
  border-radius:999px !important; font-size:11.5px !important; font-weight:700 !important; letter-spacing:.08em !important; text-transform:uppercase !important; line-height:1 !important;
  color:#fff !important; fill:#fff !important; background:var(--rt-ink) !important; background-color:var(--rt-ink) !important; box-shadow:0 6px 14px -8px rgba(0,0,0,.6) !important;
}
.blog .ekit-wid-con .post-items .post-item .elementskit-btn::before{ content:none !important; display:none !important; }
.blog .ekit-wid-con .post-items .post-item:hover .elementskit-btn,
.blog .ekit-wid-con .post-items .post-item .elementskit-btn:hover{
  background:#fff !important; background-color:#fff !important; color:var(--rt-red) !important; fill:var(--rt-red) !important; gap:14px !important;
}
