.line {
  position: relative;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: 2vw;
  width: 96%;
  border-top: 1px solid #333;
  opacity: 0.1;
}

.hero {
  display: flex;
  flex-wrap: wrap;        /* Wrap on smaller screens */
  align-items: end;
  justify-content: space-between;
  padding-left: 2rem;
  background-color: #000;
}

/* Left column: text content */
.hero-content {
  flex: 1 1 50%;
  max-width: 50vw;       /* Prevent text from getting too wide */
  margin-right: 2rem;
  color: #fff;
  padding-bottom: 2rem;
  margin-top: 5%;
}

/* Main headline */
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Montaser', sans-serif;
}

.hero-content h2 {
  margin-bottom: 1rem;
  font-family: 'raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 100;
  font-style: italic;
}

.services-list {
  list-style: none;
  margin-bottom: 2rem;
  font-family: 'inter', sans-serif;
  font-size: 1.5rem;
}

.services-list li {
  display: flex;         /* Place icon and text in a row */
  align-items: center;   /* Vertically center them */
  margin-bottom: 0.5rem; /* Space between list items */
}

.checkmark-icon {
  width: 2.5rem;  /* Adjust to your desired size */
  height: auto;
  margin-right: 2rem; /* Space between icon and text */
}

.services-list li p {
  margin: 0;    /* Reset default paragraph margin */
}

/* Button group */
.button-group {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  margin-right: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.btn-primary {
  background-color: #fff;
  color: #000;
}

.btn-secondary {
  color: #fff;
  background-color: #209084;
}

/* Right column: puzzle image */
.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50vw;
}

/* Make sure the image scales properly */
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.59;
}

.white-section {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

/* Section heading */
.white-section h3,
.contact-section h3,
.contact-info h3 {
  font-size: 2rem;
  margin: 0;
  padding: 0;
  font-family: 'Montaser', sans-serif;
  font-weight: bold;
}

.white-section h2 {
  font-size: 1.2rem;
  font-style: italic;
  color: #209084;
  margin: 0 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 100;
}


.white-section p,
.white-section li,
.contact-section p {
  font-size: 1rem;
  line-height: 1.4;
  color: #000;
  font-family: 'Inter', sans-serif;
}


/* Cards container: flexible row layout */
.cards-container {
  display: flex;
  flex-wrap: wrap;        /* Wrap on smaller screens */
  gap: 3rem;            /* Space between cards */
  margin: 2rem 2rem 0 2rem;
  text-align: justify;
}

/* Individual card */
.training-card {
  background-color: #EDEDED;
  border: 2rem solid #EDEDED;
  border-radius: 20px;
  flex: 1 1 200px;
  max-width: calc(50% - 5.5rem);
}

/* Card image */
.card-image {
  width: 85%;
  height: auto;
  margin: 1rem auto 1rem;
  display: block;
}

/* Card title */
.training-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Montaser', sans-serif;
  text-align: center;
}

.subheading {
  font-style: italic;
  color: #209084 !important;
  margin-bottom: 0.5rem;
  font-family: 'Raleway', sans-serif !important;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Main card text/description */
.card-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #000;
  font-family: 'Inter', sans-serif;
  text-align: center;
}


.trainer-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 2rem 2rem 0 2rem;
  text-align: center;
}

.trainer-card {
  background-color: #000;
  border-radius: 20px;
  flex: 1 1 200px;
  position: relative;
  max-width: calc(50% - 3rem);
}

.training-card:hover,
.trainer-card:hover{
  transform: scale(1.01);
  cursor: pointer;
}

.trainer-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.trainer-card h4 {
  font-family: 'Montaser', sans-serif;
  top: 0%;
  left: 5%;
  font-size: 1.3rem;
  color: #fff;
  position: absolute;
  padding: 0;
  font-weight: bold;
  text-align: left;
}

.trainer-card h5 {
  font-family: 'Inter', sans-serif;
  top: 0%;
  left: 5%;
  font-size: 1.1rem;
  color: #fff;
  position: absolute;
  padding: 1.5rem 0 0 0;
  text-align: left;
}

.trainer-card a {
  font-family: 'Inter', sans-serif;
  bottom: 5%;
  font-size: 1rem;
  color: #fff;
  position: absolute;
  background-color: #209084;
  border-radius: 20px;
  padding: 0.5rem 2rem;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.trainer-card a:hover {
  transform: translate(-50%, -50%) scale(1.05);
  cursor: pointer;
}


.sponsor-slider {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.slide-track {
  display: flex;
  /* Animate the track to slide one set of images */
  animation: scrollSponsors 20s linear infinite;
}

.slide {
  flex: 0 0 auto;
  width: 200px;       /* Adjust this width as needed */
  margin-right: 20px; /* Spacing between slides */
}

.slide img {
  width: 100%;
  display: block;
}

/* Keyframe animation: translate by the total width of one set (4 slides) */
@keyframes scrollSponsors {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-880px); /* (200px + 20px) * 4 */
  }
}







.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem; /* space between columns on wrap */
}

.contact-info {
  flex: 1 1 40%;
  min-width: 280px; /* Ensures column doesn’t shrink too small on narrow screens */
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: #000;
}

.contact-info p {
  margin-bottom: 1rem;
  color: #000;
  font-family: 'Inter', sans-serif;
}

/* Right column: Contact Form */
.contact-form {
  flex: 1 1 50%;
  min-width: 280px;
}

.contact-form h2 {
  margin-bottom: 1rem;
  color: #000;
}

form {
  background-color: #fff;
  padding: 1rem 0 0 0;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: 'Montaser', sans-serif;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 15px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  font-style: italic;
}

textarea {
  resize: vertical;
}

.form-submit-button {
  display: inline-block;
  background-color: #209084;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 1rem;
}

.form-submit-button:hover {
  transform: scale(1.1);
}

.email-list {
  list-style: none;
  margin-bottom: 2rem;
  font-family: 'inter', sans-serif;
  font-size: 2rem;
  padding: 0 0 0 1rem;
  margin-top: 1rem;
}

.email-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.email-icon {
  width: 2.5rem;
  height: auto;
  margin-right: 1rem;
}

.email-list li a {
  margin: 0;
  text-decoration: underline;
  font-style: italic;
  color: #000;
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .hero {
    padding-top: 120px;
  }
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 100px 0 0 0;
  }

  .hero-content {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .hero-image {
    margin-bottom: 2rem;
  }

  .hero-content, 
  .hero-image {
    max-width: 100%;
    margin-right: 0;
    margin-top: 0;
  }

  .hero-content h1{
    margin-top: 1rem;
    font-size: 1.6rem;
  }

  .hero-content h2{
    font-size: 1rem;
  }

  .services-list{
    font-size: 1rem;
  }

  .hero-image{
    margin-bottom: 0;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
    margin: 2rem 0 0 0;
  }

  .trainer-cards-container{
    display: grid;
  }

  .training-card {
    max-width: 90%;
  }

  .trainer-card {
    max-width: 100%;
  }

  .trainer-card:nth-child(2) h5{
    padding: 1.5rem 0 0 0;
  }

  .trainer-card:nth-child(1) h5{
    padding: 1.5rem 0 0 0;
  }

  .checkmark-icon {
    width: 1.5rem;
  }

  .white-section h3 {
    font-size: 1.6rem;
  }
  
}


@media (min-width: 770px) and (max-width: 1340px) {
  .trainer-card:nth-child(1) h5{
    padding: 3.5rem 0 0 0;
  }
}

@media (min-width: 770px) and (max-width: 1070px) {
  .trainer-card:nth-child(2) h5{
    padding: 3.5rem 0 0 0;
  }
}

@media (max-width: 478px) {
  .trainer-card:nth-child(1) h5{
    padding: 3.5rem 0 0 0;
  }

  .training-card h3{
    font-size: 1rem;
  }

  .training-card p{
    font-size: 0.9rem;
  }

}

@media (max-width: 430px) {
  .btn-secondary{
    margin-top: 1rem;
  }

}

@media (max-width: 388px) {
  .trainer-card:nth-child(2) h5{
    padding: 3.5rem 0 0 0;
  }

}