/* Reset CSS */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
#wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  grid-template-areas:
    "header"
    "main"
    "footer";
  background-color: #fff;
}
header {
  height: 40px;
  display: flex;
  align-items: center;
  background-color: #fff;
  color: #555555;
  justify-content: space-between;
  width: 1200px;
  margin: 0 auto;
  padding: 32px 0;
}

header > div > h1 {
  font-size: 18px;
}
main {
}
footer {
  background-color: #262626;
  color: #fff;
}
header ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}
header ul li {
  cursor: pointer;
  color: #555555;
  font-weight: 500;
}
header ul li:last-child {
  background-color: #0977d8;
  color: #fff;
  font-size: 14px;
  padding: 4px 12px;
}
.main-content {
  padding: 20px;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2.4rem;
  justify-content: space-between;
}
.main-right {
  flex-basis: 45%;
  padding: 2rem;
}
.main-right img {
  width: 100%;
  height: auto;
}
.main-left h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 4rem;
}
.sub-headlines img {
  width: 100%;
  height: auto;
  width: 140px;
}
.sub-headlines {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-evenly;
  padding: 3.6rem 0;
  align-items: center;
}
.sub-headlines > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
footer > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
.main-left button {
  background-color: #0977d8;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 2rem;
  font-weight: bold;
}
.sud-headlines > div > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  height: 140px;
}
.sub-image {
  height: 140px;
  text-align: center;
}
.sub-sub-headlines {
  width: 260px;
  text-align: center;
}
header ul li a {
  text-decoration: none;
  color: inherit;
}
/* section for popular courses */
.popular-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.popular h2 {
  position: relative;
  text-align: center;
}
.popular h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background-color: #0977d8;
  bottom: -10px;
  left: 570px;
}
.form {
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 8px;
}
.form h1 {
  font-size: 24px;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-group textarea {
  width: 100%;
}
.form button {
  background-color: #0977d8;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}
.form .form-group {
  display: flex;
}
.form label {
  flex-basis: 150px;
}
.form button {
  margin-top: 1rem;
  font-weight: bold;
}
.popular-courses {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 2.4rem;
}
.form_p {
  margin-bottom: 24px;
}
.success {
  color: green;
  font-weight: bold;
  margin-top: 1rem;
}
.error {
  color: red;
  font-weight: bold;
  margin-top: 1rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}
.container h1 {
  font-size: 32px;
  margin-bottom: 2rem;
}
