/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 140px 0 80px; /* Increased top padding to clear fixed navbar */
  text-align: center;
  position: relative; /* Ensure z-index works if needed */
}
.blog-hero h1 {
  font-size: 5rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}
.blog-hero p {
  color: #596a7d;
  font-size: 1.2rem;
}

/* Post Card (Index) */
.post-card {
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.post-card:hover .post-img-wrapper img {
  transform: scale(1.05);
}
.post-card .post-img-wrapper {
  position: relative;
  padding-top: 60%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}
.post-card .post-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .post-date {
  font-size: 0.85rem;
  color: #95a5a6;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.post-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.post-card .card-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}
.post-card .card-title a:hover {
  color: #3498db;
}
.post-card .card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.post-card .read-more-btn {
  display: inline-block;
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  align-self: flex-start;
}
.post-card .read-more-btn:hover {
  border-bottom-color: #3498db;
  color: #2980b9;
  text-decoration: none;
}

.pagination {
  justify-content: center;
  margin-top: 2rem;
}

/* Single Post View */
.post-header {
  background: #fff;
  padding: 160px 0 60px; /* Increased top padding */
  text-align: center;
}

.post-title {
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  color: #95a5a6;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-featured-image {
  width: 100%;
  max-height: 600px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.post-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #4a4a4a;
  max-width: 800px;
  margin: 0 auto;
}
.post-content p {
  margin-bottom: 24px;
}
.post-content h2, .post-content h3 {
  color: #2c3e50;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}
.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}
.post-content li {
  margin-bottom: 10px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: transparent;
  color: #2c3e50;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.back-btn:hover {
  background-color: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
  transform: translateX(-4px);
  text-decoration: none;
}
.back-btn i {
  margin-right: 8px;
}
