/* Pro-G Agro Blog Listing & Detail UI (matches reference layout) */
.pg-blog-section {
  background: #ffffff;
  padding: 32px 20px 72px;
  font-family: inherit;
}

.pg-blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Breadcrumb: Home | Blog */
.pg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #556158;
  margin-bottom: 26px;
}

.pg-breadcrumb a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

.pg-breadcrumb a:hover {
  text-decoration: underline;
}

.pg-breadcrumb .pg-sep {
  color: #9aa59d;
}

.pg-breadcrumb .pg-current {
  color: #1f2e24;
  font-weight: 600;
}

/* 3-Column Blog Card Grid */
.pg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.pg-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pg-blog-card:hover {
  transform: translateY(-4px);
}

.pg-blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f6f2;
  margin-bottom: 14px;
}

.pg-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pg-blog-card:hover .pg-blog-card-thumb img {
  transform: scale(1.03);
}

.pg-blog-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #5f6c62;
  margin-bottom: 10px;
}

.pg-blog-date svg {
  width: 15px;
  height: 15px;
  stroke: #2e7d32;
  flex-shrink: 0;
}

body .pg-blog-section .pg-blog-card-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.38;
  font-weight: 700;
  color: #1c2b21 !important;
  transition: color 0.2s ease;
}

body .pg-blog-section .pg-blog-card:hover .pg-blog-card-title {
  color: #2e7d32 !important;
}

body .pg-blog-section .pg-blog-card-excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: #5a665e !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Detail 2-Column Layout */
.pg-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.pg-detail-cover {
  width: 100%;
  max-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f6f2;
  margin-bottom: 14px;
}

.pg-detail-cover img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.pg-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #5a665e;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e6ede6;
}

.pg-detail-meta strong {
  color: #1c2b21;
}

body .pg-blog-section .pg-detail-title {
  margin: 0 0 18px;
  font-size: 30px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  color: #1b4332 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .pg-blog-section .pg-detail-body {
  font-size: 16px;
  line-height: 1.75;
  color: #2f3b33 !important;
}

body .pg-blog-section .pg-detail-body h2,
body .pg-blog-section .pg-detail-body h3 {
  color: #1b4332 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 26px 0 10px;
  line-height: 1.35;
}

body .pg-blog-section .pg-detail-body p,
body .pg-blog-section .pg-detail-body li {
  color: #2f3b33 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

body .pg-blog-section .pg-detail-body p {
  margin: 0 0 16px;
}

body .pg-blog-section .pg-detail-body ul {
  margin: 0 0 18px 20px;
  padding: 0;
}

body .pg-blog-section .pg-detail-body li {
  margin-bottom: 8px;
}

body .pg-blog-section .pg-detail-body a,
body .pg-blog-section .pg-detail-body a:visited {
  color: #2e7d32 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .pg-blog-section .pg-detail-body a:hover {
  color: #1b4332 !important;
}

body .pg-blog-section .pg-detail-body mark {
  background: #fff3b0;
  color: #1b4332;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

body .pg-blog-section .pg-detail-body strong {
  color: #1b4332;
  font-weight: 700;
}

.pg-detail-cta {
  margin-top: 30px;
  padding: 22px 24px;
  background: #f3f9f3;
  border-left: 4px solid #2e7d32;
  border-radius: 8px;
}

.pg-detail-cta h4 {
  margin: 0 0 6px;
  color: #1b4332;
  font-size: 18px;
}

.pg-detail-cta p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #46574c;
}

.pg-detail-cta a {
  display: inline-block;
  background: #2e7d32;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Right Sidebar: Latest Blogs */
.pg-sidebar {
  position: sticky;
  top: 24px;
}

body .pg-blog-section .pg-sidebar-heading {
  margin: 0 0 16px 0 !important;
  padding: 0 0 12px 0 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #1b4332 !important;
  white-space: nowrap !important;
  border-bottom: 2px solid #2e7d32 !important;
  letter-spacing: normal !important;
}

.pg-sidebar-list {
  display: flex;
  flex-direction: column;
}

body .pg-blog-section .pg-sidebar-item {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #eef3ee !important;
  text-decoration: none !important;
  color: inherit !important;
}

body .pg-blog-section .pg-sidebar-item:last-child {
  border-bottom: none !important;
}

body .pg-blog-section .pg-sidebar-thumb {
  width: 100px !important;
  height: 68px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f2f6f2 !important;
  margin: 0 !important;
}

body .pg-blog-section .pg-sidebar-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.25s ease;
}

body .pg-blog-section .pg-sidebar-item:hover .pg-sidebar-thumb img {
  transform: scale(1.05);
}

body .pg-blog-section .pg-sidebar-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #1c2b21 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.2s ease !important;
}

body .pg-blog-section .pg-sidebar-item:hover .pg-sidebar-title,
body .pg-blog-section .pg-sidebar-item.is-active .pg-sidebar-title {
  color: #2e7d32 !important;
}

@media (max-width: 991px) {
  .pg-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .pg-detail-layout {
    grid-template-columns: 1fr;
  }
  .pg-sidebar {
    position: static;
  }
}

@media (max-width: 639px) {
  .pg-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pg-detail-title {
    font-size: 24px;
  }
}
