/* ======================================
   BEST SELLING COURSES SECTION
   ANIMATED FLOATING ICON (NO ORBIT BALL)
====================================== */

.best-selling-courses-section {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--primary);
  border-radius: 48px;
  padding: 24px 48px 48px;
  margin-right: -48px;
  margin-left: -48px;
  position: relative;
  overflow: visible;
}

/* ======================================
   FLOATING ICON - ANIMATED
====================================== */
.best-selling-courses-section__floating-icon {
  position: absolute;
  width: 208px;
  height: 208px;
  bottom: -48px;
  z-index: 10;

  /* Main floating animation */
  animation: sellingIconFloat 6s ease-in-out infinite;

  /* Smooth transitions */
  transition: all 0.4s ease;
}

.best-selling-courses-section__floating-icon img {
  max-width: 100%;
  max-height: 100%;

  /* Add drop shadow for depth */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  transition: all 0.4s ease;
}

/* ======================================
   MAIN FLOATING ANIMATION
====================================== */
@keyframes sellingIconFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }

  25% {
    transform: translateY(-15px) rotate(0deg) scale(1.02);
  }

  50% {
    transform: translateY(-25px) rotate(3deg) scale(1.05);
  }

  75% {
    transform: translateY(-15px) rotate(0deg) scale(1.02);
  }
}

/* ======================================
   SOFT GLOW EFFECT (Optional)
====================================== */
.best-selling-courses-section__floating-icon::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 70%);
  animation: sellingGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sellingGlowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* ======================================
   HOVER EFFECTS
====================================== */
.best-selling-courses-section__floating-icon:hover {
  animation-play-state: paused;
}

.best-selling-courses-section__floating-icon:hover img {
  transform: scale(1.1) rotate(8deg);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
}

/* ======================================
   RESPONSIVE - TABLET LANDSCAPE
====================================== */
@media (max-width: 1199px) {
  .best-selling-courses-section__floating-icon {
    width: 180px;
    height: 180px;
    bottom: -40px;
    animation: sellingIconFloat 8s ease-in-out infinite;
  }
}

/* ======================================
   RESPONSIVE - TABLET PORTRAIT
====================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .best-selling-courses-section {
    height: auto;
    margin-right: -24px;
    margin-left: -24px;
    padding: 48px 24px;
    border-radius: 32px;
  }

  .best-selling-courses-section__floating-icon {
    display: block;
    width: 140px;
    height: 140px;
    bottom: -30px;
    animation: sellingSimpleFloat 4s ease-in-out infinite;
  }

  .best-selling-courses-section__floating-icon::before {
    display: none;
  }

  @keyframes sellingSimpleFloat {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-15px);
    }
  }
}

/* ======================================
   RESPONSIVE - MOBILE
====================================== */
@media (max-width: 767px) {
  .best-selling-courses-section {
    height: auto;
    margin-right: -24px;
    margin-left: -24px;
    padding: 48px 24px;
    border-radius: 24px;
  }

  .best-selling-courses-section__floating-icon {
    display: none;
  }
}

/* ======================================
   ACCESSIBILITY - REDUCED MOTION
====================================== */
@media (prefers-reduced-motion: reduce) {

  .best-selling-courses-section__floating-icon,
  .best-selling-courses-section__floating-icon::before,
  .best-selling-courses-section__floating-icon img {
    animation: none !important;
    transition: none !important;
  }
}