body {
  font-family: Arial, sans-serif;
  margin: 10px;
  background: #f7f9fb;
}
h1, h3 {
  text-align: center;
}
form {
  width: 330px;
  margin: 20px auto;
  text-align: center;
}
input, textarea, button {
  width: 90%;
  padding: 8px;
  margin: 6px;
}
button {
  background: #0077cc;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #005fa3;
}
.centers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.card {
  width: 340px;             /* adjust as needed */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin: 10px;
  text-align: center;
  background: #fff;
  display: inline-block;
  vertical-align: top;
  box-shadow: 0 2px 6px rgba(0,0.2,0,0.2);
}
.card img {
  width: 100%;              /* fills the card width */
  height: 300px;            /* set consistent height */
  object-fit: contain;      /* ✅ fits entire image without cropping */
  border-radius: 15px;
  background-color: #f5f5f5; /* optional – adds background if image is smaller */
}


.join-btn {
  background: green;
  color: white;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 4px;
}
.join-btn:hover {
  background: darkgreen;
}
.error { color: red; }
.success { color: green; }
table {
  border-collapse: collapse;
  margin: 20px auto;
  background: #fff;
  width: 90%;
}
th {
  background: #0077cc;
  color: white;
}
td, th {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
}
a {
  color: #0077cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

td a {
  background: #0077cc;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  margin: 0 2px;
  text-decoration: none;
  font-size: 14px;
}
td a:hover {
  background: #005fa3;
}
td a:nth-child(2) {
  background: #cc0000;
}
td a:nth-child(2):hover {
  background: #990000;
}
.search-form {
  text-align: center;
  margin-bottom: 30px;
}
.search-form input {
  width: 300px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-form button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.search-form button:hover {
  background: #005fa3;
}
.reset-btn {
  background: #999;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
}
.reset-btn:hover {
  background: #666;
}
.search-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 8px;
}
.search-form select:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.3);
}
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #0077cc;
  border-radius: 4px;
  color: #0077cc;
  text-decoration: none;
}
.pagination a.active {
  background: #0077cc;
  color: white;
}
.pagination a:hover {
  background: #005fa3;
  color: white;
}
.data-table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  background: #fff;
}
.data-table th {
  background: #0077cc;
  color: white;
  padding: 10px;
}
.data-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.data-table tr:nth-child(even) {
  background: #f9f9f9;
}

.cancel-btn {
  background: #cc0000;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.cancel-btn:hover {
  background: #990000;
}
