/* ==========================================================================
   Solutions module - public styles (nav mega menu + solution pages)
   Built on the site theme (DCode): Poppins, blue gradient buttons, light cards.
   Root font-size on this site is 10px, so sizes are written in px on purpose.
   ========================================================================== */

:root {
  --sol-primary: #3591c3;
  --sol-primary-2: #488fed;
  --sol-deep: #2a1fbc;
  --sol-navy: #12337a;
  --sol-ink: #111111;
  --sol-text: #3f3f3f;
  --sol-muted: #6b7280;
  --sol-line: #e4eaf3;
  --sol-tint: #f4f8fd;
  --sol-radius: 14px;
}

/* ---------- Navbar: Solutions dropdown (one link per solution head) ---------- */
@media (min-width: 992px) {
  .menu-primary > li.menu-item.sol-nav { position: relative; }
  .menu-primary > li.menu-item.sol-nav > .sol-drop {
    position: absolute; top: 100%; left: 0; right: auto; margin: 0; padding: 10px 0;
    min-width: 300px; border-radius: 12px; background: #fff; border: 1px solid var(--sol-line);
    box-shadow: 0 18px 50px rgba(18, 51, 122, .16);
    opacity: 0; visibility: hidden; transform: translateY(8px); z-index: 1040;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .menu-primary > li.menu-item.sol-nav:hover > .sol-drop,
  .menu-primary > li.menu-item.sol-nav:focus-within > .sol-drop { opacity: 1; visibility: visible; transform: translateY(0); }
  /* hover bridge so the menu doesn't close while the pointer crosses the gap */
  .menu-primary > li.menu-item.sol-nav > .sol-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  /* dropdown arrow next to "Solutions" (theme glyph has no font-family here) */
  .menu-primary > li.menu-item.sol-nav > a::after {
    content: "\f078" !important; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
    margin-left: 7px; position: relative; top: -1px; transition: transform .2s ease; display: inline-block;
  }
  .menu-primary > li.menu-item.sol-nav:hover > a::after { transform: rotate(180deg); }
  .sol-drop > li.menu-item { display: block; padding: 0 !important; }
  .sol-drop > li.menu-item > a {
    display: block; padding: 10px 22px !important; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--sol-ink);
    border-left: 3px solid transparent; transition: color .2s ease, background .2s ease, border-color .2s ease;
  }
  .sol-drop > li.menu-item > a::before, .sol-drop > li.menu-item > a::after { display: none !important; }
  .sol-drop > li.menu-item:hover > a,
  .sol-drop > li.menu-item.active > a { color: var(--sol-primary); background: var(--sol-tint); border-left-color: var(--sol-primary); }
}
@media (max-width: 991px) {
  .sol-drop > li.menu-item > a { padding-left: 45px !important; font-size: 14px; }
}

/* ---------- Page shell ---------- */
.sol-page { overflow: hidden; }
.sol-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #f4f8fd 0%, #ffffff 60%); }
.sol-hero__inner { position: relative; z-index: 2; }
.sol-hero__content { padding: 110px 0 100px; }
.sol-hero--plain .sol-hero__content { padding: 90px 0 70px; }
.sol-hero h1 { margin: 0 0 18px; font-size: 46px; line-height: 1.18; font-weight: 700; color: var(--sol-ink); }
.sol-hero__lead { margin: 0 0 28px; font-size: 18px; line-height: 1.75; color: var(--sol-text); }
.sol-hero__btns .btn { margin-right: 10px; }
/* image on the right half; a real <img> (alt text) that fades out towards the text */
.sol-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 1; pointer-events: none; }
.sol-hero__media img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 52%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 52%);
}
.sol-eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sol-primary); background: rgba(53, 145, 195, .1);
}
.sol-section { padding: 70px 0 !important; }
.sol-section--tint { background: var(--sol-tint); }
.sol-section-head { margin-bottom: 38px; }
.sol-section-head h2 { font-size: 34px; line-height: 1.25; font-weight: 700; }
.sol-section-head h2 a { color: inherit; }
.sol-section-head h2 a:hover { color: var(--sol-primary); }
.sol-section-intro { margin: 14px auto 0; max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--sol-muted); }

/* ---------- Rich text (point details) ---------- */
.sol-richtext, .sol-richtext p, .sol-richtext li { font-size: 16px; line-height: 1.8; color: var(--sol-text); }
.sol-richtext p { margin: 0 0 14px; }
.sol-richtext ul, .sol-richtext ol { margin: 0 0 14px 20px; }
.sol-richtext ul { list-style: disc; }
.sol-richtext ol { list-style: decimal; }
.sol-richtext h3, .sol-richtext h4 { margin: 18px 0 8px; font-weight: 600; }
.sol-richtext img { max-width: 100%; height: auto; border-radius: 10px; }
.sol-richtext a { color: var(--sol-primary); font-weight: 600; text-decoration: underline; }

/* ---------- Card grids ---------- */
.sol-grid { display: grid; gap: 22px; }
.sol-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sol-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Points: one overview block per internal list item, alternating ---------- */
.sol-point { padding: 80px 0; background: #fff; }
.sol-point--tint { background: var(--sol-tint); }
.sol-point__no {
  display: inline-block; margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--sol-primary);
}
.sol-point__no::after { content: ""; display: inline-block; width: 38px; height: 2px; margin-left: 12px; vertical-align: middle; background: var(--sol-primary); }
.sol-point h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.25; font-weight: 700; color: var(--sol-ink); }
.sol-point__lead { margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: var(--sol-text); }
.sol-point__list { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.sol-point__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--sol-text); }
.sol-point__list i { margin-top: 3px; color: var(--sol-primary); }
.sol-point__btn { margin-top: 22px; }
.sol-point__img { margin: 0; position: relative; }
.sol-point__img::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 22px; z-index: 0;
  background: linear-gradient(135deg, rgba(72, 143, 237, .18), rgba(53, 145, 195, .08));
}
.sol-point--rev .sol-point__img::before { inset: 22px 22px -18px -18px; }
.sol-point__img img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 44px rgba(18, 51, 122, .16); }

/* ---------- Problems: horizontal cards, red accent edge ---------- */
.sol-prob { display: flex; gap: 18px; align-items: flex-start; padding: 24px 24px 24px 22px; background: #fff; border-radius: 12px; border: 1px solid #f3d9d9; border-left: 5px solid #e5484d; box-shadow: 0 4px 16px rgba(229, 72, 77, .06); }
.sol-prob__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-size: 16px; color: #e5484d; background: #fdecec; }
.sol-prob h3 { margin: 2px 0 6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--sol-ink); }
.sol-prob p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--sol-muted); }

/* ---------- Features: lifted cards, gradient icon tile ---------- */
.sol-feat { position: relative; display: block; padding: 30px 26px 26px; background: #fff; border-radius: 18px; border: 1px solid var(--sol-line); box-shadow: 0 10px 30px rgba(18, 51, 122, .07); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.sol-feat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--sol-primary-2), var(--sol-primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.sol-feat:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(18, 51, 122, .16); }
.sol-feat:hover::after { transform: scaleX(1); }
.sol-feat__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--sol-primary-2), var(--sol-deep)); box-shadow: 0 10px 22px rgba(42, 31, 188, .25); }
.sol-feat h3 { margin: 18px 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--sol-ink); }
.sol-feat p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--sol-muted); }
.sol-feat--link { color: inherit; }
.sol-feat--link:hover h3 { color: var(--sol-primary); }
.sol-feat__sub { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--sol-text); }
.sol-feat__sub li { padding: 4px 0 4px 16px; position: relative; }
.sol-feat__sub li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--sol-primary); }

/* ---------- Who can use it: compact centred tiles ---------- */
.sol-aud { text-align: center; padding: 28px 18px 24px; background: #fff; border-radius: 14px; border-bottom: 4px solid var(--sol-primary); box-shadow: 0 4px 14px rgba(18, 51, 122, .06); transition: transform .25s ease, border-color .25s ease; }
.sol-aud:hover { transform: translateY(-4px); border-color: var(--sol-deep); }
.sol-aud__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; font-size: 24px; color: var(--sol-primary); background: rgba(53, 145, 195, .12); border: 2px dashed rgba(53, 145, 195, .5); }
.sol-aud h3 { margin: 16px 0 6px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--sol-ink); }
.sol-aud p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--sol-muted); }

/* ---------- Benefits (dark band) ---------- */
.sol-section--dark { background: linear-gradient(135deg, #0f2a6b 0%, #1e3a8a 55%, #2d5a9a 100%) !important; }
.sol-section--dark .sol-section-head h2 { color: #fff !important; }
.sol-section--dark .sol-section-intro { color: rgba(255, 255, 255, .8); }
.sol-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sol-benefit {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--sol-radius);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.sol-benefit h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 600; color: #fff !important; }
.sol-benefit p { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.sol-benefit__stat {
  flex: 0 0 auto; min-width: 74px; padding: 10px 12px; border-radius: 12px; text-align: center;
  font-size: 22px; font-weight: 700; line-height: 1.1; color: #0f2a6b; background: #fff;
}
.sol-benefit__stat--icon { font-size: 18px; color: #1e8f4e; width: 48px; min-width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- How it works ---------- */
.sol-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: none; }
.sol-step { position: relative; padding: 26px 22px 22px; text-align: center; background: #fff; border: 1px solid var(--sol-line); border-radius: var(--sol-radius); }
.sol-step__no {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--sol-primary-2), var(--sol-deep));
  box-shadow: 0 8px 20px rgba(42, 31, 188, .25);
}
.sol-step h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; }
.sol-step p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--sol-muted); }
@media (min-width: 992px) {
  .sol-step:not(:last-child)::after {
    content: ""; position: absolute; top: 48px; right: -22px; width: 22px; border-top: 2px dashed #b9cbe3;
  }
}

/* ---------- FAQ cards ---------- */
.sol-faq { background: var(--sol-tint); }
.sol-faq__list { display: flex; flex-direction: column; gap: 14px; }
.sol-faq__item { background: #fff; border: 1px solid var(--sol-line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.sol-faq__item[open] { border-color: rgba(53, 145, 195, .5); box-shadow: 0 10px 28px rgba(18, 51, 122, .08); }
.sol-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.sol-faq__q::-webkit-details-marker { display: none; }
.sol-faq__q h3 { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--sol-ink); }
.sol-faq__chev { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--sol-primary); border-bottom: 2px solid var(--sol-primary); transform: rotate(45deg); margin-top: -4px; transition: transform .25s ease; }
.sol-faq__item[open] .sol-faq__chev { transform: rotate(-135deg); margin-top: 4px; }
.sol-faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.8; color: var(--sol-text); }
.sol-faq__q:focus-visible { outline: 2px solid var(--sol-primary); outline-offset: 2px; border-radius: 12px; }

/* ---------- Final CTA ---------- */
.sol-cta-wrap { padding-top: 40px !important; padding-bottom: 80px !important; }
.sol-cta {
  position: relative; overflow: hidden; text-align: center; padding: 60px 30px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #0f2a6b 0%, #2a1fbc 55%, #3591c3 100%);
  box-shadow: 0 24px 60px rgba(42, 31, 188, .25);
}
.sol-cta::before, .sol-cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.sol-cta::before { width: 300px; height: 300px; right: -90px; top: -120px; }
.sol-cta::after { width: 200px; height: 200px; left: -60px; bottom: -90px; }
.sol-cta > * { position: relative; z-index: 1; }
.sol-cta h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.25; font-weight: 700; color: #fff !important; }
.sol-cta p { max-width: 680px; margin: 0 auto 28px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.sol-cta__btns { /*display: flex;*/ flex-wrap: wrap; gap: 14px; justify-content: center; }
.sol-cta .btn-primary.btn-light { color: var(--sol-deep) !important; }
.sol-btn-ghost {
  display: inline-block; /*padding: 14px 32px;*/ border-radius: 6px; font-weight: 600; color: #fff !important;
  border: 2px solid rgba(255, 255, 255, .7); background: transparent; transition: background .2s ease, color .2s ease;
}
.sol-btn-ghost:hover { background: #fff; color: var(--sol-deep) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sol-hero__media { position: relative; width: 100%; height: 280px; order: 2; }
  .sol-hero--img { display: flex; flex-direction: column; }
  .sol-hero--img .sol-hero__inner { order: 1; }
  .sol-hero__media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  }
  .sol-hero__content { padding: 50px 0 20px; }
  .sol-hero h1 { font-size: 34px; }
  .sol-section { padding: 46px 0 !important; }
  .sol-point { padding: 50px 0; }
  .sol-point h2 { font-size: 27px; }
  .sol-point__img { margin-top: 30px; }
  .sol-section-head h2, .sol-cta h2 { font-size: 27px; }
  .sol-grid--3, .sol-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .sol-hero h1 { font-size: 29px; }
  .sol-hero__lead { font-size: 16px; }
  .sol-hero__media { height: 220px; }
  .sol-point__list { grid-template-columns: 1fr; }
  .sol-grid--2, .sol-grid--3, .sol-grid--4 { grid-template-columns: 1fr; }
  .sol-cta { padding: 40px 20px; border-radius: 16px; }
  .sol-faq__q { padding: 15px 16px; }
  .sol-faq__q h3 { font-size: 16px; }
  .sol-faq__a { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-feat, .sol-aud, .sol-feat::after, .sol-faq__chev, .sol-drop { transition: none !important; }
}

/* ---------- Demo form before the footer ---------- */
.sol-form-wrap { background: var(--sol-tint); }
.sol-form-side__img { display: block; width: 100%; height: auto; margin-bottom: 22px; border-radius: 18px; box-shadow: 0 14px 36px rgba(18, 51, 122, .14); }
.sol-form-wrap .heading-wrapper { margin-bottom: 30px; }

/* ---------- "What you get" slider ---------- */
.sol-slider { position: relative; }
.sol-slider__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 14px 4px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; outline: 0; }
.sol-slider__track::-webkit-scrollbar { display: none; }
.sol-slider__slide { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; min-width: 0; }
.sol-slider__nav { position: absolute; top: 46%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid var(--sol-line); background: #fff; color: var(--sol-primary); box-shadow: 0 8px 22px rgba(18, 51, 122, .18); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.sol-slider__nav:hover { background: var(--sol-primary); color: #fff; }
.sol-slider__nav--prev { left: -22px; }
.sol-slider__nav--next { right: -22px; }
.sol-slider__nav[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.sol-slider.is-static .sol-slider__nav, .sol-slider.is-static .sol-slider__dots { display: none; }
.sol-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.sol-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c9d6ea; cursor: pointer; transition: all .2s ease; }
.sol-slider__dots button.is-active { width: 26px; border-radius: 6px; background: var(--sol-primary); }
@media (max-width: 991px) {
  .sol-slider__slide { flex-basis: calc((100% - 22px) / 2); }
  .sol-slider__nav--prev { left: -8px; } .sol-slider__nav--next { right: -8px; }
}
@media (max-width: 575px) {
  .sol-slider__slide { flex-basis: 86%; }
  .sol-slider__nav { display: none; }
}
