.popular-courses .item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-courses-area .thumb img {
  height: 400px; /* Adjust to your layout */
  object-fit: cover;
  width: 100%;
}

.popular-courses .thumb img {
  height: 200px; /* Adjust to your layout */
  object-fit: cover;
  width: 100%;
}

.course-description {
  position: relative;
  min-height: 100px;
}

.description-text {
  max-height: 80px; /* Adjust as needed */
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.description-text.expanded {
  max-height: none;
}

.see-more {
  display: inline-block;
  color: #007bff;
  cursor: pointer;
  margin-top: 5px;
}

.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    width: 180px;
    height: -webkit-fill-available;
    z-index: 1000;
}

.ribbon {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  line-height: 20px;
  padding: 5px 15px;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  position: absolute;
  text-transform: uppercase;
}

.ribbon-trial {
  background-color: #dc3545;
  right: -55px;
  top: 30px;
  transform: rotate(45deg);
  width: 200px;
  font-size: 18px; /* Increased from 14px to 18px */
}

.ribbon-demo {
  background-color: #dc3545; /* Changed to match the trial ribbon */
  right: -30px;
  top: 30px;
  transform: rotate(45deg);
  width: 250px;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: transparent;
}

.ribbon-trial::before {
  border-width: 0 10px 10px 0;
  border-right-color: #b02a37;
  left: 0;
  bottom: -10px;
}

.ribbon-trial::after {
  border-width: 0 0 10px 10px;
  border-left-color: #b02a37;
  right: 0;
  bottom: -10px;
}

.ribbon-demo::before {
  border-width: 0 10px 10px 0;
  border-right-color: #b02a37; /* Changed to match the trial ribbon */
  left: 0;
  bottom: -10px;
}

.ribbon-demo::after {
  border-width: 0 0 10px 10px;
  border-left-color: #b02a37; /* Changed to match the trial ribbon */
  right: 0;
  bottom: -10px;
}
/* Ensure header has proper positioning to contain the ribbons */
nav {
  /*position: relative;*/
  /*overflow: hidden;*/ /* This will contain the ribbons */
}

/* Adjust navbar to account for ribbon space */
.navbar {
  padding-top: 20px; /* Add some space at the top for ribbons */
}

.ribbon-wrapper-course {
  z-index: 10;
}

.ribbon-course {
  font-size: 8px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  line-height: 12px;
  transform: rotate(45deg);
  position: absolute;
  padding: 8px 0;
  right: -40px;
  top: 29px;
  width: 190px;
  background-color: #4caf50;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.course-price-display {
  font-size: 12px;
  font-weight: normal;
}

.popular-courses-items .bottom-info .price-btn.course-price-display {
  font-size: 12px;
  font-weight: normal;
}
