/* Course Cards - Inspired by Book Cards */
.packageCard {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  user-select: none;
}

.packageCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #3554d1;
  text-decoration: none !important;
  color: inherit !important;
}

.packageCard__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.packageCard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.packageCard:hover .packageCard__image img {
  transform: scale(1.08);
}

.packageCard__image_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.package-badge-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  pointer-events: none;
}

/* Ensure package card is clickable */
.packageCard {
  cursor: pointer;
  pointer-events: auto;
}

.packageCard * {
  pointer-events: none;
}

.packageCard a {
  pointer-events: auto;
}

.packageCard__content {
  padding: 25px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.packageCard__title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  margin-top: 0;
}

.packageCard__description {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #666;
  flex: 1;
  font-size: 14px;
}

.packageCard__meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

.packageCard__meta-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.packageCard__meta-item .icon {
  margin-right: 5px;
  color: #3554d1;
  font-size: 14px;
}

.packageCard-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 20px;
}

.packageCard-footer__price {
  font-size: 20px;
  font-weight: 700;
  color: #3554d1;
  text-align: center;
  text-decoration: none !important;
}

.packageCard-footer__price div {
  text-decoration: none !important;
}

/* Package Info Card Styles */
.packageInfoCard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  border: 1px solid #e9ecef;
}

.packageInfoCard__image {
  height: 250px;
  overflow: hidden;
}

.packageInfoCard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packageInfoCard__content {
  padding: 20px;
  background: #fff;
}

.packageStats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.packageStats__item {
  text-align: center;
  flex: 1;
}

.packagePrice {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Course List Item Styles */
.courseListItem {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
}

.courseListItem:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.courseListItem__image {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.courseListItem__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.courseListItem__content {
  flex: 1;
  margin-right: 15px;
}

.courseListItem__price {
  text-align: center;
  margin-right: 15px;
  min-width: 80px;
}

.courseListItem__action {
  flex-shrink: 0;
}

/* Alert Debug Styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .packageCard__image {
    height: 180px;
  }
  
  .packageCard__content {
    padding: 20px 15px 15px 15px;
  }
  
  .packageCard__title {
    font-size: 16px;
  }
  
  .packageCard__description {
    font-size: 13px;
  }
  
  .packageCard__meta {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .courseListItem {
    flex-direction: column;
    text-align: center;
  }
  
  .courseListItem__image {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .courseListItem__content {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .courseListItem__price {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .packageStats {
    flex-direction: column;
    gap: 10px;
  }
  
  .packageInfoCard {
    position: static;
    margin-bottom: 30px;
  }
}

/* Icon Styles */
.icon-percent::before {
  content: "%";
  font-weight: bold;
}

/* Animation Classes */
[data-anim-child] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-anim-child].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Force white background for package cards */
.packageCard,
.packageCard * {
  background-color: #fff !important;
}

.packageCard__image_overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%) !important;
}

/* Course Cards will use the existing filter-custom.css styles */

/* Package Detail Page - Book Style */
.book-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-badge.paid {
  background: #6366f1;
  color: white;
}

.book-badge.free {
  background: #10b981;
  color: white;
}

.book-info {
  padding: 20px 0;
}

.book-meta {
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.meta-item {
  margin-bottom: 15px;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.meta-value {
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
}

.book-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.book-description {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
