/* ========================================================
   Krishippura Single Post & Sidebar Styles
   ======================================================== */

.krishi-single-wrapper {
  background: #f8fafc;
  padding: 32px 0 64px;
  font-family: 'Manrope', 'Noto Sans Malayalam', sans-serif;
  min-height: 85vh;
}

.krishi-single-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Breadcrumb */
.krishi-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-breadcrumb a {
  color: #15803d !important;
  text-decoration: none !important;
  font-weight: 600;
}

.krishi-breadcrumb a:hover {
  text-decoration: underline !important;
}

.krishi-breadcrumb-sep {
  color: #94a3b8;
}

/* 2-Column Main Layout: Content (minmax 0, 1fr) + Sidebar (340px) */
.krishi-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.krishi-main-content {
  min-width: 0;
  max-width: 100%;
}

/* ---------------- Main Article Card ---------------- */
.krishi-article-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.krishi-article-cat {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  margin-bottom: 16px;
  text-decoration: none !important;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-article-title {
  margin: 0 0 16px 0;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.38;
  letter-spacing: -0.01em;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.krishi-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.krishi-meta-item svg {
  width: 15px;
  height: 15px;
  color: #15803d;
}

/* Featured Image */
.krishi-featured-wrap {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

.krishi-featured-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Article Content */
.krishi-entry-content {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.85;
  font-family: 'Noto Sans Malayalam', sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.krishi-entry-content iframe,
.krishi-entry-content video,
.krishi-entry-content embed,
.krishi-entry-content table {
  max-width: 100% !important;
  box-sizing: border-box;
}

.krishi-entry-content .crdexyhqgk,
.krishi-entry-content .adsbygoogle {
  max-width: 100% !important;
  overflow: hidden !important;
}

.krishi-entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.krishi-entry-content p {
  margin-bottom: 1.5em;
}

.krishi-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.krishi-entry-content img.alignleft,
.krishi-entry-content .alignleft {
  float: left;
  margin: 6px 20px 16px 0;
  max-width: 100%;
  height: auto;
}

.krishi-entry-content img.alignright,
.krishi-entry-content .alignright {
  float: right;
  margin: 6px 0 16px 20px;
  max-width: 100%;
  height: auto;
}

.krishi-entry-content img.aligncenter,
.krishi-entry-content .aligncenter {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

.krishi-entry-content figure {
  margin: 16px 0;
  max-width: 100%;
}

.krishi-entry-content figcaption {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
}

/* In-Post AdSense Slot */
.krishi-post-ad-slot {
  margin: 28px 0;
  width: 100%;
}

.krishi-ad-card {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.krishi-ad-badge {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

/* Share Bar */
.krishi-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  margin-top: 28px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.krishi-share-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.krishi-share-whatsapp {
  background: #25d366;
}
.krishi-share-facebook {
  background: #1877f2;
}

.krishi-share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---------------- Related Posts Section ---------------- */
.krishi-related-wrap {
  margin-top: 40px;
}

.krishi-related-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.krishi-related-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.krishi-related-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.krishi-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.krishi-related-thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.krishi-related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.krishi-related-card:hover .krishi-related-thumb {
  transform: scale(1.05);
}

.krishi-related-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15803d;
  color: #86efac;
  font-size: 1.8rem;
}

.krishi-related-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.krishi-related-post-title {
  margin: 0 0 8px 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  font-family: 'Noto Sans Malayalam', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krishi-related-post-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.krishi-related-post-title a:hover {
  color: #15803d !important;
}

.krishi-related-date {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: auto;
}

/* ---------------- Sidebar Styles ---------------- */
.krishi-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.krishi-widget {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.krishi-widget-title {
  margin: 0 0 18px 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #15803d;
  padding-bottom: 8px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Latest Posts List Widget */
.krishi-widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.krishi-widget-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.krishi-widget-thumb {
  width: 72px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.krishi-widget-post-info {
  flex-grow: 1;
}

.krishi-widget-post-title {
  margin: 0 0 4px 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  font-family: 'Noto Sans Malayalam', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krishi-widget-post-title a {
  color: #1e293b !important;
  text-decoration: none !important;
}

.krishi-widget-post-title a:hover {
  color: #15803d !important;
}

.krishi-widget-date {
  font-size: 0.72rem;
  color: #64748b;
}

/* Category Badges Widget */
.krishi-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.krishi-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-weight: 600;
  transition: all 0.2s ease;
}

.krishi-cat-item a:hover {
  background: #ecfdf5;
  color: #047857 !important;
  padding-left: 16px;
}

.krishi-cat-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* WhatsApp CTA Widget */
.krishi-cta-widget {
  background: linear-gradient(135deg, #15803d 0%, #064e3b 100%);
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 26px 20px;
}

.krishi-cta-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.krishi-cta-title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Noto Sans Malayalam', sans-serif;
  color: #ffffff;
}

.krishi-cta-sub {
  margin: 0 0 16px 0;
  font-size: 0.82rem;
  color: #bbf7d0;
  font-family: 'Noto Sans Malayalam', sans-serif;
  line-height: 1.4;
}

.krishi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #facc15;
  color: #0f172a !important;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  font-family: 'Noto Sans Malayalam', sans-serif;
}

.krishi-cta-btn:hover {
  background: #fde047;
  transform: translateY(-2px);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .krishi-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .krishi-article-card {
    padding: 24px;
  }
  .krishi-article-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 640px) {
  .krishi-related-grid {
    grid-template-columns: 1fr;
  }
  .krishi-article-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .krishi-article-title {
    font-size: 1.35rem;
  }
  .krishi-single-container {
    padding: 0 14px;
  }
  .krishi-single-wrapper {
    padding: 18px 0 40px;
  }
}
