.tips-page {
  padding-top: 18px;
}

/* Search card */
.tips-search {
  padding: 14px;
}

.searchbox {
  position: relative;
}

.searchbox input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-weight: 750;
  font-size: 14px;
  background: #fff;
}

.searchbox input:focus {
  outline: none;
  border-color: #2f7d32;
}

.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
}

/* Section title */
.section-title {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

/* Category pills */
.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cat-pill {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 12px 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #374151;
  white-space: nowrap;
}

.cat-pill.is-active {
  border-color: #2f7d32;
  background: #eef8f0;
  color: #2f7d32;
}

/* Cards grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.tip-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eef0f5;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.tip-media {
  position: relative;
  height: 210px;
  background: #f3f4f6;
}

.tip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid #d9eedd;
  background: rgba(238, 248, 240, 0.95);
  color: #2f7d32;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.tip-body {
  padding: 16px;
}

.tip-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
}

.tip-body p {
  margin: 0 0 14px;
  color: #6b7280;
  font-weight: 650;
  line-height: 1.35;
}

.read-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #2f7d32;
  color: #fff;
  padding: 14px 14px;
  font-weight: 900;
  cursor: pointer;
}

.read-btn:hover {
  background: #256628;
}

/* Responsive */
@media (max-width: 1100px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .categories {
    grid-template-columns: 1fr;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .tip-media {
    height: 190px;
  }
}
