.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;
}

/* ========== Modern Timeline Styles ========== */
.timeline-modern {
  position: relative;
  margin: 0;
  padding: 20px 0;
  list-style: none;
}

.timeline-modern:before {
  content: '';
  position: absolute;
  right: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary, #007bff) 0%, rgba(0, 123, 255, 0.3) 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.timeline-item-modern {
  position: relative;
  margin-bottom: 35px;
  animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-badge-modern {
  position: absolute;
  right: 13px;
  top: 10px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary, #007bff) 0%, #0056b3 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  border: 3px solid #fff;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-badge-modern:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.timeline-badge-modern.create {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.timeline-badge-modern.update {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.timeline-badge-modern.assign {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.timeline-badge-modern.cancel {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.timeline-panel-modern {
  margin-right: 75px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-panel-modern:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(-5px);
}

.timeline-header-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-primary, #007bff);
}

.timeline-date-modern {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-date-modern i {
  color: var(--color-primary, #007bff);
  font-size: 16px;
}

.timeline-user-badge {
  background: var(--color-primary, #007bff);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-user-badge i {
  font-size: 12px;
}

.timeline-body-modern {
  padding: 20px;
  background: #fff;
}

.timeline-changes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.timeline-changes-list li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.01) 100%);
  border-right: 3px solid var(--color-primary, #007bff);
  border-radius: 6px;
  font-size: 14px;
  color: #495057;
  transition: all 0.2s ease;
  display: flex;
  align-items: start;
  gap: 10px;
}

.timeline-changes-list li:hover {
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.02) 100%);
  transform: translateX(-3px);
}

.timeline-changes-list li i {
  color: var(--color-primary, #007bff);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.timeline-description {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.6;
  border-right: 3px solid #dee2e6;
}

.timeline-description strong {
  color: #495057;
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.timeline-empty-state i {
  font-size: 48px;
  color: #adb5bd;
  margin-bottom: 15px;
}

.timeline-empty-state p {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 767px) {
  .timeline-modern:before {
    right: 20px;
  }
  
  .timeline-badge-modern {
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .timeline-panel-modern {
    margin-right: 60px;
  }
  
  .timeline-header-modern {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .timeline-user-badge {
    align-self: flex-end;
  }
  
  .timeline-changes-list li {
    font-size: 13px;
    padding: 8px 12px;
  }
}

