/* ===== Blog Tag (category listing) ===== */
.blog-tag {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 120px 0 80px;
  box-sizing: border-box;
}

.blog-tag .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header (KATEGORI eyebrow + name) ===== */
.blog-tag-header {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-tag-header__eyebrow {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-font-slate);
}

.blog-tag-header__name {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  color: var(--color-font-accent);
}

/* ===== List section + grid ===== */
.blog-tag-list-section {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-tag-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== Horizontal card ===== */
.blog-tag-card {
  border: 1px solid var(--color-bg-border-soft);
  border-radius: 12px;
  background-color: var(--color-bg-card);
  overflow: hidden;
}

.blog-tag-card__link {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 24px;
  color: inherit;
  height: 100%;
}

.blog-tag-card__thumb-link,
.blog-tag-card__content-link {
  color: inherit;
  text-decoration: none;
}

.blog-tag-card__thumb-link {
  display: block;
  height: 100%;
}

.blog-tag-card__content-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.blog-tag-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-gray);
}

.blog-tag-card__thumb img,
.blog-tag-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-tag-card__thumb-placeholder {
  background: linear-gradient(135deg, var(--color-bg-warm), var(--color-highlight-accent2));
}

.blog-tag-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px 20px 0;
  flex: 1;
  min-width: 0;
}

.blog-tag-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-tag-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-font-accent);
  color: var(--color-font-accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-tag-card__badge:hover {
  background-color: var(--color-bg-warm);
  border-color: var(--color-accent-warm);
}

.blog-tag-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-font-slate);
  white-space: nowrap;
}

.blog-tag-card__title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: var(--dl-color-grays-dark80);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-tag-card__excerpt {
  margin: 0;
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-font-mid);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Mobile (<= 767px) ===== */
@media (max-width: 767px) {
  .blog-tag {
    padding: 96px 0 48px;
    gap: 24px;
  }

  .blog-tag-header,
  .blog-tag-list-section {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .blog-tag-header__name {
    font-size: 26px;
    line-height: 34px;
  }

  .blog-tag-card__link {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-tag-card__thumb {
    aspect-ratio: 16 / 10;
  }

  .blog-tag-card__body {
    padding: 16px;
  }

  .blog-tag-card__title {
    font-size: 18px;
    line-height: 26px;
  }
}

/* ===== Tablet (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog-tag {
    padding: 110px 0 64px;
  }

  .blog-tag > .blog-category-filter,
  .blog-tag-header,
  .blog-tag-list-section {
    width: calc(100% - 120px);
    min-width: calc(100% - 120px);
    max-width: calc(100% - 120px);
    box-sizing: border-box;
  }

  .blog-tag > .blog-category-filter .blog-category-filter__list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-tag-card__link {
    grid-template-columns: minmax(0, 240px) 1fr;
    gap: 20px;
  }

  .blog-tag-card__body {
    padding: 18px 20px 18px 0;
  }

  .blog-tag-header__name {
    font-size: 30px;
    line-height: 38px;
  }
}
