/* Image Gradient Overlay - Black gradient from top and bottom, transparent in middle */

/* Parent container for images with overlay */
.image-with-overlay {
  position: relative;
  overflow: hidden;
}

.image-with-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* About Page Card Items with Text Overlay */
.about-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-size: cover !important;
  background-position: center !important;
  min-height: 400px;
}

.about-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.about-card-item .card-body {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 400px !important;
  padding: 20px !important;
  text-align: center;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.about-card-item .card-title {
  color: white !important;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mentor Card Items with Text Overlay */
.mentor-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-size: cover !important;
  background-position: center !important;
  min-height: 300px;
}

.mentor-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.mentor-card-item .card-body {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 300px !important;
  padding: 15px !important;
  text-align: center;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.mentor-card-item .card-title {
  color: white !important;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Effects for Cards */
.about-card-item,
.mentor-card-item {
  transition: all 0.3s ease;
}

.about-card-item:hover,
.mentor-card-item:hover {
  transform: scale(1.05);
}

.about-card-item:hover::before,
.mentor-card-item:hover::before {
  background-image: none;
}

/* For category covers and similar images */
.category-cover,
.course-cover,
.webinar-cover {
  position: relative;
}

.category-cover::after,
.course-cover::after,
.webinar-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* For search-top-banner with img-cover */
.search-top-banner {
  position: relative;
}

.search-top-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
      background: linear-gradient(to bottom, rgb(3 11 17 / 65%) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgb(3 11 17) 100%);

  z-index: 2;
  pointer-events: none;
}

/* Alternative: Direct overlay on img-cover elements */
.img-cover-with-gradient {
  position: relative;
  display: inline-block;
  width: 100%;
}

.img-cover-with-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}
