.sub-body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url("img/Winners/court1.avif"); /* Replace with the actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: repeat; /* Ensure the background image repeats */
  background-attachment: fixed;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 660px; /* Fix the max-width of the container */
  width: 60%; /* Adjust the container width */
  padding: 20px;
  justify-content: center; /* Center the cards */
  box-sizing: border-box;
}

.card {
  background-image: url("img/Winners/card.jpg"); /* Replace with the actual image path */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 20px;
  width: 48%; /* Set fixed width for 2 cards per row */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 300px; /* Ensure equal height for all cards */
}

.photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px; /* Reduced margin to pull status closer to the photo */
}

.status {
  display: inline-block;
  background-color: #de07da94;
  color: #fff;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 14px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px; /* Reduced margin to position status above the name */
}

.sub-body h3,
.sub-body p {
  margin: 5px 0;
  color: rgb(8, 16, 250);
  font-weight: bold;
}

.sub-body h3 {
  margin-top: 10px; /* Adjust spacing between name and status */
  color: rgb(26, 7, 244);
  font-weight: 900;
  font-size: 22px;
}

.sub-body p {
  color: #7e0b22cf;
  font-size: 20px; /* Reduced font size for details */
  font-weight: bold;
  line-height: 0.6;
}

/* Header styles */
.section-header {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-top: 0; /* Removed margin-top to eliminate the gap between header and cards */
  padding: 10px;
  background-color: #1305d1d8; /* Background color for the header */
  color: #f8f1f1cb;
  border-radius: 5px; /* Rounded corners for the background */
}

@media (max-width: 768px) {
  .card {
    width: 48%; /* 2 cards per row on smaller screens */
  }
  
  
}


/* Tablet-specific responsiveness */
@media screen and (max-width: 1024px) {
    .card-container {
        justify-content: center; /* Center align cards on tablet devices */
    }

    .card {
        width: 45%; /* Cards will take up 45% of the container width on tablets */
        
    }

    .section-header {
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
     
    }
}


@media (max-width: 480px) {
  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 960px; /* Fix the max-width of the container */
    width: 100%; /* Ensure it takes the full width but doesn't exceed max-width */
    padding: 20px;
    justify-content: center; /* Center the cards */
    box-sizing: border-box;
    align-items: flex-start;
    margin-top: 0px;
  }
  
   .section-header {
        
        margin-top: 10px;
        height:50px;
     
    }

  .card {
    width: 46%; /* Decrease card width on mobile view */
    min-height: 100px; /* Decrease card height on mobile view */
    
  }
  
  

  .photo {
    width: 120px; /* Decrease photo size */
    height: 120px;
  }

  .sub-body h3 {
    margin-top: 10px; /* Adjust spacing between name and status */
    color: rgb(26, 7, 244);
    font-weight: 900;
    font-size: 18px;
  }

  .sub-body p {
    color: #7e0b22cf;
    font-size: 14px; /* Reduced font size for details */
    font-weight: 900;
    line-height: 0.6;
  }
}
