/* ===== Homepage Journals Grid ===== */

/* Container grid */
.cmp_journal_list, .cmp_journal_list .journals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
}

/* Card item */
.cmp_journal_list .journal_summary {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover effect */
.cmp_journal_list .journal_summary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Cover image */
.cmp_journal_list .journal_summary .media_object img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 140px;
  margin-bottom: 10px;
}

/* Title */
.cmp_journal_list .journal_summary .title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #524a5a;
}

/* Description (snippet) */
.cmp_journal_list .journal_summary .description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons container */
.cmp_journal_list .journal_summary .read_more {
  margin-top: auto;
}

/* Buttons style */
.cmp_journal_list .journal_summary .read_more a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  background-color: #daac49;
  color: #524a5a;
  transition: all .2s ease-in-out;
  margin-right: 8px;
}

.cmp_journal_list .journal_summary .read_more a:hover {
  background-color: #d43d35;
  color: #ffffff;
}

/* Page headline */
.page-header h1 {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 3px solid #daac49;
  padding-bottom: 10px;
  color: #524a5a;
}

/* Responsive breakpoints */
@media (max-width: 780px) {
  .cmp_journal_list {
    grid-template-columns: 1fr;
  }
}