/* =========================================
   VEYLO MODERNIZATION MODULE
========================================= */

.veylo-modernization {
  width: 100%;
  box-sizing: border-box;
}


/* =========================================
   DESKTOP GRID
========================================= */

.veylo-modernization-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  box-sizing: border-box;
}


/* =========================================
   CONTENT GROUP
========================================= */

.veylo-content-group {
  display: contents;
}


/* =========================================
   COMMON CARD
========================================= */

.veylo-card {
  position: relative;
  box-sizing: border-box;
  border: 1px solid #D9D9D9;
  background-color: #FFFFFF;
}


/* =========================================
   MAIN HEADING CARD
========================================= */

.veylo-heading-card {
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 35px 55px;
}


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

.veylo-modernization-heading {
  width:100%;
  max-width: 633px;
  margin: 0;
  font-family: "FK Grotesk Neue", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 58px;
  line-height: 115%;
  letter-spacing: -1.05px;
  color: #000000;
}


/* =========================================
   INTRO CARD
========================================= */

.veylo-intro-card {
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 30px;
}


/* =========================================
   INTRO CONTENT
========================================= */

.veylo-intro-content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}


/* =========================================
   RICHTEXT
========================================= */

.veylo-richtext {
  font-family: "FK Grotesk Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0;
  color: #000000;
}

.veylo-richtext p {
  margin: 0 0 16px;
}

.veylo-richtext p:last-child {
  margin-bottom: 0;
}


/* =========================================
   CTA
========================================= */

.veylo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 40px;
  margin-top: 16px;
  box-sizing: border-box;
  background-color: #BCD232;
  font-family: "FK Grotesk Neue", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 14px;
  line-height: 14px;
  letter-spacing:0.7px;
  color: #000000;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.veylo-cta:hover {
  background-color: #AFC827;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}


/* =========================================
   ILLUSTRATION CARD
========================================= */

.veylo-illustration-card {
  max-height: 395px;
  overflow: hidden;
  background-color: #FAFAFA;
}

.veylo-illustration-card .hs-video-wrapper{
  padding-bottom: 40.25% !important;
}

.veylo-illustration-card video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  outline: none;
  background-color: transparent !important;
  border: none;
  outline: none;
  box-shadow: none;
  margin: -1.5px;
  clip-path: inset(1px);
}
video:focus {
    outline: none;
}



/* =========================================
   ILLUSTRATION
========================================= */

.veylo-illustration {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}


/* =========================================
   WHO WE SERVE CARD
========================================= */

.veylo-who-card {
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 35px 55px;
}


/* =========================================
   WHO WE SERVE CONTENT
========================================= */

.veylo-who-content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}


/* =========================================
   WHO WE SERVE HEADING
========================================= */

.veylo-who-heading {
  margin: 0 0 25px;
  font-family: "FK Grotesk Neue", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 115%;
  letter-spacing: -0.5px;
  color: #000000;
}


/* =========================================
   DESKTOP CORNER MARKERS
========================================= */

.veylo-corner {
  position: absolute;
  width: 17px;
  height: 17px;
  background-color: #FFFFFF;
  border: 1px solid #D9D9D9;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
}


/* =========================================
   TOP LEFT
========================================= */

.veylo-corner-tl {
  top: -1px;
  left: -1px;
}


/* =========================================
   TOP RIGHT
========================================= */

.veylo-corner-tr {
  top: -1px;
  right: -1px;
}


/* =========================================
   BOTTOM LEFT
========================================= */

.veylo-corner-bl {
  bottom: -1px;
  left: -1px;
}


/* =========================================
   BOTTOM RIGHT
========================================= */

.veylo-corner-br {
  bottom: -1px;
  right: -1px;
}


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

@media (max-width: 991px) and (min-width: 768px) {

  .veylo-heading-card {
    padding: 30px 35px;
  }

  .veylo-modernization-heading {
    font-size: 30px;
  }

  .veylo-intro-card,
  .veylo-who-card {
    padding: 25px 30px;
  }

}


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

@media (max-width: 767px) {

  /* -----------------------------------------
     MAIN CONTAINER
  ----------------------------------------- */

  .veylo-modernization-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }


  /* -----------------------------------------
     GROUPS BECOME INDIVIDUAL CARDS
  ----------------------------------------- */

  .veylo-content-group {
    display: flex;
    flex-direction: column;
    border: 1px solid #D9D9D9;
    background-color: #FFFFFF;
    box-sizing: border-box;
  }
  
  .veylo-content-group.veylo-bottom-group{
   flex-direction: column-reverse; 
  }


  /* -----------------------------------------
     REMOVE INDIVIDUAL CARD BORDERS
     So the two desktop cells become ONE
     mobile card.
  ----------------------------------------- */

  .veylo-content-group .veylo-card {
    border: 0;
    width: 100%;
  }


  /* -----------------------------------------
     TOP GROUP
  ----------------------------------------- */

  .veylo-top-group {
    order: 1;
  }


  /* -----------------------------------------
     BOTTOM GROUP
  ----------------------------------------- */

  .veylo-bottom-group {
    order: 2;
  }


  /* -----------------------------------------
     MOBILE HEADING
  ----------------------------------------- */

  .veylo-heading-card {
    min-height: auto;
    padding: 20px 14px 16px;
  }

  .veylo-modernization-heading {
    max-width: 100%;
    font-size: 25px;
    line-height: 115%;
    letter-spacing: -0.75px;
  }


  /* -----------------------------------------
     MOBILE INTRO
  ----------------------------------------- */

  .veylo-intro-card {
    min-height: auto;
    display: block;
    padding: 0 14px 20px;
  }

  .veylo-intro-content {
    max-width: 100%;
  }


  /* -----------------------------------------
     MOBILE BODY TEXT
  ----------------------------------------- */

  .veylo-richtext {
    font-size: 14px;
    line-height: 140%;
  }

  .veylo-richtext p {
    font-size: 14px;
    line-height: 140%;
    margin-bottom: 12px;
  }


  /* -----------------------------------------
     MOBILE CTA
  ----------------------------------------- */

  .veylo-cta {
    margin-top: 12px;
    padding: 7px 15px;
    min-width: 140px;
    font-size: 8px;
  }


  /* -----------------------------------------
     MOBILE WHO WE SERVE
  ----------------------------------------- */

  .veylo-who-card {
    min-height: auto;
    display: block;
    padding: 20px 14px 12px;
  }

  .veylo-who-content {
    max-width: 100%;
  }

  .veylo-who-heading {
    margin-bottom: 18px;
    font-size: 19px;
  }


  /* -----------------------------------------
     MOBILE ILLUSTRATION
  ----------------------------------------- */

  .veylo-illustration-card {
    min-height: auto;
    padding: 0 14px 14px;
    background-color: #FFFFFF;
  }

  .veylo-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
  }


  /* -----------------------------------------
     REMOVE CORNER MARKERS ON MOBILE
  ----------------------------------------- */

  .veylo-corner {
    display: none;
  }

}


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

@media (max-width: 480px) {
  .veylo-illustration-card {
    max-height:312px;
  }
  .veylo-modernization-grid {
    gap: 12px;
  }

  .veylo-heading-card {
    padding: 16px 13px 14px;
  }

  .veylo-modernization-heading {
    font-size: 23px;
    line-height: 115%;
    letter-spacing: -0.69px;
  }

  .veylo-intro-card {
    padding: 0 13px 16px;
  }

  .veylo-richtext {
    font-size: 11px;
    line-height: 130%;
  }

  .veylo-who-card {
    padding: 16px 13px 10px;
  }

  .veylo-who-heading {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .veylo-illustration-card {
    padding: 0 13px 13px;
  }

}


@media (max-width: 375px) {
  .veylo-illustration-card {
    max-height:260px;
  }