@charset "UTF-8";
/*
Theme Name: dflab(blockbase)
Theme URI: https://wordpress.com/theme/blockbase
Author: digital-farm
Author URI: https://www.digital-farm.com/
Version: 1.0.0
*/
/* SCSS for dflab */
/* For tag border */
.news-card {
  position: relative;
  border: 1px solid #e5e5e5;
  padding: 0;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ensure card fills grid cell */
  cursor: pointer;
  /* Make cursor pointer on hover */
}
.news-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.news-card {
  /* Reduce margin for wp-block-group within cards */
}
.news-card .wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

.news-card-image-container {
  position: relative;
  /* Need this for absolute positioned tags */
  margin-bottom: 0 !important;
  max-height: 200px;
  overflow: hidden;
  /* Post Featured Image Link - Stretched */
}
.news-card-image-container .wp-block-post-featured-image {
  margin-bottom: 0;
  aspect-ratio: 5/3;
  overflow: hidden;
}
.news-card-image-container .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.news-card-image-container .wp-block-post-featured-image a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}
.news-card-image-container .wp-block-post-featured-image img {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  display: block;
  /* Remove bottom space */
}

.news-card-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  /* Ensure the container itself can flex if needed, but the important part is the inner block */
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
  /* Keep tags above the card link */
  margin: 0;
  /* Target the WordPress block output for categories */
}
.news-card-tags .wp-block-post-terms {
  display: flex !important;
  /* Force flex */
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}
.news-card-tags .wp-block-post-terms__separator {
  display: none;
  /* Hide separator between categories */
}
.news-card-tags a {
  background-color: #000;
  color: #fff !important;
  padding: 2px 8px;
  /* Explicit white border */
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.75rem;
  display: block;
  line-height: normal;
}

.news-card-content {
  padding: 0.75rem;
  /* Add some horizontal padding */
  flex-grow: 1;
  /* Allow content to expand */
  display: flex;
  flex-direction: column;
}

.news-card-title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}
.news-card-title h2 {
  margin: 0;
  font-size: 1rem;
}
.news-card-title a {
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  /* Disable title link interaction since image link covers it */
}

.news-card-excerpt {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  flex-grow: 1;
  /* Push date to bottom */
}

.news-card-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  /* Push to bottom of card */
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: #333;
}
.news-card-meta .wp-block-post-date {
  font-size: 0.75rem;
  /* Small font size like tags */
}

.news-card-post-tags {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
.news-card-post-tags::before {
  content: "🏷️ ";
  /* Tag icon before tags */
  margin-right: 0.25rem;
}
.news-card-post-tags a {
  color: inherit;
  text-decoration: none;
}
.news-card-post-tags a:hover {
  text-decoration: underline;
}
.news-card-post-tags .wp-block-post-terms__separator {
  display: inline;
  /* Show separator for tags below date */
}

.wp-block-post-title {
  line-height: 1.5 !important;
}

.wp-block-post-featured-image {
  text-align: center;
}

.wp-block-post-featured-image :where(img) {
  width: auto !important;
}

.entry-content p {
  margin-top: 1em !important;
  line-height: 1.75 !important;
}

.wp-block-button:not(.is-style-outline) > a.has-background {
  border-style: none;
}

.wp-block-button__link {
  min-width: 200px;
  display: inline-block;
  text-align: center;
}
