/* Blog Section Styling */
.urban-blog-section {
  padding: 100px 0;
  background: #f7f3ed;
}

/* Typography */
.sub-title {
  color: #0c4ca3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.75rem;
  color: #393838;
}
.heading span {
  font-weight: 200;
}

/* Fixed Grid Stability - Taaki cards naye page par jump na karein */
#blog-grid {
  min-height: 600px; /* Loading ke waqt layout collapse nahi hoga */
}

/* Card Design */
.blog-card {
  background: #fff;
  border-radius: 0;
  border: none;
  height: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px; /* Space between rows */
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-bottom: 4px solid #edc716;
}

/* Image Stability - Fixed Height for consistency */
.blog-img-box {
  height: 240px; /* Standard height for all pages */
  overflow: hidden;
  position: relative;
  background: #eee; /* Placeholder color while loading */
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Important: prevents stretching */
  transition: transform 0.8s ease;
}

/* Feature Card (Only for Page 1) */
.feature-card .blog-img-box {
  height: 400px; /* Sirf pehle page ka pehla blog bada hoga */
}

.feature-card .blog-title {
  font-size: 1.8rem;
}

.blog-info-box {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.meta-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-tag {
  color: #0c4ca3;
  background: #d6e4f0;
  padding: 3px 10px;
}

.blog-date {
  color: #999;
}

.blog-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #393838;
  line-height: 1.4;
  margin-bottom: 20px;
  min-height: 3.4em; /* Title alignment maintain karne ke liye */
}

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

.page-btn {
  border: 1px solid #0c4ca3;
  background: #fff;
  color: #0c4ca3;
  padding: 10px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.page-btn.active,
.page-btn:hover {
  background: #0c4ca3;
  color: #fff;
}

.page-btn.active {
  background: #edc716 !important;
  border-color: #edc716;
  color: #000;
}

/* Responsive Fixes */
@media (max-width: 991px) {
  .heading {
    font-size: 2.5rem;
  }
  .blog-img-box,
  .feature-card .blog-img-box {
    height: 220px; /* Mobile par sab ek barabar */
  }
}

.urban-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #0c4ca3;
  background: transparent;
  color: #0c4ca3;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  transition: 0.3s;
  cursor: pointer;
}

.page-btn.active,
.page-btn:hover {
  background: #0c4ca3;
  color: #fff;
  border-color: #0c4ca3;
  box-shadow: 0 4px 10px rgba(12, 76, 163, 0.3);
}

.page-btn.active {
  background: #edc716; /* Active page yellow */
  border-color: #edc716;
  color: #000;
}

/* Ensure all images have the same aspect ratio on sub-pages */
.blog-card .blog-img-box {
  position: relative;
  width: 100%;
  height: 250px; /* Fixed height for sub-pages */
  overflow: hidden;
}

/* Page 1 Feature Card special height */
.feature-card .blog-img-box {
  height: 400px !important;
}

.blog-card .blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Image kategi nahi, center mein fit hogi */
}

/* Pagination buttons decoration */
.page-btn {
  cursor: pointer;
  margin: 0 5px;
  padding: 8px 16px;
  border: 1px solid #0c4ca3;
  background: #fff;
  color: #0c4ca3;
  transition: 0.3s;
}

.page-btn.active {
  background: #0c4ca3 !important;
  color: #fff !important;
}

/* Blog Details Specific */
.blog-details-hero {
  padding: 80px 0 40px;
  background: #f7f3ed;
}

.blog-category-badge {
  color: #0c4ca3;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  display: block;
  margin-bottom: 15px;
}

.blog-detail-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  color: #393838;
  line-height: 1.2;
  margin-bottom: 25px;
}

.blog-detail-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 0;
}

#featured-image-container img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* WordPress Content Styling - Important! */
.entry-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
}

.entry-content h2,
.entry-content h3 {
  font-family: "Space Grotesk", sans-serif;
  color: #0c4ca3;
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content p {
  margin-bottom: 25px;
}

.btn-urban-outline {
  border: 2px solid #0c4ca3;
  color: #0c4ca3;
  padding: 12px 30px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  transition: 0.3s;
  display: inline-block;
}

.btn-urban-outline:hover {
  background: #0c4ca3;
  color: #fff;
}

@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 2.2rem;
  }
}
