:root {
  --lmx-green: #7cda24;
  --lmx-navy: #202c45;
  --lmx-text: #43516b;
  --lmx-muted: #6f7a8e;
  --lmx-line: #e5eaf0;
  --lmx-soft: #f6f8fb;
  --lmx-green-soft: #f2faea;
  --lmx-white: #ffffff;
}

.lmx-blog-suite,
.lmx-blog-suite * {
  box-sizing: border-box;
}

.lmx-blog-suite {
  color: var(--lmx-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  background: var(--lmx-white);
}

.lmx-blog-suite a {
  text-decoration: none;
}

.lmx-container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Remove Divi's legacy right sidebar only on the dedicated Blog hub page. */
body.lmx-blog-hub-page #sidebar {
  display: none !important;
}

body.lmx-blog-hub-page #main-content .container::before {
  display: none !important;
}

body.lmx-blog-hub-page #left-area {
  width: 100% !important;
  padding-right: 0 !important;
  float: none !important;
}

body.lmx-blog-hub-page .main_title {
  display: none !important;
}

body.lmx-blog-hub-page #main-content > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 0 !important;
}

/* Full-bleed even when the shortcode sits inside a standard Divi 4 row. */
.et_pb_module .lmx-blog-suite > .lmx-blog-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.et_pb_module .lmx-blog-suite > .lmx-blog-layout {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.lmx-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lmx-navy);
  background-image: var(--lmx-hero-image);
  background-position: center 46%;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--lmx-white);
  padding: 62px 0;
  text-align: center;
}

.lmx-blog-hero::before,
.lmx-blog-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lmx-blog-hero::before {
  inset: 0;
  z-index: 0;
  background: rgba(25, 36, 59, .78);
}

.lmx-blog-hero::after {
  z-index: 1;
  top: 0;
  right: 0;
  width: 96px;
  height: 100%;
  background: var(--lmx-green);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%, 0 100%);
}

.lmx-blog-hero .lmx-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lmx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid var(--lmx-green);
  border-radius: 999px;
  color: var(--lmx-green) !important;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.lmx-blog-hero h1 {
  max-width: 1040px;
  color: var(--lmx-white) !important;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 900;
  margin: 19px auto 17px;
  padding: 0;
}

.lmx-blog-hero h1 span {
  color: var(--lmx-green) !important;
}

.lmx-blog-hero p {
  max-width: 850px;
  color: var(--lmx-white) !important;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto;
}

.lmx-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, .85fr);
  gap: 36px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 76px;
}

.lmx-blog-main,
.lmx-single-main {
  min-width: 0;
}

.lmx-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.lmx-blog-card {
  min-width: 0;
  overflow: hidden;
  background: var(--lmx-white);
  border: 1px solid var(--lmx-line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(32, 44, 69, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.lmx-blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 218, 36, .7);
  box-shadow: 0 18px 42px rgba(32, 44, 69, .12);
}

.lmx-blog-cover {
  display: block;
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #edf3e8;
}

.lmx-blog-cover__image,
.lmx-single-cover > img,
.lmx-recent-thumb > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lmx-blog-cover__image {
  transition: transform .4s ease;
}

.lmx-blog-card:hover .lmx-blog-cover__image {
  transform: scale(1.035);
}

.lmx-blog-cover time {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border-radius: 7px;
  background: var(--lmx-green);
  color: var(--lmx-white);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.lmx-blog-card__body {
  padding: 23px 23px 25px;
}

.lmx-blog-meta,
.lmx-article-meta,
.lmx-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.lmx-blog-meta {
  margin-bottom: 11px;
}

.lmx-meta-author,
.lmx-meta-date,
.lmx-meta-category {
  color: var(--lmx-muted);
}

.lmx-meta-author::before {
  content: "●";
  color: var(--lmx-green);
  font-size: 10px;
  margin-right: 7px;
}

.lmx-meta-category::before {
  content: "#";
  color: var(--lmx-green);
  margin-right: 4px;
}

.lmx-meta-category:hover {
  color: var(--lmx-navy);
}

.lmx-blog-card h2 {
  margin: 0 0 11px;
  padding: 0;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 900;
}

.lmx-blog-card h2 a {
  color: var(--lmx-navy);
}

.lmx-blog-card h2 a:hover {
  color: #5aa71a;
}

.lmx-blog-card__body > p {
  color: var(--lmx-text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 19px;
}

.lmx-read-more {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 18px;
  border: 1px solid var(--lmx-green);
  border-radius: 7px;
  background: var(--lmx-green);
  color: var(--lmx-white) !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  transition: color .28s ease, border-color .28s ease;
}

.lmx-read-more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lmx-navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}

.lmx-read-more:hover,
.lmx-read-more:focus-visible {
  border-color: var(--lmx-navy);
  color: var(--lmx-white) !important;
}

.lmx-read-more:hover::before,
.lmx-read-more:focus-visible::before {
  transform: scaleX(1);
}

/* Sidebar: desktop sticky behavior mirrors the requested Cytoware scroll feel. */
.lmx-blog-sidebar {
  position: sticky;
  top: 115px;
  align-self: start;
  display: grid;
  gap: 22px;
}

body.admin-bar .lmx-blog-sidebar {
  top: 147px;
}

.lmx-side-card {
  overflow: hidden;
  background: var(--lmx-white);
  border: 1px solid var(--lmx-line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(32, 44, 69, .055);
  padding: 26px;
}

.lmx-side-card h3 {
  position: relative;
  margin: 0 0 20px;
  padding: 0 0 0 14px;
  color: var(--lmx-navy);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.lmx-side-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 3px;
  height: 24px;
  background: var(--lmx-green);
  border-radius: 2px;
}

.lmx-side-search {
  padding: 21px;
}

.lmx-side-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: var(--lmx-soft);
}

.lmx-side-search input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--lmx-navy) !important;
  padding: 0 16px !important;
  font-size: 14px;
}

.lmx-side-search button,
.lmx-update-row button {
  border: 0;
  cursor: pointer;
  background: var(--lmx-green);
  color: var(--lmx-white);
  transition: background .2s ease, color .2s ease;
}

.lmx-side-search button:hover,
.lmx-side-search button:focus-visible,
.lmx-update-row button:hover,
.lmx-update-row button:focus-visible {
  background: var(--lmx-navy);
  color: var(--lmx-white);
}

.lmx-side-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lmx-category-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lmx-category-list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--lmx-line);
}

.lmx-category-list li:last-child {
  border-bottom: 0;
}

.lmx-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--lmx-text);
  font-size: 14px;
  line-height: 1.35;
  transition: color .2s ease, padding-left .2s ease;
}

.lmx-category-list a:hover {
  padding-left: 4px;
  color: var(--lmx-navy);
}

.lmx-cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lmx-cat-name b {
  color: var(--lmx-green);
  font-size: 16px;
}

.lmx-cat-count {
  min-width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--lmx-green-soft);
  color: var(--lmx-navy);
  font-size: 12px;
  font-weight: 900;
}

.lmx-recent-list {
  display: grid;
  gap: 16px;
}

.lmx-recent-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  color: var(--lmx-navy);
}

.lmx-recent-thumb {
  width: 76px;
  height: 68px;
  overflow: hidden;
  display: block;
  border-radius: 7px;
  background: var(--lmx-green-soft);
}

.lmx-recent-copy {
  min-width: 0;
  display: block;
}

.lmx-recent-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--lmx-navy);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.lmx-recent-item:hover .lmx-recent-copy strong {
  color: #5aa71a;
}

.lmx-recent-copy small {
  display: block;
  margin-top: 5px;
  color: var(--lmx-muted);
  font-size: 11px;
}

.lmx-contact-card p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 0 10px;
  font-size: 14px;
}

.lmx-contact-card p:last-child {
  margin-bottom: 0;
}

.lmx-contact-card p > span {
  color: var(--lmx-green);
  font-weight: 900;
}

.lmx-contact-card a {
  overflow-wrap: anywhere;
  color: var(--lmx-text);
}

.lmx-contact-card a:hover {
  color: #5aa71a;
}

.lmx-update-card > p {
  margin: -6px 0 15px;
  color: var(--lmx-muted);
  font-size: 13px;
}

.lmx-update-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: var(--lmx-soft);
}

.lmx-update-row input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--lmx-navy) !important;
  padding: 0 15px !important;
  font-size: 14px;
}

.lmx-update-row button {
  font-size: 23px;
}

.lmx-update-status {
  min-height: 18px;
  margin-top: 9px;
  color: #397d0c;
  font-size: 12px;
  line-height: 1.45;
}

.lmx-update-status.is-error {
  color: #b42318;
}

.lmx-update-form.is-loading button {
  opacity: .6;
  pointer-events: none;
}

.lmx-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.lmx-pagination {
  margin-top: 36px;
}

.lmx-pagination .page-numbers,
.lmx-pagination > ul {
  list-style: none;
}

.lmx-pagination > ul,
.lmx-pagination .page-numbers:not(a):not(span) {
  padding: 0;
}

.lmx-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.lmx-pagination a.page-numbers,
.lmx-pagination span.page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lmx-line);
  border-radius: 7px;
  color: var(--lmx-navy);
  background: var(--lmx-white);
  font-size: 13px;
  font-weight: 800;
}

.lmx-pagination .current,
.lmx-pagination a.page-numbers:hover {
  border-color: var(--lmx-green) !important;
  background: var(--lmx-green) !important;
  color: var(--lmx-white) !important;
}

.lmx-empty-state {
  border: 1px solid var(--lmx-line);
  border-radius: 14px;
  background: var(--lmx-soft);
  padding: 42px;
  text-align: center;
}

.lmx-empty-state h2 {
  margin: 0 0 10px;
  color: var(--lmx-navy);
  font-size: 28px;
  font-weight: 900;
}

/* Single article */
.lmx-single-hero {
  min-height: 360px;
}

.lmx-single-hero h1 {
  font-size: clamp(35px, 4.4vw, 56px);
}

.lmx-single-hero__meta {
  margin-top: 20px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.lmx-single-hero__meta span::after {
  content: "•";
  margin-left: 14px;
  color: var(--lmx-green);
}

.lmx-single-layout {
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, .85fr);
}

.lmx-article-card {
  overflow: hidden;
  border: 1px solid var(--lmx-line);
  border-radius: 14px;
  background: var(--lmx-white);
  box-shadow: 0 14px 42px rgba(32, 44, 69, .07);
}

.lmx-single-cover {
  height: 420px;
  background: var(--lmx-green-soft);
}

.lmx-article-meta {
  padding: 27px 42px 0;
}

.lmx-article-content {
  padding: 25px 42px 38px;
  color: var(--lmx-text);
  font-size: 16px;
  line-height: 1.8;
}

.lmx-article-content p {
  margin: 0 0 19px;
}

.lmx-article-content .lmx-article-lead {
  color: #34425e;
  font-size: 18px;
  line-height: 1.75;
}

.lmx-article-content h2 {
  margin: 34px 0 13px;
  padding: 0;
  color: var(--lmx-navy);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
}

.lmx-article-content h3 {
  margin: 28px 0 10px;
  color: var(--lmx-navy);
  font-size: 21px;
  font-weight: 900;
}

.lmx-article-content ul,
.lmx-article-content ol {
  margin: 0 0 22px 21px;
  padding: 0;
}

.lmx-article-content li {
  margin-bottom: 7px;
}

.lmx-article-content a {
  color: #4e9915;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lmx-article-callout {
  margin: 30px 0;
  border-left: 4px solid var(--lmx-green);
  background: var(--lmx-green-soft);
  padding: 21px 23px;
}

.lmx-article-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--lmx-navy);
  font-size: 16px;
  font-weight: 900;
}

.lmx-article-callout p {
  margin: 0;
}

.lmx-article-footer {
  border-top: 1px solid var(--lmx-line);
  padding: 24px 42px 32px;
}

.lmx-related-section {
  margin-top: 38px;
}

.lmx-related-section > h2 {
  margin: 0 0 18px;
  padding: 0;
  color: var(--lmx-navy);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}

.lmx-related-grid .lmx-blog-cover {
  height: 185px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lmx-blog-suite :focus-visible {
  outline: 3px solid rgba(124, 218, 36, .55);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .lmx-blog-layout,
  .lmx-single-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(285px, .8fr);
    gap: 28px;
  }

  .lmx-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .lmx-blog-hero {
    min-height: 260px;
    padding: 58px 0;
  }

  .lmx-blog-layout,
  .lmx-single-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 46px;
    padding-bottom: 58px;
  }

  .lmx-blog-sidebar,
  body.admin-bar .lmx-blog-sidebar {
    position: static;
    top: auto;
  }

  .lmx-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lmx-single-cover {
    height: 360px;
  }
}

@media (max-width: 640px) {
  body.lmx-blog-hub-page,
  body.lmx-blog-service-category,
  body.lmx-blog-service-post {
    overflow-x: hidden;
  }

  /* Divi mobile rows are normally ~80% wide. Release the Blog Suite from
     that row so the cards and sidebar use the actual phone viewport. */
  .et_pb_module .lmx-blog-suite {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .et_pb_module .lmx-blog-suite > .lmx-blog-hero {
    width: 100%;
    margin-left: 0;
  }

  .et_pb_module .lmx-blog-suite > .lmx-blog-layout {
    width: calc(100% - 24px);
    max-width: none;
    position: static;
    left: auto;
    transform: none;
  }

  .lmx-container {
    width: calc(100% - 24px);
  }

  .lmx-blog-hero {
    min-height: 260px;
    padding: 38px 0;
    background-position: center center;
  }

  .lmx-blog-hero::after {
    display: none;
  }

  .lmx-badge {
    min-height: 36px;
    padding: 7px 15px;
    font-size: 9px;
    letter-spacing: 2.1px;
  }

  .lmx-blog-hero h1,
  .lmx-single-hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 8vw, 32px);
    line-height: 1.12;
    letter-spacing: -.5px;
    margin: 14px auto 12px;
  }

  .lmx-blog-hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .lmx-blog-layout,
  .lmx-single-layout {
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .lmx-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lmx-blog-card {
    width: 100%;
    border-radius: 12px;
  }

  .lmx-blog-cover {
    height: clamp(185px, 56vw, 220px);
  }

  .lmx-blog-cover time {
    top: 12px;
    right: 12px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .lmx-blog-card__body {
    padding: 18px 18px 20px;
  }

  .lmx-blog-meta,
  .lmx-article-meta {
    gap: 7px 11px;
    font-size: 11px;
  }

  .lmx-blog-card h2 {
    margin-bottom: 9px;
    font-size: clamp(19px, 5.7vw, 22px);
    line-height: 1.3;
  }

  .lmx-blog-card__body > p {
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.65;
  }

  .lmx-read-more {
    min-height: 41px;
    padding: 9px 15px;
    font-size: 12px;
  }

  .lmx-side-card {
    padding: 18px;
    border-radius: 12px;
  }

  .lmx-side-card h3 {
    margin-bottom: 16px;
    padding-left: 12px;
    font-size: 19px;
  }

  .lmx-side-search {
    padding: 16px;
  }

  .lmx-side-search form,
  .lmx-update-row {
    min-height: 50px;
  }

  .lmx-side-search form,
  .lmx-update-row {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .lmx-category-list a {
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
  }

  .lmx-recent-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 11px;
  }

  .lmx-recent-thumb {
    width: 68px;
    height: 61px;
  }

  .lmx-recent-copy strong {
    font-size: 12px;
  }

  .lmx-contact-card p {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    font-size: 13px;
  }

  .lmx-update-card > p {
    font-size: 12.5px;
  }

  .lmx-pagination {
    margin-top: 26px;
  }

  .lmx-pagination ul.page-numbers {
    gap: 6px;
  }

  .lmx-pagination a.page-numbers,
  .lmx-pagination span.page-numbers {
    min-width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .lmx-single-cover {
    height: clamp(210px, 60vw, 260px);
  }

  .lmx-article-meta {
    padding: 22px 24px 0;
  }

  .lmx-article-content {
    padding: 18px 20px 27px;
    font-size: 14px;
  }

  .lmx-article-content .lmx-article-lead {
    font-size: 15.5px;
  }

  .lmx-article-content h2 {
    font-size: 21px;
  }

  .lmx-article-footer {
    padding: 20px 20px 25px;
  }

  .lmx-related-section {
    margin-top: 28px;
  }

  .lmx-related-section > h2 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .et_pb_module .lmx-blog-suite > .lmx-blog-layout,
  .lmx-container {
    width: calc(100% - 18px);
  }

  .lmx-blog-card__body,
  .lmx-side-card {
    padding-left: 15px;
    padding-right: 15px;
  }

  .lmx-blog-meta {
    gap: 6px 9px;
  }

  .lmx-pagination a.page-numbers,
  .lmx-pagination span.page-numbers {
    min-width: 35px;
    height: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmx-blog-suite *,
  .lmx-blog-suite *::before,
  .lmx-blog-suite *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
