/* ==================================================
   Proteus Features — equal cards, refined look
================================================== */

.proteus-features {
  --pf-ink: #0a1c2a;
  --pf-muted: #5d7588;
  --pf-line: rgba(10, 28, 42, 0.08);
  --pf-accent: #1a9b6c;
  --pf-accent-soft: rgba(26, 155, 108, 0.12);
  --pf-cream: #fff8ea;
  padding-bottom: 90px;
  margin-top: -110px;
  position: relative;
  z-index: 2;
}

.proteus-features .container {
  max-width: 1200px;
}

.proteus-features .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.proteus-features .row > [class*="col-"] {
  display: flex;
}

.proteus-features .single-box {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff),
    var(--pf-cream);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px rgba(10, 28, 42, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.proteus-features .single-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at top right, rgba(255, 244, 215, 0.55), transparent 45%),
    linear-gradient(145deg, #0a1c2a 0%, #143447 55%, #1a9b6c 140%);
  opacity: 0;
  visibility: visible;
  z-index: -1;
  transition: opacity 0.35s ease;
}

.proteus-features .single-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 155, 108, 0.12), transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.proteus-features .single-box .icon {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 14px;
  background: var(--pf-accent-soft);
  color: var(--pf-accent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: none;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.proteus-features .single-box .icon svg,
.proteus-features .single-box .icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.proteus-features .single-box h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--pf-ink);
  margin: 20px 0 10px;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.35s ease;
}

.proteus-features .single-box p {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--pf-muted);
  margin: 0;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.35s ease;
}

.proteus-features .single-box:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 22px 48px rgba(10, 28, 42, 0.16);
}

.proteus-features .single-box:hover::before {
  opacity: 1;
}

.proteus-features .single-box:hover::after {
  opacity: 0;
  transform: scale(1.2);
}

.proteus-features .single-box:hover .icon {
  background: rgba(255, 244, 215, 0.95);
  color: #0a1c2a;
  transform: scale(1.06);
}

.proteus-features .single-box:hover h3,
.proteus-features .single-box:hover p {
  color: #ffffff;
}

.proteus-features .single-box:hover p {
  color: rgba(255, 255, 255, 0.78);
}

/* Soft staggered accent on every other card icon (idle state) */
.proteus-features .col-lg-3:nth-child(4n + 2) .single-box .icon {
  background: rgba(58, 109, 181, 0.12);
  color: #3a6db5;
}

.proteus-features .col-lg-3:nth-child(4n + 3) .single-box .icon {
  background: rgba(201, 137, 26, 0.14);
  color: #c9891a;
}

.proteus-features .col-lg-3:nth-child(4n + 4) .single-box .icon {
  background: rgba(10, 28, 42, 0.08);
  color: #0a1c2a;
}

.proteus-features .col-lg-3:nth-child(4n + 2) .single-box:hover .icon,
.proteus-features .col-lg-3:nth-child(4n + 3) .single-box:hover .icon,
.proteus-features .col-lg-3:nth-child(4n + 4) .single-box:hover .icon {
  background: rgba(255, 244, 215, 0.95);
  color: #0a1c2a;
}

@media (max-width: 991px) {
  .proteus-features {
    margin-top: -70px;
    padding-bottom: 60px;
  }

  .proteus-features .single-box {
    min-height: 230px;
  }

  .proteus-features .single-box h3 {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .proteus-features .single-box {
    min-height: 0;
    padding: 24px 20px;
  }
}
