/* Kennisbank & merk design — instalpunt.nl */
/* Past bij bestaande shop: #035CA3 blauw, #E8500A oranje, Plus Jakarta Sans */

:root {
  --ip-blue: #035CA3;
  --ip-blue-dark: #024481;
  --ip-orange: #E8500A;
  --ip-orange-soft: #FFF2EB;
  --ip-gold: #F0B505;
  --ip-dark: #111827;
  --ip-grey-50: #F9FAFB;
  --ip-grey-100: #F3F4F6;
  --ip-grey-200: #E5E7EB;
  --ip-grey-400: #9CA3AF;
  --ip-grey-600: #4B5563;
  --ip-grey-700: #374151;
}

/* Container voor kennisbank + merkpagina's */
.page-template-default.kb-article .entry-content,
.kb-article .entry-content,
body.page .kb-wrap {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

/* Artikel typografie */
.kb-wrap h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ip-dark);
  margin: 0 0 1.25rem;
}

.kb-wrap .ip-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ip-grey-700);
  font-weight: 500;
  margin: 0 0 2rem;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 4px solid var(--ip-orange);
  background: var(--ip-orange-soft);
  border-radius: 0 6px 6px 0;
}

.kb-wrap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ip-dark);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.kb-wrap h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--ip-blue);
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.kb-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ip-dark);
  margin: 1.75rem 0 0.65rem;
}

.kb-wrap p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ip-grey-700);
  margin: 0 0 1rem;
}

.kb-wrap a {
  color: var(--ip-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms;
}

.kb-wrap a:hover {
  color: var(--ip-orange);
}

.kb-wrap ul,
.kb-wrap ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.kb-wrap li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ip-grey-700);
  margin-bottom: 0.5rem;
}

.kb-wrap li strong {
  color: var(--ip-dark);
}

.kb-wrap ol {
  counter-reset: kb-counter;
  list-style: none;
  padding-left: 0;
}

.kb-wrap ol > li {
  counter-increment: kb-counter;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1rem;
}

.kb-wrap ol > li::before {
  content: counter(kb-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--ip-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* CTA box onderaan artikel */
.kb-wrap .ip-cta-box {
  margin: 2.5rem 0 1rem;
  padding: 1.75rem 1.75rem;
  background: linear-gradient(135deg, var(--ip-blue) 0%, var(--ip-blue-dark) 100%);
  border-radius: 10px;
  color: white;
  position: relative;
  overflow: hidden;
}

.kb-wrap .ip-cta-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--ip-orange) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.kb-wrap .ip-cta-box p {
  color: white;
  margin: 0;
  font-size: 1.05rem;
  position: relative;
}

.kb-wrap .ip-cta-box p strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.kb-wrap .ip-cta-box a {
  color: var(--ip-gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.kb-wrap .ip-cta-box a:hover {
  color: white;
}

/* Tabel */
.kb-wrap .ip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--ip-grey-200);
}

.kb-wrap .ip-table th {
  background: var(--ip-dark);
  color: white;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.kb-wrap .ip-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--ip-grey-200);
  font-size: 0.98rem;
  color: var(--ip-grey-700);
}

.kb-wrap .ip-table tbody tr:nth-child(even) {
  background: var(--ip-grey-50);
}

.kb-wrap .ip-table tbody tr:first-child td {
  border-top: 0;
}

/* Hub-pagina — grid van kennisbank-kaarten */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.kb-card {
  background: white;
  border: 1px solid var(--ip-grey-200);
  border-radius: 10px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  position: relative;
  overflow: hidden;
}

.kb-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ip-blue), var(--ip-orange));
  opacity: 0;
  transition: opacity 200ms;
}

.kb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(3, 92, 163, 0.12);
  border-color: var(--ip-blue);
}

.kb-card:hover::before {
  opacity: 1;
}

.kb-card-link {
  display: block;
  padding: 1.5rem;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.kb-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--ip-dark);
  font-weight: 700;
  line-height: 1.3;
}

.kb-card p {
  font-size: 0.95rem;
  color: var(--ip-grey-600);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.kb-card-cta {
  color: var(--ip-orange);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform 150ms;
}

.kb-card:hover .kb-card-cta {
  transform: translateX(3px);
}

/* Merk-specifiek */
.merk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.merk-card {
  background: white;
  border: 2px solid var(--ip-grey-200);
  border-radius: 12px;
  transition: all 200ms;
}

.merk-card:hover {
  border-color: var(--ip-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 80, 10, 0.10);
}

.merk-card-link {
  display: block;
  padding: 1.5rem;
  text-decoration: none !important;
  color: inherit;
}

.merk-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--ip-blue);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.merk-card p {
  font-size: 0.95rem;
  color: var(--ip-grey-600);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.merk-card-cta {
  color: var(--ip-orange);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Merk-pagina CTA-blok met grote knop */
.merk-cta {
  margin: 2.5rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--ip-orange-soft) 0%, white 100%);
  border: 1px solid var(--ip-orange);
  border-radius: 12px;
  text-align: center;
}

.merk-cta p {
  font-size: 1.05rem;
  color: var(--ip-dark);
  margin: 0 0 1rem;
}

.btn-merk {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: var(--ip-orange);
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 150ms, transform 150ms;
  box-shadow: 0 2px 6px rgba(232, 80, 10, 0.3);
}

.btn-merk:hover {
  background: var(--ip-blue) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 92, 163, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .kb-wrap .ip-lead {
    font-size: 1.05rem;
    padding: 1rem 1rem 1rem 1.25rem;
  }
  .kb-wrap h2 { font-size: 1.3rem; margin-top: 2rem; }
  .kb-wrap ol > li { padding-left: 2.5rem; }
  .kb-wrap ol > li::before { width: 1.85rem; height: 1.85rem; font-size: 0.85rem; }
  .kb-wrap .ip-cta-box { padding: 1.25rem; }
  .merk-cta { padding: 1.5rem 1rem; }
}
