/* Homepage Knowledge entry module — template/dafeult/index.html */
.home-knowledge {
  padding: 70px 0;
  background: #f5f8fa;
}

.home-knowledge-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.home-knowledge-label {
  margin: 0 0 10px;
  color: #d71920;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-knowledge-intro h2 {
  margin: 0 0 14px;
  color: #18212b;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.35;
}

.home-knowledge-summary {
  max-width: 720px;
  margin: 0 0 20px;
  color: #64707d;
  font-size: 17px;
  line-height: 1.8;
}

.home-knowledge-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-knowledge-cats a {
  padding: 8px 15px;
  border: 1px solid #e5e9ed;
  border-radius: 999px;
  color: #18212b;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.home-knowledge-cats a:hover {
  border-color: #d71920;
  color: #d71920;
}

.home-knowledge-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-knowledge-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid #d71920;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-knowledge-btn:hover {
  transform: translateY(-2px);
}

.home-knowledge-btn-primary,
.home-knowledge-btn-primary:hover {
  color: #fff;
  background: #d71920;
}

.home-knowledge-btn-outline {
  color: #d71920;
  background: #fff;
}

.home-knowledge-btn-outline:hover {
  color: #fff;
  background: #d71920;
}

.home-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-knowledge-card {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  overflow: hidden;
  border: 1px solid #e5e9ed;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-knowledge-card:hover {
  box-shadow: 0 10px 28px rgba(24, 33, 43, 0.08);
  transform: translateY(-2px);
}

.home-knowledge-card-media {
  display: block;
  overflow: hidden;
  background: #e8edf2;
}

.home-knowledge-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-knowledge-card:hover .home-knowledge-card-media img {
  transform: scale(1.04);
}

.home-knowledge-card-body {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
}

.home-knowledge-card-meta {
  margin: 0 0 8px;
  color: #8a939c;
  font-size: 13px;
}

.home-knowledge-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.home-knowledge-card-body h3 a {
  color: #18212b;
}

.home-knowledge-card-body h3 a:hover {
  color: #d71920;
}

.home-knowledge-card-body > p:not(.home-knowledge-card-meta) {
  flex: 1;
  margin: 0 0 14px;
  color: #64707d;
  font-size: 15px;
  line-height: 1.7;
}

.home-knowledge-read-more {
  align-self: flex-start;
  color: #d71920;
  font-size: 14px;
  font-weight: 600;
}

.home-knowledge-read-more:hover {
  color: #aa1117;
}

.home-knowledge-all {
  display: inline-block;
  margin-top: 28px;
  color: #526173;
  font-size: 14px;
}

.home-knowledge-all:hover {
  color: #d71920;
}

@media (max-width: 991px) {
  .home-knowledge {
    padding: 52px 0;
  }

  .home-knowledge-grid {
    grid-template-columns: 1fr;
  }

  .home-knowledge-head {
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .home-knowledge {
    padding: 36px 0;
  }

  .home-knowledge-card {
    grid-template-columns: 1fr;
  }

  .home-knowledge-card-media img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .home-knowledge-card-body {
    padding: 18px 16px 20px;
  }

  .home-knowledge-actions-top {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-knowledge-btn {
    width: 100%;
  }

  .home-knowledge-summary {
    font-size: 16px;
    line-height: 1.75;
  }
}
