/* Card Container */
.views-row {
  margin-bottom: 30px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Title */
.node__title {
  /*font-size: 1.5rem;*/
  margin-bottom: 10px;
}

.node__title a {
  text-decoration: none;
  color: #003366;
  transition: color 0.2s;
}

.node__title a:hover {
  color: #005599;
}

/* Meta info */
.node__meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

/* Content */
.node__content {
  /*font-size: 1rem;*/
  color: #333;
  line-height: 1.6;
}

.node__content .field__item {
  margin-bottom: 15px;
}

/* Generic taxonomy term buttons */
[class*="field--name-taxonomy-vocabulary-"] ul.links.field__items {
  list-style: none;
  padding-left: 0;
  margin: 0 0 15px;
  display: flex;
  gap: 10px;
}

[class*="field--name-taxonomy-vocabulary-"] ul.links.field__items li a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #5a8420; /* Hijau gelap */
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

[class*="field--name-taxonomy-vocabulary-"] ul.links.field__items li a:hover {
  background-color: #88b844; /* Hijau cerah */
}

.node__links {
  margin-top: -30px;
}

/* Read more button */
.node__links a {
  display: inline-block;
  padding: 8px 14px;
  background-color: #0b3861 !important; /* Merah gelap */
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.node__links a:hover {
  background-color: #2e9afe !important; /* Merah cerah */
}

/*fixing bagian modul view page*/
.modul-item {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.modul-content-wrapper {
  display: flex;
  gap: 16px;
}

.modul-image img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Text block harus flexible */
.modul-text {
  flex: 1;
}

/* Optional: atur tombol */
.modul-text .btn {
  margin-top: 12px;
}

/* --- MOBILE MODE --- */
@media (max-width: 768px) {
  .modul-content-wrapper {
    flex-direction: column;       /* Stack: gambar di atas, teks di bawah */
  }
  
    /* Gambar jadi full-width di mobile */
  .modul-image img {
    width: 100%;                  /* Tidak fixed 180px lagi */
    height: auto;
    margin-bottom: 12px;
  }
  
  /* Teks otomatis mengikuti gambar */
  .modul-text {
    width: 100%;
  }
}
