/* ============================================================
   Korek Telecom partner page — sectioned content layout
   Scoped under .korek-content so it won't touch global styles.
   Palette: Korek blue + Delta orange | Swiss / trust layout
   ============================================================ */
.inner-page-hero .background.korek {
  background-image: url('../../images/magnific_create-an-ultrarealistic-_hEBhVBVvqL.png') !important;
  background-position: center center;
  background-size: cover;
}

.korek-content {
  --k-blue: #0f6cb6;
  --k-blue-2: #1e9de0;
  --k-navy: #04223d;
  --k-red: #e2241b;
  --k-orange: #ec6707;
  --k-orange-soft: rgba(236, 103, 7, 0.1);
  --k-text: #4d5560;
  --k-line: #e2e8f0;
  --k-bg-soft: #f4f8fc;
  --k-surface: #ffffff;
  margin: 0 0 140px;
  padding: 28px 24px;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  color: var(--k-text);
}

.korek-frame {
  position: relative;
  width: 1360px;
  max-width: 100%;
  margin: 0 auto;
  border: 2px solid var(--k-orange);
  padding: 36px 28px 48px;
  background: var(--k-surface);
}

.korek-frame-logo {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--k-surface);
  transform: translateX(-50%);
}

.korek-frame-logo--top {
  top: 0;
  transform: translate(-50%, -50%);
}

.korek-frame-logo--bottom {
  bottom: 0;
  transform: translate(-50%, 50%);
}

.korek-frame-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.korek-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------- Intro ---------- */
.korek-intro {
  text-align: center;
  padding: 56px 0 8px;
  max-width: 760px;
  margin: 0 auto;
}

.korek-intro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.korek-intro img {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 auto;
}

.korek-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 108, 182, 0.08);
  color: var(--k-blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.korek-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--k-navy);
  text-transform: none;
  letter-spacing: -0.02em;
}

.korek-intro p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--k-text);
}

/* ---------- Stats band ---------- */
.korek-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 48px 0 0;
  border: 1px solid var(--k-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--k-bg-soft);
}

.korek-stat {
  text-align: center;
  padding: 22px 12px 20px;
  border-inline-end: 1px solid var(--k-line);
}

.korek-stat:last-child {
  border-inline-end: none;
}

.korek-stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1;
  color: var(--k-blue);
  letter-spacing: -0.02em;
}

.korek-stat span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--k-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ---------- Section heading ---------- */
.korek-sec-head {
  text-align: center;
  max-width: 640px;
  margin: 64px auto 36px;
}

.korek-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--k-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.korek-eyebrow::before,
.korek-eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--k-orange);
}

.korek-sec-head h3 {
  margin: 12px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--k-navy);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ---------- Scratch Cards spotlight ---------- */
.korek-scratch {
  margin-top: 56px;
}

.korek-scratch-lead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 36px;
  background: linear-gradient(135deg, #04223d 0%, #0a3a63 55%, #0f6cb6 100%);
  color: #fff;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.korek-scratch-lead::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(236, 103, 7, 0.35);
  pointer-events: none;
}

.korek-scratch-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  text-align: center;
}

.korek-scratch-mark b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-orange);
  line-height: 1.3;
}

.korek-scratch-mark span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.korek-scratch-lead-body {
  position: relative;
  z-index: 1;
}

.korek-scratch-lead-body .korek-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.korek-scratch-lead-body .korek-eyebrow::before,
.korek-scratch-lead-body .korek-eyebrow::after {
  background: var(--k-orange);
}

.korek-scratch-lead-body h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: none;
}

.korek-scratch-lead-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
}

/* Pillars — 2×2 editorial grid */
.korek-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--k-line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.korek-pillar {
  position: relative;
  padding: 32px 30px 34px;
  background: var(--k-surface);
  border-bottom: 1px solid var(--k-line);
  border-inline-end: 1px solid var(--k-line);
  transition: background 0.2s ease;
}

.korek-pillar:nth-child(2n) {
  border-inline-end: none;
}

.korek-pillar:nth-last-child(-n + 2) {
  border-bottom: none;
}

.korek-pillar:hover {
  background: var(--k-bg-soft);
}

.korek-pillar::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.korek-pillar:hover::before {
  background: var(--k-orange);
}

.korek-pillar-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.korek-pillar-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--k-blue);
  background: rgba(15, 108, 182, 0.1);
  border-radius: 4px;
}

.korek-pillar-ico svg {
  width: 22px;
  height: 22px;
}

.korek-pillar-top h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--k-navy);
  text-transform: none;
  letter-spacing: -0.01em;
}

.korek-pillar p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--k-text);
}

/* Accent first pillar (exclusive) */
.korek-pillar.is-exclusive .korek-pillar-ico {
  color: var(--k-orange);
  background: var(--k-orange-soft);
}

.korek-pillar.is-exclusive::before {
  background: var(--k-orange);
}

/* ---------- Capability / ops cards ---------- */
.korek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.korek-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 4px;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.korek-card:hover {
  transform: none;
  border-color: rgba(15, 108, 182, 0.45);
  box-shadow: none;
  background: var(--k-bg-soft);
}

.korek-ico {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--k-blue);
  background: rgba(15, 108, 182, 0.1);
}

.korek-ico svg {
  width: 24px;
  height: 24px;
}

.korek-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--k-navy);
  text-transform: none;
  letter-spacing: -0.01em;
}

.korek-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--k-text);
}

.korek-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.korek-chips span {
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--k-bg-soft);
  border: 1px solid var(--k-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--k-navy);
}

.korek-card.is-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(120deg, var(--k-navy), #0a3a63 55%, var(--k-blue));
  border-color: transparent;
}

.korek-card.is-feature:hover {
  background: linear-gradient(120deg, var(--k-navy), #0a3a63 55%, var(--k-blue));
  border-color: transparent;
}

.korek-card.is-feature .korek-ico {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.korek-card.is-feature h4 {
  color: #fff;
}

.korek-card.is-feature p {
  color: rgba(255, 255, 255, 0.82);
}

.korek-feature-badge {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  background: rgba(236, 103, 7, 0.18);
  border: 1px solid rgba(236, 103, 7, 0.4);
}

.korek-feature-badge b {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.korek-feature-badge span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Motion (subtle, reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .korek-pillar,
  .korek-card {
    transition: background 0.22s ease, border-color 0.22s ease;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .korek-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .korek-stat:nth-child(3n) {
    border-inline-end: none;
  }

  .korek-stat:nth-child(n + 4) {
    border-top: 1px solid var(--k-line);
  }

  .korek-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .korek-scratch-lead {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .korek-scratch-mark {
    flex-direction: row;
    gap: 12px;
    width: fit-content;
    min-width: 0;
  }

  .korek-scratch-mark span {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .korek-content {
    margin-bottom: 90px;
    padding: 22px 16px;
  }

  .korek-frame {
    padding: 24px 14px 36px;
  }

  .korek-frame-logo {
    padding: 0 12px;
  }

  .korek-frame-logo img {
    height: 34px;
  }

  .korek-intro {
    padding-top: 40px;
  }

  .korek-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .korek-stat {
    border-inline-end: 1px solid var(--k-line);
  }

  .korek-stat:nth-child(2n) {
    border-inline-end: none;
  }

  .korek-stat:nth-child(n + 3) {
    border-top: 1px solid var(--k-line);
  }

  .korek-pillars {
    grid-template-columns: 1fr;
  }

  .korek-pillar {
    border-inline-end: none;
    border-bottom: 1px solid var(--k-line);
  }

  .korek-pillar:last-child {
    border-bottom: none;
  }

  .korek-grid {
    grid-template-columns: 1fr;
  }

  .korek-card.is-feature {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 16px;
  }

  .korek-sec-head {
    margin-top: 48px;
  }
}
