@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&display=swap");

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust__badge,
.trust__heading,
.trust__underline,
.trust__desc,
.trust__statCard {
  opacity: 0;
  transform: translateY(28px);
}

.trust--visible .trust__badge {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.1s;
}

.trust--visible .trust__heading {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.25s;
}

.trust--visible .trust__underline {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.4s;
}

.trust--visible .trust__desc {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.5s;
}

.trust--visible .trust__statCard {
  animation: fadeSlideUp 0.6s ease forwards;
}

.trust--visible .trust__grid .trust__statCard:nth-child(1) { animation-delay: 0.55s; }
.trust--visible .trust__grid .trust__statCard:nth-child(2) { animation-delay: 0.65s; }
.trust--visible .trust__grid .trust__statCard:nth-child(3) { animation-delay: 0.75s; }
.trust--visible .trust__grid .trust__statCard:nth-child(4) { animation-delay: 0.85s; }
.trust--visible .trust__grid .trust__statCard:nth-child(5) { animation-delay: 0.95s; }

.trust {
  position: relative;
  width: 100%;
  padding: 40px 32px 60px 32px;
  background: #EDF3FF;
  font-family: "Inter", sans-serif;
  overflow: visible;
  overflow-x: hidden;
}

/* ---------- BADGE (minimal inline label) ---------- */
.trust__badge {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 28px;
  z-index: 5;
  box-shadow: none;
  max-width: 100%;
}

.trust__badge-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #1e3a5f;
  border-radius: 6px;
  flex-shrink: 0;
}

.trust__badge-text {
  color: #1e3a5f;
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
}

.trust__badge-text::after {
  content: none;
}

/* ---------- TOP SECTION (bg image behind heading) ---------- */
.trust__top {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  padding: 80px 48px 100px 48px;
  background-size: 82%;
  background-position: right bottom;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.trust__top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(237, 243, 255, 0.98) 0%,
    rgba(237, 243, 255, 0.88) 32%,
    rgba(237, 243, 255, 0.2) 62%,
    rgba(237, 243, 255, 0) 100%
  );
  z-index: 1;
}

.trust__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.trust__heading {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1.3;
  margin: 0 0 14px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.3px;
}

.trust__heading--accent {
  color: #d4a24c;
  font-weight: 800;
}

.trust__underline {
  display: block;
  width: 56px;
  height: 3px;
  background: #d4a24c;
  margin-bottom: 18px;
  border-radius: 2px;
}

.trust__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  color: #4a5568;
  max-width: 440px;
  font-family: "Inter", sans-serif;
}

/* ---------- STATS GRID (floating cards, no white card behind) ---------- */
.trust__grid {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 48px;
  margin-top: -60px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.trust__statCard {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 40px 2px rgba(212, 162, 76, 0.25);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc((100% - 4 * 20px) / 5);
  flex: 0 1 calc((100% - 4 * 20px) / 5);
  overflow: hidden;
}

.trust__statCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, #d4a24c, rgba(30, 58, 95, 0.6), #d4a24c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trust__statCard::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.35), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.trust__statCard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 0 60px 6px rgba(212, 162, 76, 0.45);
}

.trust__statCard:hover::before {
  opacity: 1;
}

.trust__statCard:hover::after {
  transform: translate(20%, 30%);
}

.trust__iconCircle {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.25);
}

.trust__icon {
  color: #d4a24c;
}

.trust__value {
  position: relative;
  z-index: 2;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  color: #d4a24c;
  margin: 0 0 4px 0;
  line-height: 1.25;
  font-family: "Inter", sans-serif;
}

.trust__title {
  position: relative;
  z-index: 2;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
}

.trust__cardDesc {
  position: relative;
  z-index: 2;
  font-size: clamp(11px, 1.1vw, 12.5px);
  line-height: 1.5;
  color: #6b7280;
  min-height: 0;
  font-family: "Inter", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trust__cardLine {
  position: relative;
  z-index: 2;
  display: block;
  width: 22px;
  height: 3px;
  background: #d4a24c;
  margin: 10px auto 0 auto;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.trust__statCard:hover .trust__cardLine {
  width: 40px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1200px) {
  .trust__top {
    padding: 72px 36px 96px 36px;
  }

  .trust__grid {
    margin-top: -45px;
    padding: 0 32px;
  }

  .trust__statCard {
    width: calc((100% - 2 * 20px) / 3);
    flex: 0 1 calc((100% - 2 * 20px) / 3);
  }
}

@media (max-width: 1024px) {
  .trust {
    padding: 32px 0 48px 0;
  }

  .trust__top {
    min-height: 460px;
    padding: 76px 28px 100px 28px;
    background-size: 92%;
  }

  .trust__content {
    max-width: 100%;
  }

  .trust__grid {
    gap: 16px;
    padding: 0 24px;
    margin-top: -50px;
  }

  .trust__statCard {
    width: calc((100% - 2 * 16px) / 3);
    flex: 0 1 calc((100% - 2 * 16px) / 3);
    padding: 18px 14px;
  }
}

@media (max-width: 900px) {
  .trust__top {
    min-height: 440px;
    padding: 80px 24px 140px 24px;
    background-size: 120%;
    background-position: center 70%;
  }

  .trust__top::before {
    background: linear-gradient(
      to bottom,
      rgba(237, 243, 255, 0.97) 0%,
      rgba(237, 243, 255, 0.88) 40%,
      rgba(237, 243, 255, 0.35) 65%,
      rgba(237, 243, 255, 0.08) 85%,
      rgba(237, 243, 255, 0) 100%
    );
  }

  .trust__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .trust__badge {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .trust__underline {
    margin-left: auto;
    margin-right: auto;
  }

  .trust__desc {
    margin: 0 auto;
  }

  .trust__grid {
    padding: 0 20px;
    margin-top: -56px;
  }
}

@media (max-width: 768px) {
  .trust {
    padding: 32px 20px 48px 20px;
  }

  .trust__badge-icon {
    width: 20px;
    height: 20px;
  }

  .trust__top {
    min-height: auto;
    padding: 72px 20px 130px 20px;
  }

  .trust__grid {
    gap: 14px;
    margin-top: -44px;
    padding: 0 16px;
  }

  .trust__statCard {
    width: calc((100% - 14px) / 2);
    flex: 0 1 calc((100% - 14px) / 2);
    padding: 18px 12px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .trust__grid {
    margin-top: -36px;
  }

  .trust__heading {
    font-size: clamp(20px, 5.5vw, 28px);
  }


}

@media (max-width: 480px) {
  .trust {
    padding: 24px 14px 36px 14px;
  }

  .trust__top {
    padding: 64px 16px 120px 16px;
  }

  .trust__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .trust__badge-text {
    font-size: 11px;
  }

  .trust__badge-icon {
    width: 18px;
    height: 18px;
  }

  .trust__grid {
    gap: 10px;
    padding: 0 12px;
    margin-top: -30px;
  }

  .trust__statCard {
    width: calc((100% - 10px) / 2);
    flex: 0 1 calc((100% - 10px) / 2);
    padding: 14px 10px;
  }

  .trust__iconCircle {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
}

@media (max-width: 420px) {
  .trust__grid {
    margin-top: -24px;
  }

  .trust__statCard {
    width: 100%;
    flex: 0 1 100%;
    aspect-ratio: auto;
    padding: 20px 16px;
  }

}

@media (max-width: 340px) {
  .trust__top {
    padding: 56px 12px 110px 12px;
  }

  .trust__heading {
    font-size: 19px;
  }

  .trust__desc {
    font-size: 13px;
  }

  .trust__statCard {
    padding: 16px 12px;
  }
}