body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header {
  background-color: #fff;
}

.header .container {
  justify-content: space-between;
}

.logo img {
  width: 170px;
  height: 125px;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: #2d68a7;
}

h1 {
  color: #2d68a7;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 500px;
  font-size: 70px;
  margin-bottom: 20px;
}

h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #333;
  padding: 5%;
  font-weight: 500px;
  font-size: 25px;
}

.courses {
  background-color: #f8f8f8;
  color: #6d6868;
  padding: 10px 10%;
  padding-bottom: 5%;
}

.title-underline {
  width: 300px;
  height: 2px;
  background-color: #ccc;
  margin: 0 0 0 40%;
}
.courses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1600px;
  margin-top: 50px;
  width: 100%;
}

.courses-list-details {
  background-color: white;

  padding: 3%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-list-details:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.courses-list-details ul li {
  list-style: none;
  padding: 5px;
}

.courses-list-details li i {
  color: #2d68a7;
  margin-right: 10px;
}
.form {
  background-color: white;
  padding: 30px 50px;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

.form h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2d68a7;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-underline {
  width: 200px;
  height: 2px;
  background-color: #ccc;
  margin: 0 0 60px 250px;
}

.form .form-fields li {
  color: white;
  font-weight: 400;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 15px;
  padding: 0 40px 0 0;
}

.form .form-fields label {
  font-weight: 400;
  font-size: 12px;
  color: black;
}

.form .form-fields input,
textarea {
  width: 600px;
  height: 40px;
  border: 1px solid #777;
  margin: 5px auto 0px;
  outline: 0;
  padding-left: 15px;
}

.form .form-fields textarea {
  height: 150px;
  resize: none;
  border: 1px solid #777;
}

.form .form-fields button {
  color: black;
  display: block;
  justify-items: center;
  width: 180px;
  height: 40px;
  border: #777;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  margin: 15px auto;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.form .form-fields button:hover {
  transform: scale(1.1);
}

.social {
  width: 40%;
  padding: 20px;
}

.social p {
  font-size: 24px;
  font-weight: 600;
  color: #2d68a7;
}

.social-networks {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-networks img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.social-networks img:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {

  .form {
    flex-direction: column;
    padding: 20px;
  }

  .form .form-fields input,
  .form .form-fields textarea {
    width: 100%;
  }

  .social {
    width: 100%;
     margin-top: 30px;
   }
}

@media screen and (max-width: 575px){
  .form {
    padding: 15px;
  }

  .form h2 {
    font-size: 20px;
  }

  .form-underline {
    margin: 0 auto 30px;
  }

  .social-networks {
    flex-wrap: wrap;
  }

}