/* =========================
   HERO
========================= */

.courses-hero{
  width:100%;
  padding:90px 20px;
  text-align:center;
}

.courses-hero h1{
  font-size:58px;
  margin-bottom:20px;
}

.courses-hero p{
  color:var(--text-light);
  font-size:18px;
  margin-bottom:35px;
}

/* =========================
   SEARCH
========================= */

.search-box{
  max-width:600px;
  margin:auto;
}

.search-box input{
  width:100%;
  height:60px;
  border:none;
  outline:none;
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-radius:16px;
  padding:0 20px;
  color:white;
  font-size:16px;
}

/* =========================
   FILTERS
========================= */

.filter-section{
  padding:0 20px 50px;
}

.filter-buttons{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* SELECT */

.category-select{
  width:260px;
  height:55px;
  border:none;
  outline:none;
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-radius:14px;
  padding:0 18px;
  color:white;
  font-size:15px;
  cursor:pointer;
}

.category-select option{
  background:#0F172A;
  color:white;
}

/* =========================
   COURSES SECTION
========================= */

.courses-section{
  padding:0 80px 80px;
}

.courses-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

/* =========================
   COURSE CARD
========================= */

.course-card{
  background:var(--card-bg);
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border-color);
  transition:var(--transition);
}

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

/* IMAGE */

.course-image{
  width:100%;
  height:230px;
  overflow:hidden;
}

.course-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* CONTENT */

.course-content{
  padding:25px;
}

/* LEVEL */

.course-level{
  display:inline-block;
  background:rgba(108,99,255,0.15);
  color:var(--primary-color);
  padding:8px 16px;
  border-radius:50px;
  font-size:14px;
  margin-bottom:18px;
}

/* TITLE */

.course-title{
  font-size:28px;
  margin-bottom:15px;
  line-height:1.4;
}

/* DESCRIPTION */

.course-description{
  color:var(--text-light);
  line-height:1.8;
  margin-bottom:25px;
  min-height:80px;
}

/* FOOTER */

.course-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

/* PRICE */

.course-price{
  font-size:28px;
  font-weight:700;
  color:#10B981;
}

/* BUTTON */

.course-btn{
  border:none;
  outline:none;
  background:var(--primary-color);
  color:white;
  padding:13px 20px;
  border-radius:14px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
}

.course-btn:hover{
  opacity:0.9;
}

/* =========================
   LOADER
========================= */

.courses-loader{
  width:100%;
  padding:80px 20px;
  text-align:center;
  font-size:22px;
  color:var(--text-light);
}

/* =========================
   EMPTY STATE
========================= */

.empty-courses{
  width:100%;
  padding:80px 20px;
  text-align:center;
}

.empty-courses h3{
  font-size:34px;
  margin-bottom:15px;
}

.empty-courses p{
  color:var(--text-light);
}

/* =========================
   FOOTER
========================= */

.footer{
  padding:30px 20px;
  text-align:center;
  border-top:1px solid var(--border-color);
  color:var(--text-light);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

  .courses-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

@media(max-width:768px){

  .courses-grid{
    grid-template-columns:1fr;
  }

  .courses-section{
    padding:0 20px 50px;
  }

  .courses-hero h1{
    font-size:38px;
  }

  .course-title{
    font-size:22px;
  }

  .course-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .course-btn{
    width:100%;
  }

}