* {
  list-style: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}
.container .header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #6326f7;
  position: fixed;
  width: 100%;
  z-index: 10000;
}
.container .logo .img {
  width: 150px;
}
.container .navbar .ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
}
.container .navbar a {
  font-size: 25px;
  font-weight: bold;
  padding: 10px;
  color: white;
}
.container .navbar a:hover {
  background-color: #c8b4f9;
  color: white;
}
.active {
  background-color: #c8b4f9;
  color: white !important;
}
.container .join {
  font-size: 25px;
  font-weight: bold;
  padding: 10px;
  background-color: #c8b4f9;
  color: white;
  cursor: pointer;
  border-radius: 10px;
}
/* Basic dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 0;
  margin: 0;
  list-style: none;
  top: 45px;
  left: 60px;
  text-align: center;
  background-color: #b397f7;
}

.dropdown-content li a {
  color: black;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background-color: #6326f7;
}
.dropdown i {
  font-size: 20px;
}
/***************************************************************/
.home {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 225px;
  padding-top: 100px;
}
.home .cont {
  font-size: 25px;
}
.home .cont span {
  color: #6326f7;
}

.home .search {
  position: relative;
  text-align: center;
}
/* .search .inputsarch {
  outline: none;
  padding: 15px;
  border-radius: 10px;
  border: none;
  padding-right: 300px;
} */
.search {
  padding-top: 50px;
}
.search .inputsarch {
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  background-color: #c8b4f9;
  position: relative;
}

.search .btnseach {
  padding: 15px;
  border-radius: 15px;
  border: none;
  background-color: #6326f7;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 15px;
}
.search .btnseach:hover {
  background-color: #3e12a5;
}
/* Hide toggle on large screens */
.toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
.up {
  position: fixed;
  right: 15px;
  bottom: 100px;
  background-color: #3e12a5;
  color: white;
  padding: 20px;
  border-radius: 50%;
  z-index: 1000;
  transition: 0.4s;
  cursor: pointer;
  opacity: 0;
}
.CourcePage h1 {
  font-size: 200px !important;
  color: #6326f7;
}

.cources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
}

.cource {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cource:hover {
  transform: translateY(-10px);
}

.cource img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cource .txt {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cource .title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.cource .ins {
  font-size: 14px;
  color: #666;
}

.cource .rate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
}

.cource .price {
  font-size: 18px;
  color: #2b8a3e;
  font-weight: bold;
}

.cource button {
  background-color: #3e12a5;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border: none;
  border-radius: 10px;
}
.btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.btns i:hover {
  color: red;
}
.go {
  text-align: center;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a {
  padding: 10px 15px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #007bff;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination a:hover {
  background-color: #3e12a5;
  color: white;
  border-color: #3e12a5;
}

.pagination a.active {
  background-color: #3e12a5;
  color: white;
  border-color: #3e12a5;
  font-weight: bold;
}

.pagination .prev,
.pagination .next {
  font-weight: bold;
}
.red {
  color: red;
}
.container .join {
  font-size: 25px;
  font-weight: bold;
  padding: 10px;
  background-color: #c8b4f9;
  color: white;
  cursor: pointer;
  border-radius: 10px;
}
.container .register {
  display: flex;
  align-items: center;
  gap: 10px;
}
.container .logout {
  font-size: 25px;
  font-weight: bold;
  padding: 10px;
  background-color: #c8b4f9;
  color: white;
  cursor: pointer;
  border-radius: 10px;
  display: none;
}
.hello {
  color: white;
  font-size: 25px;
}
@media (max-width: 768px) {
  .CourcePage h1 {
    font-size: 50px !important;
    padding-top: 30px;
  }
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 10px;
  }
  .navbar {
    flex-direction: column;
    width: 100%;
    display: none; /* hide menu by default */
    background-color: #6326f7;
  }
  .show {
    display: flex; /* show when toggled */
    flex-direction: column;
    align-items: center;
  }
  .ul {
    display: flex; /* show when toggled */
    flex-direction: column;
    align-items: center;
  }
  .toggle {
    display: block; /* show toggle */
  }
  .home {
    flex-direction: column;
    padding: 20px !important;
  }
  .home .img {
    padding-top: 50px !important;
  }
  .home .img img {
    /* display: none; */
    width: 350px;
  }
  .home .cont h2 {
    font-size: 20px !important;
  }
  .logo .img {
    width: 75px !important;
  }
  /* .search .inputsarch {
    padding: 10px !important;
  } */
  .search .inputsarch {
    width: 100% !important;
    padding: 10px !important;
    max-width: 100% !important;
  }

  .search .btnseach {
    position: relative;
    right: 0;
    top: 95px;
    margin-top: 10px;
    width: 100%;
  }

  .home .search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .search .btnseach {
    position: absolute;
    right: -2px;
    padding: 10px !important;
  }
  .join {
    padding: 5px;
    font-size: 20px !important;
    border-radius: 10px;
  }

  .up {
    display: none !important;
  }
}
