/*
Theme Name: Kisaan Dost
Theme URI: https://kisandost.pk
Author: Kisaan Dost Team
Author URI: https://kisandost.pk
Description: جدید زراعت، خوشحال کسان - Pakistan's #1 Agriculture WordPress Theme with full RTL/Urdu support, WooCommerce, Elementor, Redux Options, and One-Click Demo Import. Perfect for agricultural websites, farming blogs, and rural business platforms.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kisaan-dost
Tags: agriculture, rtl-language, urdu, woocommerce, elementor, responsive, one-click-demo, redux, green, farming, blog
*/

/* ============================================================
   KISAAN DOST THEME - Main Stylesheet
   Version: 1.0.0 | RTL + LTR Supported
============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --kd-primary:       #1a6b2f;
  --kd-primary-dark:  #0f4520;
  --kd-primary-light: #2d9147;
  --kd-secondary:     #f5a623;
  --kd-accent:        #4caf50;
  --kd-white:         #ffffff;
  --kd-light:         #f8faf8;
  --kd-light-2:       #eef5ee;
  --kd-gray:          #6c757d;
  --kd-gray-light:    #e9ecef;
  --kd-dark:          #1a1a1a;
  --kd-text:          #333333;
  --kd-text-muted:    #666666;
  --kd-footer-bg:     #0d3d1a;
  --kd-footer-dark:   #091f0d;
  --kd-border:        #d4e8d4;
  --kd-shadow:        0 4px 20px rgba(26,107,47,0.1);
  --kd-shadow-lg:     0 8px 40px rgba(26,107,47,0.15);
  --kd-radius:        8px;
  --kd-radius-lg:     16px;
  --kd-radius-xl:     24px;
  --kd-font-primary:  'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --kd-font-latin:    'Inter', 'Segoe UI', sans-serif;
  --kd-transition:    all 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--kd-font-primary);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--kd-text);
  background-color: var(--kd-white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

body.ltr {
  direction: ltr;
  text-align: left;
  font-family: var(--kd-font-latin);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kd-primary); text-decoration: none; transition: var(--kd-transition); }
a:hover { color: var(--kd-primary-light); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--kd-font-primary);
  font-weight: 700;
  line-height: 1.4;
  color: var(--kd-dark);
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; line-height: 1.9; }

.text-primary { color: var(--kd-primary) !important; }
.text-secondary { color: var(--kd-secondary) !important; }
.text-muted { color: var(--kd-text-muted) !important; }
.text-white { color: var(--kd-white) !important; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.container-fluid { width: 100%; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
[class*="col-"] { padding: 0 15px; }

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }

@media (max-width: 992px) {
  .col-md-12 { width: 100%; }
  .col-md-6 { width: 50%; }
}
@media (max-width: 768px) {
  .col-sm-12 { width: 100%; }
  .col-sm-6 { width: 50%; }
}
@media (max-width: 576px) {
  .col-xs-12 { width: 100%; }
}

/* ---------- SECTION SPACING ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { position: relative; display: inline-block; margin-bottom: 15px; }
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--kd-primary), var(--kd-accent));
  border-radius: 2px;
}
.section-header p { color: var(--kd-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--kd-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--kd-transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--kd-primary);
  color: var(--kd-white);
  border-color: var(--kd-primary);
}
.btn-primary:hover {
  background: var(--kd-primary-dark);
  border-color: var(--kd-primary-dark);
  color: var(--kd-white);
  transform: translateY(-2px);
  box-shadow: var(--kd-shadow);
}
.btn-outline {
  background: transparent;
  color: var(--kd-primary);
  border-color: var(--kd-primary);
}
.btn-outline:hover {
  background: var(--kd-primary);
  color: var(--kd-white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--kd-white);
  color: var(--kd-primary);
  border-color: var(--kd-white);
}
.btn-white:hover {
  background: var(--kd-primary);
  color: var(--kd-white);
  border-color: var(--kd-primary);
}
.btn-secondary {
  background: var(--kd-secondary);
  color: var(--kd-white);
  border-color: var(--kd-secondary);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: var(--kd-radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ---------- TOP BAR ---------- */
.kd-topbar {
  background: var(--kd-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  font-size: 0.875rem;
}
.kd-topbar a { color: rgba(255,255,255,0.85); }
.kd-topbar a:hover { color: var(--kd-white); }
.kd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.kd-topbar-left,
.kd-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.kd-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kd-topbar-item i { font-size: 0.8rem; }
.kd-topbar-social { display: flex; gap: 12px; }
.kd-topbar-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  transition: var(--kd-transition);
}
.kd-topbar-social a:hover { background: var(--kd-secondary); color: var(--kd-white); }

/* ---------- HEADER ---------- */
.kd-header {
  background: var(--kd-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
}
.kd-header.sticky {
  position: sticky;
  top: 0;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.kd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}
.kd-logo { display: flex; align-items: center; gap: 12px; }
.kd-logo img { height: 60px; width: auto; }
.kd-logo-text { display: flex; flex-direction: column; }
.kd-logo-text .site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kd-primary);
  line-height: 1.2;
}
.kd-logo-text .site-tagline {
  font-size: 0.8rem;
  color: var(--kd-text-muted);
  line-height: 1;
}

/* ---------- NAVIGATION ---------- */
.kd-nav { display: flex; align-items: center; }
.kd-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
}
.kd-nav ul li { position: relative; }
.kd-nav ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--kd-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--kd-radius);
  transition: var(--kd-transition);
}
.kd-nav ul li a:hover,
.kd-nav ul li.current-menu-item > a,
.kd-nav ul li.current-menu-parent > a {
  color: var(--kd-primary);
  background: var(--kd-light-2);
}
.kd-nav ul li a .menu-arrow {
  font-size: 0.7rem;
  margin-right: 4px;
  transition: var(--kd-transition);
}
.kd-nav ul li:hover > a .menu-arrow { transform: rotate(-180deg); }

/* Dropdown */
.kd-nav ul li .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--kd-white);
  border-radius: var(--kd-radius-lg);
  box-shadow: var(--kd-shadow-lg);
  border-top: 3px solid var(--kd-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--kd-transition);
  z-index: 999;
}
.kd-nav ul li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kd-nav ul li .sub-menu li a {
  padding: 10px 18px;
  border-radius: 0;
  color: var(--kd-text);
  font-weight: 400;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--kd-gray-light);
}
.kd-nav ul li .sub-menu li:last-child a { border-bottom: none; }
.kd-nav ul li .sub-menu li a:hover { color: var(--kd-primary); background: var(--kd-light); padding-right: 24px; }

.kd-header-cta { display: flex; align-items: center; gap: 12px; }
.kd-header-whatsapp {
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: white;
  padding: 10px 20px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: var(--kd-transition);
}
.kd-header-whatsapp:hover { background: #128c7e; color: white; transform: translateY(-2px); }

/* Mobile Menu Toggle */
.kd-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--kd-radius);
  background: var(--kd-light-2);
  color: var(--kd-primary);
  font-size: 1.2rem;
  cursor: pointer;
}
.kd-mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: 300px; height: 100vh;
  background: var(--kd-white);
  box-shadow: var(--kd-shadow-lg);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.4s ease;
  padding: 20px;
}
.kd-mobile-menu.active { right: 0; }
.kd-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.kd-mobile-overlay.active { display: block; }
.kd-mobile-menu .mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 15px;
  border-bottom: 2px solid var(--kd-light-2);
}
.kd-mobile-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--kd-light-2);
  color: var(--kd-dark); font-size: 1.1rem; cursor: pointer;
}

/* ---------- HERO SECTION ---------- */
.kd-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--kd-primary-dark) 0%, var(--kd-primary) 100%);
}
.kd-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.kd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,50,20,0.85) 40%, rgba(10,50,20,0.3) 100%);
}
.kd-hero-content {
  position: relative; z-index: 2;
  padding: 80px 0;
  max-width: 650px;
}
.kd-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--kd-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.kd-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--kd-white);
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.kd-hero h1 span { color: var(--kd-secondary); }
.kd-hero .hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 35px;
  line-height: 1.9;
}
.kd-hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }

/* Floating Leaves */
.kd-leaf {
  position: absolute;
  pointer-events: none;
  animation: floatLeaf 6s ease-in-out infinite;
  opacity: 0.7;
}
.kd-leaf-1 { top: 10%; right: 15%; width: 40px; animation-delay: 0s; }
.kd-leaf-2 { top: 60%; right: 25%; width: 30px; animation-delay: 1.5s; }
.kd-leaf-3 { bottom: 15%; right: 10%; width: 50px; animation-delay: 3s; }
@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

/* ---------- FEATURES BAR ---------- */
.kd-features-bar {
  background: var(--kd-white);
  box-shadow: var(--kd-shadow-lg);
  border-radius: var(--kd-radius-xl);
  margin-top: -40px;
  position: relative; z-index: 10;
  padding: 30px 40px;
}
.kd-features-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.kd-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 15px;
  border-radius: var(--kd-radius-lg);
  transition: var(--kd-transition);
  cursor: pointer;
}
.kd-feature-item:hover {
  background: var(--kd-light-2);
  transform: translateY(-4px);
}
.kd-feature-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--kd-light-2);
  color: var(--kd-primary);
  font-size: 1.5rem;
  transition: var(--kd-transition);
}
.kd-feature-item:hover .kd-feature-icon {
  background: var(--kd-primary);
  color: var(--kd-white);
}
.kd-feature-title { font-weight: 700; font-size: 0.95rem; color: var(--kd-dark); }
.kd-feature-desc { font-size: 0.8rem; color: var(--kd-text-muted); line-height: 1.4; }

/* ---------- CROPS SECTION ---------- */
.kd-crops { background: var(--kd-light); }
.kd-crops-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.kd-crop-card {
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
  background: var(--kd-white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: var(--kd-transition);
  position: relative;
}
.kd-crop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kd-shadow-lg);
}
.kd-crop-image {
  height: 160px;
  overflow: hidden;
}
.kd-crop-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kd-crop-card:hover .kd-crop-image img { transform: scale(1.1); }
.kd-crop-content {
  padding: 16px;
  text-align: center;
}
.kd-crop-content h4 { font-size: 1rem; margin-bottom: 8px; color: var(--kd-dark); }
.kd-crop-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.85rem; color: var(--kd-primary);
  font-weight: 600;
}
.kd-crop-link:hover { gap: 10px; }

/* ---------- BANNER / CTA MIDDLE ---------- */
.kd-banner-section {
  background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.kd-banner-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.kd-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative; z-index: 1;
}
.kd-banner-content h2 { color: var(--kd-white); font-size: 1.8rem; }
.kd-banner-content p { color: rgba(255,255,255,0.85); margin-bottom: 25px; }
.kd-banner-video {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--kd-transition);
  border: 3px solid rgba(255,255,255,0.4);
}
.kd-banner-video:hover { background: var(--kd-white); transform: scale(1.1); }
.kd-banner-video i { color: var(--kd-white); font-size: 1.5rem; margin-right: -4px; }
.kd-banner-video:hover i { color: var(--kd-primary); }
.kd-banner-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kd-stat-item { text-align: center; padding: 20px; background: rgba(255,255,255,0.08); border-radius: var(--kd-radius-lg); }
.kd-stat-number { font-size: 2rem; font-weight: 700; color: var(--kd-secondary); display: block; }
.kd-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

/* ---------- STATS STRIP ---------- */
.kd-stats-strip {
  background: var(--kd-primary-dark);
  padding: 50px 0;
}
.kd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.kd-stats-item { color: var(--kd-white); }
.kd-stats-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
  color: var(--kd-secondary);
}
.kd-stats-number {
  font-size: 2.5rem; font-weight: 700;
  color: var(--kd-secondary);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.kd-stats-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ---------- BLOG SECTION ---------- */
.kd-blog { background: var(--kd-white); }
.kd-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.kd-post-card {
  background: var(--kd-white);
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--kd-border);
  transition: var(--kd-transition);
}
.kd-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kd-shadow-lg);
  border-color: var(--kd-primary-light);
}
.kd-post-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.kd-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kd-post-card:hover .kd-post-thumb img { transform: scale(1.05); }
.kd-post-cat {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--kd-primary);
  color: var(--kd-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.kd-post-body { padding: 20px; }
.kd-post-meta {
  display: flex; gap: 12px;
  font-size: 0.8rem; color: var(--kd-text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.kd-post-meta span { display: flex; align-items: center; gap: 4px; }
.kd-post-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.kd-post-title a { color: var(--kd-dark); }
.kd-post-title a:hover { color: var(--kd-primary); }
.kd-post-excerpt { font-size: 0.875rem; color: var(--kd-text-muted); margin-bottom: 15px; line-height: 1.7; }
.kd-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--kd-primary); font-weight: 600; font-size: 0.875rem;
}
.kd-read-more:hover { gap: 10px; color: var(--kd-primary-dark); }

/* ---------- ARCHIVE / BLOG LIST PAGE ---------- */
.kd-page-banner {
  background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: center;
}
.kd-page-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.kd-page-banner-leaf {
  position: absolute;
  opacity: 0.15;
  animation: floatLeaf 8s ease-in-out infinite;
}
.kd-page-banner-content { position: relative; z-index: 2; }
.kd-page-banner-content h1 { color: var(--kd-white); margin-bottom: 10px; }
.kd-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem;
}
.kd-breadcrumb a { color: rgba(255,255,255,0.8); }
.kd-breadcrumb a:hover { color: var(--kd-white); }
.kd-breadcrumb i { font-size: 0.7rem; }

.kd-main-area { padding: 60px 0; }
.kd-main-content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.kd-main-content-area.no-sidebar { grid-template-columns: 1fr; }
.kd-main-content-area.sidebar-left { direction: ltr; }
.kd-main-content-area.sidebar-left > *:first-child { order: 2; }
.kd-main-content-area.sidebar-left > *:last-child { order: 1; }

/* Archive Grid */
.kd-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.kd-archive-list .kd-post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.kd-archive-list .kd-post-thumb { height: 100%; min-height: 200px; }

/* Filter Bar */
.kd-archive-filter {
  background: var(--kd-white);
  border-radius: var(--kd-radius-lg);
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 15px;
}
.kd-filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.kd-filter-tab {
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--kd-light);
  color: var(--kd-text-muted);
  cursor: pointer;
  transition: var(--kd-transition);
  border: 2px solid transparent;
}
.kd-filter-tab.active,
.kd-filter-tab:hover { background: var(--kd-primary); color: var(--kd-white); }
.kd-view-toggle { display: flex; gap: 8px; }
.kd-view-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--kd-radius);
  background: var(--kd-light);
  color: var(--kd-text-muted);
  cursor: pointer; transition: var(--kd-transition);
}
.kd-view-btn.active, .kd-view-btn:hover { background: var(--kd-primary); color: var(--kd-white); }

/* ---------- SINGLE POST ---------- */
.kd-single-post .kd-post-header { margin-bottom: 30px; }
.kd-single-post .kd-post-featured-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--kd-radius-xl);
  margin-bottom: 35px;
}
.kd-single-post .entry-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 15px; }
.kd-post-meta-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 15px 20px;
  background: var(--kd-light-2);
  border-radius: var(--kd-radius-lg);
  margin-bottom: 30px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--kd-text-muted);
}
.kd-post-meta-bar span { display: flex; align-items: center; gap: 6px; }
.kd-post-meta-bar a { color: var(--kd-primary); font-weight: 600; }
.kd-post-content { font-size: 1.05rem; line-height: 2; }
.kd-post-content h2, .kd-post-content h3 { margin-top: 35px; margin-bottom: 15px; color: var(--kd-primary); }
.kd-post-content h2::before { content: '🌿 '; }
.kd-post-content h3::before { content: '🌱 '; }
.kd-post-content p { margin-bottom: 20px; }
.kd-post-content ul { margin: 15px 0 20px 0; }
.kd-post-content ul li {
  padding: 6px 0 6px 25px;
  position: relative;
  color: var(--kd-text);
}
.kd-post-content ul li::before {
  content: '▶';
  position: absolute; right: 0;
  color: var(--kd-primary); font-size: 0.6rem; top: 12px;
}

/* Tip Box */
.kd-tip-box {
  background: var(--kd-light-2);
  border-right: 4px solid var(--kd-primary);
  border-radius: var(--kd-radius-lg);
  padding: 20px 25px;
  margin: 25px 0;
  display: flex; gap: 15px;
}
.kd-tip-box .tip-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--kd-primary);
  color: var(--kd-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.kd-tip-box .tip-label { font-weight: 700; color: var(--kd-primary); margin-bottom: 4px; }

/* Post Tags & Share */
.kd-post-footer { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--kd-light-2); }
.kd-post-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.kd-tag {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--kd-border);
  color: var(--kd-text-muted); font-size: 0.8rem;
  transition: var(--kd-transition);
}
.kd-tag:hover { background: var(--kd-primary); color: var(--kd-white); border-color: var(--kd-primary); }
.kd-social-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kd-share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem;
  transition: var(--kd-transition);
}
.kd-share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: white; }
.kd-share-whatsapp { background: #25d366; }
.kd-share-twitter { background: #1da1f2; }
.kd-share-linkedin { background: #0077b5; }
.kd-share-facebook { background: #1877f2; }

/* Post Nav */
.kd-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.kd-post-nav-item {
  padding: 20px;
  background: var(--kd-light);
  border-radius: var(--kd-radius-lg);
  border: 1.5px solid var(--kd-border);
  transition: var(--kd-transition);
}
.kd-post-nav-item:hover { border-color: var(--kd-primary); background: var(--kd-light-2); }
.kd-post-nav-label { font-size: 0.75rem; color: var(--kd-text-muted); margin-bottom: 5px; display: block; }
.kd-post-nav-title { font-weight: 700; color: var(--kd-dark); font-size: 0.95rem; line-height: 1.4; }

/* ---------- SIDEBAR ---------- */
.kd-sidebar { position: sticky; top: 100px; }
.kd-widget {
  background: var(--kd-white);
  border-radius: var(--kd-radius-lg);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--kd-border);
}
.kd-widget-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--kd-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kd-light-2);
  position: relative;
}
.kd-widget-title::after {
  content: '';
  position: absolute; bottom: -2px; right: 0;
  width: 40px; height: 2px;
  background: var(--kd-primary);
}

/* Search Widget */
.kd-widget-search .search-form {
  display: flex; gap: 8px;
}
.kd-widget-search input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--kd-border);
  border-radius: var(--kd-radius);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--kd-transition);
}
.kd-widget-search input:focus { border-color: var(--kd-primary); }
.kd-widget-search button {
  width: 44px; height: 44px;
  background: var(--kd-primary);
  color: white;
  border-radius: var(--kd-radius);
  display: flex; align-items: center; justify-content: center;
}

/* Categories Widget */
.kd-cat-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--kd-light-2);
}
.kd-cat-list li:last-child { border-bottom: none; }
.kd-cat-list li a { color: var(--kd-text); font-size: 0.9rem; transition: var(--kd-transition); }
.kd-cat-list li a:hover { color: var(--kd-primary); padding-right: 6px; }
.kd-cat-count {
  background: var(--kd-light-2);
  color: var(--kd-text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Recent Posts Widget */
.kd-recent-post {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--kd-light-2);
}
.kd-recent-post:last-child { border-bottom: none; }
.kd-recent-post-img {
  width: 70px; height: 70px; flex-shrink: 0;
  border-radius: var(--kd-radius);
  overflow: hidden;
}
.kd-recent-post-img img { width: 100%; height: 100%; object-fit: cover; }
.kd-recent-post-info { flex: 1; }
.kd-recent-post-title { font-size: 0.875rem; font-weight: 600; line-height: 1.4; margin-bottom: 5px; }
.kd-recent-post-title a { color: var(--kd-dark); }
.kd-recent-post-title a:hover { color: var(--kd-primary); }
.kd-recent-post-date { font-size: 0.75rem; color: var(--kd-text-muted); }

/* Tags Widget */
.kd-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kd-widget-tag {
  padding: 6px 14px;
  border: 1.5px solid var(--kd-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--kd-text-muted);
  transition: var(--kd-transition);
}
.kd-widget-tag:hover { background: var(--kd-primary); color: white; border-color: var(--kd-primary); }

/* CTA Widget */
.kd-cta-widget {
  background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-primary-dark) 100%);
  color: white; text-align: center; border: none;
}
.kd-cta-widget .kd-widget-title { color: white; border-color: rgba(255,255,255,0.2); }
.kd-cta-widget .kd-widget-title::after { background: var(--kd-secondary); }
.kd-cta-widget p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 20px; }
.kd-cta-widget img { border-radius: var(--kd-radius-lg); margin: 0 auto 15px; width: 100%; height: 150px; object-fit: cover; }

/* Weather Widget */
.kd-weather-widget .weather-main {
  display: flex; align-items: center; gap: 15px;
  padding: 15px;
  background: var(--kd-light-2);
  border-radius: var(--kd-radius-lg);
  margin-bottom: 15px;
}
.kd-weather-temp { font-size: 2.5rem; font-weight: 700; color: var(--kd-primary); }
.kd-weather-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kd-weather-detail { font-size: 0.8rem; color: var(--kd-text-muted); }

/* ---------- SEARCH PAGE ---------- */
.kd-search-page-header { margin-bottom: 30px; }
.kd-search-page-header h2 { font-size: 1.5rem; }
.kd-search-page-header span { color: var(--kd-primary); }
.kd-search-form-large {
  display: flex; gap: 0;
  margin-bottom: 30px;
  box-shadow: var(--kd-shadow);
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
}
.kd-search-form-large input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--kd-border);
  border-left: none;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
}
.kd-search-form-large button {
  padding: 16px 30px;
  background: var(--kd-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0;
  display: flex; align-items: center; gap: 8px;
  transition: var(--kd-transition);
}
.kd-search-form-large button:hover { background: var(--kd-primary-dark); }

/* ---------- 404 PAGE ---------- */
.kd-404-page {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.kd-404-inner { max-width: 600px; margin: 0 auto; }
.kd-404-number {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--kd-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--kd-primary) 0%, var(--kd-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
}
.kd-404-image { margin: 0 auto 30px; max-width: 500px; border-radius: var(--kd-radius-xl); }
.kd-404-inner h2 { font-size: 1.8rem; margin-bottom: 15px; color: var(--kd-dark); }
.kd-404-inner p { color: var(--kd-text-muted); margin-bottom: 30px; font-size: 1.05rem; }
.kd-404-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Popular Topics (404/Bottom) */
.kd-popular-topics { margin-top: 40px; }
.kd-popular-topics h3 { font-size: 1.1rem; margin-bottom: 15px; }
.kd-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.kd-topic-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 20px 15px;
  background: var(--kd-light);
  border-radius: var(--kd-radius-lg);
  border: 1.5px solid var(--kd-border);
  transition: var(--kd-transition);
  cursor: pointer;
}
.kd-topic-card:hover { border-color: var(--kd-primary); background: var(--kd-light-2); transform: translateY(-3px); }
.kd-topic-icon {
  width: 50px; height: 50px;
  background: var(--kd-light-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--kd-primary);
}
.kd-topic-name { font-size: 0.875rem; font-weight: 600; color: var(--kd-dark); text-align: center; }

/* ---------- PAGINATION ---------- */
.kd-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 50px; flex-wrap: wrap;
}
.kd-page-link {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--kd-radius);
  border: 1.5px solid var(--kd-border);
  color: var(--kd-text-muted);
  font-weight: 600; font-size: 0.9rem;
  transition: var(--kd-transition);
}
.kd-page-link:hover,
.kd-page-link.active {
  background: var(--kd-primary);
  border-color: var(--kd-primary);
  color: var(--kd-white);
}
.kd-page-link.prev, .kd-page-link.next { width: auto; padding: 0 18px; }

/* ---------- NEWSLETTER ---------- */
.kd-newsletter {
  background: linear-gradient(135deg, var(--kd-primary-dark) 0%, var(--kd-primary) 100%);
  padding: 70px 0;
  text-align: center;
}
.kd-newsletter-inner { max-width: 600px; margin: 0 auto; }
.kd-newsletter h2 { color: var(--kd-white); margin-bottom: 10px; }
.kd-newsletter p { color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.kd-newsletter-form {
  display: flex; gap: 0;
  border-radius: var(--kd-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  max-width: 500px; margin: 0 auto;
}
.kd-newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: none; outline: none;
  font-family: inherit; font-size: 0.95rem;
  border-radius: 0;
}
.kd-newsletter-form button {
  padding: 16px 28px;
  background: var(--kd-secondary);
  color: white;
  font-weight: 700;
  font-family: inherit; font-size: 0.95rem;
  transition: var(--kd-transition);
  white-space: nowrap;
}
.kd-newsletter-form button:hover { background: #e6950e; }

/* ---------- FOOTER ---------- */
.kd-footer { background: var(--kd-footer-bg); color: rgba(255,255,255,0.8); }
.kd-footer-top { padding: 70px 0 50px; }
.kd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.kd-footer-brand { }
.kd-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.kd-footer-logo img { height: 55px; }
.kd-footer-logo .brand-name { font-size: 1.4rem; font-weight: 700; color: var(--kd-white); }
.kd-footer-logo .brand-tag { font-size: 0.8rem; color: rgba(255,255,255,0.6); display: block; }
.kd-footer-about { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.9; margin-bottom: 25px; }
.kd-footer-social { display: flex; gap: 10px; }
.kd-footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: var(--kd-transition);
}
.kd-footer-social a:hover { background: var(--kd-secondary); border-color: var(--kd-secondary); color: white; }

.kd-footer-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kd-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(255,255,255,0.1);
  position: relative;
}
.kd-footer-widget-title::after {
  content: '';
  position: absolute; bottom: -1.5px; right: 0;
  width: 35px; height: 1.5px;
  background: var(--kd-secondary);
}
.kd-footer-links li { margin-bottom: 10px; }
.kd-footer-links li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: var(--kd-transition);
  display: flex; align-items: center; gap: 6px;
}
.kd-footer-links li a::before { content: '◀'; font-size: 0.5rem; color: var(--kd-secondary); }
.kd-footer-links li a:hover { color: var(--kd-white); padding-right: 6px; }

.kd-footer-contact { }
.kd-contact-item {
  display: flex; gap: 12px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.kd-contact-item .icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--kd-secondary);
  font-size: 0.8rem;
}
.kd-contact-item a { color: rgba(255,255,255,0.7); }
.kd-contact-item a:hover { color: var(--kd-white); }

.kd-footer-bottom {
  background: var(--kd-footer-dark);
  padding: 20px 0;
}
.kd-footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.kd-footer-bottom a { color: rgba(255,255,255,0.6); }
.kd-footer-bottom a:hover { color: var(--kd-white); }
.kd-footer-bottom-links { display: flex; gap: 20px; }

/* ---------- FLOATING BUTTONS ---------- */
.kd-whatsapp-float {
  position: fixed;
  bottom: 80px; left: 25px;
  z-index: 9990;
  animation: pulse 2s ease-in-out infinite;
}
.kd-whatsapp-float a {
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--kd-transition);
}
.kd-whatsapp-float a:hover { background: #128c7e; transform: scale(1.1); color: white; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}
.kd-back-to-top {
  position: fixed; bottom: 25px; left: 25px;
  z-index: 9990;
  width: 46px; height: 46px;
  background: var(--kd-primary);
  color: white; border-radius: var(--kd-radius);
  display: none; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--kd-shadow);
  transition: var(--kd-transition);
}
.kd-back-to-top.visible { display: flex; }
.kd-back-to-top:hover { background: var(--kd-primary-dark); transform: translateY(-3px); color: white; }

/* ---------- PRELOADER ---------- */
.kd-preloader {
  position: fixed; inset: 0;
  background: var(--kd-white);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
}
.kd-preloader-logo img { width: 80px; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kd-preloader.loaded { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

/* ---------- DARK MODE ---------- */
body.dark-mode {
  background: #0f1a0f;
  color: #d4e8d4;
  --kd-white: #1a2a1a;
  --kd-light: #1e2e1e;
  --kd-light-2: #243224;
  --kd-dark: #e8f5e8;
  --kd-text: #c8dcc8;
  --kd-border: #2a3e2a;
}
body.dark-mode .kd-header { background: #162216; border-bottom: 1px solid #2a3e2a; }
body.dark-mode .kd-post-card,
body.dark-mode .kd-widget { background: #1a2a1a; border-color: #2a3e2a; }

/* ---------- WOOCOMMERCE OVERRIDES ---------- */
.woocommerce .button, .woocommerce button.button {
  background: var(--kd-primary) !important;
  color: white !important;
  border-radius: var(--kd-radius) !important;
  font-family: inherit !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  transition: var(--kd-transition) !important;
}
.woocommerce .button:hover { background: var(--kd-primary-dark) !important; }
.woocommerce-product-gallery { border-radius: var(--kd-radius-xl); overflow: hidden; }
.woocommerce ul.products li.product .price { color: var(--kd-primary) !important; font-weight: 700 !important; }
.woocommerce-store-notice { background: var(--kd-primary) !important; }
.woocommerce a.added_to_cart { color: var(--kd-primary) !important; }
.woocommerce span.onsale { background: var(--kd-secondary) !important; border-radius: 50% !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--kd-primary) !important; }
.woocommerce-message::before { color: var(--kd-primary) !important; }

/* ---------- ELEMENTOR COMPAT ---------- */
.elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.elementor-widget-text-editor { font-family: var(--kd-font-primary); line-height: 1.9; }
.elementor-kit-1 { --e-global-color-primary: var(--kd-primary); }

/* ---------- RTL SPECIFIC ---------- */
[dir="rtl"] .kd-nav ul { flex-direction: row-reverse; }
[dir="rtl"] .sub-menu { right: 0; left: auto; }
[dir="rtl"] .kd-post-content ul li::before { right: 0; left: auto; }
[dir="rtl"] .kd-tip-box { border-right: 4px solid var(--kd-primary); border-left: none; }
[dir="rtl"] .kd-footer-links li a::before { content: '◀'; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .kd-features-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .kd-crops-grid { grid-template-columns: repeat(3, 1fr); }
  .kd-blog-grid { grid-template-columns: repeat(3, 1fr); }
  .kd-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .kd-footer-grid > *:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 992px) {
  .kd-menu-toggle { display: flex; }
  .kd-nav, .kd-header-cta { display: none; }
  .kd-main-content-area { grid-template-columns: 1fr; }
  .kd-sidebar { position: static; margin-top: 40px; }
  .kd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .kd-banner-video { margin: 0 auto; }
  .kd-crops-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-footer-grid { grid-template-columns: 1fr 1fr; }
  .kd-archive-list .kd-post-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .kd-hero { min-height: 500px; }
  .kd-hero-content { padding: 50px 0; }
  .kd-features-bar { margin-top: -20px; padding: 20px; }
  .kd-features-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-archive-grid { grid-template-columns: 1fr; }
  .kd-blog-grid { grid-template-columns: 1fr; }
  .kd-post-nav { grid-template-columns: 1fr; }
  .kd-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-footer-grid { grid-template-columns: 1fr; }
  .kd-topbar-left, .kd-topbar-right { font-size: 0.8rem; }
  .kd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 576px) {
  .container { padding: 0 15px; }
  .kd-hero h1 { font-size: 1.8rem; }
  .kd-hero-buttons { flex-direction: column; }
  .kd-hero-buttons .btn { width: 100%; justify-content: center; }
  .kd-crops-grid { grid-template-columns: repeat(2, 1fr); }
  .kd-features-bar-grid { grid-template-columns: 1fr 1fr; }
  .kd-newsletter-form { flex-direction: column; border-radius: var(--kd-radius-lg); }
  .kd-newsletter-form input, .kd-newsletter-form button { border-radius: var(--kd-radius); }
  .kd-404-number { font-size: 6rem; }
}

/* ---------- PRINT ---------- */
@media print {
  .kd-header, .kd-footer, .kd-sidebar, .kd-whatsapp-float, .kd-back-to-top { display: none !important; }
  .kd-main-content-area { grid-template-columns: 1fr !important; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible { outline: 2px solid var(--kd-primary); outline-offset: 2px; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
