/* =========================================================
   YMCA SPORTS HERO
   ========================================================= */

.ymca-sport-hero {
  position: relative;
  max-width: 1670px;
  margin: 40px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.ymca-sport-hero-image {
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.ymca-sport-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* =========================================================
   BLUE CARD
   ========================================================= */

.ymca-sport-card {
  position: absolute;

  left: 70px;
  top: 50%;

  transform: translateY(-50%);

  width: 580px;
  max-width: calc(100% - 140px);

  padding: 42px 48px 45px;

  box-sizing: border-box;

  background: #0089d0;
  color: #ffffff;

  z-index: 2;

  /* Soft elevated shadow */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   SPORT ICON
   ========================================================= */

.ymca-sport-icon {
  width: 72px;
  height: 72px;

  margin-bottom: 18px;
}

.ymca-sport-icon svg {
  display: block;

  width: 100%;
  height: 100%;

  fill: none;
  stroke: #ffffff;

  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   HEADING
   ========================================================= */

.ymca-sport-card h2 {
  margin: 0 0 18px;

  color: #ffffff !important;

  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
}


/* =========================================================
   RED ACCENT
   ========================================================= */

.ymca-sport-accent {
  width: 95px;
  height: 4px;

  margin-bottom: 22px;

  background: #ed1c24;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.ymca-sport-card p {
  margin: 0 0 28px;

  color: #ffffff !important;

  font-size: 19px;
  line-height: 1.55;
}


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.ymca-sport-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 250px;
  min-height: 54px;

  padding: 12px 30px;

  box-sizing: border-box;

  border: 2px solid #ffffff;
  border-radius: 30px;

  background: transparent;

  color: #ffffff !important;

  font-size: 18px;
  font-weight: 700;

  letter-spacing: 0.5px;

  text-decoration: none !important;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


/* =========================================================
   BUTTON HOVER
   ========================================================= */

.ymca-sport-button:hover {
  background: #ffffff;

  color: #0089d0 !important;

  text-decoration: none !important;

  transform: translateY(-2px);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.ymca-sport-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .ymca-sport-hero {
    padding: 0 20px;
  }

  .ymca-sport-hero-image {
    height: 550px;
  }

  .ymca-sport-card {
    left: 50px;

    width: 500px;
    max-width: calc(100% - 100px);

    padding: 38px 40px;
  }

  .ymca-sport-card h2 {
    font-size: 30px;
  }

  .ymca-sport-card p {
    font-size: 17px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .ymca-sport-hero {
    margin: 25px auto 50px;
    padding: 0;
  }

  .ymca-sport-hero-image {
    height: 350px;
  }

  /*
   * Remove desktop overlap.
   * Card becomes part of normal page flow.
   */

  .ymca-sport-card {
    position: relative;

    left: auto;
    top: auto;

    transform: none;

    width: 100%;
    max-width: none;

    padding: 32px 25px 30px;
  }

  .ymca-sport-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 15px;
  }

  .ymca-sport-card h2 {
    font-size: 27px;
  }

  .ymca-sport-card p {
    font-size: 17px;
    line-height: 1.5;
  }

  .ymca-sport-button {
    width: 100%;
    min-width: 0;
  }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .ymca-sport-hero-image {
    height: 280px;
  }

  .ymca-sport-card {
    padding: 28px 22px;
  }

  .ymca-sport-icon {
    width: 55px;
    height: 55px;
  }

  .ymca-sport-card h2 {
    font-size: 25px;
  }

  .ymca-sport-card p {
    font-size: 16px;
  }

}