.w-40 {
  width: 40% !important;
}

.w-60 {
  width: 60% !important;
}

.w-max {
  width: max-content !important;
}

.h-50 {
  height: 50% !important;
}

section.hero {
  overflow: hidden;
}

.btn-cta {
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border-radius: 40px;
  background: #f58220;
  height: auto;
  padding: 12px 35px;
  align-items: center;
  transition: ease-in 0.2s;
  width: max-content;
  border: none;
}

.nav-btn {
  color: white;
  background-color: #f58220;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  border: solid 1px #F58220;
  text-align: center;
  align-content: center;
  line-height: 34px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;

  &.swiper-button-disabled {
    opacity: 0.9;
    cursor: not-allowed;
    background-color: transparent;
    color: #f58220;
  }

  &:hover,
  .active {
    background-color: #f58220;
    color: white;
  }
}

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

.text-mobile {
  display: flex;
  position: absolute;
  margin-top: 1rem;
  top: 25%;
  left: 30%;
  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;

  img {
    max-height: 500px;
  }

  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: -6%;
    left: 75%;
    animation-delay: 0.8s;
  }
}

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

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

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

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

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

.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: #F3F5F7;
    border: none;
    padding: 0.75rem 1rem;
  }

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

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

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

section.busca {
  & h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 160%;
    color: #585757;
  }

  & span {
    color: #004069;
  }

  & .form-group {
    max-width: 400px;
    margin: auto;
    font-family: sans-serif;
  }

  & .input-wrapper,
  .select-wrapper {
    position: relative;
    margin-top: 20px;
  }

  & input[type="text"],
  .form-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #3189BF;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
  }

  .form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    --bs-form-select-bg-img: none !important;
  }

  & input[type="text"]:focus,
  .form-select:focus {
    border-color: #007bff;
  }

  & .input-wrapper i,
  .select-wrapper i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #F58220;
    pointer-events: none;
  }

  & .select-wrapper {
    margin-top: 10px;
  }

}

.botao .btn-cta {
  background-color: #F58220;
  padding: 15px 40px;
  margin-top: 64px;
}

/* Cobre parte da imagem */
.extensao-img-wrapper {
  margin-left: -8%;
  overflow: hidden;
  z-index: 1;
  position: relative;
}

.object-fit-cover {
  object-fit: cover;
  height: 100%;
}

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;
  }
}

.polo-card {
  background-color: #fff;
  transition: 300ms all ease-in-out;
  border-radius: 15px;
  overflow: hidden;

  a {
    border-radius: 40px;
    border: 1px solid #f58220;
    color: #f58220;
    background-color: transparent;
    margin-top: 18px;
    font-size: 16px;
    padding: 10px 38px;
    font-weight: 600;
  }


  h6 {
    font-size: 20px;
    color: #004069;
    line-height: 160%;
    font-weight: 700;
  }

  :hover {
    img {
      transform: scale(1.2);
    }

    a {
      background-color: #f58220;
      color: #fff;
    }
  }

  & img {
    height: 180px;
    object-fit: cover;
  }

}

.diferenciais-section {
  padding-left: 48px !important;
  background: linear-gradient(90deg, rgba(225, 240, 250, 1) 41%, rgba(255, 255, 255, 1) 100%);

  h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 140%;
    color: #004069;

    & span {
      color: #F58220;
      font-weight: 700;
    }
  }

  .btn-cta {
    background-color: #f58220;
    color: #fff;
    margin-top: 56px;
  }

  h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 160%;
    color: #004069;
  }

  p {
    font-size: 16px;
    line-height: 160%;
    font-weight: 400;
    color: #585757;
  }

  .icon {
    min-width: 40px;
  }

  i {
    line-height: 1;
  }

}

.icon-box {
  width: 75px;
  height: 75px;
  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);
}

.testimonials-bg {
  background-color: #F5FDFF;
  padding: 80px 0;

  & h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 140%;
    color: #585757;

    & span {
      color: #F58220;
      font-weight: 700;
    }
  }

  & p {
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #585757;
  }

  .swiper {
    padding-bottom: 10px;
  }

  .swiper-slide {
    min-width: 300px;
    max-width: 100%;

    & p {
      font-size: 16px;
      font-weight: 400;
      line-height: 26px;
      color: #585757;
    }

    & span {
      font-size: 16px;
      font-weight: 500;
      line-height: 26px;
      color: #585757;
    }
  }

  .card {
    border-radius: 15px;
    border: 1px solid #3189BF;
  }

  strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    color: #004069;
  }

  .swiper-button-prev-custom,
  .swiper-button-next-custom {
    width: 40px;
    height: 40px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .swiper-wrapper {
    padding-bottom: 10px;
  }
}

.blog-section {
  background-color: #f1fbff;

  & h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 140%;
    color: #004069;

    & span {
      font-weight: 700;
    }
  }

  & h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 27px;
    color: #004069;
    line-height: 160%;
  }

  & h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    color: #004069;
  }

  & .rounded-pill-cat {
    background: #E1F0FA;
    border-radius: 80px;
    font-weight: 500;
    font-size: 14px;
    color: #004069;
  }

  a.btn {
    color: #f58220;
    border: 1px solid #f58220;
    border-radius: 40px;

    &:hover {
      background-color: #f58220;
      color: #fff;
    }
  }

  .card {
    transition: transform 0.2s;
    background-color: #F5FDFF;
    overflow: hidden;
    transition: 300ms all ease-in-out;

    img {
      transition: 300ms all ease-in-out;
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
    }

    .card-img-top {
      img {
        max-height: 250px;
      }
    }

    .card-img-top {
      max-height: 250px;
      object-fit: cover;
    }

  }

  .card-second {
    .w-40 {
      overflow: hidden;
      transition: 300ms all ease-in-out;
    }

    img {
      transition: 300ms all ease-in-out;
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
    }

    .img-bottom {
      max-height: 220px;
      object-fit: cover;
    }
  }



  .btn-warning {
    background-color: #f7901d;
    border-color: #f7901d;
  }

  .btn-outline-warning {
    border-color: #f7901d;
    color: #f7901d;
  }

  .btn-outline-warning:hover {
    background-color: #f7901d;
    color: #fff;
  }
}

.text-secondary.mb-4 {
  max-width: 500px;
}

.newsletter-section {
  background: url('../img/young-students.jpg') center center / cover no-repeat !important;

  h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 160%;
    color: #ffffff;
  }

  p {
    font-size: 25px;
    font-weight: 600;
    line-height: 143%;
    color: #ffffff;
  }

  .input {
    position: relative;

    svg {
      position: absolute;
      top: 40%;
      left: 14px;
      max-height: 15px;
      width: auto;
    }

    select.form-select {
      padding-left: 9%;
    }

    label {
      color: #62737B;
    }
  }

  .form-control {
    position: relative;
    height: 50px;
    border-radius: 5px !important;

    &[type="text"],
    &[type="email"],
    &[type="mail"],
    &[type="tel"] {
      padding-left: 40px;
    }

    svg path {
      color: #faa41a;
      fill: #faa41a;
    }
  }

  .btn-cta {
    height: 100%;
  }
}

.bg-overlay {
  background: linear-gradient(rgba(0, 64, 105, 0.7), rgba(44, 115, 163, 0.7)) !important;
  z-index: 0;
}

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

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

  .text-mobile {
    display: none;
  }
}

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

  .extensao-img-wrapper {
    margin-left: -22%;
  }

  section.busca .form-group {
    max-width: none;
  }

  .diferenciais-section {
    padding-left: 0 !important;

    .btn-cta {
      width: 100%;
    }
  }

  .form-matricula {
    padding: 1.5rem;

    .btn-cta {
      font-size: 16px;
    }
  }

  .testimonials-bg {
    padding: 40px 0;
  }

  .newsletter-section {
    p {
      font-size: 20px;
    }
  }
}

@media (max-width: 768px) {

  section.hero {
    height: 90svh;
    overflow: hidden;

    img.topo {
      min-height: 90svh;
      height: 100%;
      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%;
  }
}