/* ============================================
   Growsult — Kenniscentrum 2.0 Styles
   Magazine-style knowledge hub
   ============================================ */

/* =========================
   HERO — Featured article spotlight
   ========================= */
.kc-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.kc-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 8s ease;
}
.kc-hero:hover .kc-hero__bg {
  transform: scale(1.03);
}
.kc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 20, 40, 0.2) 0%,
    rgba(0, 40, 80, 0.65) 50%,
    rgba(0, 30, 60, 0.92) 100%
  );
  z-index: 1;
}
.kc-hero__inner {
  position: relative;
  z-index: 2;
  padding: 100px 20px 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.kc-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.kc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.kc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,113,188,0.6);
  backdrop-filter: blur(8px);
}
.kc-hero__badge--type {
  background: rgba(255,255,255,0.15);
}
.kc-hero__badge--read {
  background: rgba(255,255,255,0.1);
}
.kc-hero__title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  max-width: 750px;
}
.kc-hero__title a {
  color: inherit;
  text-decoration: none;
}
.kc-hero__title a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 4px;
}
.kc-hero__excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 24px;
}
.kc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-white-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
  background: transparent;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}


/* =========================
   STATS STRIP
   ========================= */
.kc-stats {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border-bottom: 1px solid #d6e6f2;
}
.kc-stats .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 16px 20px;
}
.kc-stats__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2b3c;
}
.kc-stats__icon {
  font-size: 18px;
}


/* =========================
   SECTION TITLES
   ========================= */
.kc-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 24px;
  line-height: 1.2;
}


/* =========================
   CATEGORY CARDS
   ========================= */
.kc-categories {
  padding: 56px 0 32px;
}
.kc-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.kc-cat-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #e8f0f7;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  cursor: pointer;
}
.kc-cat-card:hover {
  border-color: var(--cat-color, #0071bc);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,113,188,0.1);
}
.kc-cat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-color, #0071bc) 12%, transparent);
  color: var(--cat-color, #0071bc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.kc-cat-card__icon svg {
  width: 22px;
  height: 22px;
}
.kc-cat-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 6px;
}
.kc-cat-card__desc {
  font-size: 13px;
  color: #5e7d9a;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================
   EDITOR'S PICKS
   ========================= */
.kc-picks {
  padding: 0 0 48px;
}
.kc-picks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* =========================
   ARTICLE CARDS
   ========================= */
.kc-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4edf5;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,113,188,0.05);
}
.kc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,113,188,0.12);
}
.kc-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.kc-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.kc-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}
.kc-card:hover .kc-card__img {
  transform: scale(1.05);
}
.kc-card__type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}
.kc-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kc-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.kc-card__cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kc-card__read {
  font-size: 12px;
  color: #8a9bb0;
}
.kc-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.35;
  margin-bottom: 8px;
}
.kc-card__excerpt {
  font-size: 14px;
  color: #5e7d9a;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kc-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f4f8;
}
.kc-card__author {
  font-size: 13px;
  font-weight: 600;
  color: #3d5a73;
}
.kc-card__date {
  font-size: 12px;
  color: #8a9bb0;
}

/* Pick variant — larger */
.kc-card--pick .kc-card__img {
  height: 240px;
}
.kc-card--pick .kc-card__title {
  font-size: 19px;
}


/* =========================
   ARTICLES SECTION — controls
   ========================= */
.kc-articles {
  padding: 0 0 48px;
}
.kc-articles__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.kc-articles__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kc-search-wrap {
  position: relative;
}
.kc-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8a9bb0;
  pointer-events: none;
}
.kc-search {
  padding: 10px 14px 10px 38px;
  border: 2px solid #e4edf5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  width: 260px;
  transition: border-color 0.2s;
  outline: none;
}
.kc-search:focus {
  border-color: #0071bc;
}
.kc-sort {
  padding: 10px 14px;
  border: 2px solid #e4edf5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.kc-sort:focus {
  border-color: #0071bc;
}


/* =========================
   FILTER PILLS
   ========================= */
.kc-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.kc-filters__cats,
.kc-filters__types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid #e4edf5;
  background: #fff;
  color: #3d5a73;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.kc-pill:hover {
  border-color: #0071bc;
  color: #0071bc;
  background: #f0f8ff;
}
.kc-pill.active {
  background: #0071bc;
  color: #fff;
  border-color: #0071bc;
}
.kc-pill--type {
  font-size: 12px;
  padding: 6px 14px;
}

.kc-category-desc {
  font-size: 15px;
  color: #5e7d9a;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #f8fbfe;
  border-left: 4px solid #0071bc;
  border-radius: 0 8px 8px 0;
}

.kc-articles__count {
  font-size: 13px;
  color: #8a9bb0;
  font-weight: 600;
  margin-bottom: 16px;
}


/* =========================
   ARTICLE GRID
   ========================= */
.kc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}


/* =========================
   NO RESULTS
   ========================= */
.kc-no-results {
  text-align: center;
  padding: 48px 20px;
  color: #5e7d9a;
  font-size: 16px;
}


/* =========================
   TRAINING HIGHLIGHT CARDS
   ========================= */
.kc-training-card {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e4edf5;
  margin-top: 32px;
  transition: all 0.3s;
}
.kc-training-card:hover {
  box-shadow: 0 8px 24px rgba(0,113,188,0.1);
}
.kc-training-card__accent {
  width: 6px;
  flex-shrink: 0;
}
.kc-training-card__body {
  padding: 28px 32px;
  flex: 1;
}
.kc-training-card__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0071bc;
  margin-bottom: 8px;
}
.kc-training-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
}
.kc-training-card__desc {
  font-size: 14px;
  color: #5e7d9a;
  line-height: 1.55;
  margin-bottom: 14px;
}
.kc-training-card__facts {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #3d5a73;
  margin-bottom: 18px;
}
.kc-training-card__facts span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kc-training-card__cta {
  display: inline-block;
}


/* =========================
   FAQ
   ========================= */
.kc-faq {
  padding: 56px 0;
  background: #f8fbfe;
}
.kc-faq__list {
  max-width: 780px;
}
.kc-faq__item {
  border: 1px solid #e4edf5;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.kc-faq__item:hover {
  box-shadow: 0 4px 12px rgba(0,113,188,0.06);
}
.kc-faq__item.open {
  border-color: #0071bc;
}
.kc-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #1a2b3c;
  text-align: left;
}
.kc-faq__chevron {
  width: 20px;
  height: 20px;
  color: #8a9bb0;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.kc-faq__item.open .kc-faq__chevron {
  transform: rotate(180deg);
  color: #0071bc;
}
.kc-faq__answer {
  padding: 0 24px 20px;
}
.kc-faq__answer p {
  font-size: 15px;
  color: #5e7d9a;
  line-height: 1.65;
  margin: 0;
}
.kc-faq__answer a {
  color: #0071bc;
  font-weight: 600;
}


/* =========================
   BOTTOM CTA
   ========================= */
.kc-cta {
  padding: 56px 0 64px;
}
.kc-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.kc-cta__card {
  padding: 40px 36px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4edf5;
  box-shadow: 0 4px 16px rgba(0,113,188,0.06);
}
.kc-cta__card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 12px;
}
.kc-cta__card p {
  font-size: 15px;
  color: #5e7d9a;
  line-height: 1.6;
  margin-bottom: 24px;
}
.kc-cta__card--dark {
  background: linear-gradient(135deg, #0a1f33, #163a5c);
  border: none;
}
.kc-cta__card--dark h2 {
  color: #fff;
}
.kc-cta__card--dark p {
  color: rgba(255,255,255,0.8);
}
.kc-cta__proof {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
  .kc-picks__grid {
    grid-template-columns: 1fr 1fr;
  }
  .kc-picks__grid .kc-card:nth-child(3) {
    display: none;
  }
  .kc-cta__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kc-hero {
    min-height: 440px;
  }
  .kc-hero__inner {
    padding: 80px 16px 40px;
  }
  .kc-hero__title {
    font-size: 28px;
  }
  .kc-hero__excerpt {
    font-size: 15px;
  }

  .kc-stats .container {
    gap: 16px;
    justify-content: flex-start;
  }
  .kc-stats__item {
    font-size: 12px;
  }

  .kc-categories__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .kc-cat-card {
    padding: 16px 14px;
  }
  .kc-cat-card__desc {
    display: none;
  }

  .kc-picks__grid {
    grid-template-columns: 1fr;
  }
  .kc-picks__grid .kc-card:nth-child(3) {
    display: block;
  }

  .kc-section-title {
    font-size: 24px;
  }

  .kc-articles__header {
    flex-direction: column;
  }
  .kc-articles__controls {
    width: 100%;
  }
  .kc-search {
    width: 100%;
  }
  .kc-sort {
    width: 100%;
  }

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

  .kc-filters__cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .kc-filters__cats::-webkit-scrollbar {
    display: none;
  }
  .kc-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .kc-training-card {
    flex-direction: column;
  }
  .kc-training-card__accent {
    width: 100%;
    height: 4px;
  }
  .kc-training-card__body {
    padding: 20px;
  }

  .kc-cta__card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .kc-hero__title {
    font-size: 24px;
  }
  .kc-categories__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .kc-hero__bg,
  .kc-card,
  .kc-card__img,
  .kc-cat-card,
  .kc-faq__chevron {
    transition: none !important;
  }
  .kc-hero:hover .kc-hero__bg {
    transform: none;
  }
  .kc-card:hover .kc-card__img {
    transform: none;
  }
}
