:root {
  --iw-green: #40c96e;
  --iw-green-dark: #16845d;
  --iw-mint: #edf5f3;
  --iw-ink: #212529;
  --iw-menu: #14231f;
  --cassiopeia-color-primary: var(--iw-green-dark);
  --cassiopeia-color-hover: var(--iw-green);
  --cassiopeia-color-link: var(--iw-green-dark);
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

html {
  background: var(--iw-mint);
}

body {
  background: var(--iw-mint);
  color: var(--iw-ink);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.site-grid {
  background: var(--iw-mint);
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

/* Left vertical IwoScan menu: structure stays vertical; visual language follows iwoscan.com. */
.container-sidebar-left .sidebar-left.card {
  position: sticky;
  top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(64, 201, 110, 0.3);
  border-radius: 10px;
  background: linear-gradient(155deg, #182a25 0%, var(--iw-menu) 100%);
  box-shadow: 0 18px 42px rgba(20, 35, 31, 0.14);
}

.container-sidebar-left .sidebar-left .card-header {
  margin: 0;
  padding: 1.15rem 1.25rem 0.95rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: var(--iw-green);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.container-sidebar-left .sidebar-left .card-body {
  padding: 0.65rem;
}

.container-sidebar-left .sidebar-left .mod-menu {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  width: 100%;
  margin: 0;
}

.container-sidebar-left .sidebar-left .mod-menu > li {
  display: block;
  width: 100%;
  margin: 0;
}

.container-sidebar-left .sidebar-left .mod-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.28;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.container-sidebar-left .sidebar-left .mod-menu > li > a::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: rgba(64, 201, 110, 0.58);
  transform: skew(-28deg);
  transition: background-color 160ms ease, height 160ms ease;
}

.container-sidebar-left .sidebar-left .mod-menu > li > a:hover,
.container-sidebar-left .sidebar-left .mod-menu > li > a:focus-visible {
  border-color: rgba(64, 201, 110, 0.62);
  background: rgba(64, 201, 110, 0.11);
  color: #fff;
  transform: translateX(2px);
}

.container-sidebar-left .sidebar-left .mod-menu > li > a:hover::before,
.container-sidebar-left .sidebar-left .mod-menu > li > a:focus-visible::before {
  height: 19px;
  background: var(--iw-green);
}

.container-sidebar-left .sidebar-left .mod-menu > li.current > a,
.container-sidebar-left .sidebar-left .mod-menu > li.active > a,
.container-sidebar-left .sidebar-left .mod-menu > li > a[aria-current="page"] {
  border-color: var(--iw-green);
  background: var(--iw-green);
  color: #10251b;
}

.container-sidebar-left .sidebar-left .mod-menu > li.current > a::before,
.container-sidebar-left .sidebar-left .mod-menu > li.active > a::before,
.container-sidebar-left .sidebar-left .mod-menu > li > a[aria-current="page"]::before {
  background: #fff;
}

.container-sidebar-left .sidebar-left .mod-menu > li:last-child {
  margin-top: 0.52rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-sidebar-left .sidebar-left .mod-menu > li:last-child > a {
  justify-content: center;
  border-color: var(--iw-green);
  background: var(--iw-green);
  color: #10251b;
  font-weight: 750;
  text-align: center;
}

.container-sidebar-left .sidebar-left .mod-menu > li:last-child > a::before {
  background: #fff;
}

.container-sidebar-left .sidebar-left .mod-menu > li:last-child > a:hover,
.container-sidebar-left .sidebar-left .mod-menu > li:last-child > a:focus-visible {
  background: #55d77f;
  color: #0c2017;
}

@media (max-width: 991.98px) {
  .container-sidebar-left .sidebar-left.card {
    position: static;
  }

  .container-sidebar-left .sidebar-left .mod-menu > li > a {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .container-sidebar-left .sidebar-left .mod-menu > li > a,
  .container-sidebar-left .sidebar-left .mod-menu > li > a::before {
    transition: none;
  }
}

/* Homepage IwoScan category blog cards. */
body.itemid-101 .com-content-category-blog__items.blog-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

body.itemid-101 .com-content-category-blog__item.blog-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 132, 93, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(20, 48, 40, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.itemid-101 .com-content-category-blog__item.blog-item:hover {
  border-color: rgba(64, 201, 110, 0.62);
  box-shadow: 0 18px 38px rgba(20, 48, 40, 0.13);
  transform: translateY(-3px);
}

body.itemid-101 .blog-item > .item-image {
  float: none;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 6;
  margin: 0;
  padding: 1.15rem 1.35rem;
  overflow: hidden;
  background: #e5f1ee;
}

body.itemid-101 .blog-item > .item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.itemid-101 .blog-item > .item-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
}

body.itemid-101 .blog-item .page-header {
  margin: 0 0 0.72rem;
}

body.itemid-101 .blog-item .page-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.28;
}

body.itemid-101 .blog-item .page-header h2 a {
  color: #18382e;
  text-decoration: none;
}

body.itemid-101 .blog-item .page-header h2 a:hover,
body.itemid-101 .blog-item .page-header h2 a:focus-visible {
  color: var(--iw-green-dark);
}

body.itemid-101 .blog-item .article-info {
  display: none !important;
}

body.itemid-101 .blog-item .item-content > p:not(.readmore) {
  margin: 0 0 1rem;
  color: #4d5e58;
  font-size: 0.93rem;
  line-height: 1.58;
}

body.itemid-101 .blog-item .readmore {
  margin: auto 0 0;
  padding-top: 0.35rem;
}

body.itemid-101 .blog-item .readmore .btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--iw-green-dark);
  border-radius: 6px;
  background: transparent;
  color: var(--iw-green-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

body.itemid-101 .blog-item .readmore .btn::after {
  content: "\2192";
  margin-left: 0.55rem;
  transition: transform 160ms ease;
}

body.itemid-101 .blog-item .readmore .btn:hover,
body.itemid-101 .blog-item .readmore .btn:focus-visible {
  border-color: var(--iw-green);
  background: var(--iw-green);
  color: #10251b;
}

body.itemid-101 .blog-item .readmore .btn:hover::after,
body.itemid-101 .blog-item .readmore .btn:focus-visible::after {
  transform: translateX(3px);
}

@media (max-width: 767.98px) {
  body.itemid-101 .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.itemid-101 .com-content-category-blog__item.blog-item,
  body.itemid-101 .blog-item .readmore .btn::after {
    transition: none;
  }
}

/* Branded header and CTA. */
.container-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
  background: #edf5f3 !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(22, 132, 93, 0.16);
}

.container-header > .grid-child {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.7rem 1.25rem;
}

.container-header .navbar-brand {
  margin: 0;
  padding: 0;
}

.container-header .brand-logo {
  display: inline-flex;
  align-items: center;
}

.container-header .brand-logo img {
  display: block;
  width: clamp(190px, 20vw, 245px);
  height: auto;
  max-height: 70px;
}

.container-header .container-topbar {
  position: absolute;
  top: 50%;
  right: max(1rem, calc((100% - 1320px) / 2));
  z-index: 3;
  width: auto;
  padding: 0;
  transform: translateY(-50%);
}

.iw-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid #40c96e;
  border-radius: 6px;
  background: #40c96e;
  color: #10251b;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.iw-header-cta:hover,
.iw-header-cta:focus-visible {
  background: #55d77f;
  color: #0c2017;
  box-shadow: 0 8px 20px rgba(22, 132, 93, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .container-header {
    min-height: 76px;
  }

  .container-header > .grid-child {
    padding-inline: 0.75rem;
  }

  .container-header .brand-logo img {
    width: 155px;
  }

  .container-header .container-topbar {
    right: 0.75rem;
  }

  .iw-header-cta {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
  }
}

/* Shared IwoScan footer: no footer navigation, only brand and Danrida contact block. */
.container-footer.footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: #e5f1ee;
  background-image: none;
  color: #263b35;
  box-shadow: none;
}

.container-footer.footer > .grid-child {
  display: block;
  width: min(100% - 2rem, 1200px);
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.iw-site-footer {
  padding: 2.6rem 0 1.25rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iw-footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid #40c96e;
}

.iw-footer-logo {
  display: block;
  width: clamp(210px, 27vw, 330px);
  height: auto;
}

.iw-footer-tagline {
  margin: 0;
  color: #253a34;
  font-size: clamp(1.05rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.iw-footer-tagline span,
.iw-footer-title {
  color: #16845d;
}

.iw-footer-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem 0 1.5rem;
}

.iw-footer-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.iw-footer-address,
.iw-footer-contact {
  margin: 0;
  color: #52635e;
  font-style: normal;
  line-height: 1.65;
}

.iw-footer-contact a {
  color: #263b35;
  text-decoration: none;
}

.iw-footer-contact a:hover,
.iw-footer-contact a:focus-visible {
  color: #16845d;
  text-decoration: underline;
}

.iw-footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 132, 93, 0.18);
  color: #71807b;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .iw-footer-brand-row,
  .iw-footer-contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .iw-footer-tagline {
    font-size: 1.1rem;
  }
}

/* IwoScan homepage hero */
.iw-home-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 42vw, 640px);
  overflow: hidden;
  color: #fff;
  background: #0d1718;
}

.iw-home-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.iw-home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 18, 20, 0.92) 0%, rgba(5, 18, 20, 0.72) 32%, rgba(5, 18, 20, 0.18) 67%, rgba(5, 18, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 18, 20, 0.42) 0%, rgba(5, 18, 20, 0) 42%);
}

.iw-home-hero__content {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.25rem, 7vw, 6rem);
}

.iw-home-hero__eyebrow {
  margin: 0 0 0.85rem;
  color: #40c96e;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iw-home-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5.8vw, 5.25rem);
  line-height: 0.98;
  font-weight: 800;
}

.iw-home-hero__content p:last-child {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.58;
}

@media (max-width: 760px) {
  .iw-home-hero {
    min-height: 520px;
  }

  .iw-home-hero__image {
    object-position: 64% center;
  }

  .iw-home-hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 18, 20, 0.92) 0%, rgba(5, 18, 20, 0.72) 48%, rgba(5, 18, 20, 0.28) 100%),
      linear-gradient(90deg, rgba(5, 18, 20, 0.82) 0%, rgba(5, 18, 20, 0.32) 100%);
  }
}

/* IwoScan article explanation figures */
.iw-article-figure {
  margin: clamp(1.75rem, 4vw, 3rem) 0;
}

.iw-article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(19, 38, 35, 0.14);
}

.iw-article-figure figcaption {
  margin-top: 0.65rem;
  color: #60716d;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Dynamic breaks article: place title on dark HERO area */
.itemid-118 .item-page {
  position: relative;
}

.itemid-118 .item-page > .page-header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.itemid-118 .item-image {
  float: none;
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}

.itemid-118 .item-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.itemid-118 .iw-dynamic-breaks-title-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(1.8rem, 4.4vw, 4rem);
  left: clamp(1rem, 5vw, 4.5rem);
  max-width: min(520px, 43vw);
  color: #fff;
  pointer-events: none;
}

.itemid-118 .iw-dynamic-breaks-title-overlay p {
  margin: 0 0 0.85rem;
  color: #40c96e;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.itemid-118 .iw-dynamic-breaks-title-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.05vw, 2.15rem);
  line-height: 1.08;
  font-weight: 800;
}

@media (max-width: 760px) {
  .itemid-118 .iw-dynamic-breaks-title-overlay {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    margin: -0.2rem 0 1.25rem;
    padding: 0 1rem;
    color: #172522;
  }

  .itemid-118 .iw-dynamic-breaks-title-overlay h1 {
    color: #172522;
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1.12;
  }
}

/* Hide article HERO overlay when the dynamic breaks intro is rendered inside blog cards. */
body.itemid-101 .iw-dynamic-breaks-title-overlay,
.com-content-category-blog .iw-dynamic-breaks-title-overlay {
  display: none !important;
}
