/* ============================================================
   Agrobiz — Homepage + Navbar + Footer
   Exact match to agro-market24.eu layout
   ============================================================ */

/* ─── Top green bar ──────────────────────────────────────── */
.ag-topbar {
  background: #7BB93E;
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 0;
}
.ag-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ag-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.ag-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  transition: background 0.15s;
  background: transparent;
  border: 0;
}
.ag-topbar-link:hover {
  background: rgba(0,0,0,0.12);
  color: #fff;
}
.ag-topbar-lang .dropdown-toggle::after {
  margin-left: 4px;
  font-size: 0.6rem;
}
.ag-topbar-flag {
  margin-left: 4px;
  font-size: 0.9rem;
}

/* ─── Main header ────────────────────────────────────────── */
.ag-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 14px 0;
  position: relative;
  z-index: 100;
}
.ag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.ag-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.ag-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ag-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.ag-logo-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #4A8B1E;
  letter-spacing: -0.5px;
  font-family: Georgia, "Times New Roman", serif;
}
.ag-logo-accent {
  color: #D33C2E;
}
.ag-logo-tagline {
  font-size: 0.68rem;
  color: #6c757d;
  letter-spacing: 0.2px;
  font-weight: 500;
}

/* Main nav */
.ag-main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ag-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.15s;
  text-transform: uppercase;
}
.ag-nav-btn-green {
  background: #7BB93E;
  color: #fff;
}
.ag-nav-btn-green:hover {
  background: #6aa533;
  color: #fff;
}
.ag-nav-btn-red {
  background: #E8342C;
  color: #fff;
}
.ag-nav-btn-red:hover {
  background: #c92a23;
  color: #fff;
}
.ag-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #212529;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}
.ag-nav-link:hover {
  color: #7BB93E;
  background: #f5f9f0;
}
.ag-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E8342C;
  color: #fff;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  margin-left: 4px;
}

/* Mobile toggles */
.ag-header-mobile-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ag-mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  color: #212529;
  padding: 8px 4px;
  cursor: pointer;
}
.ag-mobile-menu-btn i { font-size: 1.5rem; }
.ag-mobile-post-btn {
  font-size: 0.72rem;
  padding: 8px 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* ─── Category tile strip ────────────────────────────────── */
.ag-cat-strip {
  background: #fff;
  padding: 8px 0 20px;
  border-bottom: 1px solid #f0f2f4;
}
.ag-cat-strip-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.ag-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px 16px;
  background: #7BB93E;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  min-height: 130px;
}
.ag-cat-tile:hover {
  background: #6aa533;
  transform: translateY(-2px);
  color: #fff;
}
.ag-cat-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ag-cat-tile-icon svg {
  stroke: #fff;
  width: 44px;
  height: 44px;
}
.ag-cat-tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ─── Hero banner ────────────────────────────────────────── */
.ag-hero-banner {
  background: #FAF6EC;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(140,198,63,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(140,198,63,0.1) 0%, transparent 40%);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}
.ag-hero-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  min-height: 260px;
}
.ag-hero-banner-text {
  padding: 20px 0;
}
.ag-hero-script {
  font-family: "Brush Script MT", "Segoe Script", cursive, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #7BB93E;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.5px;
}
.ag-hero-script-num {
  font-weight: 700;
  color: #4A8B1E;
}
.ag-hero-banner-globe {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-hero-banner-globe svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ─── Results heading ────────────────────────────────────── */
.ag-results-head {
  background: #E9ECEF;
  padding: 18px 0;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.ag-results-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ag-results-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #212529;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.ag-sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ag-sort-label {
  font-size: 0.85rem;
  color: #495057;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}
.ag-sort-form select {
  padding: 8px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  font-size: 0.85rem;
  color: #495057;
  min-width: 180px;
}

/* ─── Feed wrapper ───────────────────────────────────────── */
.ag-feed-wrap {
  padding: 24px 0 40px;
  background: #fff;
}

/* Filters used */
.ag-filters-used {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f2f4;
  font-size: 0.85rem;
}
.ag-filters-used-label {
  color: #6c757d;
  font-weight: 500;
}
.ag-filter-chip {
  background: #f1f3f5;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #495057;
}
.ag-filter-clear {
  margin-left: auto;
  color: #E8342C;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ─── Ad row ─────────────────────────────────────────────── */
.ag-feed {
  border-top: 1px solid #f0f2f4;
}
.ag-ad-row {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
  align-items: flex-start;
}

/* Thumbnail */
.ag-ad-row-thumb {
  display: block;
  width: 160px;
  height: 120px;
  border-radius: 4px;
  background: #f1f3f5;
  background-size: cover;
  background-position: center;
  transition: transform 0.15s;
}
.ag-ad-row-thumb:hover { transform: scale(1.02); }

/* Body */
.ag-ad-row-body { min-width: 0; }

.ag-ad-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ag-ad-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
  background: #fff;
}
.ag-badge-sell {
  color: #7BB93E;
  border-color: #7BB93E;
  background: #f8fce8;
}
.ag-badge-buy {
  color: #4A8B1E;
  border-color: #4A8B1E;
  background: #f0f7e4;
}
.ag-ad-row-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  text-decoration: none;
  text-transform: lowercase;
}
.ag-ad-row-title:hover { color: #7BB93E; }
.ag-ad-row-price {
  font-size: 0.92rem;
  color: #495057;
  font-weight: 500;
}

.ag-ad-row-desc {
  font-size: 0.88rem;
  color: #495057;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ag-ad-row-meta-labels,
.ag-ad-row-meta-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  font-size: 0.82rem;
}
.ag-ad-row-meta-labels span {
  color: #ADB5BD;
  font-weight: 500;
}
.ag-ad-row-meta-values {
  margin-top: 2px;
}
.ag-ad-row-meta-values span {
  color: #212529;
  font-weight: 500;
}

/* Side */
.ag-ad-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}
.ag-ad-row-date {
  font-size: 0.78rem;
  color: #6c757d;
  text-align: right;
}
.ag-ad-row-date strong {
  color: #495057;
  font-weight: 600;
}
.ag-ad-row-location {
  font-size: 0.78rem;
  color: #6c757d;
  text-align: right;
  margin-bottom: 6px;
  min-height: 18px;
}

.ag-btn-details,
.ag-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.ag-btn-details {
  background: #7BB93E;
  color: #fff;
}
.ag-btn-details:hover {
  background: #6aa533;
  color: #fff;
}
.ag-btn-contact {
  background: #2E7BC4;
  color: #fff;
}
.ag-btn-contact:hover {
  background: #245f97;
  color: #fff;
}

/* ─── Inline widgets (search / country / FAQ) ────────────── */
.ag-widget {
  padding: 22px 0;
  border-bottom: 1px solid #e9ecef;
}
.ag-widget-inner {
  padding: 0;
}
.ag-widget-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
}
.ag-widget-search {
  background: #E9ECEF;
  margin: 0 -15px;
  padding: 24px 15px;
  border-bottom: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
}
.ag-widget-search .ag-widget-title,
.ag-widget-country .ag-widget-title {
  color: #212529;
  font-size: 1.2rem;
}
.ag-widget-country {
  background: #E9ECEF;
  margin: 0 -15px;
  padding: 24px 15px;
  border-bottom: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
}
.ag-widget-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.ag-widget-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
  color: #212529;
}
.ag-widget-input::placeholder { color: #ADB5BD; }
.ag-widget-select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
  color: #212529;
}
.ag-widget-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E8342C;
  color: #fff;
  border: 0;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.3px;
  min-width: 54px;
}
.ag-widget-btn-red:hover { background: #c92a23; }

/* FAQ widget */
.ag-widget-faq {
  padding: 0;
  margin: 0 -15px;
  border: 0;
}
.ag-faq-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 15px;
  background: #FAF6EC;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(140,198,63,0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 50%, rgba(140,198,63,0.08) 0%, transparent 30%);
  border-top: 1px solid #f0e8d4;
  border-bottom: 1px solid #f0e8d4;
  flex-wrap: wrap;
}
.ag-faq-leaves {
  width: 60px;
  height: 70px;
  flex-shrink: 0;
}
.ag-faq-text {
  flex: 1;
  font-family: "Brush Script MT", "Segoe Script", cursive, Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: #7BB93E;
  font-weight: 400;
  line-height: 1.1;
}
.ag-faq-btn {
  background: #2E7BC4;
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
  position: relative;
}
.ag-faq-btn:hover {
  background: #245f97;
  color: #fff;
}

/* ─── Pagination ─────────────────────────────────────────── */
.ag-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.ag-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #E9ECEF;
  color: #495057;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  font-size: 1.05rem;
}
.ag-page-arrow:hover {
  background: #7BB93E;
  color: #fff;
}
.ag-page-arrow.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ag-page-info {
  font-size: 0.92rem;
  color: #495057;
  font-weight: 500;
}

/* ─── Info box (Would you like…) ─────────────────────────── */
.ag-info-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.ag-info-box-icon {
  width: 48px;
  height: 48px;
  background: #2E7BC4;
  color: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  font-weight: 700;
}
.ag-info-box-text {
  flex: 1;
  min-width: 220px;
}
.ag-info-box-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2px;
}
.ag-info-box-text span {
  display: block;
  font-size: 0.95rem;
  color: #495057;
}
.ag-info-box-btn {
  background: #7BB93E;
  color: #fff;
  padding: 14px 24px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  transition: background 0.15s;
  white-space: nowrap;
}
.ag-info-box-btn:hover { background: #6aa533; color: #fff; }

/* ─── Green help strip ───────────────────────────────────── */
.ag-help-strip {
  background: #7BB93E;
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.ag-help-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}
.ag-help-sub {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0.95;
}
.ag-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 32px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.ag-help-btn:hover {
  background: #fff;
  color: #7BB93E;
}

/* ─── Bottom info sections ───────────────────────────────── */
.ag-bottom-info {
  padding: 40px 0 50px;
  background: #fff;
}
.ag-bottom-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E9ECEF;
}
.ag-bottom-h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #212529;
  margin: 24px 0 10px;
}
.ag-bottom-info p {
  font-size: 0.92rem;
  color: #495057;
  line-height: 1.7;
  margin: 0 0 10px;
  max-width: 1100px;
}
.ag-bottom-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 12px;
  max-width: 1100px;
}
.ag-bottom-list li {
  font-size: 0.92rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 4px;
}
.ag-bottom-list strong { color: #212529; }
.ag-bottom-links {
  color: #7BB93E !important;
  font-weight: 500;
  margin-top: 12px !important;
}
.ag-see-more-wrap {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #E9ECEF;
  margin-top: 30px;
}
.ag-see-more {
  color: #7BB93E;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.ag-see-more:hover { color: #6aa533; text-decoration: underline; }

/* ─── Footer ─────────────────────────────────────────────── */
.ag-footer-new {
  background: #fff;
  border-top: 1px solid #E9ECEF;
  padding: 40px 0 30px;
}
.ag-footer-new-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.ag-footer-col-brand { max-width: 320px; }
.ag-logo-footer .ag-logo-name { font-size: 1.4rem; }
.ag-logo-footer .ag-logo-tagline { font-size: 0.65rem; }
.ag-footer-copy {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #6c757d;
  line-height: 1.5;
}
.ag-footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ag-footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ag-footer-col-list li { margin-bottom: 8px; }
.ag-footer-col-list a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.ag-footer-col-list a:hover {
  color: #7BB93E;
}

/* ─── Mobile menu offcanvas ──────────────────────────────── */
.ag-mobile-menu {
  width: 300px;
}
.ag-mobile-menu .offcanvas-header {
  background: #7BB93E;
  color: #fff;
}
.ag-mobile-menu .offcanvas-header .btn-close {
  filter: invert(1);
}
.ag-mobile-menu .offcanvas-title {
  color: #fff;
  font-weight: 700;
}
.ag-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ag-mobile-menu-list li {
  border-bottom: 1px solid #f0f2f4;
}
.ag-mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.ag-mobile-menu-list a:hover { color: #7BB93E; }
.ag-mobile-menu-list i {
  color: #7BB93E;
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}
.ag-mobile-menu-sep {
  height: 8px;
  background: #f1f3f5;
  border: 0 !important;
  margin: 8px 0;
}

/* Red button used in header/footer */
.btn-ag-red {
  background: #E8342C;
  color: #fff;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background 0.15s;
}
.btn-ag-red:hover {
  background: #c92a23;
  color: #fff;
}
.btn-ag-green {
  background: #7BB93E;
  color: #fff;
  border: 0;
  font-weight: 700;
  border-radius: 5px;
  padding: 10px 20px;
}
.btn-ag-green:hover { background: #6aa533; color: #fff; }

/* ─── Feed empty ─────────────────────────────────────────── */
.ag-feed-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
  .ag-ad-row { grid-template-columns: 140px 1fr 190px; gap: 16px; }
  .ag-ad-row-thumb { width: 140px; height: 105px; }
}

@media (max-width: 991.98px) {
  .ag-logo-name { font-size: 1.3rem; }
  .ag-logo-tagline { font-size: 0.6rem; }
  .ag-header { padding: 10px 0; }
  .ag-cat-strip-row { grid-template-columns: repeat(4, 1fr); }
  .ag-cat-tile { min-height: 110px; padding: 16px 8px 12px; }
  .ag-cat-tile-icon svg { width: 36px; height: 36px; }
  .ag-cat-tile-label { font-size: 0.72rem; }
  .ag-hero-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .ag-hero-banner-globe { display: none; }
  .ag-hero-script { font-size: 1.8rem; }

  .ag-ad-row { grid-template-columns: 120px 1fr; gap: 14px; }
  .ag-ad-row-thumb { width: 120px; height: 90px; }
  .ag-ad-row-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f4;
    margin-top: 4px;
  }
  .ag-ad-row-date { text-align: left; }
  .ag-ad-row-location { text-align: left; margin-bottom: 0; }
  .ag-btn-details, .ag-btn-contact { width: auto; }

  .ag-footer-new-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .ag-footer-col-brand { grid-column: 1 / -1; text-align: center; }
  .ag-logo-footer { justify-content: center; }
}

@media (max-width: 767.98px) {
  .ag-topbar { font-size: 0.72rem; }
  .ag-topbar-link { padding: 4px 6px; }
  .ag-topbar-link span.d-none { display: none !important; }

  .ag-results-head { padding: 14px 0; }
  .ag-results-title { font-size: 1.2rem; }
  .ag-results-head-inner { gap: 10px; }
  .ag-sort-form { width: 100%; }
  .ag-sort-form select { width: 100%; }

  .ag-ad-row {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .ag-ad-row-thumb { width: 100px; height: 80px; }
  .ag-ad-row-title { font-size: 0.95rem; }
  .ag-ad-row-desc { font-size: 0.82rem; -webkit-line-clamp: 2; }
  .ag-ad-row-meta-labels,
  .ag-ad-row-meta-values {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 0.76rem;
  }
  .ag-ad-row-meta-labels span:nth-child(2),
  .ag-ad-row-meta-values span:nth-child(2) {
    display: none;
  }
  .ag-ad-row-side {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ag-ad-row-date, .ag-ad-row-location { grid-column: 1 / -1; }
  .ag-btn-details, .ag-btn-contact { width: 100%; }

  .ag-widget { padding: 18px 0; }
  .ag-widget-search, .ag-widget-country { margin: 0 -12px; padding: 20px 12px; }
  .ag-widget-title { font-size: 1rem; }
  .ag-widget-input, .ag-widget-select { min-width: 0; width: 100%; }
  .ag-widget-btn-red { width: 100%; padding: 12px 22px; }

  .ag-faq-inner { padding: 16px 12px; gap: 12px; }
  .ag-faq-leaves { width: 40px; height: 50px; }
  .ag-faq-text { font-size: 1.2rem; }
  .ag-faq-btn { padding: 10px 18px; font-size: 0.85rem; width: 100%; text-align: center; }

  .ag-pagination { justify-content: center; padding: 18px 0; }
  .ag-page-arrow { width: 38px; height: 38px; }
  .ag-page-info { font-size: 0.82rem; }

  .ag-info-box { padding: 18px; gap: 14px; }
  .ag-info-box-icon { width: 40px; height: 40px; font-size: 1.3rem; }
  .ag-info-box-text strong { font-size: 0.95rem; }
  .ag-info-box-text span { font-size: 0.85rem; }
  .ag-info-box-btn { width: 100%; text-align: center; padding: 12px 18px; font-size: 0.8rem; }

  .ag-help-strip { padding: 34px 0; }
  .ag-help-title { font-size: 1.4rem; }
  .ag-help-sub { font-size: 0.9rem; }

  .ag-bottom-title { font-size: 1.15rem; }
  .ag-bottom-h3 { font-size: 1rem; }
  .ag-bottom-info p, .ag-bottom-list li { font-size: 0.86rem; }

  .ag-footer-new { padding: 26px 0 20px; }
  .ag-footer-new-inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .ag-footer-col-title { font-size: 0.85rem; margin-bottom: 10px; }
  .ag-footer-col-list a { font-size: 0.84rem; }
}

@media (max-width: 575.98px) {
  .ag-topbar-inner { gap: 6px; }
  .ag-topbar-right { gap: 0; }
  .ag-topbar-link { padding: 4px 5px; font-size: 0.7rem; }
  .ag-topbar-link i { font-size: 0.85rem; }

  .ag-cat-strip-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ag-cat-tile { min-height: 100px; padding: 14px 6px 10px; }
  .ag-cat-tile-icon svg { width: 32px; height: 32px; }
  .ag-cat-tile-label { font-size: 0.68rem; letter-spacing: 0.5px; }

  .ag-hero-script { font-size: 1.4rem; }
  .ag-hero-banner { padding: 20px 0; }
  .ag-hero-banner-inner { min-height: auto; }

  .ag-ad-row { grid-template-columns: 84px 1fr; gap: 10px; padding: 14px 0; }
  .ag-ad-row-thumb { width: 84px; height: 68px; }
  .ag-ad-row-title { font-size: 0.88rem; }
  .ag-ad-row-price { font-size: 0.82rem; }
  .ag-ad-row-desc { font-size: 0.78rem; -webkit-line-clamp: 2; margin-bottom: 8px; }
  .ag-ad-row-meta-labels,
  .ag-ad-row-meta-values {
    grid-template-columns: 1fr 1fr;
    font-size: 0.72rem;
    gap: 4px 8px;
  }
  .ag-ad-row-side { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 6px; }
  .ag-ad-row-date, .ag-ad-row-location { font-size: 0.72rem; }
  .ag-btn-details, .ag-btn-contact { font-size: 0.75rem; padding: 8px 10px; }

  .ag-page-arrow { width: 34px; height: 34px; }
  .ag-page-info { font-size: 0.76rem; }
}


/* ═══════════════════════════════════════════════════════════
   ADVERTISEMENT LIST PAGE (advertisements.php)
   ═══════════════════════════════════════════════════════════ */

/* ─── Grey "Search advertisements" bar ───────────────────── */
.ag-list-search-bar {
  background: #E9ECEF;
  padding: 22px 0;
  border-bottom: 1px solid #dee2e6;
}
.ag-list-search-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 14px;
}
.ag-list-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ag-list-search-select {
  flex: 1;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #495057;
  font-size: 0.95rem;
}

/* ─── Results header tweaks ──────────────────────────────── */
.ag-results-head-list {
  background: #fff;
  border-top: 0;
  padding: 18px 0 14px;
  border-bottom: 1px solid #f0f2f4;
}
.ag-results-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ag-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #212529;
  cursor: pointer;
  position: relative;
}
.ag-filter-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8342C;
  margin-left: 2px;
}

/* ─── Sidebar filter panel ───────────────────────────────── */
.ag-sidebar-filter {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 18px;
  position: sticky;
  top: 20px;
}
.ag-sidebar-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f2f4;
  font-size: 1rem;
}
.ag-sidebar-filter-head strong {
  font-weight: 700;
  color: #212529;
}

.ag-filter-block {
  margin-bottom: 14px;
}
.ag-filter-block-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.ag-filter-input,
.ag-filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 0.88rem;
  background: #fff;
  color: #212529;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ag-filter-input:focus,
.ag-filter-select:focus {
  outline: none;
  border-color: #7BB93E;
  box-shadow: 0 0 0 3px rgba(123,185,62,0.15);
}
.ag-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ag-filter-radios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.ag-filter-radio {
  position: relative;
  cursor: pointer;
}
.ag-filter-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ag-filter-radio span {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 0.82rem;
  color: #495057;
  background: #fff;
  transition: all 0.15s;
  font-weight: 500;
}
.ag-filter-radio input:checked + span {
  background: #7BB93E;
  border-color: #7BB93E;
  color: #fff;
  font-weight: 600;
}

.ag-filter-apply {
  width: 100%;
  background: #7BB93E;
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ag-filter-apply:hover { background: #6aa533; }

/* ─── Result count ───────────────────────────────────────── */
.ag-result-count {
  font-size: 0.88rem;
  color: #495057;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f4;
}
.ag-result-count strong {
  color: #212529;
  font-weight: 700;
}

/* ─── Featured badge ─────────────────────────────────────── */
.ag-badge-featured {
  background: #E8342C;
  color: #fff;
  border: 1px solid #E8342C;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* ─── List-page responsive ───────────────────────────────── */
@media (max-width: 991.98px) {
  .ag-sidebar-filter {
    position: static;
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  .ag-list-search-bar { padding: 16px 0; }
  .ag-list-search-title { font-size: 1.2rem; margin-bottom: 10px; }
  .ag-list-search-select { max-width: 100%; }

  .ag-results-head-list { padding: 12px 0; }
  .ag-results-title { font-size: 1.1rem; }

  .ag-result-count { font-size: 0.82rem; }
}

/* Ensure inline widgets line up when homepage search widgets appear between rows */
@media (max-width: 767.98px) {
  .ag-widget-search,
  .ag-widget-country {
    margin: 0;
    padding: 18px 14px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 8px;
    margin-bottom: 8px;
  }
}


/* ═══════════════════════════════════════════════════════════
   PAGE BANNER (used by about / contact / categories / etc)
   ═══════════════════════════════════════════════════════════ */
.ag-page-banner {
  background: linear-gradient(135deg, #FAF6EC 0%, #F5F1E4 100%);
  border-bottom: 1px solid #E8E1CC;
  padding: 40px 0 32px;
  text-align: center;
}
.ag-page-banner-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: #212529;
  margin: 0 0 6px;
}
.ag-page-banner-sub {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}
.ag-page-banner-dash {
  text-align: left;
  padding: 32px 0 26px;
}
.ag-dash-head-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT SECTION (generic wrapper)
   ═══════════════════════════════════════════════════════════ */
.ag-content-section { padding: 40px 0 60px; background: #fff; }

/* ═══════════════════════════════════════════════════════════
   PROSE (about, terms, privacy)
   ═══════════════════════════════════════════════════════════ */
.ag-prose-block { max-width: 1000px; margin: 0 0 34px; }
.ag-prose-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E9ECEF;
}
.ag-prose-block p {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 12px;
}
.ag-prose-list {
  list-style: disc;
  padding-left: 26px;
  margin: 0 0 14px;
}
.ag-prose-list li {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 6px;
}
.ag-prose-list strong { color: #212529; }

.ag-legal h2.ag-prose-title { font-size: 1.15rem; }
.ag-legal p, .ag-legal li { font-size: 0.92rem; }

/* ═══════════════════════════════════════════════════════════
   NUMBERS ROW (about page)
   ═══════════════════════════════════════════════════════════ */
.ag-numbers-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.ag-number-cell {
  background: #FAF6EC;
  border: 1px solid #E8E1CC;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
}
.ag-number-cell strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #7BB93E;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.ag-number-cell span {
  font-size: 0.78rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS (two-col about)
   ═══════════════════════════════════════════════════════════ */
.ag-hiw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 14px;
}
.ag-hiw-col {
  background: #FAF6EC;
  border: 1px solid #E8E1CC;
  border-radius: 8px;
  padding: 22px;
}
.ag-hiw-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ag-hiw-col-title i { color: #7BB93E; font-size: 1.1rem; }
.ag-hiw-list {
  padding-left: 22px;
  margin: 0;
}
.ag-hiw-list li {
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION (about page)
   ═══════════════════════════════════════════════════════════ */
.ag-faq-accordion .accordion-item {
  border: 1px solid #E9ECEF;
  border-radius: 6px !important;
  margin-bottom: 8px;
  overflow: hidden;
}
.ag-faq-accordion .accordion-button {
  background: #fff;
  color: #212529;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 20px;
  border: 0;
  box-shadow: none;
}
.ag-faq-accordion .accordion-button:not(.collapsed) {
  background: #FAF6EC;
  color: #7BB93E;
}
.ag-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: #E9ECEF;
}
.ag-faq-accordion .accordion-button::after {
  background-size: 0.9rem;
}
.ag-faq-accordion .accordion-body {
  padding: 16px 20px 20px;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.7;
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT CTA (contact strip in about)
   ═══════════════════════════════════════════════════════════ */
.ag-content-cta {
  text-align: center;
  padding: 32px 20px;
  background: #7BB93E;
  color: #fff;
  border-radius: 10px;
  margin-top: 30px;
  max-width: 1000px;
}
.ag-content-cta h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 6px;
}
.ag-content-cta p { color: #fff; margin: 0 0 18px; opacity: 0.95; }

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════ */
.ag-contact-card,
.ag-contact-info {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 28px;
  height: 100%;
}
.ag-contact-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E9ECEF;
}
.ag-contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ag-contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F0F2F4;
}
.ag-contact-info-list li:last-child { border-bottom: 0; }
.ag-contact-info-list i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F5F9F0;
  color: #7BB93E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ag-contact-info-list strong {
  display: block;
  font-size: 0.82rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  font-weight: 600;
}
.ag-contact-info-list a,
.ag-contact-info-list span {
  color: #212529;
  font-size: 0.92rem;
  text-decoration: none;
}
.ag-contact-info-list a:hover { color: #7BB93E; }

.ag-help-strip-top { padding: 40px 0; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY MAP
   ═══════════════════════════════════════════════════════════ */
.ag-cat-map-panel {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 18px 20px;
  height: 100%;
}
.ag-cat-map-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #F0F2F4;
}
.ag-cat-map-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #7BB93E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ag-cat-map-title-wrap { flex: 1; min-width: 0; }
.ag-cat-map-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px;
}
.ag-cat-map-title a { color: #212529; text-decoration: none; }
.ag-cat-map-title a:hover { color: #7BB93E; }
.ag-cat-map-count {
  font-size: 0.78rem;
  color: #6c757d;
}
.ag-cat-map-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ag-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #F5F9F0;
  border: 1px solid #D9E9C4;
  border-radius: 16px;
  font-size: 0.8rem;
  color: #4A8B1E;
  text-decoration: none;
  transition: all 0.15s;
}
.ag-sub-link:hover {
  background: #7BB93E;
  border-color: #7BB93E;
  color: #fff;
}
.ag-sub-link-count {
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
}
.ag-sub-link:hover .ag-sub-link-count {
  background: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════════
   COUNTRIES PAGE
   ═══════════════════════════════════════════════════════════ */
.ag-country-card-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  color: #212529;
  text-decoration: none;
  transition: all 0.15s;
}
.ag-country-card-new:hover {
  border-color: #7BB93E;
  background: #F5F9F0;
  color: #212529;
  transform: translateX(2px);
}
.ag-country-card-new:hover i { color: #7BB93E; }
.ag-country-flag-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  background: #F5F9F0;
  color: #4A8B1E;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.ag-country-body { flex: 1; min-width: 0; }
.ag-country-name-new {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-country-count-new {
  display: block;
  font-size: 0.74rem;
  color: #6c757d;
}
.ag-country-card-new i { color: #ADB5BD; font-size: 0.85rem; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (login/register/forgot/reset/verify)
   ═══════════════════════════════════════════════════════════ */
.ag-auth-wrap {
  background: #FAF6EC;
  padding: 50px 0 70px;
  min-height: calc(100vh - 280px);
}
.ag-auth-card {
  background: #fff;
  border: 1px solid #E8E1CC;
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ag-auth-card-lg { max-width: 780px; }
.ag-auth-head {
  text-align: center;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E9ECEF;
}
.ag-auth-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 6px;
}
.ag-auth-sub {
  color: #6c757d;
  font-size: 0.92rem;
  margin: 0;
}
.ag-form-block { margin-bottom: 18px; }
.ag-auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.ag-auth-link {
  color: #7BB93E;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}
.ag-auth-link:hover { color: #4A8B1E; text-decoration: underline; }
.ag-auth-footer {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.ag-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #495057;
}
.ag-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #7BB93E;
}
.ag-checkbox a { color: #7BB93E; }

/* Account type tiles */
.ag-account-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.ag-account-type-tile {
  position: relative;
  cursor: pointer;
}
.ag-account-type-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ag-account-type-tile span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  background: #fff;
  transition: all 0.15s;
}
.ag-account-type-tile input:checked + span {
  background: #7BB93E;
  border-color: #7BB93E;
  color: #fff;
  font-weight: 600;
}

.ag-form-section {
  padding: 20px 0;
  border-bottom: 1px solid #F0F2F4;
}
.ag-form-section:last-child { border-bottom: 0; padding-bottom: 0; }
.ag-form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7BB93E;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
}

/* Password toggle */
.ag-password-field { position: relative; }
.ag-password-field .form-control { padding-right: 44px; }
.ag-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #ADB5BD;
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}
.ag-password-toggle:hover { color: #7BB93E; background: #F5F9F0; }

/* ═══════════════════════════════════════════════════════════
   HELP BUTTONS (used across pages)
   ═══════════════════════════════════════════════════════════ */
.ag-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ag-help-btn:hover { background: #fff; color: #7BB93E; }
.ag-help-btn-solid {
  background: #7BB93E;
  border-color: #7BB93E;
  color: #fff;
}
.ag-help-btn-solid:hover { background: #4A8B1E; border-color: #4A8B1E; color: #fff; }
.ag-help-btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.ag-dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.ag-dash-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.15s;
}
.ag-dash-kpi:hover {
  border-color: #D9E9C4;
  box-shadow: 0 4px 12px rgba(123,185,62,0.08);
}
.ag-dash-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ag-kpi-green  { background: #F5F9F0; color: #4A8B1E; }
.ag-kpi-yellow { background: #FFF8E1; color: #B8860B; }
.ag-kpi-red    { background: #FDECEA; color: #C92A23; }
.ag-kpi-blue   { background: #E7F1FA; color: #2E7BC4; }
.ag-kpi-gray   { background: #F1F3F5; color: #6c757d; }
.ag-dash-kpi strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #212529;
  line-height: 1;
  letter-spacing: -0.3px;
}
.ag-dash-kpi span {
  display: block;
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Quick tiles */
.ag-dash-quick { margin-bottom: 30px; }
.ag-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.ag-quick-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F5F9F0;
  border: 1px solid #D9E9C4;
  border-radius: 8px;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s;
  position: relative;
}
.ag-quick-tile:hover {
  background: #7BB93E;
  border-color: #7BB93E;
  color: #fff;
  transform: translateY(-1px);
}
.ag-quick-tile:hover i { color: #fff; }
.ag-quick-tile i { color: #7BB93E; font-size: 1.1rem; }
.ag-badge-count {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #E8342C;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}
.ag-badge-count-yellow { background: #F4C430; color: #212529; }

/* Dashboard panel */
.ag-dash-panel {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 22px;
  height: 100%;
}
.ag-dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F2F4;
}
.ag-dash-ad {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F4;
}
.ag-dash-ad:last-child { border-bottom: 0; }
.ag-dash-ad-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: #F1F3F5;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.ag-dash-ad-body { flex: 1; min-width: 0; }
.ag-dash-ad-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #212529;
  text-decoration: none;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-dash-ad-title:hover { color: #7BB93E; }
.ag-dash-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
}
.ag-dash-ad-edit {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #F5F9F0;
  color: #7BB93E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ag-dash-ad-edit:hover { background: #7BB93E; color: #fff; }

.ag-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ag-status-green  { background: #D9E9C4; color: #4A8B1E; }
.ag-status-yellow { background: #FFF3CD; color: #997404; }
.ag-status-red    { background: #FDECEA; color: #C92A23; }
.ag-status-blue   { background: #E7F1FA; color: #2E7BC4; }
.ag-status-gray   { background: #F1F3F5; color: #6c757d; }

/* Activity list */
.ag-dash-activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ag-dash-activity li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F4;
}
.ag-dash-activity li:last-child { border-bottom: 0; }
.ag-dash-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DEE2E6;
  margin-top: 8px;
  flex-shrink: 0;
}
.ag-dash-activity li.is-unread .ag-dash-activity-dot { background: #7BB93E; }
.ag-dash-activity strong {
  display: block;
  font-size: 0.88rem;
  color: #212529;
  margin-bottom: 2px;
}
.ag-dash-activity strong a { color: #212529; text-decoration: none; }
.ag-dash-activity strong a:hover { color: #7BB93E; }
.ag-dash-activity p {
  margin: 0 0 2px;
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.4;
}
.ag-dash-activity-time {
  font-size: 0.72rem;
  color: #ADB5BD;
}

.ag-feed-empty-sm { padding: 30px 20px; }
.ag-feed-empty-sm p { margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════
   ADVERTISEMENT DETAIL (advertisement.php)
   ═══════════════════════════════════════════════════════════ */
.ag-breadcrumb-bar {
  background: #FAF6EC;
  padding: 12px 0;
  border-bottom: 1px solid #E8E1CC;
}
.ag-breadcrumb-bar .breadcrumb {
  font-size: 0.82rem;
  margin: 0;
}
.ag-breadcrumb-bar a { color: #7BB93E; text-decoration: none; }
.ag-breadcrumb-bar a:hover { text-decoration: underline; }
.ag-breadcrumb-bar .breadcrumb-item.active { color: #6c757d; }

.ag-detail-wrap { padding: 30px 0 60px; background: #fff; }

.ag-detail-header {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.ag-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ag-detail-chip {
  display: inline-block;
  padding: 3px 12px;
  background: #F5F9F0;
  color: #4A8B1E;
  border-radius: 14px;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 500;
}
.ag-detail-chip:hover { background: #7BB93E; color: #fff; }

.ag-detail-h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 400;
  color: #212529;
  margin: 0 0 12px;
  line-height: 1.25;
}
.ag-detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.ag-detail-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4A8B1E;
}
.ag-detail-meta-item {
  font-size: 0.85rem;
  color: #6c757d;
}
.ag-detail-meta-item i { margin-right: 4px; }

/* Gallery */
.ag-detail-gallery { margin-bottom: 20px; }
.ag-detail-gallery-main {
  width: 100%;
  aspect-ratio: 16/10;
  background: #F1F3F5;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ag-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ag-detail-thumb {
  flex: 0 0 90px;
  height: 90px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: #F1F3F5;
  cursor: pointer;
  transition: border-color 0.15s;
}
.ag-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-detail-thumb:hover { border-color: #D9E9C4; }
.ag-detail-thumb.active { border-color: #7BB93E; }

/* Facts grid */
.ag-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #F5F9F0;
  border: 1px solid #D9E9C4;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.ag-detail-facts-secondary {
  background: #FAF6EC;
  border-color: #E8E1CC;
}
.ag-detail-fact { padding: 0 12px; border-right: 1px solid rgba(74,139,30,0.15); }
.ag-detail-fact:first-child { padding-left: 0; }
.ag-detail-fact:last-child { padding-right: 0; border-right: 0; }
.ag-detail-facts-secondary .ag-detail-fact { border-right-color: rgba(0,0,0,0.06); }
.ag-detail-fact-label {
  display: block;
  font-size: 0.72rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ag-detail-fact-value {
  display: block;
  font-size: 0.92rem;
  color: #212529;
  word-break: break-word;
}
.ag-detail-fact-value strong { color: #4A8B1E; }

/* Panels */
.ag-detail-panel {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.ag-detail-panel-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #212529;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0F2F4;
}
.ag-detail-description {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #495057;
}
.ag-detail-location {
  font-size: 0.95rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ag-detail-location i { color: #7BB93E; font-size: 1.2rem; }

/* Action buttons row */
.ag-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.ag-detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid #DEE2E6;
  background: #fff;
  color: #495057;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.ag-detail-action-btn:hover {
  background: #F5F9F0;
  border-color: #7BB93E;
  color: #4A8B1E;
}
.ag-detail-action-btn.is-active {
  background: #FDECEA;
  border-color: #E8342C;
  color: #C92A23;
}
.ag-detail-action-btn-danger:hover {
  background: #FDECEA;
  border-color: #E8342C;
  color: #C92A23;
}

/* Sidebar */
.ag-detail-sidebar {
  position: sticky;
  top: 20px;
}
.ag-detail-seller,
.ag-detail-side-card {
  background: #fff;
  border: 1px solid #E9ECEF;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 16px;
}
.ag-detail-seller-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #F0F2F4;
}
.ag-detail-seller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #F1F3F5;
  object-fit: cover;
  flex-shrink: 0;
}
.ag-detail-seller-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5F9F0;
  color: #4A8B1E;
  font-size: 24px;
  font-weight: 700;
}
.ag-detail-seller-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #212529;
}
.ag-detail-seller-type {
  font-size: 0.82rem;
  color: #6c757d;
  margin-top: 2px;
}
.ag-detail-seller-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
  color: #495057;
  margin-bottom: 18px;
}
.ag-detail-seller-meta i {
  color: #7BB93E;
  margin-right: 6px;
  width: 16px;
  text-align: center;
}
.ag-detail-seller-actions { display: grid; gap: 8px; }
.ag-detail-seller-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #E9ECEF;
  font-size: 0.78rem;
  color: #6c757d;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ag-detail-seller-note i { color: #7BB93E; margin-top: 2px; }

.ag-btn-contact-lg,
.ag-btn-details-lg {
  padding: 13px 18px;
  font-size: 0.9rem;
}
.ag-btn-details-sm {
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  width: auto !important;
}

.ag-detail-side-title {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 12px;
}

.ag-detail-related { margin-top: 30px; }

/* Modal buttons */
.btn-ag-green {
  background: #7BB93E;
  color: #fff;
  border: 0;
  padding: 9px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ag-green:hover { background: #4A8B1E; color: #fff; }

.btn-ag-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: #7BB93E;
  border: 2px solid #7BB93E;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all 0.15s;
}
.btn-ag-outline:hover { background: #7BB93E; color: #fff; }

/* Error page */
.ag-error-page { padding: 20px 0; }
.ag-error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: #7BB93E;
  line-height: 1;
  letter-spacing: -3px;
}
.ag-error-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #212529;
  margin: 12px 0 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .ag-detail-sidebar { position: static; }
  .ag-detail-facts { grid-template-columns: repeat(2, 1fr); }
  .ag-detail-fact {
    padding: 10px 14px 10px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(74,139,30,0.15);
  }
  .ag-detail-facts-secondary .ag-detail-fact { border-bottom-color: rgba(0,0,0,0.06); }
  .ag-detail-fact:nth-last-child(-n+2) { border-bottom: 0; }
  .ag-detail-fact:first-child,
  .ag-detail-fact:nth-child(odd) { padding-left: 0; }
  .ag-hiw-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .ag-page-banner { padding: 26px 0 22px; }
  .ag-content-section { padding: 26px 0 40px; }
  .ag-auth-wrap { padding: 30px 0 40px; }
  .ag-auth-card { padding: 24px 18px; }
  .ag-auth-title { font-size: 1.25rem; }
  .ag-account-type-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ag-dash-kpi { padding: 12px; }
  .ag-dash-kpi-icon { width: 38px; height: 38px; font-size: 1rem; }
  .ag-dash-kpi strong { font-size: 1.15rem; }
  .ag-dash-kpi span { font-size: 0.7rem; }
  .ag-quick-grid { grid-template-columns: 1fr 1fr; }
  .ag-quick-tile { padding: 12px 14px; font-size: 0.82rem; }
  .ag-dash-panel { padding: 16px; }
  .ag-detail-header { padding: 18px; }
  .ag-detail-h1 { font-size: 1.2rem; }
  .ag-detail-panel,
  .ag-detail-seller,
  .ag-detail-side-card { padding: 18px; }
  .ag-detail-facts { padding: 14px 16px; }
  .ag-detail-action-btn { font-size: 0.78rem; padding: 9px 12px; }
  .ag-detail-thumb { flex: 0 0 70px; height: 70px; }
  .ag-contact-card,
  .ag-contact-info { padding: 20px; }
}

@media (max-width: 575.98px) {
  .ag-dash-kpis { grid-template-columns: 1fr 1fr; }
  .ag-quick-grid { grid-template-columns: 1fr; }
  .ag-detail-facts { grid-template-columns: 1fr; padding: 14px 16px; }
  .ag-detail-fact { padding: 8px 0; border-right: 0; border-bottom: 1px solid rgba(74,139,30,0.15); }
  .ag-detail-facts-secondary .ag-detail-fact { border-bottom-color: rgba(0,0,0,0.06); }
  .ag-detail-fact:last-child { border-bottom: 0; }
  .ag-numbers-row { grid-template-columns: 1fr 1fr; }
  .ag-number-cell { padding: 16px 10px; }
  .ag-number-cell strong { font-size: 1.3rem; }
  .ag-prose-title { font-size: 1.15rem; }
  .ag-content-cta h3 { font-size: 1.2rem; }
  .ag-auth-card { padding: 20px 14px; border-radius: 10px; }
  .ag-account-type-grid { grid-template-columns: 1fr 1fr; }
  .ag-detail-action-btn span { display: none; }
  .ag-detail-action-btn { padding: 10px 14px; }
}