:root {
  --blog-bg: #fcfaf8;
  --card-bg: #ffffff;
  --text-dark: #2c1e16;
  --text-muted: #6b5b53;
  --brand-accent: #9c5521;
  --brand-light: #fff0e5;
}

.blog-listing-section {
  background-color: var(--blog-bg);
  padding: 60px 0 100px 0;
}

.modern-blog-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

.modern-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(156, 85, 33, 0.09);
  border-color: rgba(156, 85, 33, 0.15);
}

.blog-img-box {
  height: 230px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f3ebe1;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-blog-card:hover .blog-img-box img {
  transform: scale(1.08);
}

.blog-author-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(44, 30, 22, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}

.blog-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.blog-date {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.modern-blog-card:hover .blog-title {
  color: var(--brand-accent);
}

.blog-snippet {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.modern-blog-card:hover .blog-read-more {
  color: var(--brand-accent);
  transform: translateX(4px);
}

.custom-pagination {
  margin-top: 60px;
  gap: 8px;
}

.custom-pagination .page-item .page-link {
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.custom-pagination .page-link:hover {
  background-color: var(--brand-light);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

.custom-pagination .page-item.active .page-link {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(156, 85, 33, 0.25);
}

.custom-pagination .page-item.disabled .page-link {
  color: #bdbdbd;
  background-color: #fafafa;
  border-color: rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .blog-listing-section {
    padding: 40px 0 70px 0;
  }
  .blog-img-box {
    height: 200px;
  }
  .blog-content {
    padding: 20px;
  }
  .blog-title {
    font-size: 1.15rem;
  }
}

/* ========================================= */
/* BLOG DETAILED STYLES   */
/* ========================================= */
.blog-detail-container {
  margin-top: 40px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3e2723;
  line-height: 1.3;
}

.meta-strip {
  font-size: 0.9rem;
  color: #8d6e63;
  font-weight: 500;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.featured-img-box {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f5e6d3;
  background: #fff;
}

.featured-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rich Text Content Blocks Layout Overrides */
.article-rich-textContent {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2d3436;
  text-align: justify;
}

.article-rich-textContent p {
  margin-bottom: 24px;
}

.article-rich-textContent h2,
.article-rich-textContent h3 {
  color: #8b4513;
  font-weight: 700;
  margin-top: 35px;
  margin-bottom: 15px;
}

/* Sidebar Recent Cards Layout presets */
.sidebar-card {
  background: #ffffff;
  border: 1px solid #f5e6d3;
  border-radius: 16px;
}

.recent-blog-thumb {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}

.recent-post-link {
  text-decoration: none;
  transition: color 0.2s;
}

.recent-post-link h6 {
  color: #3e2723;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-link:hover h6 {
  color: #8b4513;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.9rem;
  }

  .article-rich-textContent {
    font-size: 1rem;
    line-height: 1.75;
  }
}
