.hero {
  background: url(../img/bg-tjsp.webp), #dd303e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  padding: 40px 0; 
}

.hero .container {
  margin: 0 auto 0 5%;
  max-width: 900px; 
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
}

.hero .header {
  width: 100%;
  margin-bottom: 40px;
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.left-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero .hero-content .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero .hero-content .tag-hero {
  font-family: "Margem-bold";
  font-size: 24px;
  line-height: 125%;
  max-width: fit-content;
  color: #fff;
  text-transform: uppercase;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.hero .hero-content .hero-title {
  font-family: "Margem-black";
  font-size: 128px;
  line-height: 80%;
  text-transform: uppercase;
  color: #fff;
  display: flex;
}

.dados-hero {
  display: flex;
  justify-content: center;
  gap: 0.25rem; 
}

.info-item {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 16px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 557px;
  width: 100%;
}

.hero .hero-content .hero-text p {
  font-family: "Montserrat";
  font-size: 16px;
  line-height: 125%;
  color: #ffffff;
  text-align: left;
}

.hero .hero-content .hero-text strong {
  font-family: 'MontserratBold';
  font-weight: 700;
}

.hero .hero-content .dados-hero span,
.hero .hero-content .dados-hero-desktop span {
  font-size: 12px;
  text-transform: uppercase;
  line-height: 125%;
  color: #fff;
  font-family: "Margem-bold";
  font-weight: 700;
}

.hero .hero-content .dados-hero p,
.hero .hero-content .dados-hero-desktop p {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: "Margem-black";
}

.hero .hero-content .dados img,
.hero .hero-content .dados-hero img {
  width: 28px;
}

.hero-button {
  color: #121212;
  background: #DCFF78;
  padding: 15px 25px;
  border-radius: 12px;
  margin-top: 15px;
  }

  .hero-button:hover {
  color: #121212;
  text-decoration: none;
}

.label-professores {
  font-family: "Margem-regular";
  color: #fff;
  position: absolute;
  left: 58%;
  bottom: 90px;
  background: linear-gradient(274.14deg, #DD303E 2.87%, #461317 97.8%);
  padding: 5px 24px;
  border-radius: 12px;

  @media (min-width: 1024.98px) and (max-width: 1400px) {
    left: 48%;
  }

  @media (max-width: 1024px) {
    right: 0;
    left: 0;
    bottom: 45px;
    margin: 0 auto;
    width: fit-content;
    max-width: 90%;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .hero .hero-content .hero-cta {
    margin: 20px auto;
    max-width: 100%;
  }

  .hero .hero-content .tag-hero {
    font-size: 18px;
  }
}
@media (min-width: 992px) {
  .hero .hero-content .wrapper {
    align-items: flex-start;
  }
  
  .hero-text {
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .hero-title-group {
    flex-direction: row;
  }
  .dados-hero {
    flex-direction: column; 
  }
}

@media (min-width: 992px) {
  .hero .right-side {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100%;
  }

  .hero .hero-img {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    margin: 0;
  }

  .hero .hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 991.98px) {
  .hero {
    background: url(../img/bg-tjsp-mobile.webp), #dd303e;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 24px 0;
  }

  .hero .container {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
  }
  
  .hero .header img {
      display: block;
      margin: 0 24px;
  }

  .hero .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .left-side {
      width: 100%;
      align-items: center;
  }
  
  .hero-text p {
    text-align: center;
    padding: 0 16px;
  }

  .hero .hero-content .tag-hero {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid #DD303E;
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    gap: 10px;
  }

  .hero .hero-content .hero-title {
    font-size: 96px;
  }
  
  .hero-title-group {
      flex-direction: column;
      align-items: center;
      gap: 16px;
  }

  .dados-hero {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: 348px;
  }
  
  .info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; 
  }
  
  .info-item div {
    display: flex;
    flex-direction: column;
  }
  
  .lotes-wrapper {
      width: 100%;
      position: relative;
  }
  .lotes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: 24px;
    gap: 16px;
    scrollbar-width: none;
  }
  .lotes::-webkit-scrollbar {
    display: none;
  }

  .lotes-nav {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 16px;
  }

  .lotes-nav button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #fff;
      background-color: transparent;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .right-side {
      width: 100%;
      margin-top: 24px;
  }
  .hero-img img {
    object-fit: fill;
    overflow: auto;
    max-width: 95%;
  }

  .hero .hero-content .wrapper {
    gap: 24px;
  }
  
  .hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; 
  }

  .hero .hero-content .dados-hero p, .hero .hero-content .dados-hero-desktop p {
    font-size: 18px;
    white-space: nowrap;
    letter-spacing: -1px;
  }
}

@media screen and (max-width: 344.98px) {
  .hero .hero-content .hero-title {
    font-size: 110px;
  }

  .hero .hero-content .dados-hero {
    flex-direction: column !important;
    align-items: center;
  }
}

.btn-carrousel-cursos {
  text-align: center;
  gap: 16px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.btn-carrousel-cursos button.next-btn, .btn-carrousel-cursos button.prev-btn {
  border: #fff solid 1px;
  background: none;
  color: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.btn-carrousel-cursos button.next-btn:focus, .btn-carrousel-cursos button.prev-btn:focus {
  outline: none;
}

.btn-carrousel-cursos button.next-btn:hover, .btn-carrousel-cursos button.prev-btn:hover {
  border: #fff solid 1px;
  background: none;
  color: #fff;
}

@media screen and (min-width: 600px) {
  .btn-carrousel-cursos {
    display: none;
  }
}

@media (min-width: 991px) {
  .hero .hero-img img {
    width: 85%;
    height: auto;
    object-fit: contain;
    position: relative;
    top: -70px;
  }
}

@media (min-width: 991px) and (max-width: 1299.98px) {
  .hero .hero-img img {
    top: -186px;
    width: 75%;
    left: 86px;
  }
}

@media (min-width: 1200px) {
  .hero .hero-img img {
    top: -100px;
  }
}

@media (min-width: 2150px) {
  .hero .hero-img img {
      top: 0;
      width: 1260px;
      height: auto;
  }
}