:root {
  --green: #2f9e4f;
  --green-dark: #1b5b32;
  --green-deep: #14402a;
  --ink: #26312b;
  --ink-soft: #5a6a61;
  --bg: #f4f7f4;
  --card: #ffffff;
  --line: #e2e9e3;
  --accent: #f15927;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(22, 64, 42, .08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), #7ecf6a 45%, var(--accent));
  z-index: 99;
}

img { max-width: 100%; height: auto; }

a { color: var(--green-dark); text-decoration-color: rgba(47, 158, 79, .45); text-underline-offset: 3px; }
a:hover,
a:focus { color: var(--accent); text-decoration-color: currentColor; }

::selection { background: rgba(47, 158, 79, .25); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  background: #fff;
  color: var(--green-dark);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 100000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(22, 64, 42, .06);
}

.main-header-bar { padding: 12px 0; }

.ast-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.site-branding,
.ast-site-identity { flex: 0 0 auto; }

.site-branding,
.ast-site-identity,
.site-logo-img {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}

.site-logo-img { display: block; }

.ast-main-header-bar-alignment { flex: 0 1 auto; }

.custom-logo {
  max-height: 56px !important;
  max-width: 300px;
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.main-header-menu,
.main-header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-header-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-header-menu > li { position: relative; }

.main-header-menu a.menu-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.main-header-menu > li > a.menu-link:hover,
.main-header-menu > li.current-menu-item > a.menu-link,
.main-header-menu > li.current_page_item > a.menu-link {
  background: rgba(47, 158, 79, .12);
  color: var(--green-dark);
}

.main-header-menu .current-menu-ancestor > a.menu-link,
.main-header-menu .current-menu-parent > a.menu-link,
.main-header-menu .current_page_ancestor > a.menu-link {
  color: var(--green-dark);
  background: rgba(47, 158, 79, .10);
}

.main-header-menu .menu-item-has-children > a.menu-link::after {
  content: "\25BE";
  font-family: inherit;
  font-size: .72em;
  margin-left: 5px;
  opacity: .55;
  display: inline-block;
  transform: translateY(-1px);
}

.main-header-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(22, 64, 42, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}

.main-header-menu li:hover > .sub-menu,
.main-header-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-header-menu .sub-menu a.menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  white-space: normal;
  line-height: 1.35;
}

.ast-menu-toggle { display: none; }
.ast-mobile-menu-buttons { display: none; }

.main-header-bar.ast-header-breadcrumb {
  background: #f7faf7;
  border-top: 1px solid var(--line);
  padding: 6px 0;
  font-size: .84rem;
}

.breadcrumbs,
.trail-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-soft);
}

.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b9c6bd; }

.site-content { padding: 40px 0 72px; }

#primary { width: 100%; }

.site-main { display: block; }

article.page,
article.post {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px 56px;
}

.entry-content { color: var(--ink); }

.entry-content > .elementor { margin: 0; }

.elementor-section,
.elementor-column,
.elementor-widget-wrap { width: 100%; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--green-deep);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.entry-content h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 22px;
  font-weight: 800;
}

.entry-content h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.entry-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 2.3em 0 .8em;
  padding-left: 16px;
  border-left: 5px solid var(--green);
  font-weight: 750;
}

.entry-content h3 {
  font-size: 1.22rem;
  margin: 1.9em 0 .6em;
  color: var(--green-dark);
}

.entry-content p { margin: 0 0 1.15em; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.4em; padding-left: 1.35em; }

.entry-content li { margin: .45em 0; }

.entry-content ul > li::marker { color: var(--green); font-size: 1.1em; }
.entry-content ol > li::marker { color: var(--green-dark); font-weight: 700; }

.entry-content strong { color: var(--green-deep); }

.entry-content .elementor-widget-heading .elementor-heading-title { margin: 0 0 .8em; }
.entry-content .elementor-widget-heading h1.elementor-heading-title { margin: 0 0 22px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.entry-content .elementor-widget-heading h2.elementor-heading-title { margin: 2.3em 0 .8em; }
.entry-content .elementor-widget-heading h3.elementor-heading-title { margin: 1.9em 0 .6em; }

.entry-content img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  margin: 26px auto;
  box-shadow: 0 12px 32px rgba(22, 64, 42, .10);
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 5px solid var(--green);
  background: #f1f8f2;
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: .97rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.entry-content th {
  background: var(--green);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 650;
}

.entry-content td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.entry-content tr:nth-child(even) td { background: #f7faf7; }

.entry-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.elementor-widget-image img,
figure img { margin-left: auto; margin-right: auto; }

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}

.site-footer .ast-container { padding-top: 28px; padding-bottom: 28px; }

.site-footer a { color: #c9f0cf; text-decoration: none; }

.site-footer a:hover,
.site-footer a:focus { color: #fff; text-decoration: underline; }

.site-footer [data-x-link-stub] { cursor: default; }

#ast-scroll-top,
.ast-scroll-top { display: none; }

@media (max-width: 900px) {
  body { font-size: 16px; }

  .site-header { position: static; }

  .main-header-container { gap: 14px; }

  .ast-main-header-bar-alignment { display: block; width: 100%; }
  .main-header-bar-navigation { display: block !important; }
  .main-navigation { display: block; }

  .main-header-menu { gap: 2px; }

  .main-header-menu a.menu-link { padding: 8px 10px; font-size: .88rem; }

  .main-header-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none !important;
    border: 0 !important;
    border-left: 2px solid var(--line) !important;
    border-radius: 0;
    margin: 4px 0 8px 10px;
    padding: 0 0 0 8px;
    min-width: 0;
    display: block;
  }

  .main-header-menu .sub-menu li,
  .main-header-menu .sub-menu a.menu-link {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
  }

  .main-header-menu .sub-menu a.menu-link:hover {
    background: rgba(47, 158, 79, .10);
  }

  article.page,
  article.post { padding: 28px 22px 34px; border-radius: 14px; }

  .site-content { padding: 22px 0 48px; }
}

@media (max-width: 560px) {
  .custom-logo { max-height: 44px; }
  .main-header-menu { flex-direction: column; align-items: stretch; }
  .main-header-menu .sub-menu { border-left: 0; padding-left: 12px; }
  .entry-content h1 { font-size: 1.7rem; }
  .entry-content h2 { font-size: 1.3rem; }
}
