/* =========================================================
   HOW WE WORK
   ========================================================= */

.how-we-work-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* =========================================================
   HEADING
   ========================================================= */

.how-we-work-head {
  position: relative;
  z-index: 5;
}

.how-we-work-head-left {
  max-width: 760px;
}

/* =========================================================
   KICKER / BLOCK TITLE
   ========================================================= */

.how-we-work-kicker {
  color: #ff5a00;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.how-we-work-kicker-line {
  position: relative;
  width: 34px;
  height: 2px;
  flex-shrink: 0;
  background: #ff5a00;
}

.how-we-work-kicker-line::before,
.how-we-work-kicker-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a00;
  transform: translateY(-50%);
}

.how-we-work-kicker-line::before {
  left: 0;
}

.how-we-work-kicker-line::after {
  right: 0;
}

/* =========================================================
   HEADING TITLE
   ========================================================= */

.how-we-work-head h2 {
  max-width: 760px;
  margin: 0;
  color: #071333;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.how-we-work-head h2 span {
  color: #ff5a00;
}

/* =========================================================
   LEFT SUBTITLE
   ========================================================= */

.how-we-work-subtitle {
  max-width: 700px;
  margin-top: 10px;
}

.how-we-work-subtitle,
.how-we-work-subtitle p {
  margin-bottom: 0;
  color: #46536d;
  font-size: 16px;
  line-height: 1.55;
}

/* =========================================================
   RIGHT DESCRIPTION
   ========================================================= */

.how-we-work-intro {
  max-width: 560px;
  margin-top: 40px;
  margin-left: auto;
}

.how-we-work-intro,
.how-we-work-intro p {
  margin-bottom: 0;
  color: #26324b;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   PROCESS WRAPPER
   ========================================================= */

.how-we-work-process {
  position: relative;
  width: 100%;
}

/* =========================================================
   PROCESS STEP

   IMPORTANT:
   No card background / no border / no shadow
   because reference is a continuous timeline.
   ========================================================= */

.how-we-work-step {
  position: relative;
  min-width: 0;
  padding: 0 24px;
  color: #071333;
  background: transparent;
}

/* Vertical divider between text areas */

.how-we-work-process .col-xl:not(:last-child) .how-we-work-step::after {
  content: "";
  position: absolute;
  top: 95px;
  right: 0;
  width: 1px;
  height: 105px;
  background: #dce3ee;
}

/* =========================================================
   TIMELINE TOP
   ========================================================= */

.how-we-work-step-top {
  position: relative;
  height: 85px;
}

/* Large faded number */

.how-we-work-number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: #dce1ed;
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Main dark icon */

.how-we-work-icon {
  position: absolute;
  top: 22px;
  left: 78px;
  z-index: 5;
  width: 62px;
  min-width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff !important;
  background: linear-gradient(145deg, #071946, #020b29) !important;
  box-shadow: 0 8px 20px rgba(5, 20, 60, 0.18);
  font-size: 25px;
}

.how-we-work-icon i {
  color: #ffffff !important;
}

/* Horizontal dotted timeline */

.how-we-work-step-top::after {
  content: "";
  position: absolute;
  top: 53px;
  left: 140px;
  right: -24px;
  z-index: 2;
  border-top: 1px dashed #cad4e3;
}

.how-we-work-process .col-xl:last-child .how-we-work-step-top::after {
  display: none;
}

/* Orange node */

.how-we-work-dot {
  position: absolute;
  top: 47px;
  right: -4px;
  z-index: 6;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ff5a00;
}

/* =========================================================
   STEP COLORS
   ========================================================= */

.how-step-blue,
.how-step-purple,
.how-step-orange,
.how-step-green,
.how-step-teal {
  color: #071333;
}

/* =========================================================
   STEP TEXT
   ========================================================= */

.how-we-work-step-copy {
  min-height: 116px;
  padding-top: 8px;
  padding-right: 18px;
}

.how-we-work-step-copy h3 {
  margin: 0 0 8px;
  color: #071454;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.how-we-work-step-description,
.how-we-work-step-description p {
  margin: 0;
  color: #26344f;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   MEDIA CARD
   ========================================================= */

.how-we-work-media-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #06152d;
  box-shadow: 0 8px 20px rgba(11, 34, 71, 0.07);
}

.how-we-work-media-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.how-we-work-media-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   OUTCOME PANEL
   ========================================================= */

.how-we-work-outcome {
  min-height: 82px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #03142e 0%, #061f43 100%);
}

.how-we-work-outcome-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 90, 0, 0.45);
  border-radius: 50%;
  color: #ff6500;
  background: rgba(255, 90, 0, 0.08);
  font-size: 19px;
}

.how-we-work-outcome-icon i {
  color: #ff6500;
}

.how-we-work-outcome-copy {
  min-width: 0;
}

.how-we-work-outcome h4 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.how-we-work-outcome-description,
.how-we-work-outcome-description p {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.45;
}

/* =========================================================
   BOTTOM CASE STUDY
   ========================================================= */

.how-we-work-case {
  position: relative;
  overflow: hidden;
  border: 1px solid #17365f;
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 70% 50%,
      rgba(23, 102, 227, 0.08),
      transparent 32%
    ),
    linear-gradient(135deg, #020c22 0%, #061f45 52%, #031531 100%);
  box-shadow: 0 14px 34px rgba(4, 25, 60, 0.12);
}

/* =========================================================
   CASE IMAGE
   ========================================================= */

.how-we-work-case-image {
  min-height: 245px;
  overflow: hidden;
}

.how-we-work-case-image img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   CASE CONTENT
   ========================================================= */

.how-we-work-case-content {
  min-height: 245px;
  padding: 24px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-we-work-case-label {
  display: block;
  margin-bottom: 12px;
  color: #ff6500;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 900;
  text-transform: uppercase;
}

.how-we-work-case-content h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.how-we-work-case-description,
.how-we-work-case-description p {
  margin: 0;
  color: #d3dceb;
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   CASE BUTTON
   ========================================================= */

.how-we-work-case-btn {
  width: fit-content;
  min-height: 46px;
  margin-top: 18px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  color: #ffffff;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.how-we-work-case-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   CASE FLOW
   ========================================================= */

.how-we-work-case-flow {
  min-height: 245px;
  padding: 28px 10px 20px;
}

.how-we-work-case-step {
  position: relative;
  min-width: 0;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Top icon + connector */

.how-we-work-case-step-top {
  position: relative;
  width: 100%;
  min-height: 62px;
}

.how-we-work-case-step-icon {
  position: relative;
  z-index: 5;
  width: 54px;
  min-width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9d380e;
  border-radius: 50%;
  color: #ff6500;
  background: radial-gradient(circle, #0c2649, #06152f);
  font-size: 22px;
}

.how-we-work-case-step-icon i {
  color: #ff6500;
}

.how-we-work-case-connector {
  position: absolute;
  top: 27px;
  left: 60px;
  right: -15px;
  border-top: 1px dashed #74859e;
}

.how-we-work-case-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #74859e;
  border-right: 1px solid #74859e;
  transform: rotate(45deg);
}

.how-we-work-case-step h4 {
  margin: 7px 0 7px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.how-we-work-case-step-description,
.how-we-work-case-step-description p {
  margin: 0;
  color: #d4dce8;
  font-size: 12px;
  line-height: 1.55;
}

.how-we-work-case-description,
.how-we-work-case-description p {
  margin: 0;
  color: #d3dceb;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   1600px
   ========================================================= */

@media (max-width: 1599.98px) {
  .how-we-work-head h2 {
    font-size: 40px;
  }

  .how-we-work-step {
    padding-right: 18px;
    padding-left: 18px;
  }

  .how-we-work-number {
    font-size: 52px;
  }

  .how-we-work-icon {
    left: 70px;
    width: 58px;
    min-width: 58px;
    height: 58px;
    font-size: 23px;
  }

  .how-we-work-step-top::after {
    left: 128px;
  }

  .how-we-work-media-image {
    height: 165px;
  }
}

/* =========================================================
   1400px
   ========================================================= */

@media (max-width: 1600px) {
  .how-we-work-kicker {
    font-size: 13px;
  }

  .how-we-work-head h2 {
    font-size: 32px;
  }

  .how-we-work-subtitle,
  .how-we-work-subtitle p,
  .how-we-work-intro,
  .how-we-work-intro p {
    font-size: 15px;
  }

  .how-we-work-step {
    padding-right: 14px;
    padding-left: 14px;
  }

  .how-we-work-number {
    font-size: 45px;
  }

  .how-we-work-icon {
    left: 57px;
    width: 52px;
    min-width: 52px;
    height: 52px;
    font-size: 21px;
  }

  .how-we-work-step-top::after {
    top: 49px;
    left: 109px;
  }

  .how-we-work-dot {
    top: 43px;
  }

  .how-we-work-step-copy h3 {
    font-size: 17px;
  }

  .how-we-work-step-description,
  .how-we-work-step-description p {
    font-size: 13px;
  }

  .how-we-work-media-image {
    height: 145px;
  }
}

/* =========================================================
   1200px
   ========================================================= */

@media (max-width: 1199.98px) {
  .how-we-work-intro {
    max-width: 100%;
    margin-top: 0;
    margin-left: 0;
  }

  .how-we-work-process .col-md-6 {
    margin-bottom: 30px;
  }

  .how-we-work-step {
    padding-right: 22px;
    padding-left: 22px;
  }

  .how-we-work-process .col-xl:not(:last-child) .how-we-work-step::after {
    display: none;
  }

  .how-we-work-step-top::after,
  .how-we-work-dot {
    display: none;
  }

  .how-we-work-number {
    font-size: 50px;
  }

  .how-we-work-icon {
    left: 75px;
  }

  .how-we-work-step-copy {
    min-height: 105px;
  }

  .how-we-work-media-image {
    height: 220px;
  }
}

/* =========================================================
   992px
   ========================================================= */

@media (max-width: 991.98px) {
  .how-we-work-head .row {
    row-gap: 18px;
  }

  .how-we-work-case-image,
  .how-we-work-case-image img {
    min-height: 320px;
  }

  .how-we-work-case-content {
    min-height: auto;
  }

  .how-we-work-case-flow {
    min-height: auto;
    border-top: 1px solid rgba(150, 180, 225, 0.18);
  }
}

/* =========================================================
   768px
   ========================================================= */

@media (max-width: 767.98px) {
  .how-we-work-head {
    margin-bottom: 35px !important;
  }
  .success-story-kicker,
  .success-story-cta-kicker {
    font-size: 13px !important;
  }

  .how-we-work-case-description,
  .how-we-work-case-description p {
    font-size: 14px;
  }

  .how-we-work-kicker {
    font-size: 13px;
  }
  .how-we-work-case-label {
    font-size: 13px;
  }
  .how-we-work-step-copy h3 {
    font-size: 16px;
  }

  .how-we-work-head h2 {
    font-size: 22px;
    line-height: 1.18;
  }

  .how-we-work-subtitle,
  .how-we-work-subtitle p,
  .how-we-work-intro,
  .how-we-work-intro p {
    font-size: 13px;
  }

  .how-we-work-step {
    padding: 0;
  }

  .how-we-work-number {
    left: 0;
  }

  .how-we-work-icon {
    left: 70px;
  }

  .how-we-work-step-copy {
    min-height: auto;
    margin-bottom: 18px;
  }

  .how-we-work-media-image {
    height: 230px;
  }

  .how-we-work-case-image,
  .how-we-work-case-image img {
    min-height: 230px;
  }

  .how-we-work-case-content {
    padding: 24px 20px;
  }
}

/* =========================================================
   576px
   ========================================================= */

@media (max-width: 575.98px) {
  .how-we-work-kicker-line {
    width: 28px;
  }

  .how-we-work-number {
    font-size: 44px;
  }

  .how-we-work-icon {
    left: 60px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .how-we-work-media-image {
    height: 200px;
  }

  .how-we-work-outcome {
    min-height: 75px;
    padding: 11px 12px;
  }

  .how-we-work-case-flow .col {
    width: 50%;
    flex: 0 0 50%;
  }

  .how-we-work-case-connector {
    display: none;
  }
}

/* base styles */
h2 {
  font-size: 44px !important;
}

@media (max-width: 1599.98px) {
  h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 1399.98px) {
  h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 1199.98px) {
  h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 991.98px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 21px !important;
  }
}

@media (max-width: 374.98px) {
  h2 {
    font-size: 20px !important;
  }
}
