/* Service page helpers
   Prototype: services/website-development.html
   Reuse across /services/* until extracted to service-page.css
*/

/* ---- Hero title wrap (solutions-style) ---- */
.course-page .course-hero--emr #website-hero-title {
  max-width: min(100%, 16.5em);
  font-size: clamp(1.45rem, 0.85rem + 2.4vw, 2.75rem);
  line-height: 1.14;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

.course-page .course-hero--emr #website-hero-title .emr-title-line {
  white-space: normal;
}

@media screen and (max-width: 991px) {
  .course-page .course-hero--emr #website-hero-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 0.95rem + 3.2vw, 2.45rem);
  }
}

@media screen and (max-width: 575px) {
  .course-page .course-hero--emr #website-hero-title {
    font-size: clamp(1.35rem, 0.9rem + 3.8vw, 1.85rem);
    line-height: 1.18;
  }
}

/* ---- Colorful service overview ---- */
.web-overview {
  --wo-blue: #328CE7;
  --wo-deep: #1a5fb4;
  --wo-teal: #12b5a0;
  --wo-mint: #7ee0c8;
  --wo-amber: #f4b942;
  --wo-coral: #ff7a59;
  --wo-ink: #0f172a;
  --wo-muted: #475569;
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background: #f7fafc;
}

.web-overview__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.web-overview__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.22;
}

.web-overview__blob--a {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(50, 140, 231, 0.35), transparent 70%);
}

.web-overview__blob--b {
  width: min(32vw, 300px);
  height: min(32vw, 300px);
  top: 22%;
  right: -4%;
  background: radial-gradient(circle, rgba(18, 181, 160, 0.28), transparent 70%);
}

.web-overview__blob--c {
  width: min(34vw, 320px);
  height: min(34vw, 320px);
  bottom: -10%;
  left: 40%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.2), transparent 70%);
}

.web-overview__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(50, 140, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 140, 231, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 70%);
}

.web-overview > .container {
  position: relative;
  z-index: 1;
}

.web-overview__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 140, 231, 0.18);
  box-shadow: 0 8px 24px rgba(26, 95, 180, 0.08);
  color: var(--wo-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-overview__kicker-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wo-teal), var(--wo-blue));
  box-shadow: 0 0 0 4px rgba(18, 181, 160, 0.18);
}

.web-overview__head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.web-overview__title {
  margin: 0;
  font-size: clamp(1.75rem, 0.9rem + 2.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--wo-ink);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.web-overview__title span {
  display: inline;
  background: linear-gradient(110deg, var(--wo-blue) 0%, #1ec8b0 55%, #f0a91b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media screen and (max-width: 991px) {
  .web-overview__title {
    font-size: clamp(1.4rem, 1rem + 1.8vw, 1.9rem);
  }
}

@media screen and (max-width: 575px) {
  .web-overview__title {
    font-size: clamp(1.15rem, 0.85rem + 2.4vw, 1.4rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
}

.web-overview__intro {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(50, 140, 231, 0.14);
  border-left: 4px solid var(--wo-coral);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  color: var(--wo-muted);
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.08rem);
  line-height: 1.65;
}

.web-overview__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.web-overview__media {
  position: relative;
  isolation: isolate;
}

.web-overview__orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(2px);
}

.web-overview__orb--teal {
  width: 42%;
  aspect-ratio: 1;
  top: -6%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, #7ee0c8, rgba(18, 181, 160, 0.35));
  opacity: 0.85;
}

.web-overview__orb--gold {
  width: 28%;
  aspect-ratio: 1;
  top: 8%;
  right: -4%;
  background: radial-gradient(circle at 30% 30%, #ffe08a, rgba(244, 185, 66, 0.55));
  opacity: 0.9;
}

.web-overview__orb--coral {
  width: 34%;
  aspect-ratio: 1;
  bottom: 4%;
  right: 8%;
  background: radial-gradient(circle at 30% 30%, #ffb199, rgba(255, 122, 89, 0.45));
  opacity: 0.75;
}

.web-overview__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.85rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 247, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 60px rgba(26, 95, 180, 0.16),
    0 8px 20px rgba(18, 181, 160, 0.1);
}

.web-overview__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(50, 140, 231, 0.55), rgba(18, 181, 160, 0.35), rgba(244, 185, 66, 0.5));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.web-overview__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
}

.web-overview__badges {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.web-overview__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}

.web-overview__badge i {
  font-size: 0.78rem;
}

.web-overview__badge--mint i { color: #0f9f8a; }
.web-overview__badge--sky i { color: #2176d9; }
.web-overview__badge--sun i { color: #d97706; }

.web-overview__copy {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.web-overview__copy p {
  margin: 0;
  color: var(--wo-muted);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.08rem);
  line-height: 1.7;
}

.web-overview__copy p:first-child {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(50, 140, 231, 0.1), rgba(18, 181, 160, 0.08));
  border: 1px solid rgba(50, 140, 231, 0.12);
  color: #1e293b;
  font-weight: 500;
}

.web-overview__accents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.web-overview__accent {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  color: #0f172a;
  border: 1px solid transparent;
}

.web-overview__accent strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.web-overview__accent span {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.82;
}

.web-overview__accent--blue {
  background: linear-gradient(160deg, #dcebff, #eef5ff);
  border-color: rgba(50, 140, 231, 0.2);
}

.web-overview__accent--teal {
  background: linear-gradient(160deg, #d8f7f0, #eefcf8);
  border-color: rgba(18, 181, 160, 0.22);
}

.web-overview__accent--amber {
  background: linear-gradient(160deg, #fff0cc, #fff8e8);
  border-color: rgba(244, 185, 66, 0.28);
}

.web-overview__note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  padding: 1.15rem 1.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(120deg, #1f6fd1 0%, #328CE7 55%, #2aa8c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 36px rgba(31, 111, 209, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.web-overview__note-icon {
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.web-overview__note p {
  margin: 0;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.06rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.web-overview__note strong {
  color: #fff;
  font-weight: 800;
}

.service-cta .solutions-banner-action {
  margin-top: 8px;
}

.service-cta .service-cta-desc + .service-cta-desc {
  margin-top: -8px;
}

@media screen and (max-width: 991px) {
  .web-overview__head-row,
  .web-overview__stage {
    grid-template-columns: 1fr;
  }

  .web-overview__intro {
    max-width: 40rem;
  }

  .web-overview__media {
    max-width: 34rem;
  }

  .web-overview__accents {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 575px) {
  .web-overview {
    padding: 3.5rem 0;
  }

  .web-overview__figure {
    padding: 0.6rem;
    border-radius: 1.2rem;
  }

  .web-overview__figure img {
    border-radius: 0.9rem;
  }

  .web-overview__badges {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.9rem;
  }

  .web-overview__note {
    padding: 0.9rem;
  }

  .web-overview__orb--gold,
  .web-overview__orb--coral {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-overview__blob,
  .web-overview__orb {
    filter: none;
  }
}

/* ---- Website services section ---- */
.web-services {
  --ws-ink: #0b1220;
  --ws-muted: #5b677a;
  --ws-line: rgba(15, 23, 42, 0.08);
  --ws-blue: #328CE7;
  --ws-deep: #1a5fb4;
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(50, 140, 231, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(18, 181, 160, 0.08), transparent 50%),
    #ffffff;
}

.web-services__glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 140, 231, 0.12), transparent 70%);
  pointer-events: none;
}

.web-services > .container {
  position: relative;
  z-index: 1;
}

.web-services__kicker {
  margin: 0 0 0.85rem;
  color: var(--ws-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-services__head {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.web-services__head-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
}

.web-services__title {
  margin: 0;
  max-width: 14em;
  font-size: clamp(1.45rem, 0.9rem + 2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ws-ink);
  text-wrap: balance;
}

.web-services__title span {
  color: var(--ws-blue);
}

.web-services__lead {
  margin: 0;
  color: var(--ws-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  line-height: 1.6;
}

.web-services__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.web-services__item {
  --tone: #328CE7;
  --tone-soft: rgba(50, 140, 231, 0.12);
  --tone-mid: rgba(50, 140, 231, 0.22);
  grid-column: span 4;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 100%;
  padding: 1.4rem 1.35rem 1.45rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.web-services__item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tone), transparent 85%);
  opacity: 0.95;
}

.web-services__item::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone-soft), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.web-services__item:hover {
  transform: translateY(-5px);
  border-color: var(--tone-mid);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px var(--tone-soft);
}

.web-services__item[data-tone="sky"] {
  --tone: #328CE7;
  --tone-soft: rgba(50, 140, 231, 0.14);
  --tone-mid: rgba(50, 140, 231, 0.26);
}

.web-services__item[data-tone="teal"] {
  --tone: #12b5a0;
  --tone-soft: rgba(18, 181, 160, 0.14);
  --tone-mid: rgba(18, 181, 160, 0.26);
}

.web-services__item[data-tone="indigo"] {
  --tone: #3b6fd8;
  --tone-soft: rgba(59, 111, 216, 0.14);
  --tone-mid: rgba(59, 111, 216, 0.26);
}

.web-services__item[data-tone="amber"] {
  --tone: #e0a11b;
  --tone-soft: rgba(224, 161, 27, 0.16);
  --tone-mid: rgba(224, 161, 27, 0.28);
}

.web-services__item[data-tone="coral"] {
  --tone: #ef6b4a;
  --tone-soft: rgba(239, 107, 74, 0.14);
  --tone-mid: rgba(239, 107, 74, 0.26);
}

.web-services__item[data-tone="mint"] {
  --tone: #1aa88f;
  --tone-soft: rgba(26, 168, 143, 0.14);
  --tone-mid: rgba(26, 168, 143, 0.26);
}

.web-services__item--feature {
  --tone: #328CE7;
  --tone-soft: rgba(50, 140, 231, 0.14);
  --tone-mid: rgba(50, 140, 231, 0.28);
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.55rem 1.7rem 1.55rem 1.5rem;
  background:
    linear-gradient(120deg, #edf5ff 0%, #ffffff 42%, #f3fbff 100%);
  border: 1px solid rgba(50, 140, 231, 0.22);
  box-shadow:
    0 18px 40px rgba(26, 95, 180, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.web-services__item--feature::before {
  inset: 0 auto 0 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #328CE7, #12b5a0);
  border-radius: 1.35rem 0 0 1.35rem;
}

.web-services__item--feature::after {
  right: -8%;
  bottom: -35%;
  width: 42%;
  background: radial-gradient(circle, rgba(50, 140, 231, 0.16), transparent 70%);
}

.web-services__item--feature:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 140, 231, 0.35);
  box-shadow: 0 24px 52px rgba(26, 95, 180, 0.14);
}

.web-services__item--feature .web-services__top {
  display: contents;
}

.web-services__item--feature .web-services__index {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: #328CE7;
  border-color: transparent;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 22px rgba(50, 140, 231, 0.3);
}

.web-services__item--feature .web-services__item-body {
  grid-column: 2;
  grid-row: 1;
}

.web-services__item--feature .web-services__mark {
  grid-column: 3;
  grid-row: 1;
  width: 3.25rem;
  height: 3.25rem;
  background: linear-gradient(145deg, #328CE7, #1a5fb4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(26, 95, 180, 0.28);
}

.web-services__item--feature .web-services__item-body h3 {
  margin-bottom: 0.35rem;
  color: #0b1220;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
}

.web-services__item--feature .web-services__item-body p {
  max-width: 42rem;
  color: #4b5b70;
  font-size: 1rem;
}

.web-services__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.web-services__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--tone-soft);
  border: 1px solid var(--tone-mid);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tone);
}

.web-services__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #fff, var(--tone-soft));
  border: 1px solid var(--tone-mid);
  color: var(--tone);
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.web-services__item-body h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.28rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ws-ink);
}

.web-services__item-body p {
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.web-services__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.35rem 1.45rem;
  border-radius: 1.35rem;
  background: linear-gradient(125deg, #0d213f 0%, #164988 52%, #328CE7 115%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(13, 33, 63, 0.24);
  color: #fff;
}

.web-services__cta::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -45%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 224, 200, 0.22), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.web-services__cta-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.web-services__cta-copy h3 {
  margin: 0 0 0.3rem;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #fff;
}

.web-services__cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.web-services__cta-btn {
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

@media screen and (max-width: 1199px) {
  .web-services__item {
    grid-column: span 6;
  }
}

@media screen and (max-width: 991px) {
  .web-services__head-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .web-services__title {
    max-width: 100%;
    font-size: clamp(1.35rem, 0.95rem + 2vw, 1.95rem);
  }

  .web-services__item--feature {
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
  }

  .web-services__item--feature .web-services__mark {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .web-services__item--feature .web-services__item-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .web-services__cta {
    grid-template-columns: auto 1fr;
  }

  .web-services__cta-btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 575px) {
  .web-services__item {
    grid-column: span 12;
  }

  .web-services__title {
    font-size: clamp(1.2rem, 0.9rem + 2.6vw, 1.5rem);
  }

  .web-services__cta {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .web-services__cta-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .web-services__cta-copy h3 {
    font-size: 1.1rem;
  }
}

/* ---- Differentiators section ---- */
.web-diff {
  --wd-ink: #0b1220;
  --wd-muted: #5b677a;
  --wd-blue: #328CE7;
  --wd-deep: #1a5fb4;
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
  background: #f7fafc;
}

.web-diff__kicker {
  margin: 0 0 0.85rem;
  color: var(--wd-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-diff__head {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.web-diff__head-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
}

.web-diff__title {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.4rem, 0.9rem + 1.9vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--wd-ink);
  text-wrap: balance;
}

.web-diff__title span {
  color: var(--wd-blue);
}

.web-diff__lead {
  margin: 0;
  color: var(--wd-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  line-height: 1.6;
}

.web-diff__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}

.web-diff__media {
  position: relative;
}

.web-diff__media figure {
  margin: 0;
  height: 100%;
  min-height: 28rem;
  padding: 0.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #ffffff, #eaf4ff);
  border: 1px solid rgba(50, 140, 231, 0.14);
  box-shadow: 0 22px 48px rgba(26, 95, 180, 0.1);
  overflow: hidden;
}

.web-diff__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
}

.web-diff__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.web-diff__card {
  --tone: #328CE7;
  --tone-soft: rgba(50, 140, 231, 0.12);
  --tone-mid: rgba(50, 140, 231, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.web-diff__card:hover {
  transform: translateY(-3px);
  border-color: var(--tone-mid);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.web-diff__card[data-tone="sky"] { --tone: #328CE7; --tone-soft: rgba(50,140,231,.12); --tone-mid: rgba(50,140,231,.22); }
.web-diff__card[data-tone="teal"] { --tone: #12b5a0; --tone-soft: rgba(18,181,160,.12); --tone-mid: rgba(18,181,160,.22); }
.web-diff__card[data-tone="indigo"] { --tone: #3b6fd8; --tone-soft: rgba(59,111,216,.12); --tone-mid: rgba(59,111,216,.22); }
.web-diff__card[data-tone="amber"] { --tone: #e0a11b; --tone-soft: rgba(224,161,27,.14); --tone-mid: rgba(224,161,27,.24); }
.web-diff__card[data-tone="coral"] { --tone: #ef6b4a; --tone-soft: rgba(239,107,74,.12); --tone-mid: rgba(239,107,74,.22); }
.web-diff__card[data-tone="mint"] { --tone: #1aa88f; --tone-soft: rgba(26,168,143,.12); --tone-mid: rgba(26,168,143,.22); }

.web-diff__icon {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--tone-soft);
  border: 1px solid var(--tone-mid);
  color: var(--tone);
  font-size: 0.95rem;
}

.web-diff__card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--wd-ink);
}

.web-diff__card p {
  margin: 0;
  color: var(--wd-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media screen and (max-width: 991px) {
  .web-diff__head-copy,
  .web-diff__layout {
    grid-template-columns: 1fr;
  }

  .web-diff__title {
    max-width: 100%;
    font-size: clamp(1.3rem, 0.95rem + 1.8vw, 1.9rem);
  }

  .web-diff__media figure {
    min-height: 18rem;
  }
}

@media screen and (max-width: 575px) {
  .web-diff__grid {
    grid-template-columns: 1fr;
  }

  .web-diff__title {
    font-size: clamp(1.15rem, 0.9rem + 2.4vw, 1.45rem);
  }
}

/* ---- Why choose us ---- */
.web-why {
  --ww-ink: #0b1220;
  --ww-muted: #5b677a;
  --ww-blue: #328CE7;
  --ww-deep: #1a5fb4;
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(50, 140, 231, 0.08), transparent 55%),
    #ffffff;
}

.web-why__glow {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 181, 160, 0.12), transparent 70%);
  pointer-events: none;
}

.web-why > .container {
  position: relative;
  z-index: 1;
}

.web-why__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.web-why__kicker {
  margin: 0 0 0.85rem;
  color: var(--ww-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-why__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 0.9rem + 1.9vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ww-ink);
  text-wrap: balance;
}

.web-why__title span {
  display: block;
  color: var(--ww-blue);
}

.web-why__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: var(--ww-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  line-height: 1.6;
}

.web-why__media {
  margin: 0;
  padding: 0.7rem;
  border-radius: 1.4rem;
  background: linear-gradient(160deg, #ffffff, #eaf4ff);
  border: 1px solid rgba(50, 140, 231, 0.14);
  box-shadow: 0 20px 44px rgba(26, 95, 180, 0.1);
  overflow: hidden;
}

.web-why__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.05rem;
}

.web-why__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.web-why__item {
  --tone: #328CE7;
  --tone-soft: rgba(50, 140, 231, 0.12);
  --tone-mid: rgba(50, 140, 231, 0.22);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.web-why__item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--tone-mid);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.web-why__item[data-tone="sky"] { --tone: #328CE7; --tone-soft: rgba(50,140,231,.12); --tone-mid: rgba(50,140,231,.22); }
.web-why__item[data-tone="teal"] { --tone: #12b5a0; --tone-soft: rgba(18,181,160,.12); --tone-mid: rgba(18,181,160,.22); }
.web-why__item[data-tone="indigo"] { --tone: #3b6fd8; --tone-soft: rgba(59,111,216,.12); --tone-mid: rgba(59,111,216,.22); }
.web-why__item[data-tone="amber"] { --tone: #e0a11b; --tone-soft: rgba(224,161,27,.14); --tone-mid: rgba(224,161,27,.24); }
.web-why__item[data-tone="coral"] { --tone: #ef6b4a; --tone-soft: rgba(239,107,74,.12); --tone-mid: rgba(239,107,74,.22); }
.web-why__item[data-tone="mint"] { --tone: #1aa88f; --tone-soft: rgba(26,168,143,.12); --tone-mid: rgba(26,168,143,.22); }

.web-why__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  background: var(--tone-soft);
  border: 1px solid var(--tone-mid);
  color: var(--tone);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.web-why__item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ww-ink);
}

.web-why__item p {
  margin: 0;
  color: var(--ww-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.web-why__icon {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid var(--tone-mid);
  color: var(--tone);
  font-size: 0.95rem;
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  .web-why__layout {
    grid-template-columns: 1fr;
  }

  .web-why__title {
    font-size: clamp(1.3rem, 0.95rem + 1.8vw, 1.9rem);
  }

  .web-why__media {
    max-width: 34rem;
  }
}

@media screen and (max-width: 575px) {
  .web-why__item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .web-why__icon {
    grid-column: 2;
    justify-self: end;
  }

  .web-why__item > div {
    grid-column: 1 / -1;
  }

  .web-why__title {
    font-size: clamp(1.15rem, 0.9rem + 2.4vw, 1.45rem);
  }

  .web-why__title span {
    display: inline;
  }
}

/* Match EMR / course-page card typography */
.course-page .web-services__item-body h3,
.course-page .web-diff__card h3,
.course-page .web-why__item h3,
.course-page .web-services__item--feature .web-services__item-body h3 {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.course-page .web-services__item-body p,
.course-page .web-diff__card p,
.course-page .web-why__item p,
.course-page .web-services__item--feature .web-services__item-body p {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
}

@media screen and (max-width: 575px) {
  .course-page .web-services__item-body h3,
  .course-page .web-diff__card h3,
  .course-page .web-why__item h3,
  .course-page .web-services__item--feature .web-services__item-body h3 {
    font-size: 1.1rem;
  }
}

/* ---- Technology stack ---- */
.web-tech {
  --wt-ink: #0b1220;
  --wt-muted: #5b677a;
  --wt-blue: #328CE7;
  --wt-deep: #1a5fb4;
  padding: clamp(4rem, 6.5vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(50, 140, 231, 0.08), transparent 60%),
    #f7fafc;
}

.web-tech__head {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.web-tech__kicker {
  margin: 0 0 0.75rem;
  color: var(--wt-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-tech__title {
  margin: 0 0 0.85rem;
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--wt-ink);
  text-wrap: balance;
}

.web-tech__title span {
  color: var(--wt-blue);
}

.web-tech__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--wt-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.05rem);
  line-height: 1.6;
}

.web-tech__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.web-tech__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 8.25rem;
  padding: 1.1rem 0.75rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.web-tech__item:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 140, 231, 0.24);
  box-shadow: 0 16px 36px rgba(26, 95, 180, 0.1);
}

.web-tech__item img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.web-tech__item span {
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wt-ink);
  text-align: center;
}

@media screen and (max-width: 1199px) {
  .web-tech__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .web-tech__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .web-tech__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-tech__item {
    min-height: 7.5rem;
  }
}

/* ---- Final CTA ---- */
.web-cta {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: #fff;
}

.web-cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3rem);
  border-radius: 1.75rem;
  text-align: center;
  background:
    linear-gradient(135deg, #0d213f 0%, #164988 48%, #328CE7 100%);
  box-shadow: 0 28px 60px rgba(13, 33, 63, 0.28);
  color: #fff;
}

.web-cta__glow {
  position: absolute;
  inset: auto -12% -35% auto;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 224, 200, 0.28), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.web-cta__kicker {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.web-cta__title {
  position: relative;
  margin: 0 auto 1rem;
  max-width: 16em;
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 0.95rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.web-cta__title span {
  display: block;
  color: #9fd4ff;
}

.web-cta__lead,
.web-cta__support {
  position: relative;
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.web-cta__support {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.web-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

@media screen and (max-width: 575px) {
  .web-cta__panel {
    border-radius: 1.25rem;
    padding: 2rem 1.15rem;
  }

  .web-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .web-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Website finale title wrap (EMR course-finale) */
.course-page .course-finale #finale-heading {
  white-space: normal;
  max-width: min(100%, 18em);
  text-wrap: balance;
}

/* Related services before CTA */
.web-related {
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  background: #fff;
}

.course-page .solution-related--standalone {
  margin-top: 0;
  padding: clamp(1.5rem, 3vw, 2rem) 1.25rem;
  border-top: none;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 55% 80% at 50% -20%, rgba(50, 140, 231, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(50, 140, 231, 0.06), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(50, 140, 231, 0.12);
}

.course-page .course-finale #finale-heading {
  white-space: normal;
  max-width: min(100%, 18em);
  text-wrap: balance;
}

/* Tighter technology section spacing */
.course-page .app-tech-section--tight {
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
