/* =========================================================
   Knowledge Center Base
   File: assets/css/layout/knowledge-center/knowledge-center-base.css
   Shared styles for all Knowledge Center archive and single templates.
   ========================================================= */


/* =========================================================
   01. GLOBAL TOKENS
   ========================================================= */

:root {
  /* Colors — Agrimpex / IL standard */
  --kc-green-main: #4a8a4a;
  --kc-green-accent: #26ad21;
  --kc-green-dark: #1a301a;

  --kc-bg-light: #f0f0f0;
  --kc-grey: #cccccc;
  --kc-black: #000000;
  --kc-white: #ffffff;

  --kc-dark-soft: rgba(26, 48, 26, 0.08);
  --kc-dark-border: rgba(26, 48, 26, 0.14);
  --kc-dark-border-strong: rgba(26, 48, 26, 0.22);
  --kc-dark-muted: rgba(26, 48, 26, 0.62);
  --kc-dark-strong: rgba(26, 48, 26, 0.86);

  --kc-dark-overlay-22: rgba(26, 48, 26, 0.22);
  --kc-dark-overlay-38: rgba(26, 48, 26, 0.38);
  --kc-dark-overlay-58: rgba(26, 48, 26, 0.58);

  --kc-accent-soft: rgba(38, 173, 33, 0.18);
  --kc-accent-light: rgba(74, 138, 74, 0.08);

  --kc-white-soft: rgba(255, 255, 255, 0.62);
  --kc-white-muted: rgba(255, 255, 255, 0.78);
  --kc-white-line: rgba(255, 255, 255, 0.16);

  /* Typography */
  --kc-font-heading: Inter, Arial, sans-serif;
  --kc-font-body: Lato, Arial, sans-serif;
  --kc-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --kc-container-max-width: 1180px;
  --kc-container-wide: 1440px;
  --kc-container-padding-x: 48px;

  /* Radius */
  --kc-radius-xs: 4px;
  --kc-radius-sm: 6px;
  --kc-radius-md: 10px;
  --kc-radius-lg: 14px;
  --kc-radius-xl: 18px;
  --kc-radius-pill: 999px;

  /* Shadows */
  --kc-shadow-soft: 0 10px 24px rgba(26, 48, 26, 0.06);
  --kc-shadow-medium: 0 16px 36px rgba(26, 48, 26, 0.11);
  --kc-shadow-strong: 0 24px 60px rgba(26, 48, 26, 0.16);

  /* Motion */
  --kc-transition: 0.25s ease;
}


/* =========================================================
   02. BASE WRAPPERS
   ========================================================= */

.kc-archive,
.kc-single,
.agr-kc-single-issue {
  position: relative;
  overflow: hidden;
  background: var(--kc-bg-light);
  color: var(--kc-black);
}

.kc-archive,
.kc-single {
  font-family: var(--kc-font-body);
}

.agr-kc-single-issue {
  width: 100%;
  font-family: var(--kc-font-body);
}


/* =========================================================
   03. RESET INSIDE KNOWLEDGE CENTER
   ========================================================= */

.kc-archive *,
.kc-archive *::before,
.kc-archive *::after,
.kc-single *,
.kc-single *::before,
.kc-single *::after,
.agr-kc-single-issue *,
.agr-kc-single-issue *::before,
.agr-kc-single-issue *::after {
  box-sizing: border-box;
}

.kc-archive img,
.kc-single img,
.agr-kc-single-issue img {
  max-width: 100%;
  height: auto;
}

.kc-archive img,
.kc-single img,
.agr-kc-single-issue img,
.agr-kc-single-issue svg {
  display: block;
}

.kc-archive a,
.kc-single a,
.agr-kc-single-issue a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.agr-kc-single-issue a {
  text-decoration: none;
}


/* =========================================================
   04. CONTAINER
   ========================================================= */

.kc-container {
  width: min(
    calc(100% - (var(--kc-container-padding-x) * 2)),
    var(--kc-container-max-width)
  );
  max-width: none;
  margin-inline: auto;
}


/* =========================================================
   05. ARCHIVE HERO
   ========================================================= */

.kc-hero {
  position: relative;
  isolation: isolate;
  padding: 118px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(38, 173, 33, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 88%, rgba(74, 138, 74, 0.07), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--kc-bg-light) 100%);
}

.kc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 48, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 48, 26, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.58;
}

.kc-hero::after {
  content: "";
  position: absolute;
  right: max(48px, calc((100vw - var(--kc-container-max-width)) / 2));
  bottom: -140px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(38, 173, 33, 0.16);
  border-radius: var(--kc-radius-pill);
  opacity: 0.68;
}

.kc-hero__content {
  max-width: 760px;
}

.kc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--kc-green-main);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kc-hero__eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: var(--kc-radius-pill);
  background: var(--kc-green-accent);
}

.kc-hero__title {
  max-width: 760px;
  margin: 0;
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: none;
}

.kc-hero__description {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}


/* =========================================================
   06. SINGLE HERO BASE
   ========================================================= */

.kc-single-hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(38, 173, 33, 0.13), transparent 28rem),
    radial-gradient(circle at 15% 90%, rgba(74, 138, 74, 0.07), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--kc-bg-light) 100%);
}

.kc-single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 48, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 48, 26, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.52;
}

.kc-single-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.kc-single-hero__content {
  max-width: 760px;
}

.kc-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 20px;
  color: var(--kc-green-main);
  font-family: var(--kc-font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-single-hero__meta > span:not(.kc-single-hero__badge) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kc-single-hero__meta > span:not(.kc-single-hero__badge) + span:not(.kc-single-hero__badge)::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: var(--kc-radius-pill);
  background: currentColor;
  opacity: 0.45;
}

.kc-single-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 11px;
  border-radius: var(--kc-radius-xs);
  background: var(--kc-green-dark);
  color: var(--kc-white);
  box-shadow: 0 8px 16px rgba(26, 48, 26, 0.16);
}

.kc-single-hero__badge--current {
  background: var(--kc-green-accent);
}

.kc-single-hero__badge--upcoming {
  background: var(--kc-green-main);
}

.kc-single-hero__title {
  max-width: 780px;
  margin: 0;
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: none;
}

.kc-single-hero__description {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

.kc-single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.kc-single-hero__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--kc-dark-border);
  border-radius: var(--kc-radius-md);
  background: #ffffff;
  box-shadow: var(--kc-shadow-medium);
}

.kc-single-hero__image {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.kc-single-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 18%, rgba(38, 173, 33, 0.16), transparent 18rem),
    linear-gradient(135deg, #ffffff, #eef3ee);
}

.kc-single-hero__placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 78%);
  aspect-ratio: 1 / 1.26;
  padding: 26px;
  border: 1px solid rgba(26, 48, 26, 0.14);
  border-radius: var(--kc-radius-sm);
  background: #ffffff;
  color: var(--kc-green-dark);
  font-family: var(--kc-font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
  box-shadow: 0 14px 30px rgba(26, 48, 26, 0.08);
}


/* =========================================================
   07. BACK LINK
   ========================================================= */

.kc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--kc-green-dark);
  font-family: var(--kc-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.22s ease;
}

.kc-back-link::before {
  content: "←";
  color: var(--kc-green-accent);
  font-family: var(--kc-font-heading);
  font-weight: 800;
  line-height: 1;
}

.kc-back-link:hover {
  color: var(--kc-green-accent);
}


/* =========================================================
   08. SECTIONS
   ========================================================= */

.kc-section {
  position: relative;
  padding: 92px 0;
}

.kc-section__heading {
  max-width: 760px;
  margin: 0 0 42px;
}

.kc-section__heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.kc-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--kc-green-main);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-section__eyebrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--kc-radius-pill);
  background: var(--kc-green-accent);
}

.kc-section__title {
  max-width: 760px;
  margin: 0;
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: none;
}

.kc-section__lead {
  margin: 0;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}


/* =========================================================
   09. GRID
   ========================================================= */

.kc-grid {
  display: grid;
  gap: 26px;
}

.kc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kc-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   10. BUTTONS
   ========================================================= */

.kc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--kc-radius-xs);
  font-family: var(--kc-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.kc-button:hover {
  transform: translateY(-1px);
}

.kc-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.kc-button--primary {
  color: var(--kc-white);
  background: var(--kc-green-accent);
  border-color: var(--kc-green-accent);
  box-shadow: 0 12px 26px rgba(38, 173, 33, 0.16);
}

.kc-button--primary:hover {
  color: var(--kc-white);
  background: var(--kc-green-main);
  border-color: var(--kc-green-main);
  box-shadow: 0 14px 30px rgba(38, 173, 33, 0.22);
}

.kc-button--ghost {
  color: var(--kc-green-dark);
  background: transparent;
  border-color: var(--kc-dark-border-strong);
}

.kc-button--ghost:hover {
  color: var(--kc-white);
  background: var(--kc-green-dark);
  border-color: var(--kc-green-dark);
}

.kc-button--text {
  min-height: auto;
  padding: 0;
  color: var(--kc-green-main);
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.kc-button--text:hover {
  color: var(--kc-green-accent);
  transform: none;
}


/* =========================================================
   11. PAGINATION
   ========================================================= */

.kc-pagination {
  margin-top: 48px;
}

.kc-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.kc-pagination li {
  list-style: none;
}

.kc-pagination a,
.kc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--kc-dark-border);
  border-radius: var(--kc-radius-xs);
  background: var(--kc-white);
  color: var(--kc-green-dark);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.kc-pagination a:hover {
  color: var(--kc-white);
  background: var(--kc-green-dark);
  border-color: var(--kc-green-dark);
  transform: translateY(-1px);
}

.kc-pagination .current {
  color: var(--kc-white);
  background: var(--kc-green-accent);
  border-color: var(--kc-green-accent);
}


/* =========================================================
   12. EMPTY STATE
   ========================================================= */

.kc-empty-state {
  max-width: 680px;
  padding: 42px;
  border: 1px solid var(--kc-dark-border);
  border-radius: var(--kc-radius-md);
  background: var(--kc-white);
  box-shadow: var(--kc-shadow-soft);
}

.kc-empty-state__eyebrow {
  margin: 0 0 12px;
  color: var(--kc-green-main);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-empty-state__title {
  margin: 0;
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.kc-empty-state__description {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}


/* =========================================================
   13. ARCHIVE / SINGLE CTA
   ========================================================= */

.kc-section--cta {
  padding: 96px 0 118px;
  background: var(--kc-bg-light);
}

.kc-archive-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(44px, 7vw, 78px);
  border-radius: var(--kc-radius-lg);
  background:
    radial-gradient(circle at 78% 22%, rgba(38, 173, 33, 0.24), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    var(--kc-green-dark);
  color: var(--kc-white);
  text-align: center;
}

.kc-archive-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
}

.kc-archive-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--kc-green-accent);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-archive-cta__title {
  max-width: 720px;
  margin: 0 auto;
  color: var(--kc-white);
  font-family: var(--kc-font-heading);
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.kc-archive-cta__description {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--kc-white-soft);
  font-family: var(--kc-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.kc-archive-cta .kc-button {
  margin-top: 34px;
}


/* =========================================================
   14. SINGLE CONTENT BASE
   ========================================================= */

.kc-single-content-section {
  padding: 88px 0 96px;
  background: var(--kc-bg-light);
}

.kc-single-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(42px, 6vw, 76px);
  align-items: start;
}

.kc-single-content {
  min-width: 0;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--kc-dark-border);
  border-radius: var(--kc-radius-md);
  background: var(--kc-white);
  box-shadow: var(--kc-shadow-soft);
  color: var(--kc-dark-strong);
  font-family: var(--kc-font-body);
  font-size: 17px;
  line-height: 1.75;
}

.kc-single-content > *:first-child {
  margin-top: 0;
}

.kc-single-content > *:last-child {
  margin-bottom: 0;
}

.kc-single-content h2,
.kc-single-content h3,
.kc-single-content h4 {
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.kc-single-content h2 {
  margin: 1.65em 0 0.65em;
  font-size: clamp(30px, 4vw, 44px);
}

.kc-single-content h3 {
  margin: 1.5em 0 0.6em;
  font-size: clamp(24px, 3vw, 32px);
}

.kc-single-content h4 {
  margin: 1.35em 0 0.55em;
  font-size: 21px;
}

.kc-single-content p {
  margin: 0 0 1.15em;
}

.kc-single-content ul,
.kc-single-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.kc-single-content li {
  margin: 0 0 0.45em;
}

.kc-single-content a {
  color: var(--kc-green-main);
  font-weight: 700;
}

.kc-single-content a:hover {
  color: var(--kc-green-accent);
}

.kc-single-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--kc-green-accent);
  background: rgba(74, 138, 74, 0.08);
  color: var(--kc-green-dark);
  font-family: var(--kc-font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.kc-single-content figure {
  margin: 2em 0;
}

.kc-single-content img {
  display: block;
  border-radius: var(--kc-radius-sm);
}

.kc-single-content figcaption {
  margin-top: 10px;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-body);
  font-size: 14px;
  line-height: 1.45;
}

.kc-page-links {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--kc-dark-border);
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}


/* =========================================================
   15. SINGLE SIDEBAR BASE
   ========================================================= */

.kc-single-sidebar {
  position: sticky;
  top: calc(var(--header-height, 86px) + 24px);
}

.kc-single-sidebar__box {
  padding: 26px;
  border: 1px solid var(--kc-dark-border);
  border-radius: var(--kc-radius-md);
  background: var(--kc-white);
  box-shadow: var(--kc-shadow-soft);
}

.kc-single-sidebar__title {
  margin: 0 0 22px;
  color: var(--kc-black);
  font-family: var(--kc-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.kc-single-details {
  display: grid;
  gap: 16px;
  margin: 0;
}

.kc-single-details div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kc-dark-soft);
}

.kc-single-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.kc-single-details dt {
  margin: 0 0 6px;
  color: var(--kc-dark-muted);
  font-family: var(--kc-font-heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-single-details dd {
  margin: 0;
  color: var(--kc-green-dark);
  font-family: var(--kc-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.kc-single-sidebar__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.kc-single-sidebar__actions .kc-button {
  width: 100%;
}


/* =========================================================
   16. RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .kc-container {
    width: min(calc(100% - 72px), var(--kc-container-max-width));
  }

  .kc-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kc-single-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 48px;
  }

  .kc-single-content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
  }
}

@media (max-width: 960px) {
  .kc-hero {
    padding: 96px 0 76px;
  }

  .kc-section {
    padding: 76px 0;
  }

  .kc-section__heading--split {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .kc-single-hero {
    padding: 92px 0 76px;
  }

  .kc-single-hero__layout,
  .kc-single-content-layout {
    grid-template-columns: 1fr;
  }

  .kc-single-hero__media {
    max-width: 560px;
  }

  .kc-single-sidebar {
    position: static;
  }

  .kc-single-sidebar__box {
    max-width: none;
  }
}

@media (max-width: 767px) {
  :root {
    --kc-container-padding-x: 24px;
  }

  .kc-container {
    width: calc(100% - (var(--kc-container-padding-x) * 2));
  }

  .kc-hero {
    padding: 82px 0 64px;
  }

  .kc-hero__title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .kc-hero__description {
    margin-top: 22px;
    font-size: 16px;
  }

  .kc-single-hero {
    padding: 78px 0 64px;
  }

  .kc-single-hero__title {
    font-size: clamp(38px, 12vw, 56px);
  }

  .kc-single-hero__description {
    margin-top: 22px;
    font-size: 16px;
  }

  .kc-single-hero__actions {
    align-items: stretch;
  }

  .kc-single-hero__actions .kc-button {
    width: 100%;
  }

  .kc-single-hero__media,
  .kc-single-hero__image,
  .kc-single-hero__placeholder {
    min-height: 280px;
  }

  .kc-section {
    padding: 64px 0;
  }

  .kc-section--cta {
    padding: 68px 0 82px;
  }

  .kc-section__heading {
    margin-bottom: 32px;
  }

  .kc-section__title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .kc-grid,
  .kc-grid--2,
  .kc-grid--3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kc-button {
    width: 100%;
    min-height: 46px;
    text-align: center;
    white-space: normal;
  }

  .kc-button--text {
    width: auto;
    align-self: center;
  }

  .kc-empty-state {
    padding: 32px 24px;
  }

  .kc-archive-cta {
    padding: 42px 24px;
    border-radius: var(--kc-radius-md);
  }

  .kc-pagination {
    margin-top: 36px;
  }

  .kc-single-content-section {
    padding: 64px 0 74px;
  }

  .kc-single-content {
    padding: 30px 24px;
    font-size: 16px;
  }

  .kc-single-content blockquote {
    padding: 22px 20px;
    font-size: 18px;
  }

  .kc-single-sidebar__box {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .kc-hero {
    padding: 72px 0 56px;
  }

  .kc-hero__title {
    font-size: clamp(36px, 14vw, 48px);
  }

  .kc-single-hero {
    padding: 70px 0 56px;
  }

  .kc-single-hero__title {
    font-size: clamp(34px, 13vw, 46px);
  }

  .kc-single-hero__meta {
    gap: 8px;
  }

  .kc-single-hero__meta > span:not(.kc-single-hero__badge) + span:not(.kc-single-hero__badge)::before {
    display: none;
  }

  .kc-section {
    padding: 56px 0;
  }

  .kc-pagination a,
  .kc-pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
  }

  .kc-single-content {
    padding: 26px 20px;
  }

  .kc-single-content h2 {
    font-size: 30px;
  }

  .kc-single-content h3 {
    font-size: 24px;
  }
}


/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .kc-archive *,
  .kc-archive *::before,
  .kc-archive *::after,
  .kc-single *,
  .kc-single *::before,
  .kc-single *::after,
  .agr-kc-single-issue *,
  .agr-kc-single-issue *::before,
  .agr-kc-single-issue *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .kc-button:hover,
  .kc-pagination a:hover,
  .agr-kc-single-issue a:hover {
    transform: none;
  }
}