/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

.navbar {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: #1AB69D; */
  background-color:#053655;
  color: white;
  padding: 15px 20px;
}

header .logo {
  font-size: 24px;
  font-weight: 700;
}

/* header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
 */


.nav-links {
  font-family: 'Poppins', sans-serif;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.try-free-btn {
  background: white;
  /* color: #1AB69D; */
  color: #053655;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.main-container {
  display: flex;
  gap: 20px;
  margin: 20px;
}

/* Sidebar Styles */
.sidebar {
  font-family: 'Poppins', sans-serif;
  width: 20%;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

.sidebar h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

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

.sidebar li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.sidebar input[type="checkbox"] {
  margin-right: 10px;
}

.sidebar label {
  font-size: 0.9rem;
  color: #555;
}

.sidebar button {
  width: 100%;
  padding: 10px 15px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.apply-filter {
  background-color: #053655;
  color: white;
}

.reset-filter {
  background-color: #f5f5f5;
  color: #333;
  margin-top: 10px;
}

.reset-filter:hover {
  background-color: #e0e0e0;
}

.apply-filter:hover {
  /* background-color: #16a085; */
  background-color: #053655;
}


/* Sidebar Filters */
.filter-group {
  margin-bottom: 20px;
}

.filter-header {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header::after {
  content: "▼";
  font-size: 0.8rem;
  color: #666;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.filter-header.collapsed::after {
  transform: rotate(-90deg);
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: block;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-list.collapsed {
  display: none;
}

.filter-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.filter-list input[type="checkbox"] {
  margin-right: 10px;
}

.sidebar button {
  width: 100%;
  padding: 10px 15px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* 
.sidebar {
  width: 25%;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.sidebar li {
  margin-bottom: 10px;
} */

.course-section {
  width: 75%;
}

.course-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.view-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.view-options button {
  background-color: #ddd;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.view-options .active {
  background-color: #007bff;
  color: white;
  border-color: #adc6ff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
/* 
.course-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.course-details {
  padding: 15px;
} */

.label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px;
  border-radius: 3px;
  color: white;
  margin-bottom: 10px;
  display: inline-block;
}

.beginner {
  background: #2aca78;
}

.intermediate {
  background: #74b7f6;
}

.expert {
  background: #FF6347;
}

.all-levels {
  background: #ADD8E6;
}

/* .course-details h3 {
  font-size: 1rem;
  margin: 10px 0;
}

.course-details .price {
  color: #1AB69D;
  font-weight: bold;
  margin-bottom: 10px;
} */
/* General Card Styling */
.course-card {
  font-family: 'Poppins', sans-serif;
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Course Image */
.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Course Details */
.course-details {
  padding: 15px;
  text-align: justify;
  z-index: 2;
  position: relative;
}

.course-details h3 {
  text-align: center;
  font-size: 1rem;
  margin: 10px 0;
  color: #053655;
}

.course-details .price {
  /* color: #1AB69D; */
  color: rgba(0, 0, 0, 0.85);
  text-align: justify;
  font-weight: bold;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  text-align: justify;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #242424;
}

/* Hover Overlay */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(26, 182, 157, 1); Fully opaque green */
  background: #389edd ;
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: left;
  padding: 20px;
  text-align: left;
  transition: opacity 0.3s ease;
  z-index: 3;
  overflow: hidden; /* Prevent text overflow */
  box-sizing: border-box; /* Include padding in width/height */
}

.course-card:hover .hover-overlay {
  opacity: 1;
}

.hover-overlay .label {
  background: #f9f9f9;
  color: #053655;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  align-self: flex-start
}

.hover-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #dde7ed;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.rating span {
  font-size: 1rem;
}

.rating p {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #202021;;

}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
}


.hover-overlay .description {
  font-size: 0.9rem;
  margin: 15px 0;
  /* max-width: 250px; */
  word-wrap: break-word;
  overflow: hidden;
  color: #d4d3d3;
}

.hover-overlay .course-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #c9c7c7;
}

.enroll-now {
  background: #f84e56;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.enroll-now:hover {
  background: #ff6a6e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Hover Effect */
.course-card:hover .hover-overlay {
  opacity: 1;
}

/* Heart Icon */
.favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
}

.favorite .heart-icon {
  color: #f84e56;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.page-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background-color: #053655;
  color: white;
}

.page-btn.active {
  background-color: #053655;
  color: white;
  cursor: default;
}

.page-btn.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}


/* General List View Styles */
.course-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
}

.list-image {
  position: relative;
  flex: 0 0 150px;
  max-width: 150px;
  border-radius: 10px;
  overflow: hidden;
}

.list-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.list-image .duration {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f84e56;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
}

.grid-image .duration {
  font-family: 'Poppins', sans-serif;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #aaf6be;
  color: #2c2929;
  padding: 4px 8px;
  /* font-size: 0.8rem; */
  font-weight: 500;
  font-size: 13px;
  border-radius: 3px;
  display: block;
  text-transform: capitalize;
}

.list-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.list-header h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.list-header .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #053655;
}

.rating {
  display: flex;
  align-items: left;
  margin-bottom: 10px;
}

.rating span {
  font-size: 1rem;
  color: #ffc107;
}

.hover-overlay .rating p {
  font-size: 0.9rem;
  margin-left: 10px;
  color: #c9c7c7;;
}

.description {
  font-size: 0.9rem;
  color: #242424;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  font-size: 0.9rem;
  color: #2e2d2d;
}

/* View Option Buttons */
.view-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.view-options button {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
}

.view-options .active {
  font-weight: bold;
  color: #053655;
  text-decoration: underline;
}

/* Grid View */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* List View */
.course-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Media Queries */
@media screen and (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .course-section {
    width: 100%;
  }
}