main {
  margin-top: 40px;
  margin-left: 200px;
  max-width: calc(100% - 200px);
  padding: 40px 20px 80px;
}

.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.type-toggle {
  display: flex;
  gap: 12px;
}

.type-btn {
  padding: 10px 18px;
  border-radius: 20px;
  background-color: #eee;
  font-weight: bold;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}

.type-btn.active {
  background-color: #ff7a00;
  color: white;
  box-shadow: 0 2px 6px rgba(255, 154, 2, 0.3);
}

.type-btn:hover:not(.active) {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.subcategory-bar a {
  padding: 8px 16px;
  border-radius: 50px;
  background-color: white;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.subcategory-bar a:hover:not(.selected) {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subcategory-bar a.selected {
  background-color: #ff7a00;
  color: white;
  font-weight: bold;
  border-color: #ff7a00;
  box-shadow: 0 2px 6px rgba(255, 154, 2, 0.3);
}

.recommend-search-bar {
  display: flex;
  width: 100%;
  max-width: 600px;
  gap: 0;
}

.recommend-search-bar input[type="text"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.recommend-search-bar input[type="text"]:focus {
  border-color: #ff7a00;
}

.recommend-search-bar button {
  padding: 14px 20px;
  border: none;
  background-color: #ff7a00;
  color: white;
  font-weight: bold;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.recommend-search-bar button:hover {
  background-color: #ffa653
}

.club-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 2000px;
  margin: 0 auto;
}

.club-card {
  background-color: white;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
}
.club-card-link {
  width: calc(33.333% - 16px);
  min-width: 300px;
  max-width: 400px;
  text-decoration: none;
  color: inherit;
}

.club-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 42px; 
}

.club-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #ff7a00;
}

.club-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.club-card:hover .club-img {
  transform: scale(1.05);
}

.club-info {
  padding: 16px;
}

.club-info h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
}

.club-info p {
  margin: 6px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.club-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.club-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.club-badge {
  background-color: #fff3e6;
  color: #ff7a00;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 14px;
}

.club-type-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 14px;
  color: white;
}

.club-type-badge.local {
  background-color: #227aff;
}

.club-type-badge.wide {
  background-color: #ff7a00;
}

.club-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.club-tag {
  background-color: #f2f2f2;
  color: #444;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.no-clubs {
  width: 100%;
  padding: 40px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 12px;
  color: #666;
}

@media (max-width: 768px) {
  main {
    margin-left: 0;
    max-width: 100%;
    padding: 20px 15px 60px;
  }
  
  .club-card {
    width: 100%;
    min-width: unset;
  }
  
  .subcategory-bar {
    padding: 8px;
    gap: 8px;
  }
  
  .subcategory-bar a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

.club-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

.club-tag {
  background-color: #f2f2f2;
  color: #444;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.club-tag:hover {
  background-color: #ff7a00;
  color: white;
}
