/* ================================================================
   Capability detail pages — themed by --cap / --cap-bg on .cap-page
================================================================ */
.cap-page .py-section { padding: 48px 0; }
.cap-page .section-title span { color: var(--cap); }
.cap-page .section-divider { background: linear-gradient(90deg, var(--cap), color-mix(in srgb, var(--cap) 35%, #70C74E)); }

/* ── Intro ── */
.cap-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cap-bg); color: var(--cap);
  border: 1px solid color-mix(in srgb, var(--cap) 22%, transparent);
  border-radius: 50px; padding: 6px 16px; margin-bottom: 14px;
  font-family: 'Poppins', sans-serif; font-size: .76rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
}
.cap-lead { color: #4B5563; line-height: 1.9; margin-bottom: 14px; max-width: 62ch; }
.cap-page .btn-outline-custom { color: var(--cap); border-color: var(--cap); }
.cap-page .btn-outline-custom:hover { background: var(--cap); color: #fff; }

.cap-hero-img { position: relative; isolation: isolate; }
.cap-hero-img img {
  width: 100%; height: 420px; object-fit: cover; display: block;
  border-radius: 18px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--cap) 25%, transparent);
}
.cap-hero-img::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid color-mix(in srgb, var(--cap) 30%, transparent);
  border-radius: 18px; z-index: -1;
}
.cap-hero-badge {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 14px 36px rgba(13,31,60,.16);
  animation: cap-float 4s ease-in-out infinite;
}
.cap-hero-badge > i {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cap); color: #fff; font-size: 1.2rem;
}
.cap-hero-badge strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.15rem; color: #0D1F3C; line-height: 1.1; }
.cap-hero-badge span { font-size: .75rem; color: #6B7280; }
@keyframes cap-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Facts band ── */
.cap-facts {
  background: linear-gradient(120deg, color-mix(in srgb, var(--cap) 70%, #0D1F3C) 0%, var(--cap) 60%, color-mix(in srgb, var(--cap) 80%, #fff) 100%);
  position: relative; overflow: hidden;
}
.cap-facts::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px);
}
.cap-fact {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 30px 12px;
}
.cap-facts .col-6:not(:last-child) .cap-fact { border-right: 1px solid rgba(255,255,255,.16); }
.cap-fact i { font-size: 1.3rem; opacity: .85; margin-bottom: 10px; display: block; }
.cap-fact strong {
  display: block; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.cap-fact span { font-size: .78rem; opacity: .8; }

/* ── Offerings ── */
.cap-offer {
  --accent: var(--cap);
  background: #fff; border-radius: 14px; padding: 28px 26px; height: 100%;
  border-top: 4px solid var(--cap);
  box-shadow: 0 2px 10px rgba(46,102,184,.07);
}
.cap-offer-icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cap-bg); color: var(--cap); font-size: 1.35rem;
}
.cap-offer h5 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: #0D1F3C; margin-bottom: 8px; }
.cap-offer p  { font-size: .86rem; color: #4B5563; line-height: 1.7; margin: 0; }

/* ── Process steps ── */
.cap-steps { position: relative; }
.cap-step { text-align: center; padding: 0 10px; position: relative; height: 100%; }
.cap-step-num {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--cap); background: var(--cap-bg);
  border: 2px dashed color-mix(in srgb, var(--cap) 45%, transparent);
  position: relative; z-index: 1;
  transition: background .35s, color .35s, transform .45s cubic-bezier(.34,1.56,.64,1), border-color .35s;
}
.cap-step:hover .cap-step-num { background: var(--cap); color: #fff; border-color: var(--cap); transform: scale(1.1) rotate(-6deg); }
.cap-step h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #0D1F3C; margin-bottom: 6px; }
.cap-step p  { font-size: .84rem; color: #6B7280; line-height: 1.65; margin: 0; }
@media (min-width: 992px) {
  .cap-steps > div:not(:last-child) .cap-step::after {
    content: ''; position: absolute; top: 36px; left: calc(50% + 46px); right: calc(-50% + 46px);
    border-top: 2px dashed color-mix(in srgb, var(--cap) 35%, transparent);
  }
}

/* ── Why + gallery ── */
.cap-gallery { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.cap-gallery-item { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(13,31,60,.14); }
.cap-gallery-item:first-child { height: 380px; }
.cap-gallery-item:last-child  { height: 300px; align-self: end; }
.cap-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.cap-gallery-item:hover img { transform: scale(1.06); }

.cap-why { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.cap-why li { display: flex; align-items: flex-start; gap: 12px; color: #374151; font-size: .92rem; line-height: 1.55; }
.cap-why li i {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cap); color: #fff; font-size: .7rem;
}
.cap-apps-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: #0D1F3C; font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.cap-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-apps span {
  background: #fff; color: var(--cap); border: 1px solid color-mix(in srgb, var(--cap) 28%, transparent);
  border-radius: 50px; padding: 6px 14px; font-size: .8rem; font-weight: 500;
  transition: background .3s, color .3s;
}
.cap-apps span:hover { background: var(--cap); color: #fff; }

/* ── Related ── */
.cap-related {
  display: flex; flex-direction: column; height: 100%;
  background: var(--rel-bg); border-radius: 14px; padding: 22px 20px;
  border-top: 4px solid var(--accent); text-decoration: none; cursor: pointer;
}
.cap-related-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 1.15rem;
}
.cap-related h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #0D1F3C; margin-bottom: 6px; }
.cap-related p  { font-size: .8rem; color: #4B5563; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.cap-related-link { font-size: .8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.cap-related-link i { transition: transform .3s; }
.cap-related:hover .cap-related-link i { transform: translateX(5px); }

/* ── CTA ── */
.cap-cta-text { color: rgba(255,255,255,.82); max-width: 600px; margin: 16px auto 32px; line-height: 1.8; }
.cap-page .cap-cta-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.cap-page .cap-cta-outline:hover { background: #fff; color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .cap-hero-img img { height: 320px; }
  .cap-hero-badge { left: 12px; bottom: 16px; }
  .cap-hero-img::before { display: none; }
  .cap-facts .col-6:nth-child(2) .cap-fact { border-right: 0; }
  .cap-facts .col-6:nth-child(-n+2) .cap-fact { border-bottom: 1px solid rgba(255,255,255,.16); }
}
@media (max-width: 575px) {
  .cap-hero-img img { height: 240px; }
  .cap-gallery { grid-template-columns: 1fr; }
  .cap-gallery-item:first-child, .cap-gallery-item:last-child { height: 220px; }
  .cap-fact { padding: 22px 8px; }
}
