* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, rgb(150, 235, 235), white); 
  background-attachment: fixed;   /* important */
  background-size: cover;
  padding-top: 80px;
}

.shadow-sm {
   position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 45px;
}


.login-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}

.login-btn:hover {
  background: #084298;
}


.nav-link {
  font-weight: 500;
  transition: 0.2s;
}

.nav-link:hover {
  color: #0d6efd;
}

.dropdown-custom {
  position: relative;
}


.dropdown-custom .dropdown-list {
  position: absolute;
  top: 55%;
  left: 0;
  /* background: #ffffff; */
  min-width: 100px;
  padding: 10px 0;
  border-radius: 10px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  list-style: none;
  z-index: 999;
}

.dropdown-custom:hover .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-custom .dropdown-list li a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
}



.mobile-slide-menu {
  position: fixed;
  top: 0;
  right: -280px; 
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: right 0.4s ease;
}


.mobile-slide-menu.active {
  right: 0;
}


.slide-header {
  border-bottom: 1px solid #ddd;
}


@media (min-width: 992px) {
  .mobile-slide-menu {
    display: none;
  }
}


.login-btn {
  border: none;
  background: #0d6efd;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}
.login-btn:hover {
  background: #084298;
}

/* section main */

.course-hero {
  position: relative;
  width: 100%;
  height: 450px;
  background: url('./image/education1.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 35, 126, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}

.course-hero-overlay h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.course-hero-overlay p {
  font-size: 20px;
  max-width: 700px;
  line-height: 1.5;
}


@media(max-width: 992px) {
  .course-hero {
    height: 400px;
  }

  .course-hero-overlay h1 {
    font-size: 38px;
  }

  .course-hero-overlay p {
    font-size: 18px;
  }
}

@media(max-width: 600px) {
  .course-hero {
    height: 300px;
  }

  .course-hero-overlay h1 {
    font-size: 28px;
  }

  .course-hero-overlay p {
    font-size: 16px;
  }
}


/* section course */

.course-section {
  padding: 60px 10%;
  background: #f7f9ff;
  font-family: "Poppins", sans-serif;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.course-header h2 {
  font-size: 30px;
  color: #1a237e;
  font-weight: 600;
}

.sort-select {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.course-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: .3s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  font-size: 18px;
  margin: 15px;
  color: #283593;
  height: 50px;
}

.rating {
  margin: 0 15px;
  font-size: 16px;
  color: #ff9800;
  letter-spacing: 1px;
}

.price {
  margin: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #1a237e;
}


@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-header {
    flex-direction: column;
    gap: 15px;
  }
}


/* section footer */


.edu-footer {
  background: #0a1b3c;
  color: #fff;
  padding: 60px 20px 20px;
  margin-top: 50px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}


.footer-col {
  width: 250px;
}

.footer-col img {
  width: 200px;
  filter: brightness(0) invert(1);
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
}


.footer-social a {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  margin-right: 12px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #1e90ff;
  transform: translateY(-4px);
}


.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #dcdcdc;
  font-size: 15px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #1e90ff;
  margin-left: 5px;
}


.footer-col p i {
  color: #1e90ff;
  margin-right: 8px;
}


.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #1e2a4f;
  font-size: 14px;
  color: #bdbdbd;
}


@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    width: 100%;
  }

  .footer-social {
    margin-top: 10px;
  }
}
