/* --------------------------------------------------------------
# Courses Hero Section
-------------------------------------------------------------- */
.courses-hero {
  position: relative;
  min-height: 70vh;
  /* Ensures hero section takes 70% of viewport height */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
  /* Top padding for spacing below navbar */
}

.card-content{
  width: 250px;
  height: 50px;
  padding: 10px;
}
.courses-hero .hero-content {
  position: relative;
  z-index: 2;
  /* Keeps text/content above background */
  width: 100%;
}

.courses-hero .hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .courses-hero .hero-text h1 {
    font-size: 2.5rem;
    /* Smaller heading for tablets */
  }
}

.courses-hero .hero-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Hero Stats Section */
.courses-hero .hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 576px) {
  .courses-hero .hero-stats {
    flex-direction: column;
    /* Stack stats on smaller screens */
    gap: 1rem;
  }
}

.courses-hero .hero-stats .stat-item {
  text-align: center;
}

.courses-hero .hero-stats .stat-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.courses-hero .hero-stats .stat-item .label {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
}

/* Hero Buttons */
.courses-hero .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 576px) {
  .courses-hero .hero-buttons {
    flex-direction: column;
  }
}

.courses-hero .hero-buttons .btn {
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Primary Button */
.courses-hero .hero-buttons .btn.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.courses-hero .hero-buttons .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
}

/* Outline Button */
.courses-hero .hero-buttons .btn.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.courses-hero .hero-buttons .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

/* Hero Features */
.courses-hero .hero-features {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .courses-hero .hero-features {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.courses-hero .hero-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.courses-hero .hero-features .feature i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.courses-hero .hero-features .feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--default-color);
}

/* Hero Image Section */
.courses-hero .hero-image {
  position: relative;
}

.courses-hero .hero-image .main-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.courses-hero .hero-image .main-image img {
  width: 100%;
  height: 400px;
  border-radius: 20px;
}

/* Floating Course Cards around Hero Image */
.courses-hero .hero-image .floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.courses-hero .hero-image .floating-cards .course-card {
  position: absolute;
  background: var(--surface-color);
  border-radius: 15px;
  padding: 0rem -0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

/* Position floating cards */
.courses-hero .hero-image .floating-cards .course-card:nth-child(1) {
  top: 43%;
  left: -5%;
}

.courses-hero .hero-image .floating-cards .course-card:nth-child(2) {
  top: 54%;
  right: -15%;
}

.courses-hero .hero-image .floating-cards .course-card:nth-child(3) {
  bottom: 20%;
  left: -5%;
}

.courses-hero .hero-image .floating-cards .course-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.courses-hero .hero-image .floating-cards .course-card .card-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.courses-hero .hero-image .floating-cards .course-card .card-content h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.2;
}

.courses-hero .hero-image .floating-cards .course-card .card-content span {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (max-width: 992px) {
  .courses-hero .hero-image .floating-cards .course-card {
    display: none;
    /* Hide floating cards on small screens */
  }
}

/* Hero Background Shapes */
.courses-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.courses-hero .hero-background .bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.courses-hero .hero-background .bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

/* Floating shapes animation */
.courses-hero .hero-background .bg-shapes .shape.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.courses-hero .hero-background .bg-shapes .shape.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

.courses-hero .hero-background .bg-shapes .shape.shape-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 30%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {

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

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .courses-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .courses-hero .hero-text {
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    text-align: center;
  }

  .courses-hero .hero-stats {
    justify-content: center;
  }

  .courses-hero .hero-features {
    justify-content: center;
  }
}

/* --------------------------------------------------------------
# Featured Courses Section
-------------------------------------------------------------- */
.featured-courses .course-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-courses .course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--default-color), transparent 85%);
}

/* Course Image Styling */
.featured-courses .course-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.featured-courses .course-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover;  Uncomment for cropped images */
  transition: transform 0.3s ease;
}

.featured-courses .course-image:hover img {
  transform: scale(1.05);
}

/* Course Badges */
.featured-courses .course-image .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-courses .course-image .badge.featured {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.featured-courses .course-image .badge.new {
  background: #28a745;
  color: white;
}

.featured-courses .course-image .badge.certificate {
  background: #ffc107;
  color: #212529;
}

.featured-courses .course-image .badge.popular {
  background: #ff6b35;
  color: white;
}

/* Price Badge */
.featured-courses .course-image .price-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--heading-color);
  color: var(--contrast-color);
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
}

/* Course Content */
.featured-courses .course-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Course Meta Information */
.featured-courses .course-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.featured-courses .course-meta span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 500;
}

.featured-courses .course-meta span.level {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}

.featured-courses .course-meta span.duration {
  background: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
}

/* Course Title */
.featured-courses h3 {
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 1.3;
}

.featured-courses h3 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-courses h3 a:hover {
  color: var(--accent-color);
}

/* Course Description */
.featured-courses p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Instructor Section */
.featured-courses .instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.featured-courses .instructor .instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-courses .instructor .instructor-info h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.featured-courses .instructor .instructor-info span {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* Course Stats */
.featured-courses .course-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

/* Ratings */
.featured-courses .course-stats .rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.featured-courses .course-stats .rating i {
  color: #ffc107;
  font-size: 12px;
}

.featured-courses .course-stats .rating span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 12px;
  margin-left: 8px;
  font-weight: 500;
}

/* Student Count */
.featured-courses .course-stats .students {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-courses .course-stats .students i {
  color: var(--accent-color);
  font-size: 14px;
}

.featured-courses .course-stats .students span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 12px;
  font-weight: 500;
}

/* Course Button */
.featured-courses .btn-course {
  display: inline-block;
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto;
  /* Pushes button to bottom */
}

.featured-courses .btn-course:hover {
  background:rgb(170, 28, 28);
  transform: translateY(-2px);
}

/* More Courses Button */
.featured-courses .more-courses {
  margin-top: 50px;
}

.featured-courses .more-courses .btn-more {
  display: inline-block;
  background: transparent;
  color: var(--accent-color);
  padding: 15px 40px;
  border: 2px solid var(--accent-color);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.featured-courses .more-courses .btn-more:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

/* Responsive Styling */
@media (max-width: 768px) {
  .featured-courses .course-image {
    height: 200px;
  }

  .featured-courses .course-content {
    padding: 20px;
  }

  .featured-courses h3 {
    font-size: 18px;
  }

  .featured-courses .course-stats {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}