/* Text Media Block Styles */
.text-media {
  --text-media-content-max-width: 1152px;
  --text-media-video-height-desktop: 648px;
  --text-media-video-height-tablet: 396px;
  --text-media-video-height-mobile: 184px;
  --text-media-video-height: var(--text-media-video-height-mobile);
  

  display: flex;
  justify-content: center;
  align-items: center;
}

.text-media .text-media-btn {
  display: flex;
  padding: var(--size-12) var(--size-24);
  /*var(--gap-padding-12-one-and-half-x, 12px) var(--gap-padding-243-x, 24px);*/
  justify-content: center;
  align-items: center;
  border-radius: var(--corner-radius-cr-6);
  border: 2px solid var(--color-teal-500);
  background: var(--color-teal-50);
  cursor: pointer;
  margin-top: var(--size-24)
}

.text-media.text-media-full-width .text-media-content{
  max-width: 100%;
}

.text-media .text-media-btn a {
  color: var(--color-charcoal-brand);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.text-media .text-media-btn a:hover {
  text-decoration: none;
}

.text-media .text-media-btn:hover {
  /* color var to be added*/
  border: 2px solid var(--color-charcoal-brand);
}

.text-media .text-media-cta {
  position: absolute;
  bottom: 0;
  text-decoration: none;
  font-size: var(--scale-paragraph-small);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--corner-radius-cr-2);
  background: var(--color-teal-500);
  display: flex;
  padding: var(--size-4);
  padding-left: var(--size-12);
  align-items: center;
  gap: var(--size-8);
  color: var(--color-charcoal-brand);
  text-align: left;
}

.text-media .view-more-btn-wrapper {
  position: absolute;
  right: 0px;
  bottom: 6px;
  background-color: var(--color-white);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  border-radius: var(--corner-radius-cr-4) 0 var(--corner-radius-cr-2) 0;
  background: var(--color-white);
  top: unset;
}

.text-media .view-more-btn-wrapper a:hover {
  background: var(--color-teal-300);
}

.text-media .text-media-media {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: var(--size-24);
  margin-top: var(--size-32);
}

.text-media .text-media-media picture img {
  width: 100%;
  border-radius: var(--corner-radius-cr-4);
  align-self: stretch;
  aspect-ratio: 16/9;
  min-height: var(--text-media-video-height);
}

.text-media .text-media-sub {
  text-align: center;
  /* Paragraph_ePlus/Body_L_B_ePlus */
  font-family: var(--Font-Name-Body);
  font-size: var(--scale-paragraph-large);
  font-style: normal;
  font-weight: 700;
  line-height: var(--paragraph-large-line-height);
  /* 150% */
  background: var(--gradient2-eplus);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-media:has(.text-media-sub) .text-media-title {
  margin-top: var(--size-24);
}

.text-media .text-media-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  width: 100%;
  max-width: var(--text-media-content-max-width);
}

.text-media .text-media-title :is(h1, h2, h3, h4, h5, h6) {
  text-align: center;
  margin: 0;
  font-weight: 400;
}

.text-media .text-media-title :is(h1, h2, h3) {
  font-weight: 600;
}

.text-media-description p {
  line-height: 24px;
}

.text-media-description p:first-child {
  margin: 0;
}

.text-media .text-media-content .text-media-sub :is(strong, p){
  font-weight: inherit;
}

.text-media .text-media {
  max-width: var(--container-size);
  margin: 0 auto;
  padding: var(--size-16);
}

.text-media .text-media-subtitle {
  color: var(--color-primary-500);
  font-size: var(--scale-paragraph-small);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: var(--size-24);
}

.text-media .text-media-description {
  font-size: var(--scale-paragraph);
  line-height: var(--paragraph-line-height);
  color: var(--text-body);
  margin: 0;
  text-align: center;
  align-self: stretch;
  margin-top: var(--size-8);
}

  .text-media .text-media-description ul,
  .text-media .text-media-description ol {
      text-align: left;
      display: inline-block;
  }

.text-media .text-media-cta:hover {
  background-color: var(--color-teal-600);
  text-decoration: none;
}

.text-media .text-media-cta .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-media .text-media-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  color: var(--color-teal-500);
  z-index: 1;
}

.text-media .view-more-btn-wrapper::before,
.text-media .view-more-btn-wrapper::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: url("../../icons/subtract.svg") no-repeat center / contain;
}

.text-media .view-more-btn-wrapper::after {
  bottom: 32px;
}

.text-media .view-more-btn-wrapper::before {
  bottom: 0;
  left: -8px;
}

.text-media .text-media-cta::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: url("../../icons/subtract.svg") no-repeat center / contain;
  bottom: 0;
  left: -8px;
}

.text-media .text-media-video img {
  width: 100%;
  height: 100%;
  min-height: 328px;
  object-fit: cover;
  display: block;
}

.text-media .text-media-video {
  width: 100%;
  min-height: var(--text-media-video-height);
  align-self: stretch;
  display: block;
  position: relative;
  border-radius: var(--corner-radius-cr-4);
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #000;
}

.text-media .text-media-video > picture,
.text-media .text-media-video > .video-wrapper,
.text-media .text-media-video > video {
  display: block;
  width: 100%;
  height: 100%;
}

.text-media .text-media-caption p {
  font-style: italic;
  margin: 0;
  margin-top: var(--size-16);
}

/* Media queries for responsive design */
@media (width < 600px) {
  .text-media .text-media-title {
    font-size: var(--scale-h1);
    line-height: var(--h1-line-height);
  }
}

@media (width >=600px) {
  .text-media {
    --text-media-video-height: var(--text-media-video-height-tablet);
  }

  .text-media .text-media-title {
    font-size: var(--scale-h1);
    line-height: var(--h1-line-height);
  }
}

@media (width >=900px) {
  .text-media {
    --text-media-video-height: var(--text-media-video-height-desktop);
  }
}

/* Additional styles for text media with section bg image */
.section[data-text-color='section-text-light'] .text-media .text-media-sub {
  background: linear-gradient(to right, #99eedb 0%, #00d4a6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section[data-text-color='section-text-light'] .text-media .text-media-title h2 {
  color: var(--color-gray-cool);
}

.section[data-text-color='section-text-light'] .text-media .text-media-description {
  color: var(--color-white);
}
