/* ==========================================================================
   AgTechDirectory.com - Core Stylesheet
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- Custom Variables & Tokens --- */
:root {
  --primary-green: #1F5B20;
  --secondary-green: #2E7D32;
  --accent-yellow: #FFC107;
  --dark-navy: #0F172A;
  --background-slate: #F8FAFC;
  --white: #FFFFFF;
  --text-muted: #64748B;
  --text-body: #334155;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Defaults --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-slate);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--secondary-green);
}

/* --- Common UI Components --- */

/* Buttons */
.btn-primary-ag {
  background-color: var(--primary-green);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--primary-green);
  transition: var(--transition-smooth);
  white-space: nowrap !important;
}

.btn-primary-ag:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-hero-cta {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.btn-secondary-ag {
  background-color: transparent;
  color: var(--primary-green) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--primary-green);
  transition: var(--transition-smooth);
}

.btn-secondary-ag:hover {
  background-color: rgba(31, 91, 32, 0.05);
  transform: translateY(-1px);
}

.btn-dark-ag {
  background-color: var(--dark-navy);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--dark-navy);
  transition: var(--transition-smooth);
}

.btn-dark-ag:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

/* Badges */
.badge-ag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  background-color: rgba(31, 91, 32, 0.08);
  color: var(--primary-green);
  font-family: var(--font-body);
}

.badge-yellow {
  background-color: rgba(255, 193, 7, 0.12);
  color: #b48600;
  border: 1px solid rgba(255, 193, 7, 0.25);
}

/* --- Section Formatting --- */
.section-padding {
  padding: 2rem 0;
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 1.5rem 0;
  }
}

.section-title-wrap {
  margin-bottom: 2.25rem;
}

.section-subtitle {
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navbar Style
   ========================================================================== */
.navbar-agtech {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand-ag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--dark-navy) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0;
  padding: 0;
}

.brand-dot {
  color: var(--primary-green);
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.nav-link-ag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.925rem;
  color: #475569 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-smooth);
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.nav-link-ag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-green);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link-ag:hover {
  color: var(--primary-green) !important;
}

.nav-link-ag:hover::after,
.nav-link-ag.active::after {
  transform: scaleX(1);
}

.nav-link-ag.active {
  color: var(--primary-green) !important;
  font-weight: 600;
}

/* Ensure vertical alignment and prevent wrapping across viewports */
.navbar-agtech .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.navbar-collapse {
  align-items: center !important;
}

.navbar-nav {
  align-items: center !important;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .nav-link-ag {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.85rem !important;
  }
  .navbar-brand-ag {
    font-size: 1.35rem !important;
  }
  .btn-primary-ag {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
}

/* Custom Mobile Toggler - Zero Icons */
.navbar-toggler-ag {
  border: none;
  background: transparent;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.navbar-toggler-ag span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-navy);
  transition: var(--transition-smooth);
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================================================
   Hero Section - Clean Centered Layout
   ========================================================================== */
.hero-section {
  background-color: var(--white);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 2rem 0 2rem;
  }
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  background-color: rgba(31, 91, 32, 0.06);
  padding: 0.35rem 1.25rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(1.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  line-height: 1.75;
}


/* ==========================================================================
   Featured Categories Section
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1199.98px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.category-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(31, 91, 32, 0.15);
}

.category-num {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-navy);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  color: var(--primary-green);
}

.category-link::after {
  content: ' \2192'; /* Minimal clean CSS arrow sign */
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.category-card:hover .category-link {
  color: var(--secondary-green);
}

.category-card:hover .category-link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   Why Platform Section
   ========================================================================== */
.why-section {
  background-color: var(--background-slate);
}

.feature-block {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.feature-block:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 91, 32, 0.12);
}

.feature-num {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  color: rgba(31, 91, 32, 0.08);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-block:hover .feature-num {
  color: rgba(31, 91, 32, 0.2);
  transform: scale(1.05);
  display: inline-block;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}


/* ==========================================================================
   North America Focus Section
   ========================================================================== */
.focus-section {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.region-box {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  background-color: var(--background-slate);
  transition: var(--transition-smooth);
}

.region-box:hover {
  background-color: var(--white);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.region-country-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
  background-color: rgba(31, 91, 32, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.region-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.region-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}


/* ==========================================================================
   Company Placeholder Section
   ========================================================================== */
.company-card {
  background-color: #0f3d1a; /* deep rich forest dark green */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.company-card:hover {
  transform: translateY(-4px);
  background-color: #144f22; /* slightly lighter on hover */
  box-shadow: 0 12px 30px rgba(15, 61, 26, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.company-top {
  margin-bottom: 1.25rem;
}

.company-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.company-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-yellow) !important; /* bright distinct yellow */
  letter-spacing: 0.05em;
}

.company-location {
  font-size: 0.725rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.company-title {
  font-size: 1.45rem !important;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1rem !important;
}

/* Wrapper for list and details */
.company-desc-wrapper {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #E2E8F0 !important; /* soft white-gray */
}

.company-desc-wrapper p {
  color: #F8FAFC !important; /* brighter white for intro paragraph */
  font-weight: 500;
}

.company-desc-wrapper ul {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
  list-style-type: square;
  color: #CBD5E1; /* secondary soft text */
}

.company-desc-wrapper li strong {
  color: #FFFFFF; /* emphasize bold items in list */
}

/* Example quote block inside dark green card */
.company-example-box {
  font-size: 0.8rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--accent-yellow);
  border-radius: 0 4px 4px 0;
  margin-bottom: 0;
}

.company-bottom {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-yellow) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.company-link::after {
  content: ' \2192';
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.company-card:hover .company-link {
  color: #FFFFFF !important;
}

.company-card:hover .company-link::after {
  transform: translateX(4px);
}

.coming-soon-banner {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #856404;
  font-size: 0.725rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}


/* ==========================================================================
   Call To Action (CTA) Banner Style
   ========================================================================== */
.cta-section {
  background-color: var(--dark-navy);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
  .cta-title {
    font-size: 2rem;
  }
}

.cta-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

@media (max-width: 575.98px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Custom visual background accents for premium feel, zero images used */
.cta-shape-left {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 50%;
  height: 200%;
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  transform: rotate(15deg);
  pointer-events: none;
}

.cta-shape-right {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  border-left: 1px solid rgba(255, 255, 255, 0.02);
  transform: rotate(15deg);
  pointer-events: none;
}


/* ==========================================================================
   Latest Insights Section
   ========================================================================== */
.insight-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 91, 32, 0.1);
}

/* Premium Geometric placeholder illustration in CSS, strictly zero images */
.insight-image-placeholder {
  height: 180px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom canvas-like clean technology design inside placeholder */
.insight-placeholder-graphic {
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0.15;
}

.insight-graphic-line {
  position: absolute;
  background-color: var(--primary-green);
}

.insight-graphic-line-1 {
  width: 120%;
  height: 1px;
  top: 50%;
  left: -10%;
  transform: rotate(12deg);
}

.insight-graphic-line-2 {
  width: 120%;
  height: 1px;
  top: 30%;
  left: -10%;
  transform: rotate(-15deg);
}

.insight-graphic-line-3 {
  width: 120%;
  height: 1px;
  top: 70%;
  left: -10%;
  transform: rotate(6deg);
}

.insight-graphic-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  background: var(--white);
}

.insight-node-1 { top: 40%; left: 30%; }
.insight-node-2 { top: 60%; left: 70%; }
.insight-node-3 { top: 25%; left: 80%; }

.insight-placeholder-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}

.insight-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.insight-title a {
  color: var(--dark-navy);
}

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

.insight-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.insight-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
}

.insight-link::after {
  content: ' \2192';
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.insight-card:hover .insight-link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer-ag {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white) !important;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-about-text {
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

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

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}


/* ==========================================================================
   Form Styling (Deep Forest Green Theme)
   ========================================================================== */
.form-section-dark {
  background-color: #113813; /* Deep forest green to match image */
  padding: 2.5rem 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  text-align: center;
}

.form-group-custom {
  position: relative;
  margin-bottom: 0.5rem;
}

.form-label-custom {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
  display: block;
}

.form-control-underline {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control-underline:focus {
  background: transparent !important;
  border-bottom: 1.5px solid var(--white) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-control-underline::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Custom Select Underline Dropdown */
.form-select-underline {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 12px 12px !important;
}

.form-select-underline option {
  background-color: #113813;
  color: var(--white);
}

/* Custom File Upload block */
.custom-file-upload-block {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.custom-file-upload-block:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

.file-title-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.file-trigger-btn {
  background-color: var(--primary-green);
  border: 1px solid var(--primary-green);
  color: var(--white);
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.file-trigger-btn:hover {
  background-color: var(--secondary-green);
}

.file-chosen-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
}

/* Mock reCAPTCHA Box */
.mock-captcha-container {
  background-color: #222222;
  border: 1px solid #333333;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.captcha-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s;
  position: relative;
}

.captcha-checkbox.checked {
  background-color: #fff;
  border-color: #fff;
}

.captcha-checkbox.checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #2e7d32;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
  user-select: none;
}

.captcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.captcha-logo-mock {
  width: 22px;
  height: 22px;
  border: 3.5px solid #1a73e8;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
  transform: rotate(-45deg);
}

.captcha-logo-mock::before {
  content: '';
  position: absolute;
  right: -3px;
  top: -1px;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #1a73e8;
  transform: rotate(45deg);
}

.captcha-subtext {
  font-size: 8px;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Red Submit Button */
.btn-submit-red {
  background-color: #C62828 !important;
  border: 1px solid #C62828 !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-submit-red:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

/* ==========================================================================
   Home Page Search Section Styles
   ========================================================================== */
.search-section {
  background-color: #F1F5F9; /* Slightly darker than slate to stand out */
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.search-container-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.search-container-card:hover {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
}

.search-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field-label {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--dark-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-left: 1rem;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-navy);
  background-color: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.search-input-control:focus {
  background-color: var(--white);
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(31, 91, 32, 0.1);
  outline: none;
}

.search-select-control {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-navy);
  background-color: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 14px !important;
}

.search-select-control:focus {
  background-color: var(--white);
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(31, 91, 32, 0.1);
  outline: none;
}

/* Styled option groups and disabled dividers */
.search-select-control option:disabled {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem;
}

.btn-advanced-toggle {
  background-color: transparent;
  color: var(--text-body);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  height: 48px;
  cursor: pointer;
}

.btn-advanced-toggle:hover {
  background-color: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--dark-navy);
}

.btn-advanced-toggle.active {
  background-color: #F1F5F9;
  border-color: var(--primary-green);
}

.btn-advanced-toggle.active #chevron-icon {
  transform: rotate(180deg);
}

.btn-search-submit {
  background-color: var(--primary-green);
  color: var(--white);
  border: 1px solid var(--primary-green);
  border-radius: var(--border-radius-sm);
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  height: 48px;
}

.btn-search-submit:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.advanced-filters-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
}

.advanced-filters-collapse.show {
  max-height: 250px;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .advanced-filters-collapse.show {
    max-height: 600px;
  }
}

/* ==========================================================================
   Header Dropdown CTA Menu Styles
   ========================================================================== */
.navbar-agtech .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.3s ease;
}

.navbar-agtech .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

.cta-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  margin-top: 0.5rem !important;
  animation: dropdownFadeIn 0.3s ease forwards;
}

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

.cta-dropdown-menu .dropdown-item {
  color: var(--dark-navy) !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.cta-dropdown-menu .dropdown-item:hover {
  background-color: rgba(46, 125, 50, 0.08) !important;
  color: var(--primary-green) !important;
  transform: translateX(4px);
}



.company-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
}
.company-link::after {
  content: ' \→';
  margin-left: 4px;
  transition: var(--transition-smooth);
}
.company-card:hover .company-link {
  color: var(--secondary-green);
}
.company-card:hover .company-link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   Featured Products Section
   ========================================================================== */
.products-section {
  background-color: var(--background-slate);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.product-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(31, 91, 32, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.product-manufacturer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.product-specs {
  background-color: var(--background-slate);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.spec-item {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.spec-item:last-child {
  margin-bottom: 0;
}

.spec-item strong {
  color: var(--dark-navy);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
}

.product-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.product-action-btn::after {
  content: ' \→';
  margin-left: 4px;
  transition: var(--transition-smooth);
}


.company-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
}
.company-link::after {
  content: ' \→';
  margin-left: 4px;
  transition: var(--transition-smooth);
}
.company-card:hover .company-link {
  color: var(--secondary-green);
}
.company-card:hover .company-link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   Featured Products Section
   ========================================================================== */
.products-section {
  background-color: var(--background-slate);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.product-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(31, 91, 32, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.product-manufacturer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.product-specs {
  background-color: var(--background-slate);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.spec-item {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.spec-item:last-child {
  margin-bottom: 0;
}

.spec-item strong {
  color: var(--dark-navy);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
}

.product-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.product-action-btn::after {
  content: ' \→';
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.product-card:hover .product-action-btn {
  color: var(--secondary-green);
}

.product-card:hover .product-action-btn::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Network Top Banner Style
   ========================================================================== */
.network-top-bar {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.network-top-bar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.network-brand-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  font-weight: 700;
}

.network-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.network-link-item {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.network-link-item:hover {
  color: var(--accent-yellow) !important;
  transform: translateY(-0.5px);
}

@media (max-width: 768px) {
  .network-top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }
  .network-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}
