.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 */
}

#gridCheck {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  background: none !important;
}

#gridCheck:focus {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* makes it a circle */
  background-color: #007bff;
  /* blue background, change as needed */
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
}

.client-img img {
  border: 1px solid #c5bcbc;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.09);
}

.agent-img img {
  border: 1px solid #c5bcbc;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.09);
}

.flaticon-flag:before {
  content: "\f102";
}

.text-main {
  color: var(--primary-color);
}

i {
  color: var(--primary-color);
}

.border-custom {
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.invalid-feedback {
  color: red !important;
  display: block !important;
  border: 1px solid red !important;
}
.footer__widget.widget-col_2 {
  margin-left: 0 !important;
}
.footer__categories li {
  max-width: unset !important;
}
.blog-sidebar__post-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 500px;
}
.blog-details__content p:first-child {
  margin-top: 20px !important;
}
.blog-details__content a {
  color: var(--bs-link-color);
}
.blog-details__content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #4d4d4d;
  text-align: justify;
}
.team-section__area p,
.team-details__area p {
  margin-bottom: 20px;
}

/* Page files grid */
.page-files__title {
  font-weight: 700;
}
.page-files__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  color: var(--black);
  height: 100%;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}
.page-files__card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.page-files__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 4px;
  margin-bottom: 10px;
}
.page-files__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-files__pdf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
  z-index: 2;
}
.page-files__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #ececec 100%);
  z-index: 1;
}
.page-files__placeholder--fallback {
  display: none;
}
.page-files__placeholder--fallback.is-visible {
  display: flex;
}
.page-files__placeholder i {
  font-size: 64px;
  color: #c0392b;
  opacity: 0.85;
}
.page-files__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.page-files__type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
}
.page-files__type i {
  font-size: 14px;
}
.page-files__size {
  color: #888;
}
.page-files__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Team / members grid - equal-height cards */
.team-section__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-section__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f4f4;
}
.team-section__thumb img,
.team-section__thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-section__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.blog-sidebar__categories a.is-active {
  color: var(--primary);
  font-weight: 700;
}
.blog-sidebar__categories ul li a.active {
  color: var(--white);
  background-color: var(--primary);
}

/* Member detail - let content fill the row */
.team-details__wrapper {
  grid-template-columns: 289px 1fr !important;
}
@media only screen and (max-width: 1399px) {
  .team-details__wrapper {
    grid-template-columns: 289px 1fr !important;
  }
}
@media only screen and (max-width: 1199px) {
  .team-details__wrapper {
    grid-template-columns: 255px 1fr !important;
  }
}
@media only screen and (max-width: 991px) {
  .team-details__wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media only screen and (max-width: 767px) {
  .team-details__wrapper {
    grid-template-columns: 1fr !important;
  }
}
.team-details__dec {
  max-width: none;
}
