/* Theme variables (tidak mengubah class names) */
:root {
  --theme-start: 89, 50, 60;   /* rgb(89,50,60) */
  --theme-end: 41, 16, 16;     /* rgb(41,16,16) */
  --theme-start-hex: #592E3C;
  --theme-end-hex: #291010;
  --muted-text: #444444;
  --muted-sub: #6b6b6b;
}

/* KEEP background-color as white (sesuai permintaan) */
article.node--teaser {
  position: relative; /* for accent pseudo-element */
  background-color: #ffffff; /* tetap putih */
  border: 1px solid rgba(41,16,16,0.06); /* subtle border with theme tone */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(41,16,16,0.06), 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

/* vertical accent stripe (left) using the gradient */
article.node--teaser::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(to bottom, rgb(var(--theme-start)), rgb(var(--theme-end)));
  box-shadow: 0 2px 8px rgba(41,16,16,0.14);
}

/* Hover elevation uses theme shadow */
article.node--teaser:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(41,16,16,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* Title Styling — make title use theme color */
article.node--teaser h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--muted-text);
}

/* Title link uses theme color + subtle underline accent on hover */
article.node--teaser h2 a {
  text-decoration: none;
  color: rgb(var(--theme-start));
  transition: color 0.18s ease, transform 0.12s ease;
  display: inline-block;
  padding-right: 4px;
}

article.node--teaser h2 a:hover {
  color: rgb(var(--theme-end));
  transform: translateY(-2px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Body text — keep readable but tuned to the card */
article.node--teaser .field--name-body {
  font-size: 1rem;
  color: var(--muted-sub);
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

/* Links at Bottom (Read More, Add Comment) — turn into theme-gradient buttons */
article.node--teaser .links.nav {
  padding-top: 10px;
  border-top: 1px solid rgba(41,16,16,0.04);
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Button-like links — gradient background to match theme */
article.node--teaser .links.nav .nav-item a {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(var(--theme-start),1), rgba(var(--theme-end),1));
  padding: 7px 14px;
  border-radius: 22px;
  border: none;
  display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  box-shadow: 0 6px 18px rgba(41,16,16,0.12);
}

/* subtle secondary link style (outline) when you want less prominence */
article.node--teaser .links.nav .nav-item a.secondary {
  background: transparent;
  color: rgb(var(--theme-start));
  border: 1px solid rgba(var(--theme-start),0.12);
  box-shadow: none;
}

/* Hover effects for action links */
article.node--teaser .links.nav .nav-item a:hover {
  transform: translateY(-2px);
  opacity: 0.98;
  box-shadow: 0 10px 26px rgba(41,16,16,0.14);
}

/* Focus accessibility */
article.node--teaser .links.nav .nav-item a:focus {
  outline: 3px solid rgba(89,50,60,0.12);
  outline-offset: 3px;
}

/* Teaser smaller text color */
article.node--teaser .teaser-meta,
article.node--teaser .byline {
  color: #7a7a7a;
  font-size: 0.9rem;
}

/* Small responsive tweaks */
@media (max-width: 600px) {
  article.node--teaser { padding: 16px; }
  article.node--teaser::before { top: 10px; bottom: 10px; width: 5px; }
  article.node--teaser h2 { font-size: 1.25rem; }
}


/* TAGGING */
/* === Taxonomy Tag Field === */
.field--name-taxonomy-vocabulary-2 .field__item {
  display: inline-block;
}

/* Style tombol tag */
.field--name-taxonomy-vocabulary-2 .field__item a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;

  /* Border mengikuti warna tema */
  border: 1px solid rgb(89, 50, 60);

  /* Text */
  color: rgb(89, 50, 60);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;

  /* Background tetap putih sesuai permintaan */
  background-color: #ffffff;

  transition: all 0.25s ease;
}

/* Hover efek gradasi */
.field--name-taxonomy-vocabulary-2 .field__item a:hover {
  background: linear-gradient(to right, rgb(89, 50, 60), rgb(41, 16, 16));
  color: #ffffff;
  border-color: rgb(41, 16, 16);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Jika ingin saat aktif/selected (optional) */
.field--name-taxonomy-vocabulary-2 .field__item.active a {
  background: linear-gradient(to right, rgb(89, 50, 60), rgb(41, 16, 16));
  color: #ffffff;
  border-color: rgb(41, 16, 16);
}
