@import '../../../styles/vars/breakpoints.css';

.lessonHeader {
  /* font-family: var(--text-font) !important; */
  width: 100%;
  height: 100vh;
  min-height: 602px;
  display: flex;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #ededed;
  @media (--xs-only) {
    display: block;
    /* height: calc(100vh - 70px); */
    min-height: calc(100vh);
    height: auto;
  }
  @media (--sm-only) {
    min-height: calc(100vh - 70px);
    height: auto;
  }
  @media (--ms-only) {
    min-height: calc(100vh - 70px);
    height: auto;
  }
  @media (--md-only) {
    min-height: calc(100vh - 38px);
    height: auto;
    border: unset;
  }
  &.editable {
    border-bottom: none;
  }
}


.teaser {
  position: absolute;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.teaserMobile {
  display: none;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -3;
  position: absolute;
  @media (--md-and-down) {
    display: block;
  }
/* 
  @media (--ms-only) {

    height: 100%;
  } */
}

.btnBack {
  margin-bottom: 30px;
  @media (--ms-and-down) {
    margin-bottom: 20px;
    /* position: absolute;
    top: 10px;
    left: 15px;
    margin-bottom: 0; */
  }
}

.info {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 23px 30px;
  background-color: #E8EBFF;
  border-radius: 16px;
  margin-bottom: 30px;
  box-sizing: border-box;
  @media (--md-and-down) {
    padding: 15px 20px;
    margin-bottom: 10px;
  }
}

.infoIcon {
  font-size: rem(29px);
  margin-right: 14px;
  flex-shrink: 0;
  color: #3466D9;
}

.notify {
  color: #3466D9;
  font-size: rem(14px);
  letter-spacing: 0.35px;	
  line-height: rem(24px);
}


.content {
  height: 100%;
  width: 526px;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  margin-left: 115px;
  align-items: flex-start;
  color: rgba(#282828, 0.4);
  z-index: 4;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
  @media (--md-only){
    width: 100%;
    /* height: 100%; */
    height: auto;
    margin-left: 0;
    padding: 80px 137px 105px 137px!important;
    justify-content: center;
  }

  @media (--sm-only){
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 20px);
    margin-left: 0;
    justify-content: center;
    padding: 100px 15px 100px !important;
  }
  @media (--ms-only) {
    width: 100%;
    height: 100%;
    margin-left: 0;
    padding: 90px 15px 40px !important;
    justify-content: flex-end;
  }
  @media (--xs-only) {
    width: 100%;
    /* height: 100%; */
    min-height: calc(100vh - 5px);
    margin-left: 0; 
    padding: 90px 15px 60px !important;
    justify-content: flex-end;
  }
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.iconStyle {
  font-size: rem(22px);
  margin-right: 12px;
  flex-shrink: 0;
}

.chip {
  border-radius: 15px;
  background-color: #438bff;
  color: #ffffff;
  padding: 6px 12px;
  font-size: rem(14px);
  margin-right: 12px;
  display: flex;
  align-items: center;
  line-height: normal;
}

.desktopBottom {
  /* @media (--md-and-down) {
    display: none;
  } */
  @media (--lg-and-up) {
    display: block;
  }
}

.mobileBottom {
  @media (--lg-and-up) {
    display: none;
  }
  @media (--md-and-down) {
    padding: 17px 15px;
    border-bottom: 1px solid #76767633;
  }
}

.bg {
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0;
  overflow: hidden;
  @media (--md-and-down) {
    display: none;
  }
}

.text {
  margin-right: 60px;
  @media (--md-and-down) {
    margin-right: 10px;
    
  }
}

.lesson {
  font-size: rem(24px);
  line-height: 2.17;
  letter-spacing: 0.6px;
  margin: 0;
  @media (--md-and-down) {
    font-size: rem(18px);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: normal;
    /* color: #ffffffb3; */
    color: #fff;
  }
}

.heading {
  max-width: 800px;
  font-size: rem(70px);
  font-weight: bold;
  line-height: 1.09;
  letter-spacing: 1.8px;
  margin: 0;
  line-break: normal;
  color: rgba(#282828, 1);
  span {
    color: inherit !important;
    font-family: inherit !important;
    font-size:  inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    background-color: inherit !important;
    line-height: inherit !important;
  }
  &.longest {
    font-size: rem(18px);
  }

  &.longer {
    font-size: rem(25px);
  }

  &.long {
    font-size: rem(35px);
  }
  
  &.middle {
    font-size: rem(45px);
  }

  &.large {
    font-size: rem(48px);
  }

  @media (--md-and-down) {
    color: #ffffff;
    font-size: rem(48px);
    margin-bottom: 15px;

    &.large {
      font-size: rem(48px);
    }
    &.middle {
      font-size: rem(48px);
    }
    &.long {
      font-size: rem(40px);
    }
    &.longer {
      font-size: rem(40px);
    }
    &.longest {
      font-size: rem(30px);
    }
  }

  @media (--ms-and-down) {
    font-size: rem(28px);
    font-size: 1.75rem;
    line-height: 1.21;
    letter-spacing: 0.5px;

    &.middle {
      font-size: rem(26px);
    }
    &.large {
      font-size: rem(26px);
    }
    &.long {
      font-size: rem(23px);
    }
    &.longer {
      font-size: rem(23px);
    }
    &.longest {
      font-size: rem(18px);
    }
  }
}

.share {
  position: absolute !important;
  bottom: 40px;
  @media (--md-and-down) {
    display: none;
  }
}

.iconsContent {
  display: flex;
  justify-content: space-between;
  padding: 37px 0 37px 0;
  width: 100%;
  @media (--md-and-down) {
    padding: 0;
    margin-bottom: 10px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 19px 30px;
  border-radius: 41px;
  background-color: #ff2b6e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  @media (--md-and-down) {
    margin: 20px 0 10px 0;
    padding: 20px 30px;
    background-color: #8513e8;
  }

  .btnText {
    color: #fff;
    font-size: rem(15px);
    font-weight: 700;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 2;
    @media (--md-and-down) {
      font-size: rem(15px);
      font-weight: 600;
    }
  }

  &:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }

  &:hover,
  &:focus,
  &.active {
    &:before {
      opacity: 0.08;
    }
  }
}

.envStyles {
  .btn {
    /* background: var(--button-gradient) !important;
    border-radius: var(--button-border-radius) !important;
    font-family: var(--title-font) !important; */
   
  }
}

.theme--one,
.theme--two {
  .text {
    @media (--md-and-down) {
      color: rgba(255, 255, 255, 0.8) !important;
    }
      
  }

  .bottomArrow {
    animation: pulse 3s ease-in-out infinite;
  }
  .content {
    width: 38%;
    @media (--lg-and-up) {
      background-image: none !important;
    }
    @media (--md-only) {
      width: 100vw;
      &:before {
        content: '';
        background-image: linear-gradient(181deg, rgba(26, 15, 32, 0.1), rgba(0, 0, 0, 0.55));
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
      } 
    }
    @media (--sm-and-down) {
      width: 100vw;
      &:before {
        content: '';
        background-image: linear-gradient(181deg, rgba(26, 15, 32, 0.1), rgba(0, 0, 0, 0.55));
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
      } 
    }
  }
}

.theme--three,
.theme--four {
  .text {
    color: rgba(255, 255, 255, 0.8) !important;
  }
  .row {
    color: rgba(255, 255, 255, 0.8);
  }
  .bottomArrow {
    color: #fff;
    /* border: 1px solid #fff; */
    animation: pulseWhite 3s ease-in-out infinite;
    &:hover {
      border-color: rgba(255, 255, 255, 0.8);
    }
  }

  .teaser {
    width: 100%;
    height: auto;
  }

  .info {
    max-width: 700px;
    @media (--ms-and-down) {
      max-width: 100%;
    }
  }
  .heading  {
    @media (--ms-and-down) {
      margin-bottom: 10px;
    }
  }
  .content {
    &:before {
      content: '';
      background-image: linear-gradient(181deg, rgba(26, 15, 32, 0.1), rgba(0, 0, 0, 0.55));
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    } 
    @media (--lg-and-up) {
      background-color: unset !important;
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
    }
  }
}


.theme--one {
  .bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 5;
    width: 50%;
    transform: translate(0%, 8%);
    height: 110vh;
    min-height: 600px;
    overflow: hidden;
    border-top-left-radius: 178%;
    border-bottom-left-radius: 25%;
  }
}

.theme--two {
  .bg {
    width: 50%;
    height: 100%;
    background-position: 50% 0%;
    background-size: cover;
    left: 50%; 
    overflow: hidden;
  }
}

.theme--three {
  .bg {
    width: 100%;
    height: 100%;
    background-size: 100% 768px;
    overflow: hidden;
  }
  .content {
    width: 100%;
    justify-content: flex-end;
    align-items: flex-start;
    color: rgba(#ffffff, 0.8);
    padding: 0 115px;
    margin: 0;
  }
  .desktopBottom {
    width: 100%;
  }
  .heading {
    color: rgba(255, 255, 255, 1);
  }
  .btn {
    margin-bottom: 70px;
    @media (--ms-and-down) {
      margin-bottom: 15px;
    }
  }
}

.theme--four {
  .bottomArrow {
    bottom: 15px;
  }
  .bg {
    width: 100%;
    height: 100%;
    background-size: 100% 768px;
    overflow: hidden;
  }
  .content {
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0;
    @media (--sm-only) {
      justify-content: center;
    }
  }
  .heading {
    color: rgba(255, 255, 255, 1);
    text-align: center;
    margin-bottom: 14px;   
  }
  .btn {
    margin-bottom: 80px;
    align-self: center;
    @media (--md-and-down) {
      margin-bottom: 0;
    }
    /* @media (--md-only) {
      margin-bottom: 0;
    }  */
    @media (--ms-only) {
      margin-bottom: 20px;
    }
  }
  .iconsContent {
    justify-content: center;
  }
  .desktopBottom {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.bottomArrow {
  z-index: 10;
  position: absolute;
  left: calc(50% - 25px);
  bottom: 40px;
  width: 50px;
  height: 50px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(40, 40, 40, 0.5);
  border: 1px solid rgba(40, 40, 40, 0.5);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  .down {
    font-size: rem(18px);
    font-size: 1.125rem;
  }
  @media (--md-and-down) {
    color: rgba(#fff, 0.9);
    border: 1px solid rgba(#fff, 0.5);
  }
  @media (--xs-only) {
    display: none;
  }
  @media (--sm-only) {
    display: none;
  }
  @media (--ms-only) {
    display: none;
  }
  &:hover {
    border-color: rgba(40, 40, 40, 0.8);
  }
}

:global(.dir--rtl) {
  .lessonHeader {
    flex-direction: row-reverse;
  }
  .text {
    margin-right: unset;
    margin-left: 60px;
    
    @media (--md-and-down) {
      margin-right: unset;
      margin-left: 10px;
    }
  }

  .iconStyle {
    margin-right: 0;
    margin-left: 12px;
  }
}


@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1.05);
    color: rgba(#8a8a8a, 1);
    border-color: rgba(#8a8a8a, 1);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.85);
    color: rgba(#8a8a8a, 0.8);
    border-color: rgba(#8a8a8a, 0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
    color: rgba(#8a8a8a, 1);
    border-color: rgba(#8a8a8a, 1);
  }
}

@keyframes pulseWhite {
  0% {
    opacity: 1;
    transform: scale(1.05);
    color: rgba(#BFBFBF, 1.1);
    border-color: rgba(#BFBFBF, 1);
  }
  50% {
    opacity: 0.9;
    transform: scale(0.85);
    color: rgba(#BFBFBF, 0.7);
    border-color: rgba(#BFBFBF, 0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
    color: rgba(#BFBFBF, 1);
    border-color: rgba(#BFBFBF, 1);
  }
}