/* ===================================
   DIGITAL PRODUCTS STYLING
   =================================== */

.digital-products {
  margin-top: 160px;
}

/* Product Cards Structure */
.events_item {
  background-color: #e9e1fe;
  margin-bottom: 30px;
  position: relative;
  justify-content: center;
  align-items: center;
  background: rgba(249, 249, 249, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.events_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(136, 101, 225, 0.2);
}

.events_item:active {
  transform: translateY(-2px);
}

/* Prevent text selection on clickable cards */
.events_item {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Product Image/Thumbnail */
.events_item .thumb {
position: relative;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #f5f5f5;
}

.events_item .thumb img {
  height: 200px;
  object-fit: cover;
  margin-bottom: -5px;
  width: 100%;
}

/* Product Type Badge - Top Left */
.product-type-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.product-type-badge i {
  font-size: 14px;
}
/* Share Button - Top Right */
.share-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
background: rgba(255, 255, 255, 1); /* أكثر وضوح */
  border: 2px solid rgba(136, 101, 225, 0.5);
    border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(136, 101, 225, 0.2);
  /* إزالة opacity و transform الافتراضي */
  opacity: 1;
  transform: scale(1);
}

.events_item:hover .share-btn {
  transform: scale(1.1); /* تكبير الزر عند الهوفر على الكارد */
}

.share-btn i {
  font-size: 16px;
  color: #8865e1;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: #8865e1; /* الخلفية تصبح بنفس لون الأيقونة */
  border-color: #8865e1;
}

.share-btn:hover i {
  color: white;
}

/* Share Notification Popup */
.share-notification {
   position: fixed;
  top: 20px;
  right: 20px;
  background: #22c55e;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  z-index: 9000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: max-content;
    display: none; /* سيتم التحكم بالظهور عبر JavaScript */

}




/* Product Content Section */
.events_item .down-content {
  padding: 15px 25px 20px 25px;
}

/* Product Category */
.product-category {
  font-size: 12px;
  text-transform: uppercase;
  color: #8865e1;
  background-color: rgba(136, 101, 225, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid rgba(136, 101, 225, 0.2);
  transition: all 0.3s ease;
}

.events_item:hover .product-category {
  background-color: #8865e1;
  color: white;
  border-color: #8865e1;
}

/* Product Title */
.events_item .down-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: all .3s;
}

.events_item:hover .down-content h4 {
  color: #8865e1;
}

/* Product Description/Summary */
.product-description {
  height: 60px;
  margin-bottom: 15px;
}

.product-description p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Expert Info & Like Button */
.expert-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.expert-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #8865e1;
  flex-shrink: 0;
}

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

.events_item .down-content span.author {
  color: #8865e1;
  font-size: 14px;
  margin-bottom: 0;
  font-weight: 600;
  flex: 1;
}

/* Like Button */
.like-btn {
  width: 35px;
  height: 35px;
  background: rgba(136, 101, 225, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.like-btn i {
  font-size: 16px;
  color: #8865e1;
  transition: all 0.3s ease;
}

.like-btn:hover {
  background: #8865e1;
  transform: scale(1.1);
  border-color: #8865e1;
}

.like-btn:hover i {
  color: white;
}

.like-btn.liked {
  background: #e74c3c;
  border-color: #e74c3c;
}

.like-btn.liked i {
  color: white;
}

/* Product Meta Information */
.product-meta {
  margin-bottom: 15px;
  padding: 12px 0;
  border-top: 1px solid rgba(136, 101, 225, 0.15);
  border-bottom: 1px solid rgba(136, 101, 225, 0.15);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.meta-item i {
  font-size: 16px;
  color: #8865e1;
}

.meta-item.likes-count {
  color: #e74c3c;
}

.meta-item.likes-count i {
  color: #e74c3c;
}

/* Download/Buy Button */
.product-action {
  margin-top: 15px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-btn i {
  font-size: 16px;
}

.download-btn.free-download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 2px solid transparent;
}

.download-btn.free-download:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: white;
  text-decoration: none;
}

.download-btn.buy-download {
  background: linear-gradient(135deg, #8865e1, #6b46c1);
  color: white;
  border: 2px solid transparent;
}

.download-btn.buy-download:hover {
  background: linear-gradient(135deg, #6b46c1, #553c9a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 101, 225, 0.4);
  color: white;
  text-decoration: none;
}

/* Modern price badge - moved to bottom right corner with clean design */
.events_item .thumb span.price {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: linear-gradient(135deg, #8865e1, #6b46c1);
  padding: 6px 16px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(136, 101, 225, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  min-width: 80px;
}

.events_item .thumb span.price h6 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.events_item .thumb span.price em {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  vertical-align: top;
  margin-right: 2px;
}

.events_item:hover .thumb span.price {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(136, 101, 225, 0.4);
  background: linear-gradient(135deg, #6b46c1, #553c9a);
}

/* Free course special styling */
.events_item .thumb span.price.free {
  /*background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(255, 255, 255, 0.3); */
  background: linear-gradient(135deg, #8865e1, #6b46c1);
}

.events_item:hover .thumb span.price.free {
  /*background: linear-gradient(135deg, #059669, #047857); */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(136, 101, 225, 0.4);
  background: linear-gradient(135deg, #6b46c1, #553c9a);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .events_item .thumb img {
    height: 180px;
  }

  .product-type-badge,
  .download-count {
    font-size: 11px;
    padding: 5px 10px;
  }

  .product-category {
    font-size: 11px;
    padding: 3px 10px;
  }

  .meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .meta-item {
    font-size: 12px;
  }

  .expert-info {
    gap: 8px;
  }

  .expert-avatar {
    width: 30px;
    height: 30px;
  }

  .events_item .down-content span.author {
    font-size: 13px;
  }

  .download-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .share-btn {
    width: 32px;
    height: 32px;
    top: 12px;
    right: 12px;
    opacity: 1;
    transform: scale(1);
  }

  .share-btn i {
    font-size: 14px;
  }

 
}

@media (max-width: 480px) {
  .events_item .thumb img {
    height: 160px;
  }

  .events_item .down-content {
    padding: 12px 20px 15px 20px;
  }

  .product-type-badge,
  .download-count {
    font-size: 10px;
    padding: 4px 8px;
    top: 10px;
  }

  .download-count {
    right: 10px;
  }

  .product-type-badge {
    left: 10px;
  }

  .events_item .down-content h4 {
    font-size: 18px;
  }

  .expert-avatar {
    width: 28px;
    height: 28px;
  }

  .like-btn {
    width: 30px;
    height: 30px;
  }

  .like-btn i {
    font-size: 14px;
  }

  .share-btn {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }

  .share-btn i {
    font-size: 13px;
  }

 
}

ol,
ul {
  padding-left: 0rem !important;
}

.nav-link {
  color: rgb(136, 101, 225) !important;
  font-weight: 500 !important;
}


