*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navbar-height: 88px;
  --scroll-offset: var(--navbar-height);
  --brand-primary: #175F3F;
  --brand-primary-dark: #124830;
  --brand-accent: #4D906D;
  --brand-accent-light: #D3E2D9;
  --brand-muted-bg: #D3E2D9;
  --brand-tint-subtle-2: #B3D8C2;
  --brand-tint-subtle-3: #90CEAC;
  --brand-tint-bold-1: #78AC8F;
  --brand-tint-bold-2: #4D906D;
  --brand-tint-bold-3: #18754D;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  overflow-x: clip;
}

html.is-scroll-navigating {
  scroll-behavior: auto;
}

body {
  font-family: "Tajawal", sans-serif;
  font-size: 21px;
  background: #fff;
  color: var(--text-primary);
  overflow-x: clip;
  padding-top: var(--navbar-height);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  min-width: 0;
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  overflow: visible;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-primary);
}

.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-dropdown__label {
  line-height: 1.2;
}

.nav-dropdown__caret {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.active,
.nav-dropdown.is-open .nav-dropdown__toggle {
  color: var(--brand-primary);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 280px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1002;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.active {
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
}

.nav-dropdown__menu a.nav-dropdown__home {
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  transition: background 0.2s;
}

.portal-link:hover {
  background: var(--brand-primary-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--navbar-height);
  background: rgba(17, 24, 39, 0.45);
  z-index: 999;
}

.navbar.menu-open .nav-overlay {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* Hero / Search */

.help-hero {
  padding: 10px 0 12px;
  background: linear-gradient(180deg, var(--brand-muted-bg) 0%, #fff 100%);
}

.help-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.help-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.help-hero p {
  color: var(--text-muted);
  font-size: 24px;
  max-width: 640px;
  margin-bottom: 32px;
}

.search-box {
  position: relative;
  max-width: 680px;
}

.search-box input {
  width: 100%;
  padding: 18px 56px 18px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 21px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(23, 95, 63, 0.12);
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 24px;
}

.search-results {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-results.is-visible {
  display: block;
}

.search-result-item {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--brand-muted-bg);
}

.search-result-item strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.search-result-item span {
  font-size: 18px;
  color: var(--text-muted);
}

.search-empty {
  padding: 16px 18px;
  color: var(--text-muted);
  text-align: center;
}

/* About platform */

.section.about-platform {
  padding: 10px 0 40px;
  background: linear-gradient(180deg, #fff 0%, var(--brand-muted-bg) 100%);
}

.about-platform__intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.about-platform__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.about-platform__intro h2 {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 900;
  margin-bottom: 14px;
}

.about-platform__lead {
  font-size: 21px;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-platform__block {
  margin-bottom: 40px;
}

.about-platform__block:last-child {
  margin-bottom: 0;
}

.about-platform__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--brand-primary);
}

.about-platform__heading i {
  font-size: 26px;
  color: var(--brand-accent);
}

.about-platform__heading-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.guide-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  border-color: var(--brand-tint-subtle-3);
  box-shadow: var(--shadow-md);
}

.guide-card:hover .guide-card__icon {
  transform: translateY(-3px) scale(1.05);
}

.guide-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.guide-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.guide-card__icon--image {
  background: transparent;
  padding: 0;
}

.guide-card__icon--image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.guide-card h4 {
  font-size: 23px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0;
}

.guide-card p {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-platform__workflow-desc {
  color: var(--text-muted);
  font-size: 20px;
  margin: -8px 0 24px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.service-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--brand-tint-subtle-3);
  box-shadow: var(--shadow-sm);
}

.service-card > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
  font-size: 24px;
  margin-bottom: 14px;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.audience-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.audience-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 28px;
  margin-bottom: 16px;
}

.audience-card__icon--clients {
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
}

.audience-card__icon--image {
  background: transparent;
  padding: 0;
}

.audience-card__icon--image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.audience-card__icon--partners {
  background: var(--brand-primary);
  color: #fff;
}

.audience-card__icon--partners.audience-card__icon--image {
  background: transparent;
}

.audience-card h4 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.audience-card > p {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.audience-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audience-card li {
  position: relative;
  padding-right: 22px;
  font-size: 18px;
  color: var(--text-primary);
}

.audience-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--brand-accent);
  font-size: 16px;
}

.workflow-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.workflow-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */

.section {
  padding: 48px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 21px;
}

/* Category cards */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.category-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
  font-size: 26px;
}

.category-card__icon--image {
  width: 80px;
  height: 80px;
  background: transparent;
  padding: 0;
}

.category-card__icon--image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.category-card h3 {
  font-size: 24px;
  font-weight: 800;
}

.category-card p {
  font-size: 19px;
  color: var(--text-muted);
  flex: 1;
}

.category-card__link {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 18px;
}

.category-card--with-step {
  flex-direction: column;
}

.category-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.category-card__step {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__step img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

/* Article list */

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.article-link:hover {
  background: var(--brand-muted-bg);
  border-color: var(--brand-tint-subtle-3);
}

.article-link__text strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.article-link__text span {
  font-size: 18px;
  color: var(--text-muted);
}

.article-link i {
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* Quick help cards */

.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.quick-help-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--brand-muted-bg);
  border: 1px solid var(--brand-tint-subtle-2);
}

.quick-help-card i {
  color: var(--brand-accent);
  font-size: 28px;
  margin-bottom: 12px;
}

.quick-help-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.quick-help-card p {
  font-size: 18px;
  color: var(--text-muted);
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-question i {
  color: var(--brand-primary);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 19px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.faq-filter button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-filter button.is-active,
.faq-filter button:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Article page */

.page-hero {
  padding: 40px 0 32px;
  background: var(--brand-muted-bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--brand-primary);
}

.page-hero h1 {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 720px;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 64px;
  align-items: start;
  overflow: visible;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
  align-self: start;
  z-index: 5;
  max-height: calc(100vh - var(--navbar-height) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.article-content-panel {
  min-width: 0;
}

@media (min-width: 1101px) {
  .article-content-panel {
    scrollbar-gutter: stable;
  }
}

.article-sidebar h4 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-sidebar a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  transition: background 0.15s;
}

.article-sidebar a:hover,
.article-sidebar a.is-active {
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
  font-weight: 700;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-group__toggle:hover,
.sidebar-group__toggle.is-active {
  background: var(--brand-muted-bg);
  color: var(--brand-primary);
  font-weight: 700;
}

.sidebar-group__arrow,
.sidebar-group__icon {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.sidebar-group.is-open .sidebar-group__arrow,
.sidebar-group.is-open .sidebar-group__icon {
  transform: rotate(-90deg);
  color: var(--brand-primary);
}

.sidebar-group__sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-block: 2px 4px;
  margin-inline-start: 14px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid #e5e7eb;
}

.sidebar-group.is-open .sidebar-group__sub {
  display: flex;
}

.sidebar-group__sub a {
  padding: 6px 10px;
  font-size: 17px;
  color: #64748b;
  font-weight: 500;
}

.sidebar-group__sub a:hover,
.sidebar-group__sub a.is-active {
  color: var(--brand-primary);
  font-weight: 700;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--scroll-offset) + 16px);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 24px 0 10px;
  scroll-margin-top: calc(var(--scroll-offset) + 16px);
}

.article-content p {
  margin-bottom: 16px;
  color: #374151;
}

.article-content ul,
.article-content ol {
  margin: 0 24px 16px 0;
  color: #374151;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content .tip-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--brand-accent-light);
  border: 1px solid var(--brand-tint-subtle-3);
  margin: 20px 0;
}

.article-content .tip-box strong {
  color: var(--brand-accent);
}

.article-figure {
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
}

.article-figure img {
  display: block;
  width: 100%;
}

.figure-annotated {
  position: relative;
}

.figure-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.figure-marker__label {
  position: relative;
  background: var(--brand-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(23, 95, 63, 0.35);
}

.figure-marker__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--brand-primary);
}

.figure-marker__icon {
  color: var(--brand-primary);
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  animation: figure-marker-bounce 1.6s ease-in-out infinite;
}

@keyframes figure-marker-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.figure-marker--from-right {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  transform: translate(0, -50%);
  direction: ltr;
}

.figure-marker--from-right .figure-marker__label::after {
  display: none;
}

.figure-marker--from-right .figure-marker__icon {
  animation: figure-marker-bounce-x 1.6s ease-in-out infinite;
}

.figure-marker--from-below {
  transform: translate(-50%, 0);
}

.figure-marker--from-below .figure-marker__label::after {
  top: -6px;
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: var(--brand-primary);
}

.figure-marker--from-below .figure-marker__icon {
  animation: figure-marker-bounce-up 1.6s ease-in-out infinite;
}

@keyframes figure-marker-bounce-up {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.figure-marker--danger .figure-marker__label {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.figure-marker--danger .figure-marker__icon {
  color: #dc2626;
}

@keyframes figure-marker-bounce-x {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-5px);
  }
}

@media (max-width: 640px) {
  .figure-marker__label {
    font-size: 13px;
    padding: 4px 7px;
  }

  .figure-marker__icon {
    font-size: 20px;
  }
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.contact-card i {
  font-size: 36px;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 19px;
  margin-bottom: 12px;
}

.contact-card a {
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  max-width: 640px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 19px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 19px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(23, 95, 63, 0.1);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.primary-btn:hover {
  background: var(--brand-primary-dark);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 40px 0 24px;
  background: #122a1f;
  color: var(--brand-tint-subtle-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--brand-tint-bold-1);
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e4a35;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  color: var(--brand-tint-bold-1);
}

.footer-bottom a {
  color: var(--brand-tint-bold-1);
  text-decoration: none;
}

/* Utilities */

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.no-results-msg {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 1300px) and (min-width: 1101px) {
  .nav-links {
    gap: 16px;
  }

  .nav-dropdown__toggle,
  .nav-links a {
    font-size: 18px;
  }

  .portal-link {
    font-size: 17px;
    padding: 10px 14px;
  }

  .logo img {
    height: 46px;
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    width: min(320px, 88vw);
    height: calc(100vh - var(--navbar-height));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: #fff;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1001;
    overflow-y: auto;
  }

  .navbar.menu-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    gap: 10px;
  }

  .nav-dropdown__caret {
    margin-top: 0;
  }

  .nav-dropdown--in-section .nav-dropdown__menu,
  .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    min-width: 0;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown--in-section.is-open .nav-dropdown__menu,
  .nav-dropdown.is-open .nav-dropdown__menu,
  .navbar.menu-open .nav-dropdown--in-section .nav-dropdown__menu {
    max-height: 640px;
  }

  .nav-dropdown__menu a {
    padding: 12px 16px;
    font-size: 17px;
  }

  .nav-actions .portal-link span {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    max-height: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .portal-link {
    padding: 10px 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .help-hero h1 {
    font-size: clamp(22px, 7vw, 32px);
    white-space: nowrap;
  }
}
