:root {
  --mg-polish-green: #123f38;
  --mg-polish-green-deep: #0b302b;
  --mg-polish-gold: #b99a5b;
  --mg-polish-paper: #fffefa;
}

/* Keep one useful H1 on pages that already include an editorial hero H1. */
body.home .entry-header,
body.page-id-16 .entry-header,
body.page-id-819 .entry-header,
body.page-id-877 .entry-header {
  display: none !important;
}

/* Improve hero text contrast without replacing the existing photography. */
body.home .elementor-element-498236c8 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.home .elementor-element-498236c8::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(7, 34, 30, 0.82) 0%, rgba(7, 34, 30, 0.55) 48%, rgba(7, 34, 30, 0.18) 100%);
  content: '';
  pointer-events: none;
}

[dir='rtl'] body.home .elementor-element-498236c8::before {
  background: linear-gradient(270deg, rgba(7, 34, 30, 0.82) 0%, rgba(7, 34, 30, 0.55) 48%, rgba(7, 34, 30, 0.18) 100%);
}

body.home .elementor-element-498236c8 > * {
  position: relative;
  z-index: 1;
}

body.home .elementor-element-33946e50 .elementor-heading-title {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

/* A real, localized archive heading for visitors and search engines. */
.mg-archive-heading {
  width: min(100%, 1180px);
  margin: 0 auto 26px;
  padding: 0 4px;
}

.mg-archive-heading__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--mg-polish-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mg-archive-heading h1 {
  margin: 0 0 10px;
  color: var(--mg-polish-green-deep);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.mg-archive-heading p {
  max-width: 760px;
  margin: 0;
  color: #52635f;
  font-size: 16px;
  line-height: 1.75;
}

[dir='rtl'] .mg-archive-heading {
  text-align: right;
}

/* The property filter was configured for every archive. Keep the blog editorial. */
body.category-blog .elementor-element-c2b2e30,
body.category-blog-ar .elementor-element-c2b2e30,
body.category-blog-fa .elementor-element-c2b2e30 {
  display: none !important;
}

body.category-blog .elementor-element-da23419,
body.category-blog-ar .elementor-element-da23419,
body.category-blog-fa .elementor-element-da23419 {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
}

body.category-blog .elementor-element-a2242c3 > .e-con-inner,
body.category-blog-ar .elementor-element-a2242c3 > .e-con-inner,
body.category-blog-fa .elementor-element-a2242c3 > .e-con-inner {
  display: block !important;
}

body.category-blog .elementor-posts-container,
body.category-blog-ar .elementor-posts-container,
body.category-blog-fa .elementor-posts-container {
  width: 100%;
}

/* Only show social profiles that have a verified destination. */
footer .elementor-grid-item:has(.elementor-social-icon-facebook),
footer .elementor-grid-item:has(.elementor-social-icon-linkedin),
footer .elementor-grid-item:has(.elementor-social-icon-youtube) {
  display: none !important;
}

footer .elementor-social-icon-facebook:not([href]),
footer .elementor-social-icon-linkedin:not([href]),
footer .elementor-social-icon-youtube:not([href]) {
  display: none !important;
}

/* Consistent keyboard focus across navigation, forms and cards. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(185, 154, 91, 0.62) !important;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .mg-archive-heading {
    margin-bottom: 18px;
    padding: 0;
  }

  .mg-archive-heading h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  body.home .elementor-element-498236c8::before,
  [dir='rtl'] body.home .elementor-element-498236c8::before {
    background: rgba(7, 34, 30, 0.66);
  }
}
