/* Home page specific layout & sections */

.maze-home {
  position: relative;
}

.section__dot { color: rgba(255, 255, 255, 0.35); }
.section__subtitle { 
  font-family: Montserrat;
  font-weight: 400;
  font-style: Regular;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0%;
  
 }


/* HERO */

.hero::before {
  content: "";
  position: absolute;
  inset: -80px -40px -40px -40px;
  background:
    radial-gradient(2px 2px at 12% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(2px 2px at 82% 35%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(1px 1px at 65% 78%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 90px 90px, 90px 90px;
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maze-max);
  margin: 0 auto;
 
  display: flex;
  gap: 107px;
  align-items: self-start;
}
.hero__content{
  padding-top: 70px;
}
.hero__portrait{ display: grid; place-items: center; position: relative;}
/* ///////////123456789// */
.portrait {
  width: 481px;
  max-height: 801px;
}

.portrait-blackbot {
  position: absolute;
  width: 794px;
  height: 561px;
  left: -197px;
  top: 459px;

  background: radial-gradient(45.9% 45.9% at 59.01% 57.76%, #050811 0%, rgba(24, 31, 58, 0) 100%);
  z-index: 2;

}
.hero__portrait::after {
  content: "";
  position: absolute;
  bottom: -48px;
  left: 9px;
  width: 53%;
  height: 150px;
  background: #0303036e;
  filter: blur(15px);
  z-index: -1;
  right: 0;
  margin: 0 auto;
  border-radius: 26%;
}

#episodes{
  margin-top: -21px;
  position: relative;
  z-index: 9;
  padding: 0;
}

.hero_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 24px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 32px;
  font-family: Montserrat;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 20px;
  color: #483208;
  line-height: 150%;
  letter-spacing: 0%;
  background: linear-gradient(0deg, #B98C4B 0%, #FFF2DB 68.75%, #EDD39F 80.29%, #F8DCAE 97.92%);
}

/* EPISODES */
.episodes {
  display: flex;
  gap: 75px;
  align-items: start;
}
.episode-feature {
  max-width: 797px;
  width: 100%;
  position: relative;
  padding: 24px;
  padding-bottom: 40px;
  border-radius: 12px;
  background: #181F3A;
  box-sizing: border-box;
  background-clip: padding-box;
  border: solid 1px transparent;
}

.episode-feature:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  content: "";
  inset: 0;
  padding: 1px;
  background: linear-gradient(140deg, rgba(249, 214, 149, 0.50) 14.6%, rgba(231, 207, 161, 0.34) 32.98%, rgba(253, 242, 223, 0.38) 49.99%, rgba(238, 201, 127, 0.31) 65.31%, rgba(223, 194, 132, 0.25) 80.63%);
  /* -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude; */
}

.episode-feature__title {
  font-family: Montserrat;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 0%;
  background: linear-gradient(0deg, #B08420 8.17%, #FFF2DB 37.02%, #FBF5D1 45.67%, #EDD094 56.25%, #EAC885 65.38%, #BD9A4B 75.48%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.episode-feature__text {
  font-family: Montserrat;
  font-weight: 400;
  font-style: Regular;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0%;
  margin-top: 12px;
  
}
.episode-feature__avatar {
  position: absolute;
  right: -47px;
  bottom: -122px;
}
.episode-feature__avatar img {
  box-shadow: 7px 9px 50.2px 0px #F8D3911A;
  border-radius: 50%;
}

.episode-grid {
  display: grid;
  gap: 32px;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 554px;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ABOUT */
#about .section__head {
  margin-top: 80px;
}
.about {
  display: flex;
  gap: 32px;

}

.video-wrapper {
  width: 100%;
  max-width: 846px;
  height: 542px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.about__text{
  width: 100%;
  max-width: 554px;
}
.about__text_block{margin-top: 12px;}
.about__text_block p {
  font-family: Montserrat;
  font-weight: 400;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0;
  font-style: normal;
  overflow: hidden;
  color: #FFF;
  text-overflow: ellipsis;

}

.about__text_block p:nth-of-type(n+2) {
  margin-top: 40px;
}

.about__title { 
  font-family: Montserrat;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 32px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #FFF;
  line-height: 150%; 
}
.about__p {
  margin: 0 0 10px;
  color: rgba(229, 231, 235, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

/* CARDS */
.cards {
  display: flex;
  margin-top: 12px;
  justify-content: space-between;
  gap: 32px;
}
.card {
  width: 100%;
  max-width: 261px;
  height: 390px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  /* gap: 8px; */
}
.card>div{
  padding: 8px 8px 16px 8px;
  border-radius: 12px;
  box-shadow: 0 20px 100.5px -5px rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(19, 25, 47, 0.40) 45.19%, #0D1120 100%);
}

#life-hacks {
  margin-bottom: 95px;
  margin-top: 80px;
}
.tag {
  font-family: Montserrat;
  font-weight: 500;
  font-style: Medium;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0%;
  text-align: center;
  color: #181F3A;
  border: 1px solid #5469B9;
  border-radius: 6px;
  background-color: #EEF6FF;
  height: 24px;
  display: inline-block;
  padding: 4px 6px;  
}
.card__title{
  margin-top: 8px;
}
.card__title a {
  text-decoration: none;
  font-family: Montserrat;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #FFFFFF;
}

.section__head.mobile{
  display: none;
}


@media (max-width: 1500px) {
  #episodes{
    padding: 0px 20px;
  }
}

@media (max-width: 1450px) {
  .hero__inner{
    gap: 80px;
    padding: 0 20px;
  }
  .episodes{
    align-items: center;
    flex-direction: column;
    gap:150px;
  }

  #episodes{
    padding: 0px 20px;
  }
  .cards{
    gap:20px;
  }

  .card{
    max-width: 225px;
    height: 217px;
  }

}

@media (max-width: 1024px) {
  .card{
    max-width: 225px;
    height: 213px;
    background-position: top center;
    background-size: cover;
  }
  #life-hacks .section__subtitle{
    line-height: 24px;
  }
  .section__head.desktop{
    display: none;
  }

  .video-wrapper {
    height: 189px;
  }

  .section__head.mobile{
    display: flex;
    width: 100%;
    margin-top: 103px;
    margin-bottom: 12px;
  }

 


  .hero__inner{
    flex-direction: column;
    align-items: center;
    gap:0;
    margin-top: 0px;
  }
  .hero.active{
    top: 108px !important;
  }
  .section__head{
    margin-bottom: 12px;
  }

  .hero_button{
    display: flex;
    width: 100%;
    max-width: 181px;
    margin: 0 auto;
    margin-top: 10px;
    font-size: 14px;
    padding: 0 12px;
    height: 37px;
  }
  .hero__content {
    padding: 0;
    margin-top: -90px;    
  }
  .portrait {
    width: 300px;
    max-height: 490px;
  }

  .hero__portrait{
    position: static;
  }
  .hero__portrait::after{
    content: none;
  }

  #episodes{
    margin-top: 48px;
  }

  .episodes{
    gap:0;

  }
  .episode-feature{
    padding: 20px 18px 19px;  
  }
  .episode-feature__title, .about__title{
    font-size: 24px;
    line-height: 36px;
  }

  .episode-feature__text, .section__subtitle, .about__text_block p{
    font-size: 16px;
  }

  .episode-feature__avatar{
    right: 0px;
    bottom: -59px;

    img{
      width: 96px;
    }
  }

  .episode-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:18px;
    justify-content: center;
  }
  #about .section__head,   #life-hacks  {
      margin-top: 48px;
  }

  .about {
    display: flex;
    flex-direction: column;
  }

  .about div {
    width: 100%;
    max-width: none;
  }
  #life-hacks {
    margin-bottom: 63px;
  }

  #life-hacks .cards {
    max-width: 467px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 auto;
    margin-top: 12px;
  }

  .tag{
    font-size: 12px;
    height: 22px;
    line-height: 16px;
    padding: 2px 4px;
  }

  .card__title a, .card__title{
    font-size: 14px;
    line-height: 21px;
  }

  .site-footer {
    border: 1px solid var(--maze-border-soft);
  }


  .hero__content{
    z-index: 5;
  }
  .hero__lead{
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
  }
  .portrait-blackbot {
    width: 540px;
    height: 385px;
    left: -73px;
    top: unset;
    z-index: 1;
    border-radius: 540px;
    background: radial-gradient(50% 50% at 50% 50%, #050811 0%, rgba(24, 31, 58, 0.00) 100%);
    bottom: 28px;
  }
  .hero_button{
    margin-top: 16px;
  }
  .episode-feature__avatar{
    img{
      width: 96px;
      padding-right: 1px;
      background: linear-gradient(140deg, rgba(249, 214, 149, 0.50) 14.6%, rgba(231, 207, 161, 0.34) 32.98%, rgba(253, 242, 223, 0.38) 49.99%, rgba(238, 201, 127, 0.31) 65.31%, rgba(223, 194, 132, 0.25) 80.63%);
    }
  }
  .pill {
    max-width: 135px;
    height: 28px!important;
    padding: 6px 12px!important;
  }

  .section__head.mobile{
    align-items: center;
  }

  #about .section__head .section__title{
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
  }
  #about .section__head .section__action{
    padding: 10px 16px;
  }
  .about__text_block p:nth-child(2){
    display: none;
  }


 
}

