.casestudy-item .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #000;
}

  .casestudy-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  }

  .casestudy-item .card-img-top {
    height: 420px;
    object-fit: cover;
  }

  .casestudy-item .category {
    font-size: 13px;
    padding: 4px 0;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .casestudy-item .card-title {
    font-size: 20px;
    font-weight: 700;
  }

  .casestudy-item .description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limit to 3 lines */
    -webkit-box-orient: vertical;
  }

  .casestudy-item .btn-gradient {
   background: transparent;
    border: 1px solid #fff;
    color: white;
    display: inline-block;
    width: 166px;
    font-size: 14px;
    border-radius: 16px;
    padding: 10px 10px;
  }

  .casestudy-item .btn-gradient:hover {
    background:  #EE7E19;
    transform: translateY(-2px);
  }



.casestudy-item .card-title, .casestudy-item .description, .casestudy-item .category {
    color: #fff;
} 

/* Model */

   /* Overlay */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    /* Popup Box */
    .popup-box {
      background: #fff;
      width: 660px;
      max-width: 95%;
      border-radius: 20px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.3);
      overflow: hidden;
      animation: fadeIn 0.3s ease-in-out;
      padding: 24px 16px;
      position: relative;
    }

    /* Title */
    .popup-title {
      font-size: 22px;
      font-weight: 700;
      padding: 0px 0px 16px 0px;
      border-bottom: 1px solid rgb(37, 36, 44);
      margin-bottom: 0;
    }

    /* Category */
    .popup-category {
      padding: 12px 0px;
      width: 100%;
      font-weight: 600;
      font-size: 12px;
      line-height: 18px;
    }

    /* Image */
    .popup-image {
      height: auto;
      display: block;
      width: 100%;
      max-width: 400px;
      margin: 16px auto;
    }

    /* Content */
    .popup-content {
      padding: 20px 0;
      font-size: 15px;
      line-height: 1.6;
      color: #333;
    }

    /* Animation */
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    /* Close Button */
    .close-btn {
      position: absolute;
      top: 19px;
    right: 20px;
    font-size: 28px;
      cursor: pointer;
      color: #444;
    }

.popup-content p {
    font-size: 16px;
    line-height: 24px;
}

.popup-content p:last-child {
  margin-bottom: 0;
}
/* End Model */