/* Join a Team (Memberships) Styles */
#valhallan-membership-container {
  font-family: Arial, sans-serif;
  padding-bottom: 50px;
}

#valhallan-membership-container .membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

#valhallan-membership-container .membership-grid.no-memberships {
  display: flex;
  justify-content: center;
  align-items: center;
}

#membership-loader {
  color: white;
  text-align: center;
  font-size: 1.2em;
  padding: 20px;
}

#valhallan-membership-container .membership-card {
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#valhallan-membership-container .membership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

#valhallan-membership-container .membership-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

#valhallan-membership-container .membership-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#valhallan-membership-container .membership-card h3 {
  margin-top: 0;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

#valhallan-membership-container .membership-card p {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
  margin: 5px 0;
}

#valhallan-membership-container .membership-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.6;
  margin: 10px 0 15px 0;
  flex-grow: 1;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

#valhallan-membership-container .membership-price {
  font-size: 1.1em;
  font-weight: bold;
  color: #F72585;
  margin: 10px 0;
}

#valhallan-membership-container .membership-card .enroll-btn {
  display: inline-block;
  background-color: #F72585; /* Valhallan Pink */
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 0.2s;
  width: 100%;
}

#valhallan-membership-container .enroll-btn:hover {
  background-color: #d11c6f;
}

/* Scrollbar styling for description */
#valhallan-membership-container .membership-description::-webkit-scrollbar {
  width: 6px;
}

#valhallan-membership-container .membership-description::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#valhallan-membership-container .membership-description::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#valhallan-membership-container .membership-description::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #valhallan-membership-container .membership-grid {
    grid-template-columns: 1fr;
  }
}
