.ribbon-wrapper {
    width: 100px;
    height: 100px;
    overflow: visible;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }
  
  .ribbon {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    padding: 4px 0;
    top: 15px;
    right: 0px;
    width: 140px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
  }
  
  .ribbon::before,
  .ribbon::after {
    content: "";
    position: absolute;
    bottom: -4px;
    border-top: 4px solid rgba(0, 0, 0, 0.3);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
  }
  
  .ribbon::before {
    left: 0;
  }
  
  .ribbon::after {
    right: 0;
  }
  

  .ribbon-primary { background: linear-gradient(135deg, #007bff, #0056b3); }
  .ribbon-success { background: linear-gradient(135deg, #28a745, #1e7e34); }
  .ribbon-danger  { background: linear-gradient(135deg, #dc3545, #a71d2a); }
  .ribbon-warning { background: linear-gradient(135deg, #ffc107, #e0a800); color: #212529; }
  .ribbon-info    { background: linear-gradient(135deg, #17a2b8, #117a8b); }
  
  


   /* Card Enhancements */
.service-card {
    transition: all 0.35s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  
  .card-link {
    text-decoration: none !important;
  }
  
  .card-img-container {
    overflow: hidden;
    border-bottom: 1px solid #eee;
  }
  
  .card-img-top {
    transition: transform 0.4s ease;
    height: 220px;
    object-fit: cover;
    width: 100%;
  }
  
  .service-card:hover .card-img-top {
    transform: scale(1.1);
  }
  
  .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .card-text {
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.95rem;
  }
  
  /* Load More Button */
  .btn-explore {
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 6px 14px;
  }
  
  .btn-explore:hover {
    background-color: #007bff;
    color: #fff;
  }
  
  /* Responsive Tweaks */
  @media (max-width: 767px) {
    .card-img-top {
      height: 180px;
    }
    .card-body {
      padding: 15px;
    }
  }
  

  .description {
    max-height: 48px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .description.expanded {
    max-height: 300px;
  }
  

  /* .service-card {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.05);
  }
  
  .service-card:hover {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.2);
  } */

  .service-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    border-radius: 12px;
  }
  
  .service-card:hover {
    /* box-shadow: 0 8px 22px rgba(0,0,0,0.15); */
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.2);
    transform: translateY(-6px);
  }