/* ================ Filter Container ============== */

.category-filters {
  /* text-align: center;  */
  margin-bottom: 100px;
  background-color: #ffffff;
  box-shadow: 0px 14px 44px 4px #0000001a;
  padding: 33px 40px;
}
.category-filters button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 10px;
  font-weight: bold;
  color: #808080;
  text-transform: uppercase;
}
.category-filters button.active {
  color: #000000;
}

#posts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.post-card {
  border: 1px solid #ddd;
  /* padding: 20px;  */
  border-radius: 8px;
  /* text-align: center;  */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%; /* Full width by default */
  max-width: 470px; /* Limit maximum width */
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
}
.post-category {
  color: #ff7851;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  border: #ff7851 solid 1px;
  border-radius: 4px;
  text-align: center;

  padding-left: 5px;
  padding-right: 5px;

  padding-top: 3px;
  padding-bottom: 3px;
}
.post-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-left: auto;

  text-align: center;
  padding-top: 6px;
}
.post-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 22px 0 15px 0;

  display: -webkit-box; /* Enable WebKit box model */
  -webkit-line-clamp: 1; /* Limit to 3 lines */
  -webkit-box-orient: vertical; /* Set vertical layout */
  overflow: hidden; /* Hide the overflowed text */
  text-overflow: ellipsis; /* Add "..." for overflow text */
}
.post-content p {
  font-size: 18px;
  color: #444444;
  margin-bottom: 15px;

  display: -webkit-box; /* Enable WebKit box model */
  -webkit-line-clamp: 2; /* Limit to 3 lines */
  -webkit-box-orient: vertical; /* Set vertical layout */
  overflow: hidden; /* Hide the overflowed text */
  text-overflow: ellipsis; /* Add "..." for overflow text */
}

.post-content a {
  color: #f56a6a;
  text-decoration: none;
  font-weight: bold;
}
.post-content {
  padding: 30px 30px 19px 30px;
}

.category-date {
  display: flex;
}

.read-more {
  border-top: #d9d9d9 1px solid;
  padding: 10px 30px;
}

.read-more a {
  font-size: 13px;
  line-height: 15px;
  font-weight: 500;
  color: #000000;
}

.read-more a:hover {
  font-size: 13px;
  line-height: 15px;
  font-weight: 500;
  color: #ff9c00;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
  /* 2 cards on tablet */
  .post-card {
    flex: 0 1 calc(50% - 20px); /* 50% width with gap */
  }

  #posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .post-card {
    border: 1px solid #ddd;
    /* padding: 20px;  */
    border-radius: 8px;
    /* text-align: center;  */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width by default */
  }
}

@media (min-width: 1024px) {
  /* 3 cards on desktop */
  .post-card {
    flex: 0 1 calc(33.333% - 20px); /* 33.33% width with gap */
  }
}

/* ============== Pagination Styles ============== */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.pagination a,
.pagination span {
  padding: 0;
  margin: 0 5px;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
}

.pagination .page-numbers {
  background-color: transparent;
  color: #000000;
  border-radius: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.pagination .current {
  background-color: #ffdb11;
  color: #000000;
}

.pagination .prev,
.pagination .next {
  background-color: transparent;
  color: #333;
  border: none;
  padding: 10px 15px;
  width: auto;
  height: auto;
  text-transform: uppercase;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination .prev:hover,
.pagination .next:hover {
  background-color: transparent;
}

/* ********* Slider Testimonials ********* */

.swiper-container-testimonials {
  width: 65%;
  margin: auto;
  overflow-x: visible; /* Ensure overlapping slides are visible */
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  text-align: left;
  transition: transform 0.3s, z-index 0.3s;
}

.testimonial-card {
  background: white;
  padding: 91px 95px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 1000px;
}

.testimonial-card.highlighted {
  transform: scale(1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-quote {
  font-size: 22px;
  font-weight: 400;
  line-height: 33px;
  text-align: left;
  text-decoration-skip-ink: none;
}

.testimonial-title {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 150%;
  color: #000000;
}

.client-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 33px;
  text-align: left;
  text-decoration-skip-ink: none;
}

[data-letters]:before {
  content: attr(data-letters);
  display: inline-block;
  font-size: 24px;
  width: 60px;
  height: 60px;
  line-height: 2.5em;
  text-align: center;
  border-radius: 50%;
  background: #f1f1f1;
  vertical-align: middle;
  margin-right: 1em;
  color: #989898;
}

.client-container {
  margin-top: 30px;
}

/* Adjust z-index for active slide */
.swiper-slide.swiper-slide-active .testimonial-card {
  /* transform: scale(1.1); */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.swiper-slide-next,
.swiper-slide-prev {
  transform: scale(0.9);
}

.swiper-button-next,
.swiper-button-prev {
  color: #333;
  padding: 30px;
  border: #000000 solid 1px;
  border-radius: 50%;

  background-color: #ffffff;
}

.swiper-button-prev {
  left: 150px !important;
}
.swiper-button-next {
  right: 150px !important;
}

/* Custom Next Button */
.swiper-button-next {
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 26" fill="none"><path d="M0.299805 12.8781H30.3998M30.3998 12.8781L18.6215 1.09983M30.3998 12.8781L18.6215 24.6564" stroke="black" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom Prev Button */
.swiper-button-prev {
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 26" fill="none"><path d="M31.7002 12.8781H1.6002M1.6002 12.8781L13.3785 1.09983M1.6002 12.8781L13.3785 24.6564" stroke="black" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Remove Default Swiper Arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "" !important; /* Removes the default arrow content */
}

.swiper-button-next:hover {
  background-color: #ffdb11;
}

.swiper-button-prev:hover {
  background-color: #ffdb11;
}

.mobile-testimonial {
  display: none;
}

/* Media query for the testimonial card */

@media (max-width: 767px) {
  .swiper-container-testimonials {
    display: none;
  }
  .swiper {
    width: 100%;
    height: 100%;
  }

  .mobile-testimonial {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-testimonial img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonial-card {
    padding: 60px 40px;
    height: auto;
  }

  [data-letters]:before {
    content: attr(data-letters);
    display: inline-block;
    font-size: 24px;
    width: 45px;
    height: 45px;
    line-height: 1.8em;
  }
}

@media (min-width: 768px) and (max-width: 1430px) {
  .swiper-container-testimonials {
    display: none;
  }
  .swiper {
    width: 100%;
    height: 100%;
  }

  .mobile-testimonial {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-testimonial img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .testimonial-card {
    padding: 60px 40px;
    height: auto;
  }

  [data-letters]:before {
    content: attr(data-letters);
    display: inline-block;
    font-size: 24px;
    width: 45px;
    height: 45px;
    line-height: 1.8em;
  }
}

.swiper-slide.swiper-slide-active .testimonial-card {
  height: auto;
  min-height: 875px;
}

/* ********* Recent Project Slider CSS *********  */
/* 
.recent-project-card {
  width: 875px;
  height: 519px;
  background-color: red;
} */

div.swiper-pagination.swiper-pagination-progressbar {
  top: inherit;
  bottom: 0;
  padding-top: 4px;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #ffdb11 !important;
}

.swiper-pagination-progressbar {
  background: #000000 !important;
}

.swiper-recent {
  padding-bottom: 80px !important;
}

.floating_tel {
  z-index: 9999999;
}

.recent-project-card {
  width: 100%; /* Default to 100% width for responsiveness */
  max-width: 875px; /* Maintain the max width on larger screens */
  height: auto; /* Allow height to adjust based on content */
  aspect-ratio: 875 / 519; /* Maintain the aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.card-content {
  padding: 20px;
  padding-left: 40px; /* Adjust padding for smaller screens */
  padding-right: 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.project-title {
  font-size: 24px; /* Smaller font size for smaller screens */
  font-weight: 600;
  margin: 0;
  line-height: 30px;
  text-transform: uppercase;
}

.view-project {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  width: 60px; /* Adjust size for smaller screens */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* Smaller font size */
  cursor: pointer;
}

.view-project:hover {
  background: #ffdb11;
  color: #000;
}

.arrow-icon {
  display: inline-block;
  font-weight: bold;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
  .card-content {
    padding: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-title {
    font-size: 20px;
    line-height: 26px;
  }

  .view-project {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }
  .recent-project-nav {
    padding-bottom: 10px;
    padding-top: 30px;
  }
}

@media (max-width: 480px) {
  .card-content {
    flex-direction: column; /* Stack content for very small screens */
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .view-project {
    align-self: flex-end;
  }
}

/* Pagination bullets as numbered boxes */
.swiper-pagination-recent-update span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #000; /* Black text */
  background-color: transparent;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px; /* Rounded edges for the boxes */
  margin: 0 5px; /* Spacing between bullets */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Active bullet styling */
.swiper-pagination-recent-update .swiper-pagination-bullet-active {
  background-color: #f1c40f; /* Black background for the active box */
  color: #000; /* White text for active box */
}

/* Navigation arrows */
.recent-project-swiper-button-next,
.recent-project-swiper-button-prev {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="19" height="15" viewBox="0 0 19 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 7.4999H16.9821M16.9821 7.4999L10.3369 0.854736M16.9821 7.4999L10.3369 14.1451" stroke="black" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Position the arrows */
.recent-project-swiper-button-prev {
  left: -60px; /* Adjust as needed */
}

.recent-project-swiper-button-next {
  right: -60px; /* Adjust as needed */
}

.swiper-pagination-recent-update.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  top: 0;
  padding-top: 4px;
}

.recent-project-nav {
  display: flex;
  flex-direction: row-reverse;
  float: right;
  padding-bottom: 60px;
  margin-right: 10px;
}


/* Mobile devices */
@media (max-width: 768px) {
    .swiper {
    flex-direction: column-reverse;
    display: flex;
    }
	.swiper-recent{
		padding-bottom: 10px !important;
	}
}
/* ********* END Recent Project Slider CSS *********  */

/* Slick Testimonial */
.slick-testimonials {
	overflow: hidden;
	padding: 60px;
}
.slick-testimonials .slick-list {
	overflow: visible;
	padding: 0 !important;
}
.testimonial-slide:not(.slick-active) {
    opacity: 0;
}
.testimonial-slide.slick-center .testimonial-card {
    -webkit-transform: scale3d(1.0, 1.0, 1);
    transform: scale(1.1);
}

.slick-testimonials .slick-next {
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 26" fill="none"><path d="M0.299805 12.8781H30.3998M30.3998 12.8781L18.6215 1.09983M30.3998 12.8781L18.6215 24.6564" stroke="black" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	font-size: 0;
}

/* Custom Prev Button */
.slick-testimonials .slick-prev {
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 26" fill="none"><path d="M31.7002 12.8781H1.6002M1.6002 12.8781L13.3785 1.09983M1.6002 12.8781L13.3785 24.6564" stroke="black" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	font-size: 0;
}

.slick-testimonials .slick-next:hover,
.slick-testimonials .slick-next:active,
.slick-testimonials .slick-next:focus {
  background-color: #ffdb11 !important;
}

.slick-testimonials .slick-prev:hover,
.slick-testimonials .slick-prev:active,
.slick-testimonials .slick-prev:focus {
  background-color: #ffdb11 !important;
}

.slick-testimonials .slick-arrow {
    position: absolute;
    top: 50%;
    margin-top: -30px;
    z-index: 9;
}

.slick-testimonials .slick-prev {
    left: 30px;
}

.slick-testimonials .slick-next {
    right: 30px;
}

@media only screen and (max-width: 1024px) {
	.slick-testimonials {
		padding: 30px 0;
		overflow: visible
	}
	.slick-testimonials .slick-track {
		display: flex !important;
	}
	.slick-testimonials .slick-prev {
		left: -30px;
	}

	.slick-testimonials .slick-next {
		right: -30px;
	}
	.testimonial-slide.slick-center .testimonial-card {
		transform: unset;
	}
	.slick-testimonials .slick-slide {
		margin: 0 10px;
		height: inherit !important;
	}
	.slick-testimonials .slick-list {
		margin: 0 -10px;
	}
	.slick-testimonials .testimonial-card {
		height: 100%;
		display: flex;
        flex-direction: column;
	}
	.slick-testimonials .testimonial-card .client-container {
		flex: 1;
		display: flex;
		align-items: flex-end;
	}
}