
  .container-flex {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 50px auto 60px;
    padding-left: 45px;
    flex-wrap: wrap; /* Wrap cards to next line */
    gap: 30px;
  }
  .carousel-left-controls {
    display: none; /* Hide carousel buttons */
  }
  .carousel-cards {
    display: flex;
    gap: 32px;
    flex-wrap: wrap; /* wrap cards */
    padding-bottom: 8px;
    margin-left: 0;
    width: 100%;
    overflow-x: visible !important; /* Disable scrolling */
  }
 

  .card.shadow-sm.border-0{
    width: 28%;
    border-radius: 20px;
  }
.carousel-card {
  background: #fff;
  border-radius: 22px 22px 22px 22px;
  /* To allow shadow outside rounded clip */
  box-shadow: 0 7px 32px rgba(122, 66, 250, 0.25);
  flex: 0 0 350px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
  padding-bottom: 45px;
  margin-right: 0;
  overflow: visible;
  /* Clip path adjusted to preserve box shadow */
  clip-path: polygon(
    2% 2%,
    100% 2%,
    100% calc(100% - 48px),
    calc(102% - 44px) 97%,
    3% 97%
  );
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.inner-card-icon{
    width: 90% !important;
    height: 41px !important;
    border: none !important;
    margin-right: 13px;
  }
.side-overlay {
    background-color: #f3f3fb;
    width: 32%;
    height: 30%;
    position: absolute;
    top: 1%;
    border-radius: 100%;
    left: -64px;
    z-index: -1;
}
 
  .roundoverlay {
    width: 21px;
    height: 80px;
    position: absolute;
    background: #c6a8e8;
    left: 30px;
    border-radius: 0 0 10px 10px;
}
.inner-roundoverlay {
    width: 15px;
    height: 74px;
    position: absolute;
    background: linear-gradient(45deg, #7a42fab8, #af4ba14a);
    left: 33.5px;
    top: 3px;
    border-radius: 0 0 10px 10px;
}
  .carousel-card img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    right: 0;
    position: relative;
    float: right;
    align-self: flex-end;
    border-radius: 0px 0 0 0;
    border-left: 1px solid #6437cc2c;
    padding-left: 28px;
  }
  .card-date-badge {
    position: absolute;
    top: 171px;
    background: var(--Linner-Color, linear-gradient(268deg, #9327c5 0.24%, #265eb3 98.24%));
    color: #fff;
    border-radius: 42px 0 0 0;
    width: 78px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 11px rgba(122, 66, 250, 0.13);
    font-weight: 700;
    z-index: 2;
    right: 0;
  }
  .card-date-badge .day {
    font-size: 1.17rem;
    font-weight: 700;
  }
  .card-date-badge .mon {
    font-size: 0.83rem;
    font-weight: 400;
    letter-spacing: 0.03rem;
  }
  .card-content {
    padding: 26px 23px 0 23px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }
  .card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: #7a42fa;
    font-size: 0.97rem;
    font-weight: 500;
  }
  .card-avatar svg, .comment-icon svg {
    vertical-align: middle;
    display: block;
  }
  .comment-count {
    font-size: 0.96rem;
    color: #674fd6;
    margin-left: 2px;
  }
  .author-name {
    margin-right: 2px;
    background: #6d2cc814;
    padding: 0 10px;
    border-radius: 27px;
    font-size: 12px;
    color: #7125c6;
    border: 1px solid #7125c659;
  }
  .card-title {
    color: #222;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 7px;
    margin-top: 7px;
    line-height: 1.25;
    }
  .card-description {
    color: #757575;
    font-size: 0.99rem;
    margin-bottom: 21px;
    line-height: 1.33;
     text-align: justify;
    /* text-wrap: balance;  */
    /* hyphens: auto; */
    word-spacing: -0.05em;
    letter-spacing: -0.01em;
    text-justify: inter-word;
  }
  .card-actions {
    display: flex;
    position: absolute;
    bottom: -28px;
    right: 27px;
    width: 81%;
    justify-content: flex-end;
    gap: 17px;
  }
  .read-more-btn {
    background: transparent;
    border: none;
    font-size: 1.07rem;
    color: #23235d;
    font-weight: 600;
    margin-right: 0;
    cursor: pointer;
    transition: color 0.16s;
    position: relative;
    z-index: 3;
    box-shadow: none;
  }
  .read-more-btn:hover {
    color: #7a42fa;
    text-decoration: underline;
  }
.card-btn-arrow {
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background 0.15s, color 0.15s;
    right: 11px;
    bottom: 17px;    border: none;
    background: #fff;
    color: #7a42fa;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.23rem;
    position: absolute;
    box-shadow: 0 3px 12px rgba(122, 66, 250, 0.14);
    justify-self: end;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    right: 11px;
    bottom: 17px;
    transition: background 0.15s, color 0.15s;
  }
  .card-btn-arrow:hover {
    background: #7a42fa;
    color: #fff;
  }

  /* custom */

  .color-overlay {
    width: 494px;
    height: 100%;
    position: absolute;
    background: linear-gradient(45deg, #e8e7f1a3, #f5f6ff);
    z-index: -1;
    left: -82px;
    transform: rotateZ(22deg);
    bottom: -119px;
  }
  @media (max-width: 992px) {
.card.shadow-sm.border-0 {
    width: 45%;
}
  }
  @media (max-width: 768px) {
    .cards-section{
      justify-content: center;
      gap: 30px;
      padding: 0 20px;
      width: 100%;
      flex-direction: column;
    }
    .card.shadow-sm.border-0{
        width: 100%;
        border-radius: 20px;
    }

  }
  @media (max-width: 576px) {
.card-actions {
    display: flex;
    position: static;
    width: 100%;
}
.card-btn-arrow {
    position: static;  
}
.card-title{
  margin-top: 15px;
}
  }
  .carousel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(122, 66, 250, 0.3);
}

/* Animate card meta: fade & translate on hover */
.carousel-card:hover .card-meta {
  color: #6633ff; /* slightly deeper purple */
  transition: color 0.3s ease;
}
.card-meta {
  transition: color 0.3s ease;
}

/* Card Title rises and color changes */
.carousel-card:hover .card-title {
  transform: translateY(-5px);
  color: #281b4b; /* Slightly brighter purple */
  transition: transform 0.3s ease, color 0.3s ease;
}
.card-title {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Description color change and fade */
.carousel-card:hover .card-description {
  color: #413072;
  opacity: 0.95;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.card-description {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Read More text color transition */
.carousel-card:hover .read-more-btn {
  color: #463672;
  transition: color 0.3s ease;
}
.read-more-btn {
  transition: color 0.3s ease;
}

/* Arrow button scale up and color fill on hover */
.carousel-card:hover .card-btn-arrow {
  background: #7a42fa;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(122, 66, 250, 0.35);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card-btn-arrow {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
