.custom-box {
      border: 1px solid #dee2e6;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      margin-bottom: 2rem;
    }
    .box-height {
      height: 400px;
    }
    .m-img {
      width: 100%;
      height: 400px;
      object-fit: cover;
    }
    
    @media (max-width: 768px){
        .box-height {
      height: unset;
    }
    }
    
    
    
    .portfolio-item {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: box-shadow 0.3s ease;
      background: #fff;
    }
    .portfolio-item:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .portfolio-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
      border-radius: 12px;
    }

    .portfolio-item:hover img {
      transform: scale(1.08);
    }

    .portfolio-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 15px 18px;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
      color: #fff;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      /*max-height: 70px;*/
      overflow: hidden;
    }

    .portfolio-item:hover .portfolio-overlay {
      transform: translateY(0);
    }

    .portfolio-overlay h5 {
      margin: 0 0 6px;
      font-weight: 700;
      font-size: 1.1rem;
      letter-spacing: 0.02em;
      color: white;
    }

    .portfolio-overlay p {
      margin: 0;
      font-size: 0.9rem;
      line-height: 1.3;
      color: white;
      max-height: 2.6em; /* roughly 2 lines */
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Responsive adjustments */
    @media (max-width: 991.98px) {
      .portfolio-item img {
        height: 180px;
      }
    }
    @media (max-width: 575.98px) {
      .portfolio-item img {
        height: 150px;
      }
    }
    .star-icon-testi i{
        color: #878C53;
    }
    .testimonial-newblock{
        width: 49% !important;
    }
    .related-img-events img{
            border-radius: 12px;
    height: 100%;
    width: 100%;
    max-height: 200px;
        border-radius: 12px;
    }
    .events-servicesidebar{
        position: sticky;
        top: 13px;
    }
    .detail-imgmain {
        height: 400px;
    }
    .main-overflow-common{
        overflow: unset;
    }
    .blog-sidebar{
        position: sticky;
        top: 14px;
    }
    .about-counter:hover .svg-block img{
        transform: scale(1.1);
        transition: transform 0.3s ease-in-out;
    }
    .svg-block img{
        transition: transform 0.3s ease-in-out;
    }
    .swiper-slide, swiper-slide{
        height: unset;
    }