{% require_css %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=League+Spartan:wght@300;400;500;600;700&display=swap" rel="stylesheet">
{% end_require_css %}

{% scope_css %}
/* ============================================
   AutomateNow Video with Description Module
   ============================================ */

/* Main Container */
.automatenow-video-description {
  width: 100%;
  max-width: 100%;
  height: auto;
  background-color: #F5F5F5;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: 60px 20px;
}

.automatenow-video-description__container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  box-sizing: border-box;
}

/* Video Wrapper - Left Side - Aligned to top with title */
.automatenow-video-description__video-wrapper {
  flex-shrink: 0;
  width: 579px;
  height: 337px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  align-self: flex-start;
}

.automatenow-video-description__video-wrapper iframe,
.automatenow-video-description__video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: none;
  display: block;
}

.automatenow-video-description__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.automatenow-video-description__placeholder {
  width: 100%;
  height: 100%;
  background: #E0E0E0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

/* Content - Right Side */
.automatenow-video-description__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  align-items: flex-start;
}

/* Title */
.automatenow-video-description__title {
  width: auto;
  max-width: 529px;
  height: auto;
  min-height: 88px;
  font-family: "League Spartan", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 48px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Description 1 */
.automatenow-video-description__description--first {
  width: auto;
  max-width: 529px;
  height: auto;
  min-height: auto;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 20px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #000000;
  margin: 0;
  padding: 0 0 10px 0;
}

/* Description 2 */
.automatenow-video-description__description--second {
  width: auto;
  max-width: 529px;
  height: auto;
  min-height: 180px;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0%;
  color: #000000;
  margin: 0;
  padding: 0;
}

/* Rich Text Content Styling */
.automatenow-video-description__description p {
  margin: 0 0 15px 0;
  padding: 0;
}

.automatenow-video-description__description p:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.automatenow-video-description__cta {
  margin-top: 20px;
  position: relative;
}

.automatenow-video-description__cta .hs-cta-wrapper,
.automatenow-video-description__cta a.hs-button {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 287px;
  height: 35px;
  border-radius: 30px;
  background: #F57722 !important;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding: 0 20px;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  position: relative;
  gap: 8px;
}

.automatenow-video-description__cta .hs-cta-wrapper:hover,
.automatenow-video-description__cta a.hs-button:hover {
  background: #E55A2B !important;
}

/* Arrow button - same style as get inspired/view case studies */
.automatenow-video-description__cta .arrow-button {
  position: absolute;
  top: calc(50% - 0.5px);
  right: 20px;
  width: 25px;
  height: 1px;
  border-radius: 9999px;
  background-color: #FFFFFF;
  pointer-events: none;
}

.automatenow-video-description__cta .arrow-button::before,
.automatenow-video-description__cta .arrow-button::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 5px;
  height: 1px;
  border-radius: 9999px;
  background-color: #FFFFFF;
  transform-origin: calc(100% - 0.5px) 50%;
}

.automatenow-video-description__cta .arrow-button::before {
  transform: rotate(45deg);
}

.automatenow-video-description__cta .arrow-button::after {
  transform: rotate(-45deg);
}

.an-expertise-text {
  line-height: 125%;
} 
/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .automatenow-video-description {
    height: auto;
    padding: 50px 30px;
  }

  .automatenow-video-description__container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .automatenow-video-description__video-wrapper {
    width: 100%;
    max-width: 579px;
    height: auto;
    min-height: auto;
    aspect-ratio: 579 / 337;
    align-self: center;
    margin: 0 auto;
  }

  .automatenow-video-description__content {
    width: 100%;
    max-width: 600px;
    align-items: center;
    margin: 0 auto;
  }

  .automatenow-video-description__title {
    max-width: 100%;
    font-size: 40px;
  }

  .automatenow-video-description__description--first,
  .automatenow-video-description__description--second {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .automatenow-video-description {
    height: auto;
    padding: 40px 20px;
  }

  .automatenow-video-description__container {
    flex-direction: column;
    gap: 30px;
  }

  .automatenow-video-description__video-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 579 / 337;
  }

  .automatenow-video-description__content {
    width: 100%;
    gap: 20px;
  }

  .automatenow-video-description__title {
    max-width: 100%;
    font-size: 32px;
    line-height: 125%;
    min-height: auto;
  }

  .automatenow-video-description__description--first {
    max-width: 100%;
    font-size: 18px;
    line-height: 125%;
    min-height: auto;
  }

  .automatenow-video-description__description--second {
    max-width: 100%;
    font-size: 16px;
    line-height: 125%;
    min-height: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .automatenow-video-description {
    padding: 30px 15px;
  }

  .automatenow-video-description__container {
    gap: 25px;
  }

  .automatenow-video-description__title {
    font-size: 28px;
    line-height: 125%;
  }

  .automatenow-video-description__description--first {
    font-size: 16px;
    line-height: 125%;
  }

  .automatenow-video-description__description--second {
    font-size: 14px;
    line-height: 125%;
  }
}
{% end_scope_css %}

