.elementor-1347 .elementor-element.elementor-element-202ab80{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-de82a9e *//* Grid */
.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.category-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card__image img {
  transform: scale(1.05);
}

.category-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card__content.no-image {
  padding: 20px;
}

.category-card__title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
}

.category-card__meta {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* When there are no posts, push meta to bottom */
.category-card__content.no-image:not(:has(.category-card__posts)) .category-card__meta {
  margin-top: auto;
}

.category-card__posts {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.category-card__post-item {
  margin-bottom: 8px;
}

.category-card__post-item:last-child {
  margin-bottom: 0;
}

.category-card__post-link {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.category-card__post-link::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #a16854;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.category-card__post-link:hover {
  color: #a16854;
  text-decoration: none;
}

.category-card__post-link:hover::before {
  transform: translateX(3px);
}

.categories-empty,
.categories-error {
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.categories-error {
  background: #fff5f5;
  border-color: #feb2b2;
  color: #c53030;
}

.categories-error p {
  margin: 0;
}

.categories-error .error-message {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #9b2c2c;
}/* End custom CSS */