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


@-webkit-keyframes ripple_2 {
  0% {
      -webkit-transform: scale(1);
      transform: scale(1);
  }

  75% {
      -webkit-transform: scale(3);
      transform: scale(3);
      opacity: 1;
  }

  100% {
      -webkit-transform: scale(4);
      transform: scale(4);
      opacity: 0;
  }
}

@keyframes ripple_2 {
  0% {
      -webkit-transform: scale(1);
      transform: scale(1);
  }

  75% {
      -webkit-transform: scale(3);
      transform: scale(3);
      opacity: 1;
  }

  100% {
      -webkit-transform: scale(4);
      transform: scale(4);
      opacity: 0;
  }
}

@-webkit-keyframes slide-up {
  0% {
      -webkit-transform: translate3d(0, 3rem, 0);
      transform: translate3d(0, 3rem, 0);
      opacity: 0;
      filter: alpha(opacity=0);
      transition-property: opacity, transform;
      transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
      opacity: 1;
      filter: alpha(opacity=100);
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
  }
}

@keyframes slide-up {
  0% {
      -webkit-transform: translate3d(0, 3rem, 0);
      transform: translate3d(0, 3rem, 0);
      opacity: 0;
      filter: alpha(opacity=0);
      transition-property: opacity, transform;
      transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
      opacity: 1;
      filter: alpha(opacity=100);
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
  }
}

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



/* Header */
.header {
  font-family: 'Poppins', sans-serif;
  background-color: white;
  /* width: 100%; */
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 95% !important;
}

/* Logo */
.header .logo img {
  max-height: 50px; /* Adjust logo size */
}

.header .navbar { 
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.header .navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  
}

.header .navbar ul li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.header .navbar ul li a:hover {
  color: #053655;
}

.header .btn-primary {
  background-color: #053655;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header .auth-buttons { 
  border: none;
  display: flex;
  padding-right: 0px;
  gap: 1.5rem;
}

.header .btn-primary:hover {
  background-color: #0a9cf1;
  color: 002033;

}


/* Menu Button */
.menu-button {
  display: none; /* Hidden on larger screens */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 10;
}

.menu-icon {
  width: 25px;
  height: 2px;
  background-color: #333;
  display: block;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  width: 25px;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.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: #007bff;
}


/* 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;
}

.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 button:hover {
  background-color: #053655;
  color: #ffffff;
  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;
}

.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;
}

/* General Card Styling */
.course-card {
  font-family: 'Poppins', sans-serif;
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 22rem;
  /* padding: 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: left;
  font-size: 1rem;
  margin: 10px 0;
  color: #053655;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2; 
  -webkit-box-orient: vertical;
}

.course-details h3 a:visited {
  color: inherit; /* Match the color of unvisited links */
}

.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;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2; 
  -webkit-box-orient: vertical;
}

.hover-overlay h3 a {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #dde7ed;
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2; 
  -webkit-box-orient: vertical;
}

.hover-overlay h3 a:visited {
  color: inherit; /* Match the color of unvisited links */
}

.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-height: 120px;
  /* max-width: 250px; */
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
          line-clamp: 3; 
  -webkit-box-orient: vertical;
  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 {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}


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

.page-item:hover {
  list-style-type: none;
  background-color: #bdd0dc;
}

.page-item.active {
  list-style-type: none;
  background-color: #053655;
  color: white;
  cursor: default;
}

.page-item.disabled {
  list-style-type: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.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;
}

.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-image .duration {
  font-family: 'Poppins', sans-serif;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f84e56;
  color: #fff;
  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-details .description {
  font-size: 0.9rem;
  margin: 15px 0;
  max-height: 80px;
  /* max-width: 250px; */
  word-wrap: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2; 
  -webkit-box-orient: vertical;
  color: #858484;
}

.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;
}

/* 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;
}


/* Modal Customizations */
.modal-dialog {
  max-width: 70%; /* Adjust modal width */
}

.modal-content {
  border-radius: 10px; /* Rounded corners for the modal */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
}

.modal-header {
  background-color: #007bff; /* Modal header background color */
  color: white; /* Header text color */
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.modal-title {
  font-weight: bold;
}

.modal-body {
  padding: 20px; /* Add spacing inside the modal */
}

/* Navigation Tabs */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
  color: #007bff; /* Default tab color */
  font-weight: bold;
  border: 1px solid #dee2e6; /* Add border around tabs */
  border-radius: 5px;
  margin-right: 5px;
}

.nav-tabs .nav-link.active {
  color: white;
  background-color: #007bff;
  border-color: #007bff; /* Active tab styling */
}

/* Form Customizations */
.form-group label {
  font-weight: bold; /* Make labels bold */
}

.required {
  color: red; /* Highlight required fields with a red asterisk */
}

.form-control {
  border-radius: 5px; /* Rounded input fields */
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

.form-control:focus {
  border-color: #007bff; /* Change border color on focus */
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5); /* Add blue glow on focus */
}

/* Buttons */
button.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  padding: 10px 15px;
}

button.btn-primary:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transition: background-color 0.3s;
}

button.close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000;
}

button.close:hover {
  color: #007bff;
  transition: color 0.3s;
}

/* Tabs Content */
.tab-pane {
  padding: 20px;
}

.tab-pane h3 {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 15px;
}

.tab-pane .form-group {
  margin-bottom: 15px;
}

/* Dynamic Image Display */
#box-image {
  width: 80px;
  height: 80px;
  border: 1px solid #ebebeb;
  object-fit: cover; /* Ensure the image scales properly */
  border-radius: 5px;
}

/* Navigation Buttons */
button.next, button.prev, button.submit {
  margin-top: 20px;
}

button.next {
  float: right;
}

button.prev {
  float: left;
}

button.submit {
  float: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-group.col-sm-3 {
    width: 100%; /* Full-width form groups on small screens */
  }

  .nav-tabs .nav-link {
    margin-bottom: 10px;
  }
}


/* Media Queries */
/* For Tablets (768px to 1024px) */
@media (max-width: 1024px) {

  .header .container {
      flex-direction: column; /* Stack logo, navbar, and button */
      align-items: flex-start;
  }
  
  .navbar ul {
      flex-wrap: wrap; /* Allow wrapping of menu items */
      gap: 15px; /* Reduce gap between menu items */
  }

  .navbar ul li a {
      font-size: 14px; /* Smaller font size for tablets */
  }

  .btn-primary {
      font-size: 14px; /* Adjust button font size */
      padding: 8px 16px; /* Reduce button padding */
      margin-top: 10px; /* Add spacing for stacked layout */
  }
}

@media screen and (max-width: 768px) {

  .header .container {
    align-items: stretch; /* Ensure full width alignment */
  }

  .menu-button {
      display: block; /* Show the menu button */
  }

  .navbar {
      max-height: 0; /* Hide the navbar by default */
      overflow: hidden;
      opacity: 0;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      background: #fff;
      position: absolute;
      top: 100%;
      left: 0;
      padding: 10px 20px;
      border: 1px solid #ddd;
      z-index: 9;
      transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .navbar.open {
      max-height: 500px; /* Enough height to display menu items */
      opacity: 1;
  }

  .navbar ul {
      flex-direction: column; /* Stack menu items vertically */
      width: 100%; /* Full width for menu */
      gap: 10px; /* Smaller gap between items */
      margin-top: 10px; /* Add spacing below the logo */
  }

  .navbar ul li a {
      font-size: 14px; /* Smaller font size */
      text-align: left; /* Align text to the left */
      padding: 8px 0; /* Add padding for better touch targets */
  }

  .btn-primary {
    font-size: 14px; /* Smaller font size */
    padding: 10px 15px; /* Adjust button padding */
    margin-top: 15px; /* Add space between menu and button */
    width: 100%; /* Full width button for mobile */
    text-align: center;
  }

  .main-container {
    flex-direction: column;
  }

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

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

/* For Very Small Phones (Up to 480px) */
@media (max-width: 480px) {

  .header {
      padding: 10px; /* Reduce header padding */
  }


  .menu-button {
      display: block; /* Show the menu button */
  }

  .navbar {
      max-height: 0; /* Hide the navbar by default */
      overflow: hidden;
      opacity: 0;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      background: #fff;
      position: absolute;
      top: 100%;
      left: 0;
      padding: 10px 20px;
      border: 1px solid #ddd;
      z-index: 9;
      transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .navbar.open {
      max-height: 500px; /* Enough height to display menu items */
      opacity: 1;
  }

  .logo img {
      max-height: 40px; /* Reduce logo size */
  }

  .navbar ul {
      gap: 8px; /* Minimal gap between menu items */
  }

  .navbar ul li a {
      font-size: 12px; /* Small font size for very small screens */
  }

  .btn-primary {
      font-size: 12px; /* Smaller font size for button */
      padding: 8px 10px; /* Adjust button padding */
  }

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

}