/* Blog Section */
.blog-section {
  padding: 60px 20px;
  text-align: center;
  background: #211f2a;
  color: #fff;
}

.blog-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.blog-section .blog-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Blog Card */
.blog-card {
  background: #1c1c23;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 200, 150, 0.5); /* glow effect */
}

.blog-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

.blog-content .meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.blog-content .excerpt {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
}

#blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.blog-preview {
  padding: 40px;
  display: grid;
  gap: 20px;
}

.blog-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 15px;
}

.view-all {
  text-align: center;
  margin-top: 20px;
}

.view-all .btn {
  padding: 10px 20px;
  background: #3ba4ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.view-all .btn:hover {
  background: #1f7dd9;
}

.btn-readmore {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #34aa8d; /* Your accent purple */
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-readmore:hover {
  background: #00c896;
  transform: translateY(-2px);
}

.btn-readmore {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #34aa8d;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-readmore:hover {
  background: #34aa8d;
  transform: translateY(-2px);
}

.view-all {
  text-align: center;
  margin-top: 20px;
}

.btn-viewall {
  display: inline-block;
  padding: 10px 18px;
  background: #00c896;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-viewall:hover {
  background: #00e6aa;
  transform: translateY(-2px);
}

.blog-hero {
  position: relative;
  height: 300px;
  background: url("../images/Apartment\ View.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
}

.blog-hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.blog-hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.blog-hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d1d1d1;
}

/* Pagination */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.page-btn {
  background: #00c896;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page-btn:hover {
  background: #00e6aa;
  transform: translateY(-2px);
}

.page-info {
  font-size: 1rem;
  color: #ccc;
}

/* Blog card animation */
.blog-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  animation-play-state: paused; /* paused until visible */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
