*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial;
}

body{
  background:#f5f7fb;
  color:#222;
}

/* NAVBAR */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 60px;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  position:sticky;
  top:0;
  z-index:100;
}

.logo{
  font-size:28px;
  font-weight:bold;
  color:#6c2bd9;
}

.search-box{
  background:#f1f1f1;
  padding:10px 20px;
  border-radius:30px;
  width:40%;
  display:flex;
  align-items:center;
}

.search-box input{
  border:none;
  background:none;
  outline:none;
  width:100%;
  font-size:16px;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:20px;
}

.nav-menu a{
  text-decoration:none;
  color:#333;
  font-weight:500;
}

.login-btn{
  padding:10px 20px;
  border:none;
  border-radius:8px;
  background:#6c2bd9;
  color:white;
  cursor:pointer;
}

/* HERO */
.hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:70px 60px;
  gap:50px;
}

.hero-text{
  flex:1;
}

.hero-text h1{
  font-size:55px;
  margin-bottom:20px;
  line-height:1.2;
}

.hero-text p{
  font-size:18px;
  margin-bottom:30px;
  color:#555;
}

.hero-text button{
  padding:15px 30px;
  border:none;
  background:#6c2bd9;
  color:white;
  border-radius:10px;
  font-size:18px;
  cursor:pointer;
}

.hero-image{
  flex:1;
}

.hero-image img{
  width:100%;
  border-radius:20px;
}

/* CATEGORY */
.categories{
  padding:20px 60px;
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.categories button{
  padding:12px 22px;
  border:none;
  border-radius:30px;
  background:white;
  cursor:pointer;
  transition:0.3s;
}

.categories button:hover{
  background:#6c2bd9;
  color:white;
}

/* COURSES */
.courses{
  padding:40px 60px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.course-card{
  background:white;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  transition:0.3s;
}

.course-card:hover{
  transform:translateY(-10px);
}

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

.course-content{
  padding:20px;
}

.course-content h3{
  margin-bottom:10px;
}

.course-content p{
  color:#666;
  margin-bottom:15px;
}

.rating{
  margin-bottom:15px;
}

.price{
  font-size:22px;
  font-weight:bold;
  color:#6c2bd9;
}

/* FOOTER */
footer{
  background:#111827;
  color:white;
  text-align:center;
  padding:50px 20px;
  margin-top:50px;
}

.socials{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:20px;
  font-size:24px;
}

/* RESPONSIVE */
@media(max-width:900px){

  .navbar{
    flex-direction:column;
    gap:20px;
    padding:20px;
  }

  .search-box{
    width:100%;
  }

  .hero{
    flex-direction:column;
    padding:40px 20px;
  }

  .hero-text h1{
    font-size:40px;
  }

  .courses{
    padding:20px;
  }

  .categories{
    padding:20px;
  }
}