.bundle-card__image {
  width: 192px;
  min-width: 192px;
  height: 228px;
  overflow: hidden;
}
.bundle-card__image img {
  transition: all 0.4s ease;
}
.bundle-card:hover .bundle-card__image img {
  transform: scale(1.1);
}
.bundle-card__content {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 160px;
  right: 0;
  z-index: 1;
}
.bundle-card__title {
  max-height: 42px;
  font-weight: 700;
  line-height: 21px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.rtl .bundle-card .bundle-card__content {
  left: 0;
  right: 160px;
}
@media (max-width: 991px) {
  .bundle-card {
    margin-bottom: 122px;
  }
  .bundle-card__image {
    width: 100%;
    min-width: 100%;
  }
  .bundle-card__content {
    right: 16px;
    left: 16px;
    top: 170px;
    bottom: auto;
  }
}


/* ==========================================================================
   FUTURISTIC GLASS UI - VERTICAL CARD & 2-COL MOBILE READY
   ========================================================================== */

/* Outer wrapper */
.futuristic-glass-wrapper {
  perspective: 1000px;
  display: block;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Base Card structure (Forces Image Top, Content Bottom) */
.futuristic-glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 100%;
  z-index: 1;
}

/* Inner glow hover effect */
.futuristic-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .futuristic-glass-wrapper:hover .futuristic-glass-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px 0 rgba(0, 120, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
  }

  .futuristic-glass-wrapper:hover .futuristic-glass-card::before {
    opacity: 1;
  }

  .futuristic-glass-wrapper:hover .glass-image-container img {
    transform: scale(1.08);
  }

  .futuristic-glass-wrapper:hover .glass-avatar {
    border-color: #d25800;
    transform: scale(1.1);
  }
}

/* Image Container (Top) */
.glass-image-container {
  padding: 8px;
  padding-bottom: 0;
  /* Connects closer to content */
  overflow: hidden;
}

.glass-image-container img {
  border-radius: 14px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  object-fit: cover;
  aspect-ratio: 16/10;
  /* Perfect ratio for top-image layout */
}

/* Content Container (Bottom) */
.glass-content {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 16px;
}

/* Text Styling */
.glass-text-main {
  color: #2e221a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.glass-text-muted {
  color: #6a534a;
  font-weight: 500;
}

.glass-text-accent {
  color: #ff6f00;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 86, 210, 0.15);
}

/* Avatar Setup */
.glass-avatar-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.glass-avatar {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Footer & Divider */
.glass-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 12px;
  gap: 8px;
}

/* Utility to ensure text truncates perfectly */
.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==========================================
   MOBILE & TABLET OPTIMIZATIONS (2 CARDS PER ROW SQUEEZE)
   ========================================== */
@media (max-width: 991px) {

  /* When 2 columns are active, we must scale everything down */
  .futuristic-glass-card {
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .glass-image-container {
    padding: 6px;
    padding-bottom: 0;
  }

  .glass-image-container img {
    border-radius: 10px;
  }

  .glass-content {
    padding: 10px;
  }

  .bundle-card__title {
    font-size: 13px !important;
    margin-bottom: 4px;
  }

  .glass-rate-fix {
    margin-top: 4px !important;
  }

  /* Shrink teacher info to prevent horizontal breaking */
  .glass-teacher-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .glass-avatar-wrap {
    width: 24px;
    height: 24px;
  }

  .glass-teacher-section .font-14 {
    font-size: 12px !important;
  }

  .glass-teacher-section .font-12 {
    font-size: 10px !important;
  }

  .glass-teacher-section .ml-8 {
    margin-left: 6px !important;
  }

  /* Footer adjustments to fit tight spaces */
  .glass-footer {
    padding-top: 8px;
    flex-direction: column;
    /* Stacks course count and price on mobile */
    align-items: flex-start !important;
  }

  .glass-icon {
    width: 12px !important;
    height: 12px !important;
  }

  .glass-icon-text {
    font-size: 11px !important;
    margin-left: 4px !important;
  }

  .glass-footer-price {
    font-size: 14px !important;
    margin-top: 4px;
  }

  /* Touch Feedback */
  .futuristic-glass-wrapper:active .futuristic-glass-card {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.25);
  }
}

/* Extra small devices check */
@media (max-width: 380px) {
  .glass-content {
    padding: 8px;
  }

  .bundle-card__title {
    font-size: 12px !important;
  }
}

