:root {
  --kb-primary: #6954e8;
  --kb-primary-dark: #3b347a;
  --kb-primary-soft: #f1efff;
  --kb-navy: #17213a;
  --kb-muted: #69758d;
  --kb-border: #e7e9f2;
  --kb-surface: #f7f8fc;
}

.kb-page { color: var(--kb-navy); font-family: "Manrope", sans-serif; }

.kl-nav-menu a.is-active { color: var(--kb-primary); }
.kb-main { min-height: 65vh; padding-top: 76px; background: #fff; }

.kb-list-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background: linear-gradient(115deg, #292a42 0%, #443a82 48%, #6a54e3 100%);
  color: #fff;
}

.kb-list-hero::after {
  content: "";
  position: absolute;
  top: -210px;
  right: -80px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.035), 0 0 0 180px rgba(255, 255, 255, 0.02);
}

.kb-list-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.kb-list-hero h1 {
  max-width: 800px;
  margin: 13px 0 16px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.kb-list-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  line-height: 1.75;
}

.kb-hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 50px;
  transform: rotate(4deg);
}

.kb-categories {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding: 28px 0 24px;
  scrollbar-width: thin;
}

.kb-categories a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--kb-border);
  border-radius: 999px;
  background: #fff;
  color: #566079;
  font-size: 12px;
  font-weight: 700;
}

.kb-categories a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f1f6;
  font-size: 10px;
}

.kb-categories a:hover,
.kb-categories a.is-active {
  border-color: var(--kb-primary);
  background: var(--kb-primary);
  color: #fff;
}

.kb-categories a.is-active span { background: rgba(255, 255, 255, 0.18); }

.kb-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  overflow: hidden;
  margin-bottom: 38px;
  border: 1px solid var(--kb-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(35, 43, 72, 0.1);
}

.kb-featured-media,
.kb-featured-placeholder {
  display: block;
  min-height: 440px;
  background: linear-gradient(135deg, #352f68, #745cf0);
}

.kb-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.kb-featured-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 70px;
}

.kb-featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 46px;
}

.kb-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
  color: var(--kb-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kb-featured-copy h2 {
  margin: 17px 0 15px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.kb-featured-copy h2 a { color: var(--kb-navy); }
.kb-featured-copy h2 a:hover { color: var(--kb-primary); }

.kb-featured-copy > p {
  margin: 0 0 26px;
  color: var(--kb-muted);
  font-size: 15px;
  line-height: 1.75;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 50px;
}

.kb-card {
  overflow: hidden;
  border: 1px solid var(--kb-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(35, 43, 72, 0.065);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(35, 43, 72, 0.12);
}

.kb-card-media {
  display: block;
  overflow: hidden;
  height: 215px;
  background: #eeecff;
}

.kb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.kb-card:hover .kb-card-media img { transform: scale(1.035); }

.kb-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #38326d, #735bed);
  color: rgba(255, 255, 255, 0.7);
  font-size: 48px;
}

.kb-card-body { padding: 23px; }

.kb-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8a94a9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kb-card-meta a,
.kb-card-meta > span { color: var(--kb-primary); }

.kb-card-meta time::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: #b4b9c5;
}

.kb-card h3 {
  margin: 13px 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.kb-card h3 a { color: var(--kb-navy); }
.kb-card h3 a:hover { color: var(--kb-primary); }

.kb-card-body > p {
  min-height: 67px;
  margin: 0;
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.65;
}

.kb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef0f5;
  font-size: 11px;
}

.kb-card-footer span { color: #8a94a9; }
.kb-card-footer a { color: var(--kb-primary); font-weight: 800; }

.kb-empty {
  margin: 16px 0 70px;
  padding: 80px 24px;
  border: 1px dashed #d8dbea;
  border-radius: 20px;
  background: var(--kb-surface);
  text-align: center;
}

.kb-empty > i { color: #9d91ef; font-size: 52px; }
.kb-empty h2 { margin: 15px 0 8px; font-size: 24px; font-weight: 800; }
.kb-empty p { max-width: 600px; margin: 0 auto; color: var(--kb-muted); line-height: 1.7; }

.kb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 0 60px;
  color: var(--kb-muted);
  font-size: 12px;
}

.kb-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--kb-border);
  border-radius: 9px;
  color: var(--kb-primary);
  font-weight: 700;
}

.kb-list-cta {
  margin-top: 22px;
  padding: 54px 0;
  background: linear-gradient(105deg, #302d57, #654fdb);
  color: #fff;
}

.kb-list-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.kb-list-cta h2 { margin: 7px 0 6px; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.kb-list-cta p { margin: 0; color: rgba(255, 255, 255, 0.73); }

.kb-article-hero {
  padding: 60px 0 86px;
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.kb-article-hero-inner { max-width: 980px; }

.kb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 42px;
  color: #8a94aa;
  font-size: 11px;
}

.kb-breadcrumb a { color: #68738b; }
.kb-breadcrumb a:hover { color: var(--kb-primary); }

.kb-article-category {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--kb-primary-soft);
  color: var(--kb-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-article-hero h1 {
  margin: 20px 0 20px;
  color: var(--kb-navy);
  font-size: clamp(39px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.kb-article-lead {
  max-width: 850px;
  margin: 0;
  color: #5e6980;
  font-size: 18px;
  line-height: 1.75;
}

.kb-article-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #778198;
  font-size: 11px;
  font-weight: 600;
}

.kb-article-meta span,
.kb-article-meta time { display: inline-flex; align-items: center; gap: 6px; }
.kb-article-meta i { color: var(--kb-primary); font-size: 16px; }

.kb-article-cover {
  overflow: hidden;
  max-width: 1180px;
  margin: -48px auto 58px;
  border: 8px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(33, 38, 67, 0.14);
}

.kb-article-cover img { display: block; width: 100%; max-height: 660px; object-fit: cover; border-radius: 15px; }

.kb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 70px;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 90px;
  align-items: start;
}

.kb-article-content { min-width: 0; color: #39445a; font-size: 16px; line-height: 1.85; }
.kb-article-content > *:first-child { margin-top: 0; }
.kb-article-content p { margin: 0 0 24px; }

.kb-article-content h2,
.kb-article-content h3,
.kb-article-content h4 {
  color: var(--kb-navy);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.kb-article-content h2 { margin: 52px 0 18px; font-size: 31px; }
.kb-article-content h3 { margin: 38px 0 15px; font-size: 23px; }
.kb-article-content h4 { margin: 30px 0 12px; font-size: 18px; }

.kb-article-content ul,
.kb-article-content ol { margin: 0 0 26px; padding-left: 24px; }
.kb-article-content li { margin-bottom: 9px; padding-left: 4px; }

.kb-article-content blockquote {
  margin: 34px 0;
  padding: 24px 27px;
  border-left: 4px solid var(--kb-primary);
  border-radius: 0 13px 13px 0;
  background: #f6f4ff;
  color: #46416e;
  font-size: 17px;
  font-weight: 600;
}

.kb-article-content img { max-width: 100%; height: auto; margin: 25px 0; border-radius: 14px; }
.kb-article-content a { color: var(--kb-primary); text-decoration: underline; text-underline-offset: 3px; }

.kb-article-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.kb-article-content th,
.kb-article-content td { padding: 12px 14px; border: 1px solid var(--kb-border); text-align: left; }
.kb-article-content th { background: #f5f4fb; color: var(--kb-navy); }

.kb-article-sidebar { position: sticky; top: 104px; display: grid; gap: 18px; }

.kb-side-card {
  padding: 23px;
  border: 1px solid var(--kb-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(35, 43, 72, 0.065);
}

.kb-side-card--cta { background: linear-gradient(155deg, #f7f5ff, #fff); }

.kb-side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--kb-primary);
  color: #fff;
  font-size: 23px;
}

.kb-side-card h2 { margin: 7px 0 10px; color: var(--kb-navy); font-size: 19px; font-weight: 800; line-height: 1.35; }
.kb-side-card p { margin: 0 0 18px; color: var(--kb-muted); font-size: 12px; line-height: 1.65; }

.kb-share { display: flex; gap: 9px; }

.kb-share a,
.kb-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--kb-border);
  border-radius: 10px;
  background: #fff;
  color: var(--kb-primary);
  font-size: 18px;
  cursor: pointer;
}

.kb-share a:hover,
.kb-share button:hover { border-color: var(--kb-primary); background: var(--kb-primary); color: #fff; }
.kb-copy-status { min-height: 16px; margin: 8px 0 0 !important; color: #359a76 !important; font-size: 10px !important; }

.kb-related { padding: 70px 0 30px; background: var(--kb-surface); }

.kb-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.kb-section-heading h2 { margin: 7px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; }
.kb-section-heading > a { color: var(--kb-primary); font-size: 12px; font-weight: 800; }

.kb-landing-latest { padding-top: 92px; padding-bottom: 76px; }
.kb-landing-latest .kb-grid { padding-bottom: 0; }
.kb-landing-actions { margin-top: 5px; text-align: center; }

@media (max-width: 1099.98px) {
  .kb-featured { grid-template-columns: 1fr; }
  .kb-featured-media, .kb-featured-media img, .kb-featured-placeholder { min-height: 390px; max-height: 480px; }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-article-layout { grid-template-columns: 1fr; gap: 35px; }
  .kb-article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .kb-main { padding-top: 66px; }
  .kb-list-hero { padding: 62px 0 58px; }
  .kb-list-hero-inner { align-items: flex-start; }
  .kb-hero-mark { display: none; }
  .kb-list-hero p { font-size: 15px; }
  .kb-featured-copy { padding: 29px 24px 32px; }
  .kb-featured-media, .kb-featured-media img, .kb-featured-placeholder { min-height: 260px; }
  .kb-grid { grid-template-columns: 1fr; gap: 18px; }
  .kb-card-body > p { min-height: 0; }
  .kb-list-cta-inner { align-items: flex-start; flex-direction: column; }
  .kb-list-cta .kl-btn { width: 100%; }
  .kb-article-hero { padding: 44px 0 72px; }
  .kb-breadcrumb { margin-bottom: 30px; }
  .kb-article-lead { font-size: 16px; }
  .kb-article-meta { gap: 13px; }
  .kb-article-cover { margin-top: -38px; margin-bottom: 40px; border-width: 5px; border-radius: 16px; }
  .kb-article-layout { padding-bottom: 65px; }
  .kb-article-content { font-size: 15px; }
  .kb-article-content h2 { font-size: 26px; }
  .kb-article-sidebar { grid-template-columns: 1fr; }
  .kb-section-heading { align-items: flex-start; flex-direction: column; }
  .kb-related { padding-top: 55px; }
}

@media (max-width: 479.98px) {
  .kb-list-hero h1 { font-size: 36px; }
  .kb-featured { border-radius: 16px; }
  .kb-featured-copy h2 { font-size: 27px; }
  .kb-card-media { height: 195px; }
  .kb-card-footer { align-items: flex-start; flex-direction: column; }
  .kb-pagination { gap: 10px; justify-content: space-between; }
  .kb-pagination span { display: none; }
  .kb-article-hero h1 { font-size: 36px; }
}
