@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Trainer Section */
.trainer-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trainer Card */
.trainer-card {
  display: flex;
  flex-direction: column; /* Stack text and bottom row */
  gap: 1rem; /* Spacing between text and bottom section */
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative; /* Needed for absolute positioning of the button */
  max-height: fit-content;
  height: 350px;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  transition: transform 0.3s ease;
  width: 370px;
}

.trainer-card:nth-child(odd) {
  background-color: var(--black);
  color: #fff;
}

.trainer-card:hover {
  transform: translateY(-5px);
}

.trainer-text {
  font-size: 0.9rem;
  line-height: 1.5;
  height: 100px; /* Keep your fixed height */
  overflow: hidden; /* Essential for text-overflow */
  text-align: justify;
  text-overflow: ellipsis;
}

.trainer-text p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Set how many lines you want to show */
  overflow: hidden;
}

/* Trainer Bottom Section */
.trainer-bottom {
  display: flex; /* Ensure layout is flex */
  align-items: center; /* Align content vertically */
  gap: 20px; /* Space between image and info */
  justify-content: flex-start; /* Align both items to the left */
  width: 100%; /* Ensure full width to prevent overflow */
}

/* Trainer Image */
.trainer-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #ffd700;
  object-fit: cover;
  display: block; /* Ensure it's treated as a block element */
}

/* Trainer Info */
.trainer-info {
  display: flex;
  flex-direction: column; /* Keep text vertically aligned */
  justify-content: center; /* Vertically center the text */
  color: #ffd700;
  flex-grow: 1; /* Ensure it takes available space */
}

.trainer-info h2 {
  font-size: 1.2rem;
  margin: 0;
  text-align: right;
}

.trainer-info .title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #999;
}

.view-btn {
  font-family: Montserrat, sans-serif;
  float: right;
  background-color: #fff8dc;
  color: #f0c000;
  border: 1px solid #f0c000;
  border-radius: 30px;
  padding: 5px 10px; /* Reduced padding for smaller button */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100px; /* Adjust width to auto for smaller button size */
  font-size: 0.8rem; /* Smaller font size */
  margin-left: auto; /* Align button to the right */
}

.view-btn:hover {
  background-color: #fffae9;
}

@media (max-width: 1200px) {
  /* Adjust for tablet sizes */
  .trainer-section {
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Adjust for tablet sizes */
  .trainer-section {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-contact,
  .footer-social {
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-social-links {
    justify-content: center;
  }
}
