@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap");
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}
:root {
  --primary: #14af48;
  --title: rgb(154, 8, 130);
  --white: #ffffff;
  --background: #ffffff;
  --text: #4c4c4c;
  --gray: #c4c4c4;
}
body {
  background-color: var(--background);
}
.container {
  max-width: 90%;
  margin: 0px auto;
  overflow: hidden;
}
.center {
  text-align: center;
}
/* Nav Component */
nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: sticky;
  top: 0px;
  background-color: var(--background);
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  width: 64px;
  height: auto;
  margin: 10px 5px;
}

Nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 15px 10px;
}
.menu ul li {
  list-style: none;
  margin: 10px;
}
.menu ul li a {
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.menu ul li:last-child a {
  background-color: var(--primary);
  color: var(--white);
  margin-right: 0px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.menu ul li:nth-last-child(2) a {
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

@media screen and (max-width: 1024px) {
  .menu ul li:last-child a {
    margin-right: 0px;
  }
  .menu ul li:nth-last-child(2) a {
    margin-right: 0px;
  }
  nav {
    grid-template-columns: 1fr;
  }
  .brand {
    justify-content: center;
  }
  .menu {
    display: none;
  }
}

/* Service Component */
.Courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0px auto;
  padding: 0px 0px 0px 5%;
  row-gap: 20px;
}
.course:hover {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.course {
  padding: 10px;
  width: 360px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  margin-bottom: 10px;
}
.course img {
  width: 300px;
  margin: 0px auto;
  display: block;
  object-fit: cover;
}
.course img:hover {
  transform: scale(1.1);
  transition: all 0.5s ease;
}
.type,
.tag {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
}
.tag p:nth-child(1) {
  background-color: var(--text);
  color: var(--white);
  padding: 5px 8px;
  border-radius: 5px;
  margin-right: 5px;
}
.tag p:nth-child(2) {
  color: var(--text);
  padding: 5px 5px;
  border: 2px solid var(--primary);
  border-radius: 5px;
}

.price p {
  font-size: 20px;
  font-weight: bold;
  color: rgb(191, 50, 7);
}
.title h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--title);
  margin-top: 10px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}
.details p {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.coursebtn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  gap: 15px;
}
.coursebtn button {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.coursebtn button:nth-child(2) {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.coursebtn button:hover {
  transform: scale(1.1);
  transition: all 0.5s ease;
 
}
@media screen and (max-width: 1300px) {
  .Courses {
    grid-template-columns: 1fr;
  }
  .course {
    width: 90%;
    justify-content: center;
  }
  .course img {
    width: 100%;
  }
}

/* instructor component */

.instructor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin: auto;
  text-align: center;
}

.title {
  color: var(--text);
  font-size: 18px;
}

button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}

a {
  text-decoration: none;
  font-size: 22px;
  color: black;
}

button:hover, a:hover {
  opacity: 0.7;
}



/* footer component */
footer{
  background-color: #2e3134;
}
.footer {
  padding: 30px 10px 10px 50px;
  color: var(--white);
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  width: 64px;
  height: auto;
  margin: 10px 5px;
}

.footer-logo h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--white);
}
.footer-logo p {
  font-size: 14px;
  color: var(--gray);
}
.footer ul li {
  list-style: none;
  margin: 10px;
}
.footer ul li a {
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
}

.footer ul li a:hover {
  color: var(--primary);
}
.copyright{
  background-color: #1e1e1e;
  padding: 15px 0px;
  text-align: center;
  color: var(--white);
  font-size: 14px;
}
@media screen and (max-width: 1024px) {
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-logo {
    flex-direction: column;
    justify-content: center;
  }
}
