#events-list .row.justify-content-center {
  justify-content: flex-start !important;
}

.pelita-tabs {
  margin: 2rem 0;
}

.tabs-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tombol tab */
.tab-button {
  background: #f8f8f8;           
  border: 1px solid #e0e0e0; 
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-size: 1rem;
  color: #333;
}

.tab-button:hover {
  background: #eaeaea;
}

.tab-button.is-active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;

}

.tab-panel {
  display: none;
}
.tab-panel:not(.is-hidden) {
  display: block;
}

/* ✅ Untuk layar ≤ 768px: 2 tab per baris */
@media screen and (max-width: 768px) {
  .tabs-list {
    justify-content: flex-start;
  }

  .tabs-list li {
    flex: 0 0 48%; /* hampir setengah, sisakan untuk gap */
    box-sizing: border-box;
  }

  .tab-button {
    width: 100%;
    font-size: 0.95rem;
    text-align: center;
  }
  #sidebar_second{
  	padding:0 !important;
  }
}

@media screen and (max-width: 375px) {
  .tabs-list li {
    flex: 0 0 47%; /* hampir setengah, sisakan untuk gap */
    box-sizing: border-box;
  }

}


.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

/* Card wrapper */
.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Judul link */
.card a {
  color: black;
  text-decoration: none;
}
.card h5 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #333333;
}

/* Excerpt teks: batasi 4 baris */
.card .excerpt {
  font-size: .95rem;
  line-height: 1.4;
  color: #555555;
  margin-top: auto; /* dorong excerpt ke bawah */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;   /* maksimal 4 baris sebelum ... */
  overflow: hidden;
}

.card .read-more {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

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

.list-event{
	display:flex;
	justify-content:end;
	margin-top:10px;
}

.read-all {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

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

/* responsive tweaks */
@media screen and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
@media screen and (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}