.guavas-knowledge-grid-root,
.guavas-knowledge-grid-root * {
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

.gkg-grid-section {
  padding: 28px 0 60px;
}

.gkg-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
}

/* Tabs */
.gkg-tabs-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.gkg-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #342E37;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.gkg-cat-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  flex-shrink: 0;
}

.gkg-cat-tab:hover {
  border-color: #bfcab2;
}

.gkg-cat-tab.active {
  background: #342E37;
  color: #ffffff;
  border-color: #342E37;
}

.gkg-tab-label {
  display: inline-block;
}

.gkg-count {
  background: #f1f1f1;
  color: #342E37;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

.gkg-cat-tab.active .gkg-count {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

/* Grid */
.gkg-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.gkg-resource-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 34px;
  border-radius: 18px;
  border: 1px solid #eeeeee;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.gkg-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: #dfe8d3;
}

/* Top row */
.gkg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 12px;
}

.gkg-type-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 13px;
  border-radius: 999px;
  line-height: 1;
}

.gkg-type-guide {
  background: #eef7df;
  color: #7ab52e;
}

.gkg-type-tool {
  background: #fff0ed;
  color: #ff9786;
}

.gkg-type-case-study {
  background: #ece7f4;
  color: #7a6aa0;
}

.gkg-type-checklist {
  background: #e6f0fb;
  color: #5a89bf;
}

.gkg-read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #9A929F;
  font-weight: 500;
  white-space: nowrap;
}

.gkg-read-time svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Icon box */
.gkg-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eef7df;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.gkg-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #8FC93A;
  stroke-width: 1.8;
  fill: none;
}

/* Content */
.gkg-resource-card h3 {
  font-size: 18px!important;
  font-weight: 700!important;
  color: #342E37;
  line-height: 1.35!important;
  margin: 0 0 14px;
  text-align: left;
}

.gkg-resource-card p {
  font-size: 14px;
  color: #6f6775;
  line-height: 1.75;
  margin: 0;
  text-align: left!important;
}

/* Footer */
.gkg-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #f0f0f0;
}

.gkg-sector-tag {
  font-size: 11px;
  font-weight: 600;
  color: #9A929F;
  background: #f7f7f7;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
}

.gkg-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #8FC93A;
  line-height: 1;
}

.gkg-card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Load more */
.gkg-load-more-wrap {
  text-align: center;
  margin-top: 34px;
}

.gkg-load-more-btn {
  background: transparent;
  color: #342E37;
  border: 1px solid #d9d9d9;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gkg-load-more-btn:hover {
  border-color: #8FC93A;
  color: #8FC93A;
}

/* Empty state */
.gkg-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: #9A929F;
  padding: 40px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .gkg-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gkg-grid-section {
    padding: 22px 0 48px;
  }

  .gkg-resource-grid {
    grid-template-columns: 1fr;
  }

  .gkg-resource-card {
    min-height: auto;
    padding: 26px;
  }

  .gkg-tabs-wrap {
    justify-content: flex-start;
  }
}