/* Master div styling */
.master-div {
  display: flex;
  flex-direction: column; /* Stack child divs vertically */
  align-items: flex-start; /* Align child divs to the start (left) */
  gap: 10px; /* Space between child divs */
  padding: 20px; /* Optional: Add padding inside the master div */
  /*background-color: #f0f0f0; /* Optional: Background color for the master div */
  /*border: 1px solid #ccc; /* Optional: Border for the master div */
  max-width: 1295px; /* Optional: Set a maximum width for the master div */
  margin: 0 auto; /* Optional: Center the master div horizontally */
}





.courses-in-row {
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: row;
  overflow: hidden;
  align-items: center;
  scrollbar-width: none;
  max-width: 1255px;
  width: max-content;
  position:relative;
  justify-content: center;
}

/* Optional: Hide scrollbar for a cleaner look */
.courses-in-row::-webkit-scrollbar {
  display: none; /* Hides scrollbar for WebKit browsers */
}

/* Cards wrapper styling */
.cards-wrapper {
  display: flex;
  /*overflow-x: auto;  Hide the scrollbar */
  scroll-behavior: smooth; /* Smooth scrolling */
  padding: 0 0 50px 0; /* Optional: Add some padding */
  gap:10px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  flex-wrap: nowrap;
  left: 200px;
}


/* Scroll button styling */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1; /* Ensure buttons are above the cards */
  opacity: 50%;
}

.scroll-button.left {
  left: 1px;
}

.scroll-button.right {
  right: 1px;
}

/* Hide buttons when not needed */
.scroll-button.hidden {
  display: none;
}


.heading_div {
  display: flex;
  position:relative;
  width: 100%;
  justify-content: space-between;
}


.crs_list_heading {
  display: flex;
  align-items: center;
  font-family: raleway;
  font-size: 20px;
  color: black;
  font-weight: 700;
  
}

.crs_list_heading_viewall {
  display: flex;
  padding: 5px 10px 5px 10px;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  float: right;
  font-size: 13px;
  align-items: flex-end;  
}





.card {
  width: 200px;
  background-color: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /*transition: all 0.3s ease;*/
}

.card:hover {
  /*transform: translateY(-10px) rotateY(5deg);*/
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
  height: 120px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  position: relative;
  overflow: hidden;
}

.card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.1) 50%,
    transparent
  );
  /*transform: rotate(45deg);
  animation: shine 3s infinite;*/
}
/*
@keyframes shine {
  0% {
    transform: translateX(-50%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}*/

.card-content {
  padding: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 185px;
  height: 1px;
  background-color: #4f46e5;
  transition: width 0.7s ease;
}

.card:hover .card-title::after {
  width: 100px;
}

.card-description {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.card-tag {
  font-size: 9px;
  color: #4f46e5;
  background-color: #eef2ff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.card-tag:hover {
  background-color: #4f46e5;
  color: #ffffff;
  transform: translateY(-2px);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.card-stats {
  display: flex;
  gap: 16px;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
 font-weight: 600;
}

.card-stat-icon {
  width: 20px;
  height: 20px;
  fill: gold;
}

.card-button {
  display: inline-block;
  padding: 5px 10px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  Opacity: 40%;
}

.card-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.4s ease;
}

.card-button:hover::before {
  left: 100%;
}

.card-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
  opacity:95%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
/*
.card {
  animation: float 6s ease-in-out infinite;
}
*/

/* If legacy banner is still in the DOM, keep it hidden */
.slideshow-container { display: none !important; }
