/* LogicalDOC Product Overview - Joomla article / UIkit 3
   Scope: article.ld-overview; does not affect other pages. */
.ld-overview {
  --ldpo-orange: #f47721;
  --ldpo-ink: #172334;
  --ldpo-muted: #56657a;
  --ldpo-line: #e6eaf0;
  --ldpo-soft: #fff8f3;
  color: var(--ldpo-ink);
}
.ld-overview h2, .ld-overview h3 { color: var(--ldpo-ink); }
.ld-overview h2 { font-weight: 700; line-height: 1.23; letter-spacing: -.015em; }
.ld-overview h3 { font-weight: 650; line-height: 1.3; }
.ld-overview p, .ld-overview li { line-height: 1.7; }
.ld-overview .uk-text-lead { color: var(--ldpo-muted); line-height: 1.55; }
.ld-overview a:not(.uk-button) { text-underline-offset: 3px; }
.ld-overview section[id] { scroll-margin-top: 110px; }

/* Introduction: compact, readable line length */
.ld-overview > .uk-text-center:first-child { max-width: 1000px; margin-left: auto; margin-right: auto; }
.ld-overview > .uk-text-center:first-child h2 { margin-bottom: 20px; }
.ld-overview > .uk-text-center:first-child p { max-width: 820px; }

/* Section navigation */
.ld-overview > nav[aria-label="Overview sections"] {
  border: 1px solid var(--ldpo-line);
  border-radius: 10px;
  box-shadow: none;
  background: #fafbfd;
}
.ld-overview > nav[aria-label="Overview sections"] a {
  display: inline-block;
  padding: 5px 7px;
  color: #ac4b0c;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background .2s ease, color .2s ease;
}
.ld-overview > nav[aria-label="Overview sections"] a:hover,
.ld-overview > nav[aria-label="Overview sections"] a:focus-visible {
  background: #fff0e5;
  color: #813500;
}

/* Main screenshots, including the governance grid */
.ld-overview #ld-organization img,
.ld-overview #ld-governance img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ldpo-line);
  border-radius: 10px;
  box-shadow: 0 9px 25px rgba(23,35,52,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .ld-overview #ld-organization img:hover,
  .ld-overview #ld-governance img:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(23,35,52,.12);
  }
}

/* AI feature spotlight */
.ld-overview #ld-ai {
  border: 1px solid #f7e5d8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f3 0%, #f8fafc 100%);
}
.ld-overview #ld-ai .uk-text-primary { color: #b84d08 !important; letter-spacing: .08em; font-size: .79rem; }
.ld-overview #ld-ai .uk-card {
  height: 100%;
  border: 1px solid var(--ldpo-line);
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.ld-overview #ld-ai .uk-card:hover {
  transform: translateY(-3px);
  border-color: #f2bf9e;
  box-shadow: 0 10px 24px rgba(23,35,52,.08);
}
.ld-overview #ld-ai .uk-card h3 { margin-top: 0; }
.ld-overview #ld-ai .uk-card p:last-child { margin-bottom: 0; }

/* Relationships, workflow, event subscription example cards */
.ld-overview #ld-relationships .uk-card,
.ld-overview #ld-automation .uk-card,
.ld-overview #ld-events .uk-card {
  border: 1px solid var(--ldpo-line);
  border-radius: 11px;
  box-shadow: none;
}
.ld-overview #ld-relationships .uk-card { background: #fafbfd; }
.ld-overview #ld-relationships .uk-list-divider > li { border-color: var(--ldpo-line); }
.ld-overview #ld-automation .uk-card { background: var(--ldpo-soft); border-left: 3px solid var(--ldpo-orange); }
.ld-overview #ld-events { border-radius: 12px; background: #f4f7fb; }
.ld-overview #ld-events .uk-card { background: #fff; }
.ld-overview #ld-events .uk-card [uk-icon] { color: var(--ldpo-orange) !important; }

/* Governance: balanced cards without requiring HTML edits */
.ld-overview #ld-governance > div[uk-grid] > div { min-width: 0; }
.ld-overview #ld-governance h3 { margin-bottom: 10px; }
.ld-overview #ld-governance img { margin-top: 18px; }

/* Deployment cards */
.ld-overview [aria-labelledby="ld-deployment-heading"] .uk-card {
  height: 100%;
  border: 1px solid var(--ldpo-line);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ld-overview [aria-labelledby="ld-deployment-heading"] .uk-card:hover {
  border-color: #f2bf9e;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23,35,52,.07);
}
.ld-overview [aria-labelledby="ld-deployment-heading"] .uk-card h3 { margin-top: 0; }
.ld-overview [aria-labelledby="ld-deployment-heading"] .uk-card a { color: #a94608; font-weight: 600; }

/* Final conversion panel */
.ld-overview [aria-labelledby="ld-cta-heading"] {
  background: #f4f6fa;
  border: 1px solid var(--ldpo-line);
  border-radius: 14px;
}
.ld-overview [aria-labelledby="ld-cta-heading"] .uk-button-primary {
  background: var(--ldpo-orange);
  border-color: var(--ldpo-orange);
  color: #161616;
  font-weight: 700;
}
.ld-overview [aria-labelledby="ld-cta-heading"] .uk-button-primary:hover { background: #e66913; border-color: #e66913; }

/* Mobile spacing */
@media (max-width: 959px) {
  .ld-overview #ld-ai .uk-card { padding: 24px; }
}
@media (max-width: 639px) {
  .ld-overview.uk-margin-large-top { margin-top: 32px !important; }
  .ld-overview > .uk-text-center:first-child h2 { font-size: 1.8rem; }
  .ld-overview > nav[aria-label="Overview sections"] { padding: 14px; }
  .ld-overview > nav[aria-label="Overview sections"] > div { justify-content: flex-start; }
  .ld-overview #ld-ai, .ld-overview #ld-events { padding: 18px !important; }
  .ld-overview #ld-ai > .uk-padding-small, .ld-overview #ld-events > .uk-padding-small { padding: 0; }
  .ld-overview [aria-labelledby="ld-cta-heading"] { padding: 26px 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-overview img, .ld-overview .uk-card, .ld-overview a { transition: none !important; }
  .ld-overview img:hover, .ld-overview .uk-card:hover { transform: none !important; }
}

/* Optional independent hero styling.
   Add class ldpo-hero to the YOOtheme hero section and replace ldkm-* classes
   with ldpo-* in its image HTML only when ready to stop using the KM CSS. */
.ldpo-hero .ldpo-hero-image { width: 100%; border-radius: 18px; overflow: hidden; background: #edf2f8; box-shadow: 0 12px 35px rgba(20,35,55,.10); }
.ldpo-hero .ldpo-hero-image-link { width: 100%; cursor: zoom-in; }
.ldpo-hero .ldpo-hero-screenshot { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.ldpo-hero .ldpo-hero-image:hover .ldpo-hero-screenshot { transform: scale(1.035); }
.ldpo-hero .ldpo-hero-zoom { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: rgba(25,40,62,.80); opacity: 0; transform: translate(-50%,-50%) scale(.85); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.ldpo-hero .ldpo-hero-image:hover .ldpo-hero-zoom,
.ldpo-hero .ldpo-hero-image:focus-within .ldpo-hero-zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.ldpo-hero .ldpo-hero-image-label { display: flex; align-items: center; gap: 6px; padding: 7px 11px; margin: 12px; border-radius: 6px; background: rgba(25,40,62,.85); color: #fff; font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ldpo-hero .ldpo-hero-image:hover .ldpo-hero-image-label,
.ldpo-hero .ldpo-hero-image:focus-within .ldpo-hero-image-label { opacity: 1; }
@media (hover: none) { .ldpo-hero .ldpo-hero-image-label { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ldpo-hero .ldpo-hero-screenshot, .ldpo-hero .ldpo-hero-zoom, .ldpo-hero .ldpo-hero-image-label { transition: none; } .ldpo-hero .ldpo-hero-image:hover .ldpo-hero-screenshot { transform: none; } }


/* Product Overview - Mobile refinements */

@media (max-width: 639px) {

  /* Internal navigation */
  .ld-overview > nav[aria-label="Overview sections"] {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
    scrollbar-width: thin;
  }

  .ld-overview > nav[aria-label="Overview sections"] > div {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    width: max-content;
  }

  .ld-overview > nav[aria-label="Overview sections"] a {
    white-space: nowrap;
    padding: 7px 9px;
  }

  /* AI cards */
  .ld-overview #ld-ai .uk-card {
    padding: 20px;
  }

  /* Screenshot spacing */
  .ld-overview #ld-governance img {
    margin-top: 14px;
  }

  /* Final CTA */
  .ld-overview [aria-labelledby="ld-cta-heading"] {
    padding: 26px 20px !important;
  }

}

