/* Global styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
main {
  padding: 20px;
}
header, footer {
  background: #aaa;
  color: black;
  padding: 10px;
}
footer {
  text-align: center;
}
header {
  text-align: left;
}
header > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
header img {
  height: 50px;
}
header h1 {
  margin: 0;
  font-size: 1.5rem;
}
nav {
  background: #eee;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
nav a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  background: #ddd;
  border-radius: 5px;
}

/* Club grid layout */
.club-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1rem;
}
.club-box {
  flex: 1 1 calc(33.333% - 16px); /* 3 per baris dengan gap */
  box-sizing: border-box;
  border: 1px solid #aaa;
  padding: 10px;
  background: #f9f9f9;
  min-width: 200px;
}
@media (max-width: 800px) {
  .club-box {
    flex: 1 1 calc(50% - 16px); /* 2 per baris */
  }
}
@media (max-width: 500px) {
  .club-box {
    flex: 1 1 100%; /* 1 per baris */
  }
}

/* Timeline styles (public view) */
.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 3px solid #3498db; /* garis vertikal */
}

.timeline li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -12px; /* posisi titik */
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: #3498db;
  border-radius: 50%; /* bulatan */
  border: 3px solid white;
  box-sizing: content-box;
}

/* Timeline text styles */
.timeline li .event-title {
  font-weight: bold;
  font-size: 1.1rem; /* lebih besar sedikit */
  margin-bottom: 0.1rem; /* rapat ke tanggal */
  display: block;
}

.timeline li .event-date {
  font-style: italic;
  font-size: 1rem; /* ukuran standar */
  margin-bottom: 0.7rem; /* lebih renggang ke konten */
}

.timeline li .event-content {
  font-size: 1rem;
  font-style: normal;
  white-space: pre-line; /* supaya baris baru tetap tampil */
}

/* Timeline item editor (admin) */
.timeline-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 1rem;
  background: #f9f9f9;
}
.timeline-item label {
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-item input[type="text"],
.timeline-item input[type="date"],
.timeline-item textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.2rem;
}
