/* Courses Section */
.courses-section {
  padding: 100px 0;
  overflow: hidden; /* For Swiper */
}
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.header-content .subheading {
  color: var(--accent-cta, #14B8A6);
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
.header-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-heading, #0F172A);
  margin: 0;
}
.slider-controls {
  display: flex;
  gap: 15px;
}
.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white, #fff);
  border: 1px solid rgba(15, 76, 129, 0.1);
  color: var(--main-color, #0F4C81);
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: static !important;
  margin: 0 !important;
}
.slider-btn::after {
  display: none; /* Hide default swiper arrows */
}
.slider-btn:hover {
  background: var(--main-color, #0F4C81);
  color: var(--white, #fff);
  border-color: var(--main-color, #0F4C81);
}
.slider-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.courses-swiper {
  padding: 20px 0 50px;
}
.course-card {
  background: var(--white, #fff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.course-img {
  position: relative;
  height: 220px;
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-cta, #14B8A6);
  color: var(--white, #fff);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.badge-new {
  background: #E11D48;
}
.course-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--secondary-color, #475569);
  margin-bottom: 15px;
  font-weight: 700;
}
.course-meta .rate {
  color: #F59E0B;
}
.course-meta .cat i {
  margin-left: 5px;
}
.course-title {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 800;
}
.course-title a {
  color: var(--text-heading, #0F172A);
  text-decoration: none;
  transition: color 0.3s ease;
}
.course-title a:hover {
  color: var(--main-color, #0F4C81);
}
.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--text-main, #334155);
  margin-top: auto;
}
.inst-avatar {
  width: 35px;
  height: 35px;
  background: var(--light-color, #E2E8F0);
  color: var(--main-color, #0F4C81);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}
.course-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--main-color, #0F4C81);
}
.old-price {
  font-size: 14px;
  color: #94A3B8;
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: normal;
}
.enroll-btn {
  width: 40px;
  height: 40px;
  background: var(--light-color, #E2E8F0);
  color: var(--main-color, #0F4C81);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.enroll-btn:hover {
  background: var(--main-color, #0F4C81);
  color: var(--white, #fff);
}

@media (max-width: 768px) {
  .flex-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
