/* PS Projects Slider CSS (PS- prefixed) */
.fa,
.fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.PS-projects-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 0 auto;
}

/* Tabs */
.PS-project-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.PS-tab {
  border-radius: 30px;
  border: 3px solid #8b8888e8;
  padding: 1rem 5rem;
  transition: all 0.3s ease;
  font-size: 20px;
}
.PS-tab:hover {
  color: #666;
}
.PS-tab.PS-active {
  font-weight: bold;
  background: #ca460b9c;
  border-color: #ca450c;
  color: #fff;
}

/* Projects container */
.PS-projects-container {
  width: 100%;
}

/* Slide */
.PS-slide {
  box-sizing: border-box;
  padding: 8px;
  width: auto !important;
}
.PS-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  width: calc(100%);
}
.PS-content {
  padding: 12px 12px 0;
}
.PS-img {
  width: 100%;
}
.PS-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.PS-title {
  font-size: 18px;
  color: #333;
}
.PS-desc {
  font-size: 14px;
  color: #6e7070;
}
.PS-meta {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.PS-meta i {
  margin-right: 6px;
}

/* Loading/no projects */
.PS-loading,
.PS-no-projects {
  text-align: center;
  padding: 16px;
  color: #666;
}

/* Responsive */
@media (max-width: 767px) {
  .PS-img img {
    height: 160px;
  }
  .PS-tab {
    padding: 7px 12px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .PS-img img {
    height: 140px;
  }
  .PS-tab {
    padding: 6px 10px;
    font-size: 13px;
  }
}
/* Ensure wrapper is flex row */
.PS-swiper .swiper-wrapper {
  display: flex;
  transition-timing-function: ease-in-out; /* Smooth slide */
  justify-content: stretch;
}

/* Ensure slides have fixed proportional width */
.PS-swiper .swiper-slide {
  width: calc(100% / 3) !important; /* For 3 slides with spacing */
  max-width: 400px; /* optional cap */
  margin-left: 5px;
}
.PS-swiper svg {
  display: none;
}
.PS-top-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
}
.PS-type {
  background: #e69f80;
  padding: 6px 8px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}
.PS-type.plot {
  background: #25ab4a;
}
.PS-type.apartment {
  background: #5b8fed;
}
.PS-type.villa {
  background: #ab2560;
}
.PS-type.commercial {
  background: #6a1204;
}

.PS-invest {
  color: #ca460b;
}

/* Arrows */
.PS-button-prev,
.PS-button-next,
.PS-swiper .swiper-button-prev,
.PS-swiper .swiper-button-next {
  color: #ca460b;
  background: transparent;
  width: 22px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  padding: 5px 5px 5px 7px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
  color: inherit;
}
.PS-swiper .swiper-button-prev:hover,
.PS-swiper .swiper-button-next:hover {
  background: #df7c57;
  color: #fff;
}
.PS-view-btn {
  width: 100%;
  margin: 10px 0;
  padding: 12px 16px;
  background: #d86f42;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.PS-meta {
  margin-top: 8px;
  color: #333;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-start;
}

/* Landing page styles */
.ps-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ps-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.ps-hero-title {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.ps-hero-title h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #fff;
}
.ps-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}
.ps-section {
  margin-bottom: 60px;
}
.ps-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.ps-highlights,
.ps-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.ps-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ps-card .embed-map-fixed {
  margin-top: 20px;
}
.ps-card .embed-map-fixed,
.ps-card .embed-map-container {
  max-width: 100%;
  max-height: 150px;
}
.ps-builder {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ps-builder img {
  max-width: 120px;
  height: auto;
}
/* Project Slider Wrapper */
.PS-slider-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Each project item */
.PS-project-item {
  flex: 0 0 calc(33.333% - 20px); /* 3 items on desktop */
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* push footer to bottom */
  height: 100%;
  box-sizing: border-box;
}

/* Make items same height */
.PS-slider-track {
  display: flex;
  align-items: stretch;
}

.PS-project-item {
  height: auto; /* let flex stretch it */
}

@media (max-width: 768px) {
  .ps-hero-title h1 {
    font-size: 2rem;
  }
    .ps-hero-title p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 5em;
  }
}
.ps-project-hero {
  max-height: 500px;
  overflow: hidden;
}
.ps-content-sections {
  padding: 70px 0;
}

.counter-sec {
  margin: 100px 0 75px 0;
}
.counter-card {
  position: relative;
  background-color: #aa6c5259;
  padding: 93px 28px;
  width: 264px;
  height: 264px;
  display: block;
  margin: auto;
  text-align: center;
  border-radius: 50%;
  z-index: 2;
  margin-top: 158px;
  display: flex;
  align-items: center;
}
.counter-card-wrap:nth-child(even) .counter-card {
  margin-top: 0px;
}
.counter-card .counter-shape {
  position: absolute;
  inset: -24px;
  width: 312px;
  height: 312px;
  border-radius: 50%;
  border: 1px solid #e69f80;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.media-body {
  flex: 1;
}
.counter-card .box-number {
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  text-transform: capitalize;
  color: #000;
  margin-bottom: 7px;
}
.project-details {
  gap: 0;
}
.project-details .ps-card {
  margin-bottom: 25px;
}
/* Mobile: 1 slide visible */
@media (max-width: 767px) {
  .PS-swiper .swiper-slide {
    width: 100% !important;
    max-width: none;
  }

  .counter-card-wrap .counter-card,
  .counter-card-wrap:nth-child(even) .counter-card {
    margin-top: 20px;
  }
}
