

/* ================================================================
   COURSES PAGE STYLES (courses.css)
   ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
   1) Hero + Pattern
   2) Testimonials
   3) Responsive Adjustments
   4) Explore All Courses
   5) View Details CTA
================================================================ */

/* --- 1) Hero background + pattern dots --- */
.hero {
  background: url('images/cta-bg.svg') center/cover no-repeat;
  overflow: hidden;
  position: relative;
}
.pattern {
  position: absolute;
  top: 30%;
  right: 10%;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(#ccd1d9 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.5;
}
/* Utility override for hero heading */
.hero .display-4 {
  max-width: 800px;
}
/* Optional padding override for any card-body in hero context */
.hero .card-body {
  padding: 2rem;
}
.badge.bg-dark {
  position: relative;
  animation: ribbon-pulse 1.5s ease-in-out infinite;
}
@keyframes ribbon-pulse {
  0%,100% { transform: scale(1) }
  50%     { transform: scale(1.1) }
}

.hero .card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(9,9,106,0.15);
}


/* --- 3) Responsive Adjustments --- */
@media (max-width: 576px) {
  #featured-course h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  #featured-course .lesson-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  #featured-course h2 {
    font-size: 1.25rem;
  }
  #featured-course p.small {
    font-size: 0.85rem;
  }
  #featured-course .display-6 {
    font-size: 1.5rem;
  }
  #featured-course .btn-lg {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}


/* --- 4) Explore Our All Courses Section --- */
/* Heading */
.all-courses h2 {
  color: #06171f;
}

/* Filter Buttons */
.filters .filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid #d9d9d9;
  border-radius: 50px;
  background: #fff;
  color: #06171f;
  font-weight: 500;
  transition: 0.2s ease;
}
.filters .filter-btn i {
  font-size: 1rem;
}
.filters .filter-btn:hover,
.filters .filter-btn.active {
  background: #06171f;
  border-color: #06171f;
  color: #fff;
}

/* Course Cards */
.course-card {
  border-radius: 1rem;
  overflow: hidden;
}
.course-card .card-img-top {
  height: 400px;
  width: auto;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.course-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(9,9,106,0.15);
}



.category-pill {
  background: #f1f3f5;
  color: #47515e;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FF28A8 !important;
}
.course-card .card-body {
  padding: 1rem 1.25rem 1.5rem;
}
.course-card .card-body h5 {
  margin-bottom: 0.5rem;
}
.course-card .card-body .text-muted {
  font-size: 0.9rem;
}

/* Remove default focus outline if desired */
.filters .filter-btn:focus,
.btn:focus {
  box-shadow: none !important;
}

/* ————— View Details CTA ————— */
.btn-details {
  display: inline-flex;        /* shrink-to-fit */
  align-items: center;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  background: #09096A;
  border-radius: 50px;         /* pill shape */
  width: auto !important;      /* <-- change here */
  white-space: nowrap;
}

.btn-details__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  background-color: #06171f;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}




