/* ==========================================================================
   AGRIM SOLAR — Enterprise B2B Design System & Blog Animations
   Brand Colors: Deep Solar Blue (#0A5898) & Eco Leaf Green (#238030 / #45A446)
   WCAG 2.1 AA / AAA Accessible Contrast
   ========================================================================== */

:root {
  /* Brand Identity Tokens */
  --agrim-blue: #0A5898;
  --agrim-blue-dark: #08477A;
  --agrim-blue-light: #EBF3FA;
  --agrim-blue-glow: rgba(10, 88, 152, 0.18);

  --agrim-green-brand: #45A446;
  --agrim-green: #238030;
  --agrim-green-dark: #1A6525;
  --agrim-green-light: #EAF7EC;

  --agrim-amber: #D97706;
  --agrim-amber-light: #FEF3C7;
  --agrim-sun: #F59E0B;

  --agrim-navy: #10304A;
  --agrim-charcoal: #1E293B;
  --agrim-body: #334155;
  --agrim-muted: #64748B;
  --agrim-border: #E2E8F0;
  --agrim-bg: #F8FAFC;
  --agrim-white: #FFFFFF;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(10, 88, 152, 0.2);

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--agrim-body);
  background-color: var(--agrim-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
}

a {
  color: var(--agrim-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--agrim-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ==========================================================================
   Interactive Scroll Reading Progress Bar
   ========================================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0A5898, #4ADE80, #F59E0B);
  z-index: 3000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

/* ==========================================================================
   Header & Navigation with Dropdown
   ========================================================================== */
.topbar, .top-bar {
  background-color: var(--agrim-navy);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container, .top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left, .topbar-right, .top-bar-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar a, .top-bar a, .top-bar-link {
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover, .top-bar a:hover, .top-bar-link:hover {
  color: #38BDF8;
}

.topbar-badge {
  background-color: rgba(69, 164, 70, 0.25);
  color: #4ADE80;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.site-header, .navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: var(--agrim-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--agrim-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--agrim-navy);
  padding: 8px 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--agrim-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: var(--agrim-blue);
  border-radius: 2px;
}

/* Category Dropdown in Navbar */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--agrim-border);
  padding: 12px;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 1500;
  list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--agrim-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--agrim-border);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--agrim-navy);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--agrim-blue-light);
  color: var(--agrim-blue);
  transform: translateX(4px);
}

.dropdown-link i {
  color: var(--agrim-blue);
  width: 20px;
}

.dropdown-count {
  font-size: 0.75rem;
  color: var(--agrim-muted);
  background: var(--agrim-bg);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Nested Sub-Dropdown Group */
.dropdown-nested-item {
  position: relative;
  width: 100%;
}

.dropdown-parent-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sub-chevron {
  font-size: 0.72rem;
  color: var(--agrim-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Sub-options under main dropdown item */
.dropdown-parent-link {
  font-weight: 700;
  color: var(--agrim-navy);
  background: rgba(10, 88, 152, 0.05);
  border: 1px solid rgba(10, 88, 152, 0.12);
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.dropdown-parent-link {
  cursor: pointer;
}

.dropdown-parent-link:hover {
  background: rgba(10, 88, 152, 0.08);
  color: var(--agrim-blue);
}

.dropdown-nested-item.is-open .dropdown-parent-link {
  background: rgba(10, 88, 152, 0.1);
  border-color: rgba(10, 88, 152, 0.25);
  color: var(--agrim-blue);
}

.dropdown-nested-item.is-open .sub-chevron {
  transform: rotate(180deg);
  color: var(--agrim-blue);
}

.dropdown-nested-item.is-open .dropdown-count {
  background: rgba(10, 88, 152, 0.15);
  color: var(--agrim-blue);
}

/* Sub-options under All Inverters: Collapsed by default, expands ONLY on clicking All Inverters */
.dropdown-sub-options {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(-4px);
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.22s ease, 
              transform 0.22s ease, 
              visibility 0.22s ease, 
              border-color 0.22s ease, 
              margin 0.25s ease;
  pointer-events: none;
}

/* Sub-options appear strictly when clicked (.is-open), NOT on hover */
.dropdown-nested-item.is-open .dropdown-sub-options {
  max-height: 280px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  border-left-color: rgba(10, 88, 152, 0.28);
  margin-top: 5px;
  margin-bottom: 6px;
}

.dropdown-sub-link {
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--agrim-body);
  transition: all 0.2s ease;
}

.dropdown-sub-link:hover {
  background: var(--agrim-light-bg);
  color: var(--agrim-navy);
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rfq-trigger-btn {
  background-color: var(--agrim-blue-light);
  color: var(--agrim-blue);
  border: 1px solid rgba(10, 88, 152, 0.3);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.rfq-trigger-btn:hover {
  background-color: var(--agrim-blue);
  color: var(--agrim-white);
}

.rfq-count {
  background-color: var(--agrim-green);
  color: var(--agrim-white);
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--agrim-navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--agrim-blue);
  color: var(--agrim-white);
}

.btn-primary:hover {
  background-color: var(--agrim-blue-dark);
  color: var(--agrim-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--agrim-blue-glow);
}

/* High-Contrast Accent Sun Amber Button */
.btn-accent {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #B45309 !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55);
}

.btn-accent,
.btn-accent:visited,
.btn-accent:hover,
.btn-accent:active,
.btn-accent * {
  color: #FFFFFF !important;
}

/* Secondary Button */
.btn-secondary {
  background-color: #F1F5F9;
  color: var(--agrim-navy) !important;
  border: 1px solid var(--agrim-border);
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--agrim-navy) !important;
  transform: translateY(-2px);
}

.btn-green {
  background-color: var(--agrim-green);
  color: var(--agrim-white);
}

.btn-green:hover {
  background-color: var(--agrim-green-dark);
  color: var(--agrim-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(35, 128, 48, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--agrim-blue);
  color: var(--agrim-blue);
}

.btn-outline:hover {
  background-color: var(--agrim-blue-light);
  color: var(--agrim-blue-dark);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-blue {
  background-color: var(--agrim-blue-light);
  color: var(--agrim-blue);
}

.badge-green {
  background-color: var(--agrim-green-light);
  color: var(--agrim-green);
}

.badge-amber {
  background-color: var(--agrim-amber-light);
  color: var(--agrim-amber);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes sunGlow {
  0% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.12); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.35; }
}

@keyframes rayRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
/* ==========================================================================
   BLOG HERO SECTION (CINEMATIC CLEAR VIDEO BACKGROUND & ULTRA-VISIBLE TEXT)
   ========================================================================== */
.blog-hero {
  position: relative;
  background: #062A4D;
  color: var(--agrim-white);
  padding: 60px 0 70px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 540px;
  display: flex;
  align-items: center;
}

.blog-hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.blog-hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.25) contrast(1.1) brightness(0.95);
}

.blog-hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 38, 70, 0.35) 0%, rgba(6, 30, 56, 0.60) 65%, rgba(4, 18, 34, 0.78) 100%);
  box-shadow: inset 0 -40px 60px rgba(6, 42, 77, 0.7);
}

.blog-hero-sun {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(10, 88, 152, 0) 70%);
  animation: sunGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.blog-hero-rays {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  animation: rayRotate 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-glass-card {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: rgba(6, 30, 58, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 42px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #4ADE80;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.blog-hero-title {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.blog-hero-title span {
  color: #38BDF8;
  font-weight: 800;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.6), 0 2px 8px rgba(0, 0, 0, 0.9);
  display: inline;
}

.blog-hero-desc {
  font-size: 1.1rem;
  color: #FFFFFF;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

/* Reviews Trust Bar */
.hero-reviews-bar {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(10, 88, 152, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  padding: 12px 22px;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.reviews-stars-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  padding-right: 16px;
  flex-shrink: 0;
}

.reviews-stars {
  color: #F59E0B;
  font-size: 0.92rem;
  display: flex;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.reviews-score {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.reviews-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.4;
}

.reviews-meta strong {
  color: #4ADE80;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.reviews-meta span {
  color: #E2E8F0;
  font-style: italic;
}

/* Channels Bar */
.hero-channels-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  margin-top: 6px;
}

.channels-label {
  color: #CBD5E1;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-channel-link {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-channel-link:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFFFFF;
  transform: translateY(-1px);
  color: #FFFFFF;
}

.hero-channel-link.yt i {
  color: #FF4D4D;
  font-size: 1.15rem;
}

.hero-channel-link.ig i {
  color: #FF6FA2;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .hero-glass-card {
    padding: 30px 20px;
    border-radius: 18px;
  }
  .blog-hero-title {
    font-size: 2.1rem;
  }
  .hero-reviews-bar {
    flex-direction: column;
    text-align: center;
  }
  .reviews-stars-group {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-bottom: 8px;
    align-items: center;
  }
}

/* Animated Live Search Input */
.blog-search-box {
  position: relative;
  max-width: 100%;
  margin-bottom: 18px;
}

.blog-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-search-input::placeholder {
  color: #CBD5E1;
}

.blog-search-input:focus {
  background: rgba(255, 255, 255, 0.95);
  color: var(--agrim-navy);
  border-color: #4ADE80;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.blog-search-input:focus + .blog-search-icon {
  color: var(--agrim-blue);
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #CBD5E1;
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition);
}

/* Trending Tags Bar */
.trending-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.trending-tag-pill {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trending-tag-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
/* ==========================================================================
   CATEGORY FILTER TABS & INTERACTIVE CAROUSEL NAVIGATION
   ========================================================================== */
.filter-section-container {
  margin-top: 36px;
  margin-bottom: 30px;
}

.filter-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-bar-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--agrim-navy, #062A4D);
  letter-spacing: 0.2px;
}

.filter-bar-badge i {
  color: var(--agrim-blue, #0A5898);
}

.filter-bar-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--agrim-blue, #0A5898);
  background: var(--agrim-blue-light, #EFF6FF);
  padding: 4px 12px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(10, 88, 152, 0.2);
}

.filter-bar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #FFFFFF;
  border: 1px solid var(--agrim-border, #CBD5E1);
  border-radius: var(--radius-md, 8px);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--agrim-body, #334155);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-mode-btn:hover {
  background: var(--agrim-blue-light, #EFF6FF);
  color: var(--agrim-blue, #0A5898);
  border-color: var(--agrim-blue, #0A5898);
}

.filter-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--agrim-border, #E2E8F0);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.filter-nav-btn {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--agrim-border, #CBD5E1);
  border-radius: 9999px;
  color: var(--agrim-navy, #062A4D);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.filter-nav-btn.prev {
  margin-right: 8px;
  padding: 0 12px;
}

.filter-nav-btn.next {
  margin-left: 8px;
  background: linear-gradient(135deg, #0A5898, #074375);
  border-color: #0A5898;
  color: #FFFFFF;
}

.filter-nav-btn.next i {
  color: #FFFFFF;
}

.filter-nav-btn:hover:not(:disabled) {
  background: var(--agrim-blue, #0A5898);
  color: #FFFFFF;
  border-color: var(--agrim-blue, #0A5898);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 88, 152, 0.25);
}

.filter-nav-btn:hover:not(:disabled) i {
  color: #FFFFFF;
}

.filter-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #94A3B8;
}

.filter-nav-btn:disabled i {
  color: #94A3B8;
}

.filter-nav-btn.has-more {
  animation: pulseNextGlow 2.5s infinite;
}

@keyframes pulseNextGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 88, 152, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(10, 88, 152, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 88, 152, 0);
  }
}

.filter-nav-btn .nav-next-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.filter-edge-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filter-edge-fade.left {
  left: 56px;
  background: linear-gradient(to right, #FFFFFF, rgba(255, 255, 255, 0));
}

.filter-edge-fade.right {
  right: 125px;
  background: linear-gradient(to left, #FFFFFF, rgba(255, 255, 255, 0));
}

.filter-edge-fade.visible {
  opacity: 1;
}

.filter-pills-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 8px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 88, 152, 0.35) rgba(0, 0, 0, 0.04);
}

.filter-pills-list::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.filter-pills-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
}

.filter-pills-list::-webkit-scrollbar-thumb {
  background: rgba(10, 88, 152, 0.3);
  border-radius: 999px;
}

.filter-pills-list::-webkit-scrollbar-thumb:hover {
  background: var(--agrim-blue, #0A5898);
}

.filter-pill {
  padding: 9px 18px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--agrim-border, #CBD5E1);
  background: #F8FAFC;
  color: var(--agrim-body, #334155);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.filter-pill:hover {
  background: var(--agrim-blue-light, #EFF6FF);
  color: var(--agrim-blue, #0A5898);
  border-color: rgba(10, 88, 152, 0.35);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--agrim-blue, #0A5898) !important;
  color: #FFFFFF !important;
  border-color: var(--agrim-blue, #0A5898) !important;
  box-shadow: 0 4px 12px var(--agrim-blue-glow, rgba(10, 88, 152, 0.3));
}

.filter-pill.active i {
  color: #FFFFFF !important;
}

/* Expanded Grid Mode when user clicks "Show All Categories" */
.filter-carousel-wrapper.grid-mode {
  padding: 16px;
}

.filter-carousel-wrapper.grid-mode .filter-nav-btn,
.filter-carousel-wrapper.grid-mode .filter-edge-fade {
  display: none !important;
}

.filter-carousel-wrapper.grid-mode .filter-pills-list {
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
  padding: 4px;
  gap: 12px;
}

@media (max-width: 768px) {
  .filter-edge-fade.right {
    right: 85px;
  }
  .filter-nav-btn.next .nav-next-text {
    display: none;
  }
  .filter-nav-btn.next {
    padding: 0 12px;
  }
}

/* ==========================================================================
   FEATURED STORY CARD (HERO ARTICLE)
   ========================================================================== */
.featured-article-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--agrim-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin: 50px 0;
  transition: var(--transition);
  position: relative;
}

.featured-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 88, 152, 0.4);
}

.featured-img-container {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.featured-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-article-card:hover .featured-img-container img {
  transform: scale(1.06);
}

.featured-badge-float {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #0A5898, #238030);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--agrim-muted);
  margin-bottom: 14px;
}

.featured-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--agrim-navy);
  line-height: 1.3;
  margin-bottom: 16px;
  transition: var(--transition);
}

.featured-article-card:hover .featured-title {
  color: var(--agrim-blue);
}

.featured-excerpt {
  color: var(--agrim-body);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.author-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--agrim-border);
}

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

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--agrim-blue), var(--agrim-green));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
}

/* ==========================================================================
   BLOG MAIN LAYOUT (GRID + SIDEBAR)
   ========================================================================== */
.gallery-container {
  max-width: 1320px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 580px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Cards with Micro-Interactions */
.blog-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--agrim-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 88, 152, 0.4);
}

.card-img-box {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #F1F5F9;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-img-box img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--agrim-muted);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--agrim-navy);
  line-height: 1.38;
  margin-bottom: 12px;
  transition: var(--transition);
}

.blog-card:hover .card-title {
  color: var(--agrim-blue);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--agrim-body);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--agrim-border);
}

.read-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--agrim-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.read-btn i {
  transition: transform 0.25s ease;
}

.read-btn:hover i {
  transform: translateX(5px);
}

.bookmark-btn {
  background: none;
  border: none;
  color: var(--agrim-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.bookmark-btn:hover, .bookmark-btn.bookmarked {
  color: #DC2626;
  transform: scale(1.2);
}

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

.sidebar-widget {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--agrim-border);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--agrim-navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--agrim-blue-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Quick Dropdown Widget (Directly matching user screenshot) */
.cat-dropdown-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--agrim-border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--agrim-navy);
  background: #FFFFFF;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.cat-dropdown-select:focus {
  border-color: var(--agrim-blue);
  box-shadow: 0 0 0 3px var(--agrim-blue-glow);
}

.trending-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--agrim-border);
  cursor: pointer;
  transition: var(--transition);
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.trending-info h4 {
  font-size: 0.88rem;
  color: var(--agrim-navy);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: var(--transition);
}

.trending-item:hover .trending-info h4 {
  color: var(--agrim-blue);
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--agrim-muted);
}

/* Newsletter Widget with Animation */
.newsletter-box {
  background: linear-gradient(135deg, #10304A 0%, #0A5898 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.newsletter-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  margin-bottom: 10px;
  outline: none;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: #CBD5E1;
}

/* ==========================================================================
   INTERACTIVE ARTICLE READING MODAL (CLEAN FULL READER)
   ========================================================================== */
.article-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 48, 74, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.article-modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.article-modal-overlay.active .article-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: sticky;
  top: 20px;
  right: 20px;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 48, 74, 0.85);
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.modal-close-btn:hover {
  background: var(--agrim-blue);
  transform: rotate(90deg);
}

.modal-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.modal-body {
  padding: 40px 50px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--agrim-navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--agrim-body);
}

.modal-takeaway {
  background: var(--agrim-blue-light);
  border-left: 4px solid var(--agrim-blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
}

/* ==========================================================================
   FOOTER & FLOATING WIDGET
   ========================================================================== */
.site-footer {
  background-color: var(--agrim-navy);
  color: #94A3B8;
  padding: 70px 0 25px 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-brand-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  color: var(--agrim-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: #38BDF8;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

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

.footer-policy-links a:hover {
  color: #FFFFFF;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  font-size: 2rem;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 768px) {
  .topbar, .top-bar {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 24px 20px 50px;
    gap: 16px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    border-top: 1px solid var(--agrim-border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99999 !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    visibility: hidden;
    pointer-events: none;
  }
  .nav-menu.open {
    left: 0;
    visibility: visible;
    pointer-events: auto;
    z-index: 99999 !important;
  }
  .nav-item-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding: 0 0 0 16px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    background: transparent;
  }
  .blog-hero-title {
    font-size: 2.2rem;
  }
  .modal-body {
    padding: 24px 20px;
  }
  .modal-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   ENTERPRISE MOTION, STAT COUNTERS, COMPARISON SLIDER & RFQ DRAWER
   Inspired by Vikram Solar, Tata Power, MYSUN & ACME Clean-Tech
   ========================================================================== */

/* Modern Video/Cinematic Hero Container */
.cinematic-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
  background: #0A1C2A;
}

.cinematic-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.04);
  animation: subtleZoom 20s infinite alternate ease-in-out;
}

@keyframes subtleZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.cinematic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 48, 74, 0.92) 0%, rgba(10, 88, 152, 0.82) 50%, rgba(35, 128, 48, 0.72) 100%);
  z-index: 2;
  backdrop-filter: blur(2px);
}

.hero-solar-beams {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(10, 88, 152, 0) 70%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  animation: sunGlow 7s ease-in-out infinite alternate;
}

.cinematic-content {
  position: relative;
  z-index: 3;
  padding: 80px 0;
}

/* Glassmorphism Floating Quick-Calc / RFQ Box */
.glass-quick-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
}

/* Rolling Animated Stats Bar */
.stats-counter-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--agrim-border);
  box-shadow: var(--shadow-sm);
  padding: 36px 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--agrim-border);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--agrim-blue-light);
  color: var(--agrim-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.stat-box:hover .stat-icon {
  transform: scale(1.15) rotate(6deg);
  background: var(--agrim-blue);
  color: #FFFFFF;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--agrim-navy);
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--agrim-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Video Showcase Modal / Player Lightbox */
.video-preview-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  background: #000000;
}

.video-preview-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0.9;
}

.video-preview-card:hover img {
  transform: scale(1.05);
  opacity: 0.75;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--agrim-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.28);
  transition: var(--transition);
}

.video-preview-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
  background: var(--agrim-blue);
  color: #FFFFFF;
  box-shadow: 0 0 0 20px rgba(10, 88, 152, 0.35);
}

/* Interactive Before-After / Clean vs Dirty Comparison Slider */
.comparison-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(230px, 48vw, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.comparison-before {
  z-index: 1;
}

.comparison-after {
  z-index: 2;
  width: 50%;
  border-right: 3px solid #FFFFFF;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.comparison-badge {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.badge-before-pos {
  right: 20px;
  background: rgba(16, 48, 74, 0.85);
}

.badge-after-pos {
  left: 20px;
  background: rgba(35, 128, 48, 0.9);
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.comparison-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--agrim-navy);
  font-size: 1rem;
}

/* Interactive RFQ Drawer */
.rfq-drawer-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(16, 48, 74, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90000 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rfq-drawer-overlay:not(.active) {
  display: none !important;
}

.rfq-drawer-overlay.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.rfq-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: min(450px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 90001 !important;
  display: flex;
  flex-direction: column;
  transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.rfq-drawer-overlay.active .rfq-drawer {
  right: 0;
}

.rfq-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--agrim-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--agrim-navy);
  color: #FFFFFF;
}

.rfq-drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.rfq-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--agrim-border);
  background: #F8FAFC;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-box:not(:last-child)::after {
    display: none;
  }
  .cinematic-hero {
    min-height: auto;
  }
}

/* ==========================================================================
   VIDEO BLOG STYLES & INTERACTIVE VIDEO LIGHTBOX
   ========================================================================== */
.video-card-thumb {
  position: relative;
  height: 250px;
  background: #0B1E2D;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.blog-card.video-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--agrim-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.blog-card.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 88, 152, 0.22);
  border-color: var(--agrim-blue);
}

.video-card-thumb video,
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card-thumb:hover video,
.video-card-thumb:hover img {
  transform: scale(1.12);
}

/* Subtle On-Hover Title Overlay Bar for Pure Gallery Cards */
.video-card-thumb::after {
  content: attr(data-video-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 14px 12px 14px;
  background: linear-gradient(to top, rgba(11, 30, 45, 0.95) 0%, rgba(11, 30, 45, 0.55) 60%, transparent 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.video-card-thumb[data-image-title]::after {
  content: attr(data-image-title);
}

.blog-card.video-card:hover .video-card-thumb::after {
  opacity: 1;
  transform: translateY(0);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 48, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-card-thumb:hover .video-play-overlay {
  background: rgba(16, 48, 74, 0.1);
}

.play-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--agrim-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.video-card-thumb:hover .play-circle {
  transform: scale(1.15);
  background: var(--agrim-blue);
  color: #FFFFFF;
}

.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Video Lightbox Player Modal */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 28, 42, 0.92);
  backdrop-filter: blur(10px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-box {
  width: 100%;
  max-width: 900px;
  background: #0F172A;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-box {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 50;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: #DC2626;
}

.video-modal-player-wrap {
  width: 100%;
  background: #000000;
}

.video-modal-player-wrap video {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
}

.video-modal-info {
  padding: 24px 30px;
  background: #FFFFFF;
}

.video-modal-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--agrim-navy);
  margin-bottom: 8px;
}

.video-modal-info p {
  font-size: 0.95rem;
  color: var(--agrim-body);
  line-height: 1.6;
}

/* ==========================================================================
   REFINED ENTERPRISE NAVBAR & CLEAN LOGO LAYOUT
   ========================================================================== */
.site-header, .navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(10, 88, 152, 0.08);
  border-bottom: 1px solid var(--agrim-border);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(12px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--agrim-navy);
  padding: 8px 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--agrim-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--agrim-blue);
  border-radius: 3px;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 1400px) {
  .navbar {
    padding: 0 16px;
    gap: 12px;
  }
  .nav-menu {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 6px 2px;
    gap: 4px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 7px 11px !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 1050px) {
  .navbar {
    padding: 0 12px;
    gap: 8px;
  }
  .brand-logo img {
    height: 44px !important;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 6px 1px;
    gap: 3px;
  }
  .nav-menu {
    gap: 6px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions a[title*="Catalog"],
  .nav-actions .nav-catalog-btn {
    display: none !important;
  }
  .nav-actions .btn {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 68px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand-logo img {
    height: 40px !important;
    width: auto !important;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 1;
  }
  .nav-actions a[title*="Catalog"],
  .nav-actions .nav-catalog-btn {
    display: none !important;
  }
  .nav-actions .btn {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
  .nav-actions .rfq-trigger-btn span:not(.rfq-count) {
    display: none;
  }
  .nav-actions .nav-quote-btn,
  .nav-actions .btn-primary {
    padding: 6px 11px !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-size: 1.2rem;
    color: var(--agrim-navy);
  }
}

@media (max-width: 480px) {
  .brand-logo img {
    height: 36px !important;
  }
  .navbar {
    padding: 0 10px;
    gap: 6px;
  }
  .nav-actions .nav-quote-btn span,
  .nav-actions .btn-primary span {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .brand-logo img {
    height: 32px !important;
  }
  .nav-actions .btn {
    padding: 5px 8px !important;
  }
  .nav-actions .nav-quote-btn span,
  .nav-actions .btn-primary span {
    display: none;
  }
}

/* ==========================================================================
   FEATURED VIDEO HERO SPOTLIGHT FIX
   ========================================================================== */
.featured-article-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--agrim-border);
  box-shadow: 0 10px 30px rgba(16, 48, 74, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  margin: 40px 0 50px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.featured-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 88, 152, 0.14);
  border-color: rgba(10, 88, 152, 0.35);
}

.featured-img-container {
  min-height: 400px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0B1E2D;
}

.featured-img-container video,
.featured-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.featured-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--agrim-navy);
  line-height: 1.28;
  margin: 12px 0 16px 0;
}

.featured-title a {
  color: var(--agrim-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--agrim-blue);
}

.featured-desc {
  font-size: 1rem;
  color: var(--agrim-body);
  line-height: 1.68;
  margin-bottom: 24px;
}

.featured-author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--agrim-border);
  border-bottom: 1px solid var(--agrim-border);
  margin-bottom: 24px;
}

.featured-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.featured-author-info .author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--agrim-navy);
}

.featured-author-info .post-date {
  font-size: 0.8rem;
  color: var(--agrim-muted);
  margin-top: 2px;
}

/* ==========================================================================
   AGRIM SOLAR AI VOICE ASSISTANT WIDGET
   Floating Glassmorphism Voice Controller with Speech Recognition
   ========================================================================== */
.ai-voice-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-voice-trigger {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A5898 0%, #238030 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(10, 88, 152, 0.4);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  outline: none;
}

.ai-voice-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(10, 88, 152, 0.55);
}

.ai-voice-trigger.listening {
  background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
  animation: voicePulse 1.4s infinite alternate ease-in-out;
}

@keyframes voicePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  100% { transform: scale(1.15); box-shadow: 0 0 0 18px rgba(234, 88, 12, 0); }
}

.ai-voice-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #F59E0B;
  color: #10304A;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  letter-spacing: 0.5px;
}

/* AI Voice Dialogue Panel */
.ai-voice-panel {
  position: fixed;
  bottom: 104px;
  left: 28px;
  width: 360px;
  max-width: calc(100vw - 56px);
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(16, 48, 74, 0.2);
  border: 1px solid var(--agrim-border);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 2001;
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-voice-panel.active {
  display: flex;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-voice-header {
  background: linear-gradient(135deg, #10304A 0%, #0A5898 100%);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-voice-header-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-voice-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.ai-voice-close-btn:hover {
  color: #FFFFFF;
}

.ai-voice-body {
  padding: 18px 20px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--agrim-body);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-voice-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.ai-voice-bubble.bot {
  background: #F1F5F9;
  color: var(--agrim-navy);
  align-self: flex-start;
  border-left: 3px solid var(--agrim-blue);
}

.ai-voice-bubble.user {
  background: var(--agrim-blue);
  color: #FFFFFF;
  align-self: flex-end;
}

.ai-voice-suggestions {
  padding: 12px 20px;
  background: #F8FAFC;
  border-top: 1px solid var(--agrim-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-suggestion-chip {
  background: #FFFFFF;
  border: 1px solid var(--agrim-border);
  color: var(--agrim-blue);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ai-suggestion-chip:hover {
  background: var(--agrim-blue);
  color: #FFFFFF;
  border-color: var(--agrim-blue);
}

.ai-voice-waves {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-top: 6px;
}

.ai-voice-trigger.listening + .ai-voice-waves,
.ai-voice-panel.listening .ai-voice-waves {
  display: flex;
}

.ai-wave-bar {
  width: 3px;
  height: 100%;
  background: #EA580C;
  border-radius: 2px;
  animation: waveBar 0.8s infinite ease-in-out;
}

.ai-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.ai-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.ai-wave-bar:nth-child(4) { animation-delay: 0.1s; }
.ai-wave-bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

@media (max-width: 768px) {
  .ai-voice-widget {
    bottom: 20px;
    left: 16px;
  }
  .ai-voice-panel {
    bottom: 90px;
    left: 16px;
    width: calc(100vw - 32px);
  }
}

/* Contact Facility & Map Section */
.facility-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .facility-map-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   EXECUTIVE LEADERSHIP & OWNER SECTION
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}

.leadership-card {
  background: #FFFFFF;
  border: 1px solid var(--agrim-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.leadership-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 88, 152, 0.35);
}

.leadership-photo-wrap {
  position: relative;
  height: 340px;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.leadership-card:hover .leadership-photo-wrap img {
  transform: scale(1.04);
}

.leadership-content {
  padding: 28px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .leadership-photo-wrap {
    height: 300px;
  }
}

/* ==========================================================================
   KNOWLEDGE HUB INTERACTIVE CAROUSEL (HOME PAGE)
   ========================================================================== */
.knowledge-hub-future {
  padding: 85px 0;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.kh-header-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  gap: 20px;
}

.kh-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.kh-arrow-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kh-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--agrim-border, #CBD5E1);
  color: var(--agrim-navy, #062A4D);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.kh-carousel-btn:hover:not(:disabled) {
  background: var(--agrim-blue, #0A5898);
  color: #FFFFFF;
  border-color: var(--agrim-blue, #0A5898);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 88, 152, 0.25);
}

.kh-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.kh-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.kh-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kh-carousel-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.kh-carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  scroll-snap-align: start;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .kh-carousel-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .kh-carousel-card {
    flex: 0 0 88%;
  }
  .kh-header-wrapper {
    align-items: flex-start;
  }
  .kh-nav-actions {
    width: 100%;
    gap: 12px;
  }
  .kh-nav-actions a.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    font-size: 0.84rem;
    padding: 10px 14px;
  }
}

.kh-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.kh-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.kh-dot.active {
  width: 28px;
  background: var(--agrim-blue, #0A5898);
}

/* ==========================================================================
   8. SHOP PRODUCT CATALOG ENHANCEMENTS & QUICK VIEW MODAL
   ========================================================================== */
.cat-pill-count {
  font-size: 0.72rem;
  background: rgba(16, 48, 74, 0.08);
  color: var(--agrim-navy, #10304A);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.product-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  background: #F1F5F9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #E2E8F0;
}

.spec-tag i {
  font-size: 0.7rem;
  color: var(--agrim-blue, #0A5898);
}

.quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(16, 48, 74, 0.92);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.blog-card:hover .quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.quick-view-btn:hover {
  background: var(--agrim-accent, #45A446);
  color: #FFFFFF;
}

/* Floating RFQ Cart Pill */
.rfq-float-pill {
  position: fixed;
  bottom: 95px;
  right: 28px;
  background: var(--agrim-navy, #10304A);
  color: #FFFFFF;
  border: 2px solid var(--agrim-accent, #45A446);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(16, 48, 74, 0.35);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.rfq-float-pill:hover {
  background: #0A5898;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(10, 88, 152, 0.45);
}

.rfq-float-pill i {
  color: var(--agrim-accent, #45A446);
  font-size: 1.1rem;
}

/* Lock background body scroll when product modal or RFQ is open */
body.product-modal-open,
body.rfq-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Product Quick View Modal */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 48, 74, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.product-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.product-modal {
  background: #FFFFFF;
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
  z-index: 1000000 !important;
}

.product-modal-overlay.active .product-modal {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.2s ease;
}

.product-modal-close:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 32px;
}

@media (max-width: 720px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

/* Interactive Product Modal Image Zoom Experience */
.product-modal-img-container {
  position: relative;
  background: #F8FAFC;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  border: 1px solid var(--agrim-border, #E2E8F0);
  cursor: crosshair;
  user-select: none;
}

.product-modal-zoom-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  padding: 16px;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform, transform-origin;
  pointer-events: none;
}

.product-zoom-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 48, 74, 0.82);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-modal-img-container:hover .product-zoom-badge {
  opacity: 0.15;
  transform: translateY(-4px);
}

/* Enhanced Solar Cleaning Module & Telemetry Hub */
.cleaning-tabs-nav {
  display: flex;
  gap: 8px;
  background: #EDF2F7;
  padding: 5px;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 16px;
}

.cleaning-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cleaning-tab-btn.active {
  background: #FFFFFF;
  color: var(--agrim-navy, #10304A);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cleaning-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

@media (max-width: 500px) {
  .cleaning-tabs-nav {
    flex-direction: column;
    gap: 4px;
  }
  .cleaning-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .cleaning-telemetry-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
  }
}

.telemetry-item {
  text-align: center;
}

.telemetry-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.telemetry-item-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--agrim-navy, #10304A);
  transition: color 0.2s ease;
}

.cleaning-calc-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   CINEMATIC 3D PRODUCT REELS & SHOWCASE SECTION
   ========================================================================== */
.cinematic-showcase-section {
  background: radial-gradient(circle at 50% 0%, #0F2338 0%, #071320 100%);
  padding: 60px 0 70px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(84, 172, 191, 0.2);
  border-bottom: 1px solid rgba(84, 172, 191, 0.2);
}

.cinematic-showcase-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cinematic-showcase-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 88, 152, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cinematic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.cinematic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #FB923C;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cinematic-pulse-glow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EA580C;
  box-shadow: 0 0 10px #EA580C;
  animation: pulseDot 1.5s infinite;
}

.cinematic-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cinematic-title span {
  background: linear-gradient(135deg, #FF8A00 0%, #E52E71 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cinematic-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}

.cinematic-nav-btns {
  display: flex;
  gap: 10px;
}

.cinematic-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.cinematic-arrow-btn:hover {
  background: #EA580C;
  border-color: #EA580C;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.cinematic-reels-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 20px 4px;
  position: relative;
  z-index: 2;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.cinematic-reels-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.cinematic-reels-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

.cinematic-reel-card {
  width: 260px;
  height: 460px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  background: #020C1B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.cinematic-reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #EA580C;
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.3);
}

.reel-media-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.reel-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.cinematic-reel-card:hover .reel-media-box video {
  transform: scale(1.06);
}

.reel-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 12, 27, 0.55) 0%,
    transparent 35%,
    transparent 55%,
    rgba(2, 12, 27, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.reel-badge-spec {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 3;
}

.reel-play-btn {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.6);
  z-index: 3;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cinematic-reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FF6B00;
}

.reel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 18px 18px;
  z-index: 3;
}

.reel-cat {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FDBA74;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.reel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 12px;
}

.reel-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #CBD5E1;
}

.reel-footer-action span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #38BDF8;
  font-weight: 700;
}

.reel-shop-link {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.reel-shop-link:hover {
  background: #EA580C;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .cinematic-showcase-section {
    padding: 40px 0 50px 0;
  }
  .cinematic-title {
    font-size: 1.8rem;
  }
  .cinematic-reel-card {
    width: 220px;
    height: 390px;
  }
}

/* ==========================================================================
   SHOP PAGE: INTEGRATED 3-COLUMN LAYOUT (ZERO OVERLAP WITH HEADER OR FOOTER)
   ========================================================================== */
.shop-page-wrapper {
  max-width: 1680px;
  margin: 0 auto;
  padding: 30px 24px 80px 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  box-sizing: border-box;
}

.shop-video-sidebar {
  width: 200px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-sticky-inner {
  position: -webkit-sticky;
  position: sticky;
  top: 85px; /* Sits right beneath sticky site-header */
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px;
}

.sidebar-sticky-inner::-webkit-scrollbar {
  display: none;
}

.shop-catalog-main {
  flex: 1 1 0;
  min-width: 0; /* Prevents overflow blowouts in flex */
}

/* On screens < 1300px where 3 columns would squeeze the product grid */
@media (max-width: 1299px) {
  .shop-video-sidebar {
    display: none !important;
  }
  .shop-page-wrapper {
    padding: 24px 16px 60px 16px;
  }
}

/* Show in-page horizontal carousel only on screens < 1300px to avoid duplication */
@media (min-width: 1300px) {
  .shop-cinematic-banner {
    display: none !important;
  }
}

/* ==========================================================================
   UNIVERSAL COMMON PRODUCT SEARCH BAR
   ========================================================================== */
.common-search-container {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.common-search-container:focus-within {
  border-color: #0A5898 !important;
  box-shadow: 0 6px 25px rgba(10, 88, 152, 0.12) !important;
}

#commonSearchInput:focus {
  border-color: #0A5898 !important;
  box-shadow: 0 0 0 3px rgba(10, 88, 152, 0.15) !important;
}



@media (max-width: 768px) {
  .common-search-bar-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .common-search-bar-row > div,
  .common-search-bar-row > button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }
}

.rail-header {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0A5898;
  background: rgba(10, 88, 152, 0.08);
  border: 1px solid rgba(10, 88, 152, 0.18);
  padding: 6px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.rail-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EA580C;
  box-shadow: 0 0 6px #EA580C;
  animation: pulseDot 1.4s infinite;
}

.rail-video-card {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #020C1B;
  border: 1px solid rgba(16, 48, 74, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.rail-video-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #EA580C;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
}

.rail-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rail-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 12, 27, 0.35) 0%,
    transparent 35%,
    rgba(2, 12, 27, 0.92) 100%
  );
  pointer-events: none;
}

.rail-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 88, 152, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.rail-play-mini {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.6);
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease;
}

.rail-video-card:hover .rail-play-mini {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FF6B00;
}

.rail-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 10px;
  z-index: 2;
}

.rail-card-title {
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-card-sub {
  color: #38BDF8;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Shop In-Page Cinematic Reels Track */
.shop-cinematic-banner {
  background: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--agrim-border, #E2E8F0);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.shop-cinematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-cinematic-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 88, 152, 0.3) transparent;
}

.shop-cinematic-track::-webkit-scrollbar {
  height: 5px;
}

.shop-cinematic-track::-webkit-scrollbar-thumb {
  background: rgba(10, 88, 152, 0.3);
  border-radius: 5px;
}

.shop-reel-item {
  width: 145px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #020C1B;
  cursor: pointer;
  border: 1px solid rgba(16, 48, 74, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-reel-item:hover {
  transform: translateY(-4px);
  border-color: #EA580C;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}

.shop-reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 12, 27, 0.25) 0%,
    transparent 35%,
    rgba(2, 12, 27, 0.9) 100%
  );
  pointer-events: none;
}

.shop-reel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  z-index: 2;
}

.shop-reel-title {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   INVERTERS CATEGORY ARCHITECTURE & SUBCATEGORY STYLES
   ============================================================================== */
.inverter-hero {
  background: linear-gradient(135deg, #0B1E2D 0%, #10304A 60%, #0A5898 100%);
  color: #FFFFFF;
  padding: 60px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.inverter-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(234, 88, 12, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.inverter-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.inverter-breadcrumbs a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inverter-breadcrumbs a:hover {
  color: #EA580C;
}

.inverter-breadcrumbs .separator {
  color: #64748B;
  font-size: 0.7rem;
}

.inverter-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 50px 0;
}

@media (max-width: 991px) {
  .inverter-subcat-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.inverter-subcat-card {
  background: #FFFFFF;
  border: 1px solid var(--agrim-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(16, 48, 74, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.inverter-subcat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--agrim-border);
  transition: background 0.3s ease;
}

.inverter-subcat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 88, 152, 0.12);
  border-color: rgba(10, 88, 152, 0.3);
}

.inverter-subcat-card.offgrid:hover::before {
  background: #F59E0B;
}

.inverter-subcat-card.hybrid:hover::before {
  background: #0284C7;
}

.inverter-subcat-card.ongrid:hover::before {
  background: #16A34A;
}

.inverter-subcat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.inverter-subcat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.inverter-subcat-icon.offgrid {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.inverter-subcat-icon.hybrid {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

.inverter-subcat-icon.ongrid {
  background: rgba(22, 163, 74, 0.12);
  color: #16A34A;
}

.inverter-warranty-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.4px;
}

.inverter-warranty-pill.offgrid {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.inverter-warranty-pill.hybrid {
  background: rgba(2, 132, 199, 0.15);
  color: #0369A1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.inverter-warranty-pill.ongrid {
  background: rgba(22, 163, 74, 0.15);
  color: #15803D;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.inverter-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--agrim-light-bg);
  color: var(--agrim-navy);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--agrim-border);
}

.inverter-specs-table-container {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--agrim-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  margin: 30px 0 50px 0;
}

.inverter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.inverter-table th {
  background: #0B1E2D;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.inverter-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--agrim-border);
  color: var(--agrim-body);
}

.inverter-table tr:hover td {
  background: rgba(10, 88, 152, 0.03);
}

.inverter-table tr:last-child td {
  border-bottom: none;
}

.series-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.series-filter-pill {
  padding: 7px 15px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--agrim-border);
  background: #FFFFFF;
  color: var(--agrim-navy);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.series-filter-pill:hover,
.series-filter-pill.active {
  background: var(--agrim-navy);
  color: #FFFFFF;
  border-color: var(--agrim-navy);
}

.series-filter-pill.active {
  box-shadow: 0 4px 12px rgba(16, 48, 74, 0.2);
}





/* ==========================================================================
   PRODUCT CARD & INVERTERS CATALOG STYLES - PURE WHITE BACKGROUND
   ========================================================================== */
.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--agrim-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 88, 152, 0.12);
  border-color: rgba(10, 88, 152, 0.35);
}

.product-card .card-img-wrapper {
  background: #FFFFFF !important;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #F1F5F9;
  padding: 16px;
  overflow: hidden;
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #FFFFFF !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.product-card:hover .quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Clean Product Card Image Box - 100% Unobstructed Photos with zero overlapping badges */
.card-img-box,
.product-card .card-img-wrapper {
  background: #FFFFFF !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  border-bottom: 1px solid #F1F5F9 !important;
  padding: 20px !important;
  overflow: hidden !important;
}

.card-img-box img,
.product-card .card-img-wrapper img {
  max-width: 100% !important;
  max-height: 190px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: #FFFFFF !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-img-box img,
.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Guard: Ensure no floating badge or label ever overlaps the product image area */
.card-img-box .card-tag,
.card-img-box .card-badge,
.card-img-box .badge,
.card-img-wrapper .card-tag,
.card-img-wrapper .card-badge,
.card-img-wrapper .badge {
  display: none !important;
}

.product-modal-img-container {
  background: #FFFFFF !important;
}


/* ==========================================================================
   AGRIM SOLAR — B2B Lead-Generation Pop-Up Modal Styles
   ========================================================================== */

body.agrim-lead-popup-open {
  overflow: hidden !important;
}

.agrim-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(10, 24, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.agrim-lead-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.agrim-lead-container {
  width: 100%;
  max-width: 540px;
  max-height: 94vh;
  display: flex;
  justify-content: center;
}

.agrim-lead-modal {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(10, 88, 152, 0.28), 0 12px 24px -6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 32px 32px 28px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.agrim-lead-overlay.is-visible .agrim-lead-modal {
  transform: translateY(0) scale(1);
}

.agrim-lead-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 50;
}

.agrim-lead-close-btn:hover,
.agrim-lead-close-btn:focus-visible {
  background: #F1F5F9;
  color: #0A5898;
  border-color: #CBD5E1;
  transform: rotate(90deg);
  outline: none;
}

.agrim-lead-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.agrim-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EBF3FA;
  color: #0A5898;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid rgba(10, 88, 152, 0.15);
}

.agrim-lead-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10304A;
  line-height: 1.25;
  margin-bottom: 6px;
}

.agrim-lead-subtitle {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.45;
}

.agrim-lead-alert-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.agrim-lead-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.agrim-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agrim-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agrim-req-star {
  color: #DC2626;
  font-weight: 800;
  margin-left: 2px;
}

.agrim-opt-tag {
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.75rem;
}

.agrim-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.agrim-input-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  font-size: 0.92rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.agrim-wa-icon {
  color: #25D366 !important;
  font-size: 1.05rem;
}

.agrim-form-control {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1E293B;
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.agrim-form-control::placeholder {
  color: #94A3B8;
  font-size: 0.88rem;
}

.agrim-form-control:focus {
  outline: none;
  border-color: #0A5898;
  box-shadow: 0 0 0 3px rgba(10, 88, 152, 0.14);
}

.agrim-form-control:focus + .agrim-input-icon,
.agrim-input-wrapper:focus-within .agrim-input-icon {
  color: #0A5898;
}

.agrim-form-control.has-error {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.agrim-field-error {
  color: #DC2626;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 3px;
  display: none;
  padding-left: 2px;
}

.agrim-select-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 36px;
}

.agrim-lead-submit-btn {
  margin-top: 6px;
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #0A5898 0%, #08477A 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(10, 88, 152, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.agrim-lead-submit-btn:hover {
  background: linear-gradient(135deg, #08477A 0%, #063359 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 88, 152, 0.32);
}

.agrim-lead-submit-btn:active {
  transform: translateY(0);
}

.agrim-lead-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.agrim-lead-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.74rem;
  color: #64748B;
  text-align: center;
  line-height: 1.35;
  margin-top: 4px;
}

.agrim-lead-privacy i {
  color: #238030;
  font-size: 0.85rem;
}

.agrim-lead-privacy a {
  color: #0A5898;
  text-decoration: underline;
  font-weight: 600;
}

/* Success Confirmation State */
.agrim-lead-success-state {
  text-align: center;
  padding: 24px 12px 16px;
}

.agrim-success-icon-wrap {
  font-size: 4rem;
  color: #16A34A;
  margin-bottom: 14px;
  animation: agrimPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes agrimPopIn {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.agrim-success-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #10304A;
  margin-bottom: 8px;
}

.agrim-success-message {
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 18px;
}

.agrim-lead-ref-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.86rem;
}

.agrim-lead-ref-box .ref-label {
  color: #64748B;
  font-weight: 600;
}

.agrim-lead-ref-box .ref-id {
  color: #0A5898;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.agrim-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.agrim-btn-wa {
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.agrim-btn-wa:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.agrim-btn-close-success {
  background: #E2E8F0;
  color: #1E293B;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agrim-btn-close-success:hover {
  background: #CBD5E1;
}

@media (max-width: 640px) {
  .agrim-lead-modal {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }
  .agrim-lead-title {
    font-size: 1.3rem;
  }
  .agrim-lead-header {
    padding-right: 28px;
    margin-bottom: 16px;
  }
  .agrim-lead-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .agrim-form-control {
    padding: 10px 12px 10px 36px;
    font-size: 0.88rem;
  }
  .agrim-input-icon {
    left: 12px;
    font-size: 0.85rem;
  }
  .agrim-lead-submit-btn {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .agrim-success-actions {
    flex-direction: column;
    width: 100%;
  }
  .agrim-btn-wa, .agrim-btn-close-success {
    width: 100%;
    justify-content: center;
  }
}

/* Solar Panel Showcase Actions Single-Line Layout */
.panel-showcase-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 820px) {
  .panel-showcase-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .panel-showcase-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   CONTACT PAGE & ORDER TRACKER RESPONSIVE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 991px) {
  .contact-grid-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 22px 16px !important;
  }
  .contact-form-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .building-specs-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .track-order-card {
    padding: 22px 16px !important;
  }
  .track-input-group {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .track-input-group input,
  .track-input-group button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   ABOUT PAGE RESPONSIVE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 991px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }
  .about-brands-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
}

@media (max-width: 600px) {
  .about-hero-stats {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }
  .about-hero-stats > div {
    min-width: 90px !important;
  }
  .about-cert-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .about-brands-card {
    padding: 22px 16px !important;
  }
  .about-sub-brands-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   SOLAR CHARGER & PM SURYA GHAR RESPONSIVE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 991px) {
  .charger-cta-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .pm-role-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 640px) {
  .charger-filter-bar {
    width: 100% !important;
  }
  .charger-filter-bar input {
    width: 100% !important;
  }
  .charger-filter-bar .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .charger-cta-card {
    padding: 22px 16px !important;
  }
  .charger-modal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .pm-role-card {
    padding: 24px 16px !important;
  }
  .panel-cta-row {
    flex-direction: column !important;
    width: 100% !important;
  }
  .panel-cta-row .btn {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
  }
  .panel-hero-title {
    font-size: 1.8rem !important;
    word-break: break-word !important;
  }
  .panel-hero-badges .badge {
    white-space: normal !important;
    font-size: 0.72rem !important;
  }
  .pm-role-cta-wrap {
    flex-direction: column !important;
    width: 100% !important;
  }
  .pm-role-cta-wrap .btn {
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 12px 14px !important;
  }
}

/* ==========================================================================
   BLOG & SHOP RESPONSIVE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 900px) {
  .blog-hero-sun,
  .blog-hero-rays,
  .cinematic-showcase-section::before,
  .cinematic-showcase-section::after {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .shop-catalog-banner {
    padding: 16px 14px !important;
  }
  .shop-banner-actions {
    width: 100% !important;
  }
  .shop-banner-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .whitepaper-card {
    padding: 22px 16px !important;
  }
}
