/* ===========================Project List Styles================================== */
.blog_news_hd_con{
  padding-left: 6%;
}
.blog_news_hd_con h1{
  color: var(--blue);
}
.blog_news_con {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 6%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Style for the <a> tag containing each property */
.blog_news_con > a {
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog_news_con > a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog_news_img_con {
  width: 100%;
  height: 0;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  position: relative;
  border-radius: 0.8rem 0.8rem 0 0;
}

.blog_news_img_con img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed from fill to cover */
  transition: transform 0.5s ease-in-out;
}

.blog_news_con > a:hover .blog_news_img_con img {
  transform: scale(1.08);
}

.property-card {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--blue);
  text-transform: capitalize;
  line-height: 1.3;
}

.property-location {
  text-transform: capitalize;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.25rem;
  font-family: var(--font-mons);
}

.property-details {
  margin-top: auto;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid #f0f0f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  color: var(--blue);
}

/* Status badges */
.detail-value.status-completed {
  color: #2ecc71;
}

.detail-value.status-under_construction {
  color: #f39c12;
}

.detail-value.status-sold_out {
  color: #e74c3c;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .blog_news_con {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  
  .blog_news_img_con {
    padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
  }
  
  .property-card {
    padding: 1.25rem;
  }
  
  .property-name {
    font-size: 1.3rem;
  }
}
@media screen and (min-width: 1920px) {
  .blog_news_hd_con{
    text-align: center ;
    justify-content: center;
  }
}