/* ============================================
   Agroviea — Shared Styles
   Font: Inter | Icons: Font Awesome 4.7
   Bootstrap 5 grid (container / row / col)
   ============================================ */

:root {
  --green-900: #14532d;
  --green-800: #17663a;
  --green-700: #1c7a44;
  --green-600: #22894e;
  --green-100: #eaf8ed;
  --green-50: #f2f9f2;
  --page-bg: #f5faf6;
  --ink: #1f2a22;
  --muted: #6d7d70;
  --line: #e3ece3;
  --star: #f5a623;
  --radius: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Navbar ---------- */
.agv-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.agv-navbar {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.agv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agv-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.agv-brand-text {
  line-height: 1.1;
}

.agv-brand-text .name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  display: block;
}

.agv-brand-text .tag {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  display: block;
}

.agv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.agv-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #46564a;
  padding: 7px 14px;
  border-radius: 20px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.agv-nav-links a:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.agv-nav-links a.active {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
}

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

.agv-lang {
  font-size: 13px;
  font-weight: 600;
  color: #46564a;
  padding: 6px 8px;
}

.btn-agv-outline {
  border: 1px solid #d8e3d9;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 18px;
  border-radius: 8px;
  transition: border-color .15s ease;
}
.btn-agv-outline:hover { border-color: var(--green-600); color: var(--green-800); }

.btn-agv-solid {
  background: var(--green-700);
  border: 1px solid var(--green-700);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .15s ease;
}
.btn-agv-solid:hover { background: var(--green-800); color: #fff; }

.btn-agv-solid.block, .btn-agv-outline.block {
  width: 100%;
  text-align: center;
  display: block;
}

/* ---------- Page header band ---------- */
.agv-page-head {
  padding: 40px  14px;
}

.agv-eyebrow {
  color: var(--green-700);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.agv-page-head h1 {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #14201a;
}

.agv-page-head p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 640px;
  margin-bottom: 0;
}

/* ---------- Search bar ---------- */
.agv-search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 760px;
  box-shadow: 0 1px 2px rgba(20,40,25,.03);
}
.agv-search .fa {
  color: var(--muted);
  margin-left: 10px;
}
.agv-search input {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 4px;
  font-size: 14px;
  background: transparent;
}
.agv-search button {
  white-space: nowrap;
}

hr.agv-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 28px;
}

/* ---------- Sidebar panels ---------- */
.agv-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.agv-panel h6 {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 12px;
  color: #253227;
}

.agv-cat-list { list-style: none; padding: 0; margin: 0; }
.agv-cat-list li { margin-bottom: 2px; }
.agv-cat-list a, .agv-cat-list label {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #45564a;
  cursor: pointer;
}
.agv-cat-list a.active {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 600;
}
.agv-cat-list a:hover:not(.active) { background: var(--green-50); }

.agv-check-list { list-style: none; padding: 0; margin: 0; }
.agv-check-list li {
  display: inline-block;
  margin: 0 6px 8px 0;
}
.agv-check-list a {
  font-size: 13px;
  color: #45564a;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: inline-block;
}
.agv-check-list a:hover { border-color: var(--green-600); color: var(--green-800); }

.form-check-label { font-size: 13.5px; color: #45564a; }

/* ---------- Sort row ---------- */
.agv-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.agv-results-bar .count { font-size: 14px; color: #45564a; }
.agv-sort-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #45564a;
}

/* ---------- Product / listing card ---------- */
.agv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.agv-card:hover {
  box-shadow: 0 8px 20px rgba(20,60,30,.08);
  transform: translateY(-2px);
}

.agv-card-media {
  background: linear-gradient(180deg, var(--green-100), #eef7ee);
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--green-700);
}

.agv-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.agv-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.agv-card-title-row .title {
  font-weight: 700;
  font-size: 15px;
  color: #17241a;
  line-height: 1.25;
}
.agv-card-title-row .title small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.agv-rating {
  font-size: 12.5px;
  font-weight: 700;
  color: #17241a;
  white-space: nowrap;
}
.agv-rating .fa { color: var(--star); margin-right: 2px; }

.agv-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--green-800);
}
.agv-price span {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}

.agv-meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.agv-meta .fa { width: 13px; color: #97a89b; }

.agv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.agv-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.agv-badge.type   { background: #eef2ff; color: #4148b0; }
.agv-badge.verified { background: #e6f4e9; color: var(--green-800); }
.agv-badge.delivery { background: #fff4e5; color: #b4700c; }

.agv-card-by {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.agv-card-by b { color: #37473c; font-weight: 600; }

/* ---------- RFQ ---------- */
.agv-rfq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  height: 100%;
}
.agv-rfq-card h5 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 3px;
}
.agv-rfq-card .loc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.agv-rfq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.agv-rfq-grid .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.agv-rfq-grid .val {
  font-size: 14px;
  font-weight: 700;
  color: #1c2b20;
}
.agv-rfq-grid .val.price { color: var(--green-800); }
.agv-rfq-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.agv-rfq-foot .quotes {
  font-size: 12.5px;
  color: var(--muted);
}

/* Form */
.agv-form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #37473c;
  margin-bottom: 5px;
}
.agv-form-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  width: 100%;
  background: #fbfdfb;
}
.agv-form-control:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
}
textarea.agv-form-control { resize: vertical; }

/* ---------- Experts ---------- */
.agv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.agv-pill {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #45564a;
}
.agv-pill:hover { border-color: var(--green-600); color: var(--green-800); }

.agv-expert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  height: 100%;
}
.agv-expert-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}
.agv-expert-card h6 { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.agv-expert-card .role { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.agv-expert-card .stat {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.agv-expert-card .price {
  font-weight: 700;
  color: var(--green-800);
  font-size: 14px;
  margin-bottom: 12px;
}

.agv-service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}
.agv-service-left { display: flex; align-items: center; gap: 12px; }
.agv-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.agv-service-left .en { font-weight: 700; font-size: 14.5px; display: block; }
.agv-service-left .bn { font-size: 12px; color: var(--muted); }
.agv-request-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #45564a;
  white-space: nowrap;
}
.agv-request-btn:hover { border-color: var(--green-600); color: var(--green-800); }

/* ---------- Community ---------- */
.agv-group-list { list-style: none; padding: 0; margin: 0; }
.agv-group-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #45564a;
  margin-bottom: 2px;
}
.agv-group-list li a.active {
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
}
.agv-group-list li a:hover:not(.active) { background: var(--green-50); }

.agv-compose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.agv-compose textarea {
  border: none;
  outline: none;
  width: 100%;
  resize: none;
  font-size: 14px;
  min-height: 44px;
  font-family: inherit;
}
.agv-compose-foot {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}

.agv-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.agv-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.agv-post-user { display: flex; align-items: center; gap: 10px; }
.agv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.agv-post-user .name { font-weight: 700; font-size: 14px; display: block; }
.agv-post-user .role { font-size: 12px; color: var(--muted); }
.agv-post-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--green-50);
  color: var(--green-700);
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
}
.agv-post-title { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.agv-post-body { font-size: 13.5px; color: #4a5a4e; margin-bottom: 12px; line-height: 1.6; }
.agv-post-foot { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.agv-post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.agv-post-foot .fa { color: #9aab9d; }

/* ---------- Learn ---------- */
.agv-topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
}
.agv-topic-card:hover { box-shadow: 0 8px 20px rgba(20,60,30,.08); transform: translateY(-2px); }
.agv-topic-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin: 0 auto 10px;
}
.agv-topic-card .en { font-weight: 700; font-size: 13.5px; display: block; }
.agv-topic-card .bn { font-size: 11.5px; color: var(--muted); }

.agv-article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}
.agv-article-media {
  background: linear-gradient(180deg, var(--green-100), #eef7ee);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--green-700);
}
.agv-article-body { padding: 16px 18px; }
.agv-article-meta {
  font-size: 11.5px;
  color: var(--green-700);
  font-weight: 700;
  margin-bottom: 8px;
}
.agv-article-meta .dot { color: var(--muted); font-weight: 400; margin: 0 5px; }
.agv-article-body h6 { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.35; }
.agv-article-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

.section-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 18px;
  color: #17241a;
}

/* ---------- Section spacing ---------- */
.agv-section { padding-bottom: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .agv-nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .agv-page-head h1 { font-size: 27px; }
  .agv-rfq-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .agv-nav-actions { width: 100%; justify-content: space-between; }
  .agv-brand-text .tag { display: none; }
  .agv-page-head h1 { font-size: 23px; }
  .agv-search { flex-wrap: wrap; }
  .agv-search button { width: 100%; margin-top: 6px; }
  .agv-service-card { flex-direction: column; align-items: flex-start; }
  .agv-request-btn { width: 100%; text-align: center; }
}
