/* =========================================================
   how-it-works page styles.
   Loaded after styles/global.css on how-it-works.html only.
   ========================================================= */

/* Define colours for site*/
:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

.worksheader-image {
  width: 150%;
  overflow: hidden;
  min-height: 550px;
  height: 50vh;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  position: relative;
  left: -130px;
  z-index: 1;
}

/* WRAPPER */
.howitworks-split-card {
  margin-top: 60px;
  position: relative;
}

/* GLASS CARD */
.howitworks-split-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: var(--shadow-medium);
  overflow: visible;
  max-height: 300px;
}

/* LEFT */
.howitworks-left {
  max-width: 55%;
}

/* HEADER ROW */
.howitworks-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

/* ICON */
.howitworks-icon {
  width: 80px;
}

/* TITLE */
.howitworks-title {
  color: var(--blue);
  font-weight: 800;
  margin: 0;
}

/* TEXT */
.howitworks-text {
  line-height: 1.6;
}

/* RIGHT */
.howitworks-right {
  position: relative;
  width: 45%;
  display: flex;
  justify-content: center;
}

/* IMAGE (BREAK OUT EFFECT) */
.howitworks-image {
  width: 85%;
  max-width: 1000px;
  transform: translateY(-25px);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

/* SECTION */
.howitworks-section {
  margin-top: 80px;
}

/* HEADER */
.howitworks-heading {
  margin: 0 auto 50px;
}

.howitworks-subheading {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

/* GRID SPACING */
.howitworks-grid {
  margin-top: 10px;
}

.howitworks-card {
  height: 100%;
  padding: 25px 20px;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* HOVER */
.howitworks-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

/* ICON */
.howitworks-card-icon {
  width: 100px;
  margin: 0 auto 15px;
}

/* TITLE */
.howitworks-card-title {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}

/* TEXT */
.howitworks-card-text {
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--blue);
}

/* BLUE INNER CARD */
.howitworks-card-highlight {
  margin-top: auto;
  text-align: left;
  background: var(--light-blue-grad);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

/* SECTION */
.howitworks-config-section {
  padding: 60px 0;
}

/* CARD */
.howitworks-config-card {
  display: flex;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  min-height: 450px;
  position: relative;
}

/* LEFT */
.howitworks-config-left {
  flex: 1;
  padding: 50px 40px;
  position: relative;
  z-index: 3;
  margin-right: 600px;
}

.howitworks-config-right {
  position: absolute;
  right: 190px;
  top: 0;
  bottom: 0;
  width: 55%;
  background: #fff;
}

/* HEADER */
.howitworks-config-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* ICON */
.howitworks-config-icon img {
  width: 90px;
  height: auto;
}

/* TITLE */
.howitworks-config-title {
  color: var(--blue);
  margin: 0;
}

/* TEXT */
.howitworks-config-text {
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* BULLETS */
.howitworks-config-bullets {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.howitworks-config-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--blue);
  line-height: 1.4;
}

/* BULLET ICON */
.howitworks-bullet-icon {
  width: 60px;
  height: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

/* IMAGE */
.howitworks-config-image {
  width: 150%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 🔥 KEY: SOFT OVERLAY FADE INTO TEXT */
.howitworks-config-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient( to right, #ffffff 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0) 100% );
  z-index: 2;
}

/* TITLE */
.howitworks-section .section-title {
  color: var(--blue);
}

@media (max-width: 992px) {
  /* =========================
     FULL MOBILE RESPONSIVE FIX
     ========================= */
  /* GLOBAL SPACING FIX */
  .howitworks-section,
  .howitworks-split-card {
    margin-top: 40px;
  }

  /* =========================
     HERO SPLIT CARD FIX
     ========================= */
  .howitworks-split-inner {
    flex-direction: column;
    max-height: none;
    padding: 25px 20px;
    text-align: center;
  }

  .howitworks-left {
    max-width: 100%;
  }

  .howitworks-right {
    width: 100%;
    margin-top: 20px;
  }

  .howitworks-image {
    width: 100%;
    max-width: 320px;
    transform: none;
  }

  .howitworks-header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .howitworks-icon {
    width: 60px;
  }

  /* =========================
     CONFIG CARD FIX (BIG BREAKER)
     ========================= */
  .howitworks-config-card {
    flex-direction: column;
    min-height: auto;
  }

  .howitworks-config-left {
    margin-right: 0 !important;
    padding: 25px 20px;
  }

  .howitworks-config-right {
    position: relative !important;
    right: auto !important;
    width: 100% !important;
    height: auto;
  }

  .howitworks-config-image {
    width: 100%;
    height: auto;
  }

  .howitworks-config-right::before {
    display: none;
  }

  /* =========================
     GRID CARDS FIX
     ========================= */
  .howitworks-card {
    padding: 20px;
  }

  .howitworks-card-margin1 {
    margin-top: 30px;
  }

  .howitworks-card-margin2 {
    margin-top: 20px;
  }

  .howitworks-card-margin3 {
    margin-top: 10px;
  }

  .howitworks-card-icon {
    width: 70px;
  }

  /* TEXT SIZE FIX */
  .howitworks-title {
    font-size: 1.3rem;
  }

  .howitworks-text {
    font-size: 1rem;
  }
}
