/* ==============================
   CLASS DETAILS BANNER (CLEAN)
================================ */
.class-details-banner {
  padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 12vw, 160px);
  background: linear-gradient(180deg, #f3f6f7 0%, #eef2f4 100%);
  text-align: center;
}

/* Title */
.class-details-banner h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

/* Soft underline accent */
.class-details-banner h1::after {
  content: "";
  width: 48px;
  height: 4px;
  background: var(--primary-color);
  display: block;
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Breadcrumb */
.class-details-banner p {
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.class-details-banner p a {
  color: var(--text-dark);
  font-weight: 500;
}

.class-details-banner p a:hover {
  color: var(--primary-color);
}

/* Mobile refinement */
@media (max-width: 576px) {
  .class-details-banner p {
    font-size: 14px;
  }

  .class-details-banner h1::after {
    width: 36px;
    height: 3px;
  }
}

/* ==============================
   LANDSCAPE COURSE CARD
================================ */

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.course-card {
  display: flex;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.35s ease;
  min-height: 260px;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* IMAGE SIDE */
.course-img {
  position: relative;
  flex: 0 0 38%;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.course-card:hover .course-img img {
  transform: scale(1.06);
}

/* Duration Badge */
.duration-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--secondary-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

/* Ribbon */
.ribbon {
  position: absolute;
  top: 26px;
  right: -35px;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 40px;
  font-size: 12px;
  transform: rotate(45deg);
  font-weight: 500;
}

/* CONTENT SIDE */
.course-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.course-level {
  background: rgba(138, 74, 161, 0.08);
  color: var(--primary-color);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.course-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.course-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.course-meta i {
  margin-right: 6px;
  color: var(--secondary-color);
}

.rating i {
  color: #f7b500;
}

/* Footer */
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.course-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.enroll-btn {
  padding: 8px 18px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s ease;
}

.enroll-btn:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .course-card {
    flex-direction: column;
  }

  .course-img {
    flex: unset;
    height: 220px;
  }

  .ribbon {
    right: -45px;
  }
}
