.listing-page {
  text-align: center;
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.featured-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: .4s;
}

.featured-card:hover img {
  transform: scale(1.1);
}

.featured-card h4 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

/* List */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,.1);
  transition: .3s;
}

.post-card:hover {
  transform: translateY(-8px);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card .content {
  padding: 18px;
  text-align: left;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Responsive */
@media(max-width:992px){
  .featured-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PROJECT BANNER
========================= */
.page-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-top: 60px;
}

.page-banner .banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.65),
    rgba(0,0,0,.45)
  );
}

.page-banner .banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.page-banner span {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  opacity: .85;
  margin-bottom: 14px;
}

.page-banner h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 14px;
}

.page-banner p {
  max-width: 720px;
  font-size: 18px;
  opacity: .9;
}

/* Mobile */
@media (max-width: 768px) {
  .page-banner {
    height: 300px;
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .page-banner p {
    font-size: 15px;
  }
}

/* =========================
   FEATURED PROJECTS
========================= */
.featured-section {
  margin-bottom: 80px;
}

.featured-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Main featured */
.featured-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.2);
}

.featured-main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.featured-info {
  position: absolute;
  left: 30px;
  bottom: 30px;
  color: #fff;
}

.featured-info span {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: .9;
}

.featured-info h3 {
  font-size: 28px;
  margin-top: 6px;
}

/* Side featured */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featured-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

.featured-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: .4s;
}

.featured-card:hover img {
  transform: scale(1.1);
}

.featured-card h4 {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-showcase {
    grid-template-columns: 1fr;
  }

  .featured-main img {
    min-height: 280px;
  }
}

@media (max-width: 1200px) {

  .featured-grid,
  .post-grid {
    gap: 24px;
  }

  .featured-main img {
    min-height: 360px;
  }

  .featured-info h3 {
    font-size: 24px;
  }
}

@media (max-width: 992px) {

  /* Featured showcase */
  .featured-showcase {
    grid-template-columns: 1fr;
  }

  .featured-main img {
    min-height: 300px;
  }

  .featured-info {
    left: 20px;
    bottom: 20px;
  }

  .featured-info h3 {
    font-size: 22px;
  }

  /* Grid list */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {

  /* Banner */
  .page-banner {
    height: 280px;
    margin-top: 50px;
  }

  .page-banner span {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .page-banner h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .page-banner p {
    font-size: 14px;
  }

  /* Featured section */
  .featured-section {
    margin-bottom: 60px;
  }

  .featured-main img {
    min-height: 240px;
  }

  .featured-info h3 {
    font-size: 20px;
  }

  /* Side featured */
  .featured-side {
    gap: 20px;
  }

  .featured-card img {
    height: 180px;
  }

  /* Project list */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card img {
    height: 220px;
  }

  .post-card .content {
    padding: 16px;
  }
}
@media (max-width: 480px) {

  .page-banner {
    height: 240px;
  }

  .page-banner h1 {
    font-size: 24px;
  }

  .page-banner p {
    font-size: 13px;
  }

  .featured-info span {
    font-size: 11px;
  }

  .featured-info h3 {
    font-size: 18px;
  }

  .featured-card h4 {
    font-size: 16px;
  }

  /* Pagination */
  .pagination button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

