/* ==========================================================
   Key Partners Page
   /public/assets/css/key_partners.css
   ========================================================== */

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.kp-hero {
  background: #0a0f2e;
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#kp-hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#kp-hero-particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.kp-hero .container {
  position: relative;
  z-index: 1;
}

.kp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.kp-hero-pill {
  display: inline-block;
  background: #f5a623;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.kp-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.kp-hero .lead {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------
   Global reach bar
   ---------------------------------------------------------- */
.kp-reach {
  background: #f4f6fb;
  border-bottom: 1px solid #e0e6f0;
  padding: 36px 0;
}

.kp-reach-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.kp-reach-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px;
}

.kp-reach-num {
  font-size: 32px;
  font-weight: 700;
  color: #0033a0;
  line-height: 1;
  margin-bottom: 6px;
}

.kp-reach-label {
  font-size: 13px;
  color: #666;
  max-width: 180px;
  line-height: 1.4;
}

.kp-reach-divider {
  width: 1px;
  height: 48px;
  background: #d0d8e8;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Partner grid
   ---------------------------------------------------------- */
.kp-partners {
  padding: 64px 0 72px;
  background: #fff;
}

.kp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ----------------------------------------------------------
   Partner card
   ---------------------------------------------------------- */
.kp-card {
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  padding: 28px 28px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kp-card:hover {
  box-shadow: 0 8px 28px rgba(0,51,160,0.09);
  transform: translateY(-2px);
}

/* Logo — full width banner at the top of the card */
.kp-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #eaecf2;
  background: #ffffff;
  padding: 10px 16px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.kp-logo-wrap:hover {
  border-color: #0033a0;
  box-shadow: 0 0 0 3px rgba(0,51,160,0.08);
}

.kp-logo {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.kp-logo-fallback {
  height: 40px;
  padding: 0 16px;
  background: #0033a0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Name + tags below the logo */
.kp-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kp-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

.kp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kp-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.5;
}

/* Tag colour variants */
.kp-tag--distribution-partner {
  background: #e6ecf9;
  color: #0033a0;
}
.kp-tag--technology-access {
  background: #e6f7ee;
  color: #005c2b;
}
.kp-tag--global-ecosystem {
  background: #fdf3cd;
  color: #7a5800;
}
.kp-tag--direct-agreement {
  background: #f2eaf9;
  color: #4a1d70;
}
.kp-tag--implementation-partner {
  background: #fff0e6;
  color: #7a3000;
}

.kp-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

.kp-benefit {
  background: #f4f6fb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: auto;
}

.kp-benefit-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0033a0;
  display: block;
  margin-bottom: 5px;
}

.kp-benefit-text {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ----------------------------------------------------------
   CTA strip
   ---------------------------------------------------------- */
.kp-cta {
  background: #0033a0;
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.kp-cta h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 14px;
}

.kp-cta .lead {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.kp-cta .btn-roundeded {
  background: #fff;
  color: #0033a0;
  border-color: #fff;
  font-weight: 700;
}

.kp-cta .btn-roundeded:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
  color: #0033a0;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .kp-hero h1       { font-size: 28px; }
  .kp-reach-inner   { flex-direction: column; gap: 24px; }
  .kp-reach-divider { width: 48px; height: 1px; }
  .kp-reach-stat    { padding: 0; }
  .kp-grid          { grid-template-columns: 1fr; }
  .kp-hero h1       { font-size: 26px; }
}
