:root {
  --blog-card-bg: #fff;
  --blog-card-radius: 0.75rem;
  --blog-card-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
  --blog-card-padding: 1rem;
  --blog-image-height: 11.25rem; /* 180px */
  --blog-image-radius: 0.5rem;
  --blog-title-size: 1.125rem;
  --blog-title-weight: bold;
  --blog-title-margin: 0.625rem 0;
  --blog-meta-size: 0.875rem;
  --blog-meta-color: #666;
  --blog-meta-margin: 0 0 0.625rem;
  --blog-meta-li-margin: 0 0 0.25rem 0;
  --read-more-color: #0066cc;
  --read-more-weight: bold;
  --collapsible-bg: #f8f9fa;
  --collapsible-active-bg: #e9ecef;
  --collapsible-padding: 0.625rem;
  --collapsible-font-weight: bold;
  --collapsible-transition: background-color 0.3s;
  --collapsible-arrow-transition: transform 0.3s ease;
  --collapsible-content-padding: 0.3125rem 0.9375rem;
  --checkbox-wrapper-margin: 0 0 0.3125rem 0;
  --show-more-color: #007bff;
  --show-more-padding: 0.3125rem;
  --show-more-font-size: 0.9em;
  --blog-container-gap: 1.25rem;
  --blog-container-padding: 1.25rem;
  --blog-container-max-width: 75rem;
}

#blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); /* 280px */
  gap: var(--blog-container-gap);
  padding: var(--blog-container-padding);
  max-width: var(--blog-container-max-width);
  margin: auto;
}

.blog-card {
  background-color: var(--blog-card-bg);
  border-radius: var(--blog-card-radius);
  overflow: hidden;
  box-shadow: var(--blog-card-shadow);
  transition: transform 0.2s ease;
  padding: var(--blog-card-padding);
}

.blog-card:hover {
  transform: translateY(-0.3125rem); /* -5px */
}

.blog-card .blog-image {
  width: 100%;
  height: var(--blog-image-height);
  object-fit: cover;
  border-radius: var(--blog-image-radius);
  margin-bottom: 0.75rem;
}

.blog-card .blog-title {
  font-size: var(--blog-title-size);
  font-weight: var(--blog-title-weight);
  margin: var(--blog-title-margin);
}

.blog-meta {
  list-style: none;
  padding: 0;
  margin: var(--blog-meta-margin);
  font-size: var(--blog-meta-size);
  color: var(--blog-meta-color);
}

.blog-meta li {
  margin-bottom: 0.25rem;
}

.read-more {
  color: var(--read-more-color);
  font-weight: var(--read-more-weight);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.collapsible {
  background-color: transparent;
  cursor: pointer;
  padding: var(--collapsible-padding);
  font-weight: var(--collapsible-font-weight);
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
  transition: var(--collapsible-transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible.active {
  background-color: var(--collapsible-active-bg);
}

.arrow {
  transition: var(--collapsible-arrow-transition);
}

.collapsible.active .arrow {
  transform: rotate(180deg);
}

.collapsible-content {
  padding: var(--collapsible-content-padding);
  display: block; /* OPEN by default */
}

.checkbox-wrapper {
  margin-bottom: 0.3125rem;
}

.show-more-btn {
  display: block;
  color: var(--show-more-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--show-more-padding);
  font-size: var(--show-more-font-size);
}
