/* === General Reset === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #e0f7ff, #ffffff);
  color: #003057;
  margin: 0;
  padding: 0;
}

/* === Header === */
#header {
  background-color: #003057;
  color: white;
  padding: 25px 10px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* === Form Section === */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 30px auto;
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

form input,
form select,
form button,
#filters input,
#filters select,
#filters button {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button,
#filters button {
  background-color: #FDB913;
  color: #003057;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

form button:hover,
#filters button:hover {
  background-color: #e5a900;
}

/* === Filters Section === */
#filters {
  background-color: #fffbe6;
  padding: 20px;
  text-align: center;
  border-top: 2px solid #FDB913;
  border-bottom: 2px solid #FDB913;
}

#filters input {
  width: 250px;
  margin-bottom: 10px;
}

/* === Carousel Section === */
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.carousel-track::-webkit-scrollbar {
  height: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

/* === Student Card === */
.student-card {
  background-color: white;
  border: 2px solid #003057;
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}

.student-card h3 {
  margin-top: 0;
  color: #003057;
}

.student-card a,
.student-card button {
  display: inline-block;
  margin-top: 10px;
  background-color: #003057;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.student-card button:hover,
.student-card a:hover {
  background-color: #001d38;
}

/* === Tags === */
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  background-color: #87ceeb;
  color: white;
}

.tag.athlete {
  background-color: #ffb347;
  color: #003057;
}

.tag.international {
  background-color: #6a5acd;
  color: white;
}

/* === Profile Picture === */
.profile-pic {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px auto;
  object-fit: cover;
}

/* === Browse Title Center === */
.browse-title {
  text-align: center;
  margin-top: 30px;
  font-size: 1.5rem;
  color: #003057;
}

/* === No Results Message === */
#no-results {
  text-align: center;
  font-size: 16px;
  margin-top: 30px;
  color: #666;
}

.hidden {
  display: none;
}

/* === Responsive === */
@media screen and (max-width: 600px) {
  form,
  #filters {
    flex-direction: column;
    align-items: center;
  }

  #filters input {
    width: 90%;
  }

  .student-card {
    min-width: 80%;
  }

  .profile-pic {
    max-width: 120px;
  }
}
