/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f9f9f9;
  line-height: 1.6;
}
html{
  scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar {
  background-color: #3367d6;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 10px 0;
}

.navcontainer {
  width: 97%;
  margin: auto;
  display: flex;
  justify-content:space-between;
  align-items: center;
}
.logo{
  display: flex;
  align-items: center;
}
.logo img {
  max-width: 150px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
}

.nav-links li a:hover {
  text-decoration : underline #fff;
}


.navbar-button {
  display: flex;
}

.nav-links li .btn-auth{
  background-color: #fff; /* Orange color */
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  color: black;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links li .btn-auth:hover {
  background-color: #ebf1ff; 
  color: #000;
  text-decoration: none;
}

/* Dropdown menu styling */
.dropdown {
  position: relative;
  transition: all ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;

}

.dropdown-menu li {
  list-style: none;
  padding: 10px 20px;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #1756df; /* Same as navbar background color */
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #ebf1ff;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}




/* Hamburger for Mobile View */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger i {
  font-size: 24px;
}

/* Sidebar Styling */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Hidden initially */
  width: 250px;
  height: 100%;
  background-color: #fff;
  transition: left 0.3s ease;
  z-index: 999; /* On top of everything */
  padding-top: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar ul li a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 0;
}

.sidebar ul li a:hover {
  background-color: #4a7ded;
  padding-left: 10px;
  transition: padding 0.3s ease;
}

/* Show Sidebar when active */
.sidebar.active {
  left: 0;
}

@media screen and (max-width: 768px) {
  .nav-links {
      display: none;
  }

  .hamburger {
      display: block;
      color: white;
  }
}

.header {
  color: black;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
}
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px;
}
.search-bar input {
  width: 300px;
  padding: 10px;
  border-radius: 5px 0 0 5px;
  border: 1px solid #d1d5db;
  outline: none;
}
.search-bar button {
  padding: 10px 20px;
  border-radius: 0 5px 5px 0;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  cursor: pointer;
}
.search-bar button:hover {
  background-color: #2563eb;
}
.course-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.course-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}
.course-card:hover {
  transform: translateY(-5px);
}
.course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.course-info {
  padding: 20px;
}
.course-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}
.course-provider {
  color: #6b7280;
}
.course-rating {
  margin: 10px 0;
}
.rating-star {
  color: #fbbf24;
}
.course-more-info {
  color: #3b82f6;
  cursor: pointer;
}
.load-more {
  text-align: center;
  margin: 20px;
}
.load-more button {
  background-color: #3b82f6;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.load-more button:hover {
  background-color: #2563eb;
}

/* Footer Section */
footer {
  background: linear-gradient(to right, #3060c6, #3075e5);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 22%;
  margin: 10px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p {
  font-size: 14px;
  line-height: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #1e90ff;
}

.social-links a {
  display: inline-block;
  color: #fff;
  margin-right: 10px;
  font-size: 20px;
}

.social-links a:hover {
  color: #1e90ff;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: #bbb;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    text-align: left;
  }

  .footer-col {
    margin-bottom: 20px;
  }
}
