
/* Basic Splide styling plus the custom classes */
.splide {
  direction: rtl;
}
/* .splide__slide {
  border-radius: 25px;
  background: #fff;
} */

/* Additional styling for new layout */
.qcb-slide-item {
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  position:relative;
  /* box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15); */
}

/* Tag badge */
.qcb-tag-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: #7AB141;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 1rem;
  z-index: 10; /* <-- make sure it's above overlay */
  text-decoration: none;
}

/* Full-card invisible link */
.qcb-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5; /* <-- this must be BELOW .qcb-tag-badge */
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 25px;
}

.qcb-image-wrapper {
  position: relative;
}

.qcb-featured-image {
  display: block;
  width: 100%;
  height: auto;
  /* border-radius: 25px 25px 0 0; */
  object-fit: cover;
  aspect-ratio: 2.5 / 3;
  
}

.qcb-card-footer {
  background-color: #003D42;
  color: #fff;
  text-align: right;
  padding: 1rem 1rem 0.5rem;
  /* border-radius: 0 0 1rem 1rem; */
  transition: max-height 0.4s ease, padding 0.4s ease;
  max-height: 4rem; /* Just enough for title */
  overflow: hidden;
  position: absolute;
  width:91%;
  bottom:0;
}

.qcb-slide-item:hover .qcb-card-footer {
  /* max-height: 10rem; */
  padding-bottom: 55px;
}

.qcb-post-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color:#fff;
}

.qcb-read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background-color: #7AB141;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 15; /* <-- this is the fix */
}

.qcb-slide-item:hover .qcb-read-more-btn {
  opacity: 1;
  transform: translateY(0);
}

.qcb-read-more-btn:hover {
  background-color: #679a36;
}

/* Ensure arrows appear below and centered */
.splide__arrows {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  position: static;
}

/* Base arrow button */
.splide__arrow {
  background: none;
  border: none;
  padding: 0;
  width: 55px;
  height: 55px;
  cursor: pointer;
}

/* Remove any previous positioning (e.g., left/right offsets) */
.splide__arrow--prev,
.splide__arrow--next {
  position: static;
}

/* Load custom SVGs */
.splide__arrow--prev::before,
.splide__arrow--next::before {
  content: "";
  display: block;
  width: 55px;
  height: 55px;
  background-size: contain;
  background-repeat: no-repeat;
}

.splide__arrow--next::before {
  background-image: url("data:image/svg+xml;utf8,<svg width='55' height='55' viewBox='0 0 55 55' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='27.5' cy='27.5' r='26.75' transform='matrix(-1 0 0 1 55 0)' stroke='%23003D42' stroke-width='1.5'/><path d='M31.7227 16L20 27.213L31.7227 39.4454' stroke='%23003D42' stroke-width='1.5' stroke-linecap='square'/></svg>");
}

.splide__arrow--prev::before {
  background-image: url("data:image/svg+xml;utf8,<svg width='55' height='55' viewBox='0 0 55 55' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='27.5' cy='27.5' r='26.75' stroke='%23003D42' stroke-width='1.5'/><path d='M23.2773 16L35 27.213L23.2773 39.4454' stroke='%23003D42' stroke-width='1.5' stroke-linecap='square'/></svg>");
}

/* Ensure carousel doesn't clip the arrows */
.splide__track {
  overflow: visible;
}

.splide__arrow {
  background:none!important;
  width:55px!important;
  margin-top:30px!important;
}

/* Clean up default Splide arrows */
.splide__arrow svg {
  display: none;
}

.splide__arrow--prev,
.splide__arrow--next {
  position: static !important;
}