/* ==========================================================================
   eShetkari.com - Master CSS Stylesheet (HBR.org Exact Theme & Design)
   Categories: ईशेतकरी विशेष | आजचे बाजार भाव | MPSC | UPSC
   ========================================================================== */

:root {
  --primary-green: #0B7A3D;
  --dark-green: #075A2D;
  --accent-orange: #F6A623;
  --bg-white: #ffffff;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --font-marathi: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-english: 'Inter', sans-serif;
  --transition: all 0.25s ease-in-out;
}

/* Global Reset & Base Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-marathi);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-marathi);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--dark-green);
  text-decoration: none;
}

/* Top Bar Section */
.top-bar {
  background-color: var(--dark-green);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 3px solid var(--accent-orange);
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: var(--accent-orange);
}

.top-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

/* Header & Logo */
.main-header {
  background: var(--bg-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.site-logo-img {
  height: 65px;
  width: 275px;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition);
}

.site-logo-img:hover {
  transform: scale(1.02);
}

/* Search Bar */
.header-search-box .form-control {
  border-radius: 25px 0 0 25px;
  border: 2px solid var(--primary-green);
  padding-left: 18px;
}

.header-search-box .btn {
  border-radius: 0 25px 25px 0;
  background-color: var(--primary-green);
  border: 2px solid var(--primary-green);
  color: #fff;
  padding: 0 20px;
}

/* Navigation Bar */
.navbar-agri {
  background-color: var(--primary-green) !important;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar-agri.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar-agri .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 18px !important;
  white-space: nowrap;
  transition: var(--transition);
}

.navbar-agri .nav-link:hover, 
.navbar-agri .nav-item.active .nav-link {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--accent-orange) !important;
}

/* Ticker Banner */
.ticker-container {
  display: flex;
  align-items: center;
  background: #f8faf9;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  height: 42px;
}

.ticker-label {
  background: var(--accent-orange);
  color: #000000;
  font-weight: 800;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.85rem;
  z-index: 2;
}

.ticker-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  height: 100%;
}

.ticker-container:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.ticker-item i {
  color: var(--primary-green);
  margin-right: 8px;
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   HBR.org Editorial Layout Specific Classes
   ========================================================================== */

.hbr-category-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.5px;
}

.hbr-hero-lead-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hbr-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.hbr-hero-title a {
  color: var(--text-dark);
}

.hbr-hero-title a:hover {
  color: var(--primary-green);
}

.hbr-hero-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hbr-author-line {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}

.hbr-middle-card {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.hbr-middle-card:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.hbr-middle-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

.hbr-middle-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hbr-middle-title a {
  color: var(--text-dark);
}

.hbr-middle-title a:hover {
  color: var(--primary-green);
}

.hbr-latest-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--text-dark);
}

.hbr-latest-item {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.hbr-latest-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hbr-latest-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.hbr-latest-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hbr-latest-title a {
  color: var(--text-dark);
}

.hbr-latest-title a:hover {
  color: var(--primary-green);
}

@media (min-width: 992px) {
  .hbr-col-divider {
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
  }
  .hbr-col-padding-left {
    padding-left: 30px;
  }
}

.hbr-dots-header {
  text-align: center;
  margin-bottom: 24px;
}

.hbr-dots {
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
}

.hbr-dots-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Empty State Design for Categories with No Posts Yet */
.hbr-empty-state {
  background: #f9fafb;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

/* Footer Section */
.footer-agri {
  background: #04351a;
  color: #cbd5e1;
  padding-top: 60px;
  font-size: 0.92rem;
  border-top: 5px solid var(--accent-orange);
}

.footer-agri h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-agri h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.copyright-bar {
  background: #022010;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

/* ==========================================================================
   eShetkari.com Master Blog Layout Design System (17-Point Spec)
   ========================================================================== */

/* 1. Breadcrumb */
.es-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.es-breadcrumb a {
  color: var(--primary-green);
  font-weight: 600;
}
.es-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--dark-green);
}
.es-breadcrumb-sep {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* 2. Category Badge */
.es-category-badge {
  display: inline-block;
  background-color: var(--primary-green);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* 3. Large Article Title */
.es-article-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* 4. Article Introduction (Exactly 3 sentences) */
.es-article-intro {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #374151;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent-orange);
  background: #fffdf9;
  border-radius: 0 8px 8px 0;
}

/* 5. Featured Image & 6. Caption */
.es-featured-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
  background-color: #e5e7eb;
}
.es-featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.es-image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  text-align: center;
}

/* 7. Article Information */
.es-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #f8faf9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 28px;
}
.es-article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.es-article-meta-item i {
  color: var(--primary-green);
}

/* 8. Social Sharing */
.es-social-share-desktop {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.es-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.es-social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.es-social-whatsapp { background-color: #25D366; }
.es-social-facebook { background-color: #1877F2; }
.es-social-x { background-color: #000000; }
.es-social-telegram { background-color: #0088cc; }
.es-social-copy { background-color: var(--dark-green); }

.es-social-share-inline {
  display: none;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* 9. Article Content & 10. Highlight Box & 11. Related Images */
.es-article-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.es-article-content p {
  margin-bottom: 1.4rem;
}
.es-article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark-green);
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
}
.es-article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}
.es-highlight-box {
  background: #f0fdf4;
  border-left: 4px solid var(--primary-green);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 26px 0;
  border-top: 1px solid #dcfce7;
  border-right: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}
.es-highlight-box-title {
  font-weight: 800;
  color: var(--dark-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.es-quote-box {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--accent-orange);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: #1f2937;
}
.es-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.es-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}
.es-table th {
  background-color: var(--primary-green);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}
.es-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}
.es-table tbody tr:nth-of-type(even) {
  background-color: #f9fafb;
}

.es-content-image-wrapper {
  margin: 28px 0;
}
.es-content-image-wrapper img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* 13. Clickable Tags */
.es-tags-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.es-tag-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.es-tag-pill:hover {
  background: var(--primary-green);
  color: #ffffff !important;
  border-color: var(--primary-green);
}

/* 14. Previous & Next Articles */
.es-prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}
.es-prev-next-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  height: 100%;
}
.es-prev-next-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(11, 122, 61, 0.12);
  transform: translateY(-2px);
}
.es-prev-next-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.es-prev-next-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

/* 12. Read More Section ("Read the Latest") & Cards */
.es-read-more-header {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 10px;
}
.es-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.es-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}
.es-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.es-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.es-card:hover .es-card-img-wrapper img {
  transform: scale(1.05);
}
.es-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.es-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-top: 8px;
  margin-bottom: 8px;
}
.es-card-title a {
  color: var(--text-dark);
}
.es-card-title a:hover {
  color: var(--primary-green);
}
.es-card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.es-card-footer-meta {
  font-size: 0.775rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: auto;
  font-weight: 600;
}

/* 15. Comments Section */
.es-comments-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
}
.es-comment-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #f3f4f6;
}
.es-comment-author {
  font-weight: 700;
  color: var(--dark-green);
  font-size: 0.95rem;
}
.es-comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.es-comment-text {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.925rem;
  color: var(--text-dark);
}

/* 16. Newsletter Box */
.es-newsletter-box {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(11, 122, 61, 0.2);
}
.es-newsletter-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}
.es-newsletter-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

