/**
 * Kavya Prop - Premium Blogs & Insights Styling
 * Developed for Modern High-Conversion Real Estate Portal
 */

:root {
  --blog-primary: #28a745;
  --blog-primary-dark: #218838;
  --blog-primary-light: #e8f5e9;
  --blog-dark: #0f172a;
  --blog-slate: #334155;
  --blog-muted: #64748b;
  --blog-light-bg: #f8fafc;
  --blog-border: #e2e8f0;
  --blog-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --blog-card-shadow-hover: 0 12px 30px rgba(40, 167, 69, 0.12);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* ==========================================================
   1. HERO BANNER SECTION
   ========================================================== */
.dh-blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
  padding: 65px 20px 55px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.dh-blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.dh-blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dh-blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #6ee7b7;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.dh-blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.dh-blog-hero h1 span {
  color: #6ee7b7;
  position: relative;
}

.dh-blog-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================
   2. MAIN LAYOUT & CONTAINER
   ========================================================== */
.dh-blog-section {
  background-color: #f8fafc;
  padding: 50px 0 80px;
  font-family: var(--font-body);
}

.dh-blog-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

@media (max-width: 991px) {
  .dh-blog-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   3. FEATURED POST HIGHLIGHT CARD
   ========================================================== */
.dh-featured-post-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-card-shadow);
  overflow: hidden;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dh-featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-card-shadow-hover);
}

@media (max-width: 768px) {
  .dh-featured-post-card {
    grid-template-columns: 1fr;
  }
}

.dh-featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.dh-featured-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dh-featured-post-card:hover .dh-featured-thumb-wrap img {
  transform: scale(1.05);
}

.dh-featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--blog-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dh-featured-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dh-featured-category {
  display: inline-block;
  color: var(--blog-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dh-featured-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blog-dark);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dh-featured-title:hover {
  color: var(--blog-primary);
}

.dh-featured-excerpt {
  color: var(--blog-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.dh-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

.dh-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================
   4. BLOG CARDS GRID
   ========================================================== */
.dh-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 680px) {
  .dh-blog-grid {
    grid-template-columns: 1fr;
  }
}

.dh-blog-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dh-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--blog-card-shadow-hover);
  border-color: rgba(40, 167, 69, 0.4);
}

.dh-blog-card-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
}

.dh-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dh-blog-card:hover .dh-blog-card-thumb img {
  transform: scale(1.06);
}

.dh-card-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #6ee7b7;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dh-blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dh-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.dh-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blog-dark);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dh-card-title:hover {
  color: var(--blog-primary);
}

.dh-card-excerpt {
  color: var(--blog-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.dh-card-footer {
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dh-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-slate);
  font-size: 0.85rem;
  font-weight: 600;
}

.dh-card-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blog-primary-light);
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.dh-card-read-link {
  color: var(--blog-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.dh-card-read-link:hover {
  gap: 8px;
  color: var(--blog-primary-dark);
}

/* ==========================================================
   5. SIDEBAR WIDGETS
   ========================================================== */
.dh-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dh-sidebar-widget {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-card-shadow);
  padding: 24px;
}

.dh-widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blog-primary-light);
  position: relative;
}

.dh-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--blog-primary);
}

/* Search Box */
.dh-blog-search-form {
  position: relative;
  display: flex;
}

.dh-blog-search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 1.5px solid var(--blog-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dh-blog-search-input:focus {
  border-color: var(--blog-primary);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.dh-blog-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 38px;
  background: var(--blog-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.dh-blog-search-btn:hover {
  background: var(--blog-primary-dark);
}

/* Categories List */
.dh-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dh-category-item {
  margin-bottom: 8px;
}

.dh-category-item:last-child {
  margin-bottom: 0;
}

.dh-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blog-slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dh-category-link:hover,
.dh-category-link.active {
  background-color: var(--blog-primary-light);
  color: var(--blog-primary-dark);
  font-weight: 600;
}

.dh-category-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.dh-category-link:hover .dh-category-count,
.dh-category-link.active .dh-category-count {
  background: var(--blog-primary);
  color: #ffffff;
}

/* Recent Posts Widget */
.dh-recent-post-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dh-recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dh-recent-thumb {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.dh-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dh-recent-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dh-recent-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blog-dark);
  line-height: 1.35;
  text-decoration: none;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.dh-recent-title:hover {
  color: var(--blog-primary);
}

.dh-recent-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* Consultation Card in Sidebar */
.dh-cta-widget {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #fff;
  border: none;
  text-align: center;
  padding: 30px 20px;
}

.dh-cta-icon {
  width: 50px;
  height: 50px;
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #6ee7b7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.dh-cta-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.dh-cta-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.dh-cta-btn {
  display: block;
  background: var(--blog-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dh-cta-btn:hover {
  background: var(--blog-primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================
   6. PAGINATION
   ========================================================== */
.dh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.dh-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid var(--blog-border);
  color: var(--blog-slate);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dh-page-link:hover,
.dh-page-link.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #ffffff;
}

/* ==========================================================
   7. BLOG DETAILS SINGLE ARTICLE STYLES
   ========================================================== */
.dh-details-breadcrumbs {
  background: #ffffff;
  border-bottom: 1px solid var(--blog-border);
  padding: 14px 20px;
  font-family: var(--font-body);
}

.dh-breadcrumbs-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.dh-breadcrumbs-container a {
  color: var(--blog-slate);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dh-breadcrumbs-container a:hover {
  color: var(--blog-primary);
}

.dh-breadcrumbs-current {
  color: var(--blog-dark);
  font-weight: 600;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-article-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-card-shadow);
  padding: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .dh-article-wrapper {
    padding: 24px 18px;
  }
}

.dh-article-category {
  display: inline-block;
  background: var(--blog-primary-light);
  color: var(--blog-primary-dark);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.dh-article-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--blog-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .dh-article-title {
    font-size: 1.7rem;
  }
}

.dh-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--blog-border);
  flex-wrap: wrap;
  gap: 15px;
}

.dh-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dh-author-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blog-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.dh-author-details-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--blog-dark);
  font-size: 0.95rem;
}

.dh-author-details-sub {
  color: #94a3b8;
  font-size: 0.8rem;
}

.dh-article-featured-img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dh-article-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Content Typography */
.dh-article-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #334155;
  font-family: var(--font-body);
}

.dh-article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin: 35px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blog-primary-light);
}

.dh-article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin: 28px 0 12px;
}

.dh-article-content p {
  margin-bottom: 20px;
}

.dh-article-content ul,
.dh-article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.dh-article-content li {
  margin-bottom: 10px;
}

.dh-article-content blockquote {
  border-left: 4px solid var(--blog-primary);
  background: var(--blog-light-bg);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #1e293b;
  font-size: 1.15rem;
}

.dh-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

/* Tags Cloud */
.dh-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 25px 0;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  margin: 35px 0;
}

.dh-tags-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blog-dark);
}

.dh-tag-pill {
  background: #f1f5f9;
  color: var(--blog-slate);
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dh-tag-pill:hover {
  background: var(--blog-primary);
  color: #ffffff;
}

/* Share Buttons */
.dh-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.dh-share-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blog-dark);
}

.dh-share-buttons {
  display: flex;
  gap: 10px;
}

.dh-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-size: 0.95rem;
}

.dh-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #ffffff;
}

.dh-share-btn.whatsapp { background-color: #25D366; }
.dh-share-btn.facebook { background-color: #1877F2; }
.dh-share-btn.twitter  { background-color: #0f172a; }
.dh-share-btn.linkedin { background-color: #0A66C2; }
.dh-share-btn.copy     { background-color: #64748b; cursor: pointer; border: none; }

/* Related Articles Block */
.dh-related-section {
  margin-top: 50px;
}

.dh-related-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blog-dark);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.dh-related-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--blog-primary);
  border-radius: 2px;
}
