.max-lines-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1lh);
  /* 1 × current element's line-height */
}

.max-lines-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(2lh);
  /* 2 × current element's line-height */
}

.max-lines-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(3lh);
  /* 3 × current element's line-height */
}

.max-lines-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(4lh);
  /* 4 × current element's line-height */
}

.max-lines-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(5lh);
  /* 5 × current element's line-height */
}

.max-lines-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(6lh);
  /* 6 × current element's line-height */
}

.blog-single-post-listing.details .details-tag a {
  padding: 8px 12px;
  background: #fff;
  max-width: max-content;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  color: #1c2539;
  transition: 0.3s;
}

.tech-card {
  width: 160px !important;
  padding-top: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.tech-image {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* keeps aspect ratio */
}

.tech-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.text-brand {
  color: #b10d00;
}
.rts-btn.btn-primary:hover {
  border-color: #cfe3d6;
}
.blog-single-post-listing.details {
  background-color: #f2f8f3;
  border: 1px solid #dceae0;
}
.rts-single-wized {
  background: #f2f8f3;
  border: 1px solid #dceae0;
}
.bg-main {
  background: #f2f8f3;
  border: 1px solid #dceae0;
}
.text-brand {
  color: var(--color-primary);
}
.rounded {
  border-radius: 1.25rem !important;
}
.client-thumb {
  display: block;
  width: 290px; /* Set your desired width */
  height: 210px; /* Set your desired height */
  overflow: hidden;
  background: #eeeeee;
}

.client-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the key: it fills the area without stretching */
  object-position: center; /* Keeps the face/center of the image visible */
  border: 1px solid #dceae0;
  background: #dceae0;
}

.single-upcoming-events.services-grid-card {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 20px;
  padding: 20px;
}

.single-upcoming-events.services-grid-card .thumbnail {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  justify-content: center;
}

.single-upcoming-events.services-grid-card .thumbnail img {
  max-width: 120px !important;
  height: auto;
}

.single-upcoming-events.services-grid-card .information {
  padding-left: 0;
  margin-top: 0 !important;
  flex: 1;
  min-width: 0;
}

.single-upcoming-events.services-grid-card .information .title {
  word-break: normal;
  overflow-wrap: break-word;
  font-size: 18px;
}

.single-upcoming-events.services-grid-card .rts-btn {
  flex-shrink: 0;
}

@media only screen and (max-width: 575px) {
  .single-upcoming-events.services-grid-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .single-upcoming-events.services-grid-card .thumbnail {
    width: 100%;
  }
}
