/* Interna Cursos */
.hero {
  overflow: hidden;
}

.extensao-box {
  border-radius: 0 !important;

  bold {
    font-weight: 700 !important;
  }
}

.topo {
  height: 40em;
  object-fit: cover;
  overflow: hidden;
}

.text-mobile {
  display: flex;
  position: absolute;
  margin-top: 1rem;
  top: 14%;
  left: 32%;
  color: #FFFFFF;
  z-index: 2;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 30%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-right: auto;
  margin-left: auto;

  h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 160%;
    color: #F58220;
  }

  span {
    font-size: 20px;
    font-weight: 300;
    line-height: 160%;
    color: #FFFFFF;
  }

  h2 {
    color: #F58220;
    line-height: 95%;
  }

  p {
    font-size: 24px;
    font-weight: 500;
    line-height: 137%;
    color: #FFFFFF;
  }

  .price {
    display: none;
  }
}

.img-front {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: auto;
  height: auto;
  z-index: 1;
  max-height: 95%;

  img {
    max-height: 550px;
  }

  span {
    position: absolute;
    top: 35%;
    left: 25%;
    padding: 8px 24px;
    border-radius: 5px;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 500;
    background-color: #2C73A3;
    border-radius: 80px;
    width: max-content;
    animation: flutuar 3s ease-in-out infinite;
    animation-delay: 0s;
  }

  span:nth-child(2) {
    top: 10%;
    left: -15%;
    animation-delay: 0.4s;
  }

  span:nth-child(3) {
    top: 12%;
    left: 75%;
    animation-delay: 0.8s;
  }
}

@keyframes flutuar {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.form-container {
  bottom: 5%;
  right: 5%;
}

.form-matricula {
  max-width: 500px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;

  & h5 {
    font-size: 22px;
    color: #004069;
    line-height: 30px;
    font-weight: 700;
    font-family: 'Montserrat', 'sans-serif'
  }

  & .form-control,
  & .form-select {
    background-color: #f2f9f7;
    border: none;
    padding: 0.75rem 1rem;
  }

  & .form-control:focus,
  & .form-select:focus {
    box-shadow: none;
    border-color: #00a58e;
  }

  & .btn-cta {
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 40px;
    background: #f58220;
    height: auto;
    padding: 12px 35px;
    align-items: center;
    transition: ease-in 0.2s;
  }

  & button:hover {
    background-color: #e46b00;
  }
}

.grid-objetivos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* Espaçamento entre itens */
}

.grid-objetivos .item {
  flex: 1 1 calc(25% - (1.5rem + 20px));
  /* 4 por linha com gap descontado */
  box-sizing: border-box;
  /* Evita encolhimento extremo */
  text-align: center;

  img {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 35px;
  }

  p {
    text-align: justify;
  }
}

.metodologia {
  padding: 2.5rem 0;
  background: linear-gradient(90deg, rgba(225, 240, 250, 1) 41%, rgba(255, 255, 255, 1) 100%);
}

.flex-metodologias {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;

  .bloco {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: max-content;
    max-width: 100%;
    /* Para evitar estouro em telas pequenas */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto;
  }

  .header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  .numero {
    background: #ff7f0e;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .numero.n2 {
    background: #0077cc;
  }

  .numero.n3 {
    background: #003366;
  }

  .bloco ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .bloco ul li {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 220%;
    color: #585757;
    text-transform: uppercase;
    border-bottom: 1px solid #585757;
    /* impede quebra de linha */
  }

  .bloco.info {
    /* background: #004785; */
    color: #fff;
  }

  .bloco.info h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .bloco.info ul li {
    font-size: 14px;
    margin-bottom: 6px;
  }
}

.diferenciais {
  .icon-box {
    width: 80px;
    height: 80px;
    background-color: #3189BF;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border-radius: 8px;
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

    img {
      max-width: 40px;
      max-height: 40px;
    }
  }

  .diferenciais-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    /* espaçamento entre os boxes */
  }

  .diferencial-box {
    flex: 1 1 calc(35%);
    /* 2 por linha com gap compensado */
    box-sizing: border-box;
    padding: 25px 27px 25px 65px;
    min-height: 115px;

    h4 {
      color: #004069;
      font-size: 20px;
    }

    p {
      color: #585757;
      font-size: 16px;
    }
  }
}

section.extensao-cursos {

  .curso-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding-bottom: 1.5rem;
  }

  a.btn-cta {
    padding: 15px 50px;
  }

  .img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .card-body {
    padding: 1rem 1.2rem;
  }

  .titulo {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 0.75rem;
    color: #004069;
    line-height: 160%;
  }

  .info-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .info-flex span {
    flex: 1 1 auto;
    /* cresce, encolhe e ocupa espaço disponível */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 160%;
    color: #585757;
    background: #fff;
    border: 1px solid #004069;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    margin: 0.2rem 0.2rem 0.6rem 0;
  }

  .info-flex .fas {
    color: #F58220;
  }

  .btn-primary {
    background: #3189BF;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
  }

  .swiper {
    padding-bottom: 2.5rem;
  }

  .swiper-button-prev {
    right: 50px;
    left: auto;
  }
}

@media (max-width: 1400px) {
  .img-front {
    left: 8%;

    span:nth-child(3) {
      left: 60%;
    }
  }

  .text-mobile {
    display: none;
  }
}

@media (max-width: 1200px) {
  .grid-objetivos .item {
    flex: 1 1 calc(50% - 20px);
    /* 2 por linha */
  }
}

@media (max-width: 992px) {
  .form-container {
    position: relative;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .grid-objetivos .item {
    flex: 1 1 100%;
    /* 1 por linha */
  }

  .diferencial-box {
    flex: 1 1 100%;
    /* 1 por linha no mobile */
  }

  .metodologia .bloco ul li {
    font-size: 14px;
    white-space: wrap;
    line-height: 180%;
  }

  .navbar-brand img {
    width: 150px;
  }

  .navbar.custom-header {
    padding: 0;
    height: auto;
  }

  section.hero {
    min-height: 56em;
    overflow: hidden;

    img.topo {
      min-height: 56em;
      object-fit: cover;
    }

    .text-mobile {
      display: flex;
      position: absolute;
      margin-top: 1rem;
      top: 0;
      left: 0;
      color: #FFFFFF;
      z-index: 2;
      --bs-gutter-x: 1.5rem;
      --bs-gutter-y: 0;
      width: 100%;
      padding-right: calc(var(--bs-gutter-x) * .5);
      padding-left: calc(var(--bs-gutter-x) * .5);
      margin-right: auto;
      margin-left: auto;

      h2 {
        color: #F58220;
        line-height: auto;
      }
    }

    .img-front {
      position: absolute;
      bottom: 0;
      left: inherit;
      right: -3rem;
      width: max-content;
      height: auto;
      z-index: 1;

      span {
        display: none;
      }

      img {
        right: 0;
      }

      span {
        display: none;
      }
    }

    .price {
      font-size: 50px;
      font-weight: bold;
      display: block;
    }
  }

  .extensao-img-wrapper {
    height: 100%;
  }
}

@media(max-width: 500px) {
  .numero {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}