/* =========================================================================
   Parex Bridge Knowledge Base — Theme Stylesheet
   Shared across every page. Organized as:
   1. Custom properties (design tokens)
   2. Reset & base
   3. Layout helpers (container, sections)
   4. Header / nav
   5. Breadcrumb
   6. Buttons
   7. Search box + live dropdown
   8. Hero sections
   9. Category / subcategory card grids
   10. Article lists & rows
   11. Sidebar + two-column layout (topic article list / article detail)
   12. Article body typography
   13. Feedback widget
   14. Become-partner section + modal
   15. Contact page (info cards + form)
   16. Search results page
   17. CTA section
   18. Footer
   19. Responsive breakpoints (tablet / mobile)
   ========================================================================= */

/* ---------- 1. Custom properties ---------- */
:root {
  --color-primary: #37B842;
  --color-primary-dark: #1F7A34;
  --color-ink: #1E2A20;
  --color-ink-darkest: #0E1F13;
  --color-ink-dark-2: #163A22;

  --muted-1: #526155;
  --muted-2: #5E6E60;
  --muted-3: #6B7D6F;

  --tint-1: #E8F5EA;
  --tint-2: #D7EAD9;
  --tint-3: #DCEDDD;
  --tint-4: #EEF5EE;
  --tint-5: #C7E6CA;

  --bg: #F7FAF7;
  --white: #ffffff;

  --on-dark-1: #AFC7B2;
  --on-dark-2: #7BE28D;
  --on-dark-3: #7C9080;

  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1240px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-soft: 0 20px 45px -22px rgba(55, 184, 66, 0.35);
  --shadow-card: 0 18px 40px -18px rgba(55, 184, 66, 0.32);
  --shadow-dropdown: 0 24px 48px -20px rgba(14, 31, 19, 0.22);
}

/* ---------- 2. Reset & base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-heading); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

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

button { font-family: var(--font-body); border: none; cursor: pointer; }

::placeholder { color: var(--muted-3); }

input, select, textarea { font-family: var(--font-body); }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

main { display: block; width: 100%; overflow-x: hidden; }

section { width: 100%; }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(247, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tint-2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .logo img { height: 40px; width: auto; }

/* ---------- 5. Breadcrumb ---------- */
.breadcrumb-bar {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--tint-3);
}

.breadcrumb-bar .container { padding-top: 16px; padding-bottom: 16px; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-3);
  font-weight: 500;
}

.breadcrumb a { color: var(--muted-3); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .current { color: var(--color-ink); font-weight: 600; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background .18s ease, transform .18s ease;
  white-space: nowrap;
}

.btn-dark { background: var(--color-ink); color: var(--white); }
.btn-dark:hover { background: #14231A; color: var(--white); transform: translateY(-1px); }

.btn-primary { background: var(--color-primary); color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--white); transform: translateY(-1px); }

.btn-ghost { background: var(--white); border: 1.5px solid var(--tint-3); color: var(--color-ink); }
.btn-ghost:hover { background: var(--bg); color: var(--color-ink); border-color: var(--color-primary); }

.btn-block { width: 100%; }

/* Form submit buttons - refined proportion */
#contactSubmit, #partnerModalSubmit {
  padding: 10px 20px;
  font-size: 14px;
  height: 42px;
}

/* ---------- 7. Search box + live dropdown ---------- */
.search-box-wrap {
  position: relative;
  z-index: 30;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--tint-5);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-soft);
}

.search-box input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 13px 12px;
  font-size: 15px;
  background: transparent;
  color: var(--color-ink);
}
.search-box input[type="search"]:focus { outline: none; }

.search-box .btn { flex-shrink: 0; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--tint-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  text-align: left;
  overflow-y: auto;
  max-height: 420px;
  z-index: 50;
  display: none;
}
.search-dropdown.is-open { display: block; }

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--tint-4);
  font-size: 14px;
  color: var(--color-ink);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
  text-decoration: none;
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--tint-1); }

.search-dropdown-item .search-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--color-ink-darkest);
  font-size: 14px;
  font-weight: 500;
}

.search-dropdown-item .search-item-app {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-1);
  color: var(--color-primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(55, 184, 66, 0.22);
  letter-spacing: 0.2px;
  transition: background .15s ease, border-color .15s ease;
}

.search-dropdown-item:hover .search-item-app {
  background: var(--white);
  border-color: var(--color-primary);
}

/* ---------- 8. Hero sections ---------- */
.hero {
  position: relative;
  padding: 40px 32px 56px;
  text-align: center;
  overflow: visible;
  z-index: 20;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 620px;
  background: radial-gradient(closest-side, rgba(55,184,66,0.22), rgba(55,184,66,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--color-ink-darkest);
  margin: 0 0 20px;
  letter-spacing: -1.2px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-1);
  margin: 0 0 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero--compact { padding: 56px 32px 60px; }
.hero--compact .hero-inner { max-width: 720px; }
.hero--compact .hero-title { font-size: 42px; letter-spacing: -0.9px; margin-bottom: 14px; }
.hero--compact .hero-subtitle { font-size: 16.5px; margin-bottom: 34px; }

.hero--contact { padding: 56px 32px 20px; }
.hero--contact .hero-inner { max-width: 640px; }
.hero--contact .hero-title { font-size: 38px; letter-spacing: -0.8px; margin-bottom: 12px; }
.hero--contact .hero-subtitle { font-size: 16px; margin-bottom: 0; }

/* ---------- 9. Category / subcategory card grids ---------- */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-ink-darkest);
  margin: 0;
  letter-spacing: -0.6px;
}

.view-all-link {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--tint-3);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-primary); }

.cat-card h3 { font-size: 17px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 8px; font-family: var(--font-body); }
.cat-card p { font-size: 14px; line-height: 1.55; color: var(--muted-2); margin: 0 0 16px; min-height: 44px; }
.cat-card .count { font-size: 12.5px; font-weight: 600; color: var(--muted-3); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.sub-card {
  background: var(--white);
  border: 1.5px solid var(--tint-3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* GP - 15-09-2026 Normal: primary green (#37B842) like search button; Hover: dark green (#1F7A34) */
.icon-circle {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s ease;
}
.icon-circle svg path, .icon-circle svg circle { stroke: var(--white); }
.icon-circle i {
  font-size: 20px;
  color: var(--white);
  transition: color .18s ease;
}

.sub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-primary); }
.sub-card:hover .icon-circle { background: var(--color-primary-dark); }
.sub-card:hover .icon-circle svg path, .sub-card:hover .icon-circle svg circle { stroke: var(--white); }
.sub-card:hover .icon-circle i { color: var(--white) !important; }

.sub-card-body { flex: 1; min-width: 0; }
.sub-card-body h3 { font-size: 16px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 5px; }
.sub-card-body p { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); margin: 0 0 10px; }
.sub-card-body .count { font-size: 12px; font-weight: 600; color: var(--muted-3); }

/* ---------- 10. Article lists & rows ---------- */
.article-list {
  background: var(--white);
  border: 1.5px solid var(--tint-3);
  border-radius: 16px;
  overflow: hidden;
}

.art-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--tint-4);
  cursor: pointer;
  transition: background .15s ease;
}
.art-row:last-child { border-bottom: none; }
.art-row:hover { background: var(--tint-1); }
.art-row:hover .chev { transform: translateX(3px); }
.art-row:hover .art-title { color: var(--color-primary-dark); }

.art-row-body { flex: 1; min-width: 0; }
.art-title { font-size: 15.5px; font-weight: 600; color: var(--color-ink); line-height: 1.4; margin-bottom: 5px; transition: color .15s ease; }
.art-desc { font-size: 13.5px; color: var(--muted-3); line-height: 1.55; }

.chev { flex-shrink: 0; margin-top: 4px; transition: transform .15s ease; }

.articles-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.articles-cols h2 { font-size: 22px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 18px; letter-spacing: -0.4px; }

/* ---------- 11. Sidebar + two-column layout ---------- */
.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: flex-start;
}

/* GP - 15-09-2026 Set sidebar position static to prevent vertical shifting/offsets on navigation */
.sidebar-col { position: static; }

.sidebar-label {
  font-size: 12px; font-weight: 700; color: var(--muted-3);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 12px; padding-left: 4px;
}

.sidebar-list { display: flex; flex-direction: column; gap: 2px; }

.side-item {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
  font-size: 14px;
}
.side-item.is-active { background: var(--color-primary); color: var(--white); font-weight: 700; }
.side-item:not(.is-active) { color: var(--color-ink); font-weight: 500; }
.side-item:not(.is-active):hover { background: var(--tint-1); }

.side-item.side-item-sm { font-size: 13.5px; }

/* ---------- 12. Article body typography ---------- */
.article-card {
  background: var(--white);
  border: 1.5px solid var(--tint-3);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
}

.article-title {
  font-size: 28px; line-height: 1.3; font-weight: 700;
  color: var(--color-ink-darkest); margin: 0 0 20px; letter-spacing: -0.5px;
}

.article-meta {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 24px; margin-bottom: 28px;
  border-bottom: 1px solid var(--tint-4);
}

.article-meta .avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--tint-1); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; font-family: var(--font-heading);
  flex-shrink: 0;
}

.article-meta .author-name { font-size: 13.5px; font-weight: 600; color: var(--color-ink); }
.article-meta .author-sub { font-size: 12.5px; color: var(--muted-3); }

.article-body p { font-size: 15.5px; line-height: 1.7; color: #33403A; margin: 0 0 18px; }
.article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body ol li { font-size: 15.5px; line-height: 1.7; color: #33403A; margin-bottom: 12px; }
.article-body ol ol { list-style: lower-alpha; margin-top: 10px; }
.article-body strong { color: var(--color-ink-darkest); font-weight: 700; }

.callout {
  display: flex; gap: 14px;
  background: var(--tint-1); border: 1px solid var(--tint-5);
  border-radius: var(--radius-md); padding: 18px 20px; margin: 8px 0 24px;
}
.callout p { font-size: 14px; line-height: 1.6; color: #1F4A2A; margin: 0; }
.callout strong { color: var(--color-ink-darkest); }
.callout svg { flex-shrink: 0; margin-top: 1px; }

.article-figure {
  margin: 0 0 24px;
  border: 1.5px dashed var(--tint-5);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #FBFDFB;
  text-align: center;
}
.article-figure .image-slot {
  background: var(--bg); border: 1px solid var(--tint-3); border-radius: 10px;
  height: 200px; display: flex; align-items: center; justify-content: center;
}
.article-figure figcaption { font-size: 12.5px; color: var(--muted-3); margin-top: 10px; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--color-primary-dark);
  background: var(--tint-1); padding: 6px 14px; border-radius: 999px;
}

/* ---------- 13. Feedback widget ---------- */
.feedback-widget { border-top: 1px solid var(--tint-4); padding-top: 26px; }

.feedback-thanks { font-size: 14.5px; font-weight: 600; color: var(--color-primary-dark); margin: 0; }

.feedback-prompt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feedback-prompt .feedback-label { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }

.feedback-btn {
  background: var(--white); border: 1.5px solid var(--tint-3); color: var(--color-ink);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.feedback-btn:hover { border-color: var(--color-primary); transform: translateY(-1px); }

.feedback-prompt .submit-request-link { font-size: 13.5px; font-weight: 600; margin-left: auto; }

/* ---------- 14. Become-partner section + modal ---------- */
.partner-panel {
  background: var(--white); border: 1.5px solid var(--tint-3); border-radius: var(--radius-xl);
  padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.partner-panel::before {
  content: ''; position: absolute; bottom: -100px; left: -60px; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(55,184,66,0.12), rgba(55,184,66,0) 72%);
  pointer-events: none;
}
.partner-copy { position: relative; max-width: 560px; }
.partner-copy h2 { font-size: 28px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 12px; letter-spacing: -0.5px; }
.partner-copy p { font-size: 15px; line-height: 1.6; color: var(--muted-1); margin: 0 0 26px; }

.partner-icon {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  background: var(--tint-1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(14, 31, 19, 0.55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.is-open { display: flex; }

.modal-card {
  background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 580px;
  max-height: 92vh; overflow-y: auto; padding: 26px 30px 22px; position: relative;
  border: 1.5px solid var(--tint-3);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--tint-3); background: var(--white);
  color: var(--muted-1); font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover {
  background: var(--tint-1); border-color: var(--color-primary); color: var(--color-primary-dark);
}

.modal-success { text-align: center; padding: 30px 10px 10px; display: none; }
.modal-success.is-visible { display: block; }
.modal-success .success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.modal-success h3 { font-size: 20px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 8px; }
.modal-success p { font-size: 14.5px; color: var(--muted-3); margin: 0 0 26px; }

.modal-form { display: none; }
.modal-form.is-visible { display: block; }
.modal-form h2 { font-size: 20px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 22px; }

.modal-success { text-align: center; padding: 30px 10px 10px; display: none; }
.modal-success.is-visible { display: block; }
.modal-success .success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.modal-success h3 { font-size: 22px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 8px; }
.modal-success p { font-size: 14.5px; color: var(--muted-1); margin: 0 0 26px; }

/* ---------- 15. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: flex-start;
}

.contact-info-stack { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
  background: var(--white); border: 1.5px solid var(--tint-3);
  border-radius: var(--radius-lg); padding: 26px;
}
.contact-info-card h2 { font-size: 17px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 18px; }

.info-row {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border-radius: var(--radius-sm); transition: background .15s ease;
}
.info-row:hover { background: var(--bg); }

.info-row .icon-badge {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--tint-1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row .info-label { font-size: 12px; color: var(--muted-3); font-weight: 600; margin-bottom: 2px; }
.info-row .info-value { font-size: 14.5px; font-weight: 600; }

.contact-tip {
  background: linear-gradient(135deg, var(--color-ink-darkest), var(--color-ink-dark-2));
  border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden;
}
.contact-tip::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px;
  background: radial-gradient(closest-side, rgba(55,184,66,0.35), rgba(55,184,66,0) 70%);
}
.contact-tip p { position: relative; font-size: 13.5px; color: var(--tint-1); line-height: 1.6; margin: 0; }

.contact-form-card {
  background: var(--white); border: 1.5px solid var(--tint-3);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form-card h2 { font-size: 17px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--color-ink); margin-bottom: 7px; transition: color .15s ease; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--tint-3); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14.5px; font-family: var(--font-body);
  color: var(--color-ink); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(55,184,66,0.15);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%236B7D6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Validation error highlights: only input border and error message text are red */
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626 !important;
  background-color: var(--white) !important;
}
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12) !important;
}
.field-error-text {
  display: block;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.4;
}

.contact-success { text-align: center; padding: 40px 20px; display: none; }
.contact-success.is-visible { display: block; }
.contact-success .success-icon {
  width: 56px; height: 56px; border-radius: 999px; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.contact-success h2 { font-size: 20px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 8px; }
.contact-success p { font-size: 14.5px; color: var(--muted-1); margin: 0 0 22px; }

.contact-form.is-hidden { display: none; }

/* ---------- 16. Search results page ---------- */
.search-page-header { border-bottom: 1px solid var(--tint-3); padding: 18px 0 28px; }
.search-page-header h1 { font-size: 30px; font-weight: 700; color: var(--color-ink-darkest); margin: 0 0 16px; letter-spacing: -0.5px; }
.search-page-header .search-box { max-width: 620px; }
.search-page-header .result-count { font-size: 14px; color: var(--muted-3); margin: 14px 0 0; }
.search-page-header .result-count strong { color: var(--color-ink); font-weight: 700; }

.results-list { padding: 8px 0 0; }
.results-list .art-title { color: var(--color-primary-dark); font-size: 16px; font-weight: 700; }

.no-results {
  background: var(--white); border: 1.5px dashed var(--tint-5); border-radius: var(--radius-lg);
  padding: 60px 32px; text-align: center; display: none;
}
.no-results.is-visible { display: block; }
.no-results .no-results-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--tint-1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.no-results h3 { font-size: 18px; font-weight: 700; color: var(--color-ink); margin: 0 0 6px; }
.no-results p { font-size: 14px; color: var(--muted-3); margin: 0 0 20px; }

/* ---------- 17. CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-ink-darkest), var(--color-ink-dark-2));
  border-radius: var(--radius-xl); padding: 64px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(55,184,66,0.35), rgba(55,184,66,0) 70%);
}
.cta-section h2 { position: relative; font-size: 30px; font-weight: 700; color: var(--white); margin: 0 0 12px; letter-spacing: -0.5px; }
.cta-section p { position: relative; font-size: 16px; color: var(--on-dark-1); margin: 0 0 28px; }
.cta-section .btn { position: relative; padding: 15px 30px; font-size: 15px; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--color-ink-darkest); padding: 54px 32px 28px; }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--on-dark-3); line-height: 1.6; max-width: 220px; }

.footer-col-title {
  font-size: 12.5px; font-weight: 700; color: var(--white); text-transform: uppercase;
  letter-spacing: 0.6px; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13.5px; color: var(--on-dark-1); }
.footer-links a:hover { color: var(--white); }

.footer-copyright { text-align: center; font-size: 12px; color: var(--muted-2); margin: 22px 0 0; }

/* ---------- 19. Responsive breakpoints ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
}

@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar-col { position: static; }
  .articles-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px !important; }
  .hero--compact .hero-title { font-size: 32px !important; }
  .hero--contact .hero-title { font-size: 30px !important; }
  .section-title { font-size: 22px; }
  .partner-panel { flex-direction: column; text-align: center; padding: 40px 28px; }
  .partner-copy { max-width: 100%; }
  .article-card { padding: 28px 22px; }
  .article-title { font-size: 22px; }
  .cta-section { padding: 48px 24px; }
  .cta-section h2 { font-size: 24px; }
  .field-row, .modal-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
  .site-header .logo img { height: 32px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .hero { padding: 28px 16px 40px; }
  .hero-title { font-size: 30px !important; letter-spacing: -0.6px; }
  .hero-subtitle { font-size: 15.5px; }
  .search-box { flex-wrap: wrap; padding: 10px; }
  .search-box input[type="search"] { width: 100%; padding: 10px 4px; }
  .search-box .btn { width: 100%; margin-top: 4px; }
  .partner-icon { width: 100px; height: 100px; }
  .partner-icon svg { width: 44px; height: 44px; }
  .modal-card { padding: 28px 22px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
