/* ==========================================================================
   Expertise page (Figma "Expertise", prototype page 11).
   Header, footer and the "I need a…" picker come from style.css.
   ========================================================================== */

.ex-wrap { width: 1332px; max-width: 100%; margin: 0 auto; }

.ex-head { text-align: center; }
.ex-heading {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 42px;
  line-height: 52px;
  color: var(--color-heading);
}
.ex-sub {
  max-width: 860px;
  margin: 15px auto 0;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-body);
}

/* ---------- Banner ---------- */
/* Photo comes from the page (style="background-image:…"), dark fade on the left as in the design */
.ex-hero {
  --banner-h: 1080px;
  --banner-pb: 113px;
  --banner-x: 4px;
  --banner-shade: linear-gradient(90deg, rgba(6, 7, 27, .9) 0%, rgba(6, 7, 27, .72) 35%, rgba(6, 7, 27, .3) 65%, rgba(6, 7, 27, .2) 100%);
}
.ex-hero__title {
  width: 900px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 62px;
  line-height: 78px;
  color: var(--color-white);
}
.ex-hero__text {
  width: 620px;
  margin-top: 27px;
  padding-left: 4px;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Services ---------- */
.ex-services { padding: var(--section-space) 0; background: var(--color-white); overflow: hidden; }
.ex-services__list { margin-top: 113px; }
.ex-service { display: flex; align-items: flex-start; gap: 77px; }
.ex-service + .ex-service { margin-top: 66px; }
.ex-service__body { flex: 0 0 560px; }
.ex-service__num, .ex-service__title {
  display: block;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 32px;
  line-height: 42px;
}
.ex-service__num { color: var(--color-primary); }
.ex-service__title { margin-top: 10px; color: var(--color-heading); }
.ex-service__line { display: block; width: 50px; height: 2px; margin-top: 26px; background: var(--color-heading); }
.ex-service__text {
  width: 420px;
  margin-top: 37px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 30px;
  color: var(--color-heading);
}
.ex-service__lists { display: flex; gap: 40px; margin-top: 34px; }
.ex-service__list { display: grid; gap: 13px; }
.ex-service__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-poppins);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-heading);
  white-space: nowrap;
}
.ex-service__ring { flex: 0 0 16px; color: var(--color-primary); }

/* Image slider: the next image peeks in from the right edge of the screen */
.ex-gallery {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: -294px;                /* runs on to the screen edge (1626px → 1920px) */
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.ex-gallery.is-dragging { cursor: grabbing; }
.ex-gallery__track { display: flex; gap: 31px; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }   /* soft settle after a drag */
.ex-gallery.is-dragging .ex-gallery__track { transition: none; }
.ex-gallery__slide {
  flex: 0 0 694px;
  height: 442px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  user-select: none;
}

/* ---------- Technologies ---------- */
.ex-tech { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.ex-tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 41px; }
.ex-tech__card {
  padding: 22px 24px 34px;
  border: 1px solid #E6E9F2;
  border-radius: 8px;
  background: var(--color-white);
}
.ex-tech__title {
  padding-bottom: 11px;
  border-bottom: 1px solid #EEF0F5;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-heading);
}
.ex-tech__list + .ex-tech__title { margin-top: 25px; }
.ex-tech__list { display: grid; gap: 13px; margin-top: 15px; }
.ex-tech__list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-dm-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--color-body);
}
.ex-tech__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1199.98px) {
  .ex-wrap { padding: 0 16px; }
  .ex-hero__title { width: auto; font-size: 38px; line-height: 48px; }
  .ex-hero__text { width: auto; max-width: 620px; margin-top: 20px; padding-left: 0; font-size: 17px; line-height: 28px; }
  .ex-heading { font-size: 30px; line-height: 38px; }
  .ex-sub { font-size: 16px; line-height: 26px; }
  .ex-services__list { margin-top: 48px; }
  .ex-service { flex-direction: column; gap: 32px; }
  .ex-service + .ex-service { margin-top: 64px; }
  .ex-service__body { flex: none; width: 100%; }
  .ex-service__num, .ex-service__title { font-size: 26px; line-height: 34px; }
  .ex-service__line { margin-top: 18px; }
  .ex-service__text { width: auto; margin-top: 20px; }
  .ex-service__lists { flex-direction: column; gap: 13px; margin-top: 24px; }
  .ex-service__list li { white-space: normal; }
  .ex-gallery { width: calc(100% + 16px); min-width: 0; margin-right: -16px; }
  .ex-gallery__slide { flex-basis: 85%; height: auto; aspect-ratio: 694 / 442; }
  .ex-tech__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .ex-tech__card { padding-bottom: 28px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .ex-tech__grid { grid-template-columns: repeat(2, 1fr); }
  .ex-service__lists { flex-direction: row; gap: 30px; }
}

/* 85px of visible space: take off the empty space above the first line of text */
@media (min-width: 1200px) {
  .ex-services, .ex-tech { padding-top: calc(var(--section-space) - 11px); }
  .ex-page .cta-needs    { padding-top: calc(var(--section-space) - 4px); }
}

/* Service image sliders: real images, moved by dragging or clicking the next image */
img.ex-gallery__slide { display: block; object-fit: cover; background: #E9ECF5; -webkit-user-drag: none; }
