/* Reset básico */
* {
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

/* Nav */
header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: #588157;
  padding: 10px 20px;
  height: 120px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

.logo img {
  width: 6rem;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
}

nav ul li {
  margin-right: 5px;
  font-size: 1.2rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d9d9d9;
}

/* Banner */
.banner {
  position: relative;
  color: white;
  background-color: #f4f4f4;
}

#banner-container-text {
  background-color: #3a5a4071;
  position: absolute;
  width: 90%;
  left: 5%;
  bottom: 5%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  max-height: 110px;
  height: 100%;
  border-radius: 5px;
}

#banner-container-image img {
  width: 100%;
  height: auto;
}

#banner-container-title h2 {
  font-size: 2rem;
  font-weight: 500;
}

#banner-container-title h3 {
  font-size: 1.2rem;
  font-weight: normal;
}

.banner-container-input {
  width: 90%;
  max-width: 800px;
  max-height: 50px;
  display: flex;
  gap: 10px;
}

.banner-container-input select {
  flex: 1;
  border: none;
  border-bottom: 1px solid white;
  background-color: rgba(255, 255, 255, 0.116);
  font-size: 16px;
  color: #0000007c;
}

.banner-container-input select:focus {
  outline: none;
}

.banner-container-input button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-container-input button:hover {
  background-color: #344e41;
}

/*Cards Cursos */
#cards-main {
  padding: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #f4f4f4;
  gap: 40px;
}

#cards-main div {
  width: 100%;
  min-height: 300px;
  max-width: 500px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: justify;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 35px;
}

#cards-main h5 {
  font-size: 2rem;
  color: #344e41;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#cards-main p {
  font-size: 1.2rem;
  font-weight: lighter;
  margin-bottom: 30px;
}

#cards-main a {
  background-color: #669e64;
  text-decoration: none;
  color: white;
  border-radius: 20px;
  font-weight: 500;
  padding: 15px 20px;
  transition: all 0.5s ease;
  cursor: pointer;
  flex: 0 1 auto;
}

#cards-main a:hover {
  background-color: #344e41;
}

/*Carrossel */
.container {
  display: flex;
  background-color: #dad7cd;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 60px;
}

.carrossel {
  background-color: #dad7cd;
}

.card {
  flex: 1;
  margin: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.destino {
  padding: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.card h3 {
  margin: 10px 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.card p {
  padding: 0 10px;
  flex-grow: 1;
  text-align: center;
  margin-bottom: 30px;
}

.card a {
  text-decoration: none;
}

.card button {
  margin: 0 auto;
  padding: 10px;
  height: 40px;
  width: 200px;
  font-size: 12px;
  text-align: center;
  background-color: #669e64;
  color: white;
  border: none;
  border-radius: 21px;
  cursor: pointer;
  margin-bottom: 30px;
}

.card button:hover {
  background-color: #344e41;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    flex-wrap: wrap;
  }
  .card {
    flex: 1 1 100%;
  }
}

/* Blog */
#blog {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px;
  justify-content: center;
  background-color: #f4f4f4;
}

.blog-item {
  width: 100%;
  max-width: 600px;
  flex: 1 1 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  box-shadow: 0px 4px 10px rgb(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 30px;
  box-sizing: border-box;
  background-color: white;
}

.blog-item img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.blog-item h3 {
  width: 100%;
  max-width: 500px;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
}

.blog-item p {
  width: 100%;
  max-width: 500px;
  font-size: 1rem;
  color: #555;
  margin-bottom: 8px;
}

.blog-item a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.5s ease;
}

.blog-item a:hover {
  color: #344e41;
}

/* Dúvidas */
#duvidas-container {
  background-color: #dad7cd;
  padding: 50px;
}

#duvidas-container h2 {
  font-size: 2rem;
  color: #344e41;
  font-style: italic;
  padding-bottom: 20px;
}

#duvidas-container h3,
#duvidas-container p {
  font-size: 1.2rem;
  padding-bottom: 20px;
}

/* Fale Conosco */
#fale-conosco {
  display: flex;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

#fale-conosco form {
  width: 50%;
  padding: 50px;
  box-sizing: border-box;
}

.imagem-form {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  box-sizing: border-box;
}

.imagem-form img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#fale-conosco fieldset {
  background-color: #f4f4f4;
  border: none;
  border-radius: 15px;
  padding: 30px;
}

#fale-conosco h2 {
  color: #344e41;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
  padding-bottom: 10px;
}

#fale-conosco div {
  padding: 15px 0px 15px 30px;
}

.input-form input[type="text"],
.input-form input[type="email"] {
  width: 90%;
  outline: none;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: lighter;
}

.input-form input[type="submit"] {
  background-color: #669e64;
  color: white;
  width: 90%;
  outline: none;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.input-form input[type="submit"]:hover {
  background-color: #344e41;
}

.select-form select {
  width: 90%;
  outline: none;
  border: none;
  padding: 5px 7px;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: lighter;
  color: gray;
}

.radio-form h4 {
  color: #3a5a40;
  padding-bottom: 10px;
  font-size: 1.2rem;
}
.radio-form label {
  padding-right: 10px;
  font-size: 1rem;
  cursor: pointer;
  vertical-align: 10%;
  font-weight: lighter;
}

/* Footer */
.footer-newsletter {
  background-color: #588157;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: white;
  height: 15vh;
}

#footer-newsletter-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  flex: 0 1 auto;
}

#footer-newsltter-form {
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 auto;
}

#footer-newsletter-form input[type="text"],
#footer-newsletter-form input[type="email"] {
  border: none;
  border-bottom: 1px solid white;
  background-color: transparent;
  outline: none;
  font-size: 0.8rem;
  color: white;
  width: 15vw;
  padding-bottom: 5px;
  margin-right: 20px;
}
#footer-newsletter-form input[type="text"]::placeholder,
#footer-newsletter-form input[type="email"]::placeholder {
  color: white;
  font-size: 1rem;
}

#footer-newsletter-form input[type="submit"] {
  background-color: #344e41;
  border-radius: 10px;
  padding: 10px;
  width: 100px;
  border: none;
  transition: all 0.5s ease;
  cursor: pointer;
  color: white;
}

#footer-newsletter-form input[type="submit"]:hover {
  background-color: #669e64;
}

#social-links {
  background-color: #d9d9d9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#social-links,
#social-links ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  padding: 30px;
}

#social-links h5 {
  color: #344e41;
  font-size: 15px;
}

#social-links ul li {
  padding-right: 20px;
  display: flex;
}

#social-links ul li img {
  width: 1.2vw;
}

#social-links ul li a {
  text-decoration: none;
  color: #344e41;
  padding-left: 5px;
}

.footer-links {
  display: flex;
  justify-content: center;
  padding-top: 50px;
  background-color: #dad7cd;
}

#footer-links-img img {
  width: 70%;
  padding-bottom: 20px;
}

#footer-links-institucional,
#footer-links-estudar,
#footer-links-trabalhar,
#footer-links-idiomas {
  padding-left: 50px;
}

#footer-links-institucional h4,
#footer-links-estudar h4,
#footer-links-trabalhar h4,
#footer-links-idiomas h4 {
  color: #588157;
  text-transform: uppercase;
  padding-bottom: 10px;
}

#footer-links-institucional ul li,
#footer-links-estudar ul li,
#footer-links-trabalhar ul li,
#footer-links-idiomas ul li {
  list-style: none;
  font-weight: lighter;
}

#footer-links-institucional ul li a,
#footer-links-estudar ul li a,
#footer-links-trabalhar ul li a,
#footer-links-idiomas ul li a {
  text-decoration: none;
  color: black;
}

.footer-rights {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #344e41;
  color: white;
  padding: 20px;
}

.footer-rights img {
  width: 2%;
}

.footer-rights small {
  padding-left: 20px;
}

@media screen and (max-width: 1565px) {
  footer,
  button,
  #footer-newsletter-input-name input::placeholder,
  #footer-newsletter-input-email input::placeholder {
    font-size: 1rem;
  }
}

@media screen and (max-width: 963px) {
  footer,
  button,
  #footer-newsletter-input-name input::placeholder,
  #footer-newsletter-input-email input::placeholder {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 845px) {
  nav ul li {
    font-size: 1.2rem;
  }

  header img {
    max-width: 10vw;
  }

  footer,
  button,
  #footer-newsletter-input-name input::placeholder,
  #footer-newsletter-input-email input::placeholder {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 535px) {
  nav ul li {
    font-size: 0.5rem;
  }

  header img {
    max-width: 10vw;
  }

  footer,
  button,
  #footer-newsletter-input-name input::placeholder,
  #footer-newsletter-input-email input::placeholder {
    font-size: 0.4rem;
  }
}

@media screen and (max-width: 325px) {
  footer,
  button,
  #footer-newsletter-input-name input::placeholder,
  #footer-newsletter-input-email input::placeholder {
    font-size: 0.2rem;
  }
}

.error-message {
  color: red;
  font-size: 0.9em;
  display: none; /* Oculta as mensagens de erro inicialmente */
  margin-top: 5px;
}

.sucesso-message {
  color: green;
  font-size: 0.9em;
  display: none; /* Oculta as mensagens de erro inicialmente */
  margin-top: 5px;
}
