/* SECTION */
.course-detail {
  padding: 80px 10%;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}


/* CONTAINER */
.course-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;

  align-items: start;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  transition: 0.4s;
}
.left-side {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.course-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* IMAGE */
.course-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  position: sticky;
  top: 100px; 
}

/* CATEGORY */
.category {
  background: #e0e7ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 12px;
}

/* TITLE */
.course-content h1 {
  font-size: 38px;
  color: #0A1F44;
  margin-bottom: 10px;
}

/* SUBTITLE */
.subtitle {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* STATS */
.course-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.course-stats h3 {
  color: #2563eb;
}

.course-stats span {
  font-size: 13px;
  color: gray;
}
/* FULL WIDTH TOPICS */
.topics-full {
  margin-top: 50px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(15px);
}

.topics-full h4 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* KEEP YOUR 4 COLUMN GRID */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
/* 💎 TOPIC CARD */
.topic-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 15px;
  border-radius: 12px;

  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.05);

  transition: 0.3s;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.topic-card .icon {
  color: #22c55e;
  font-weight: bold;
}

/* BUTTONS */
.buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: #2563eb;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid #2563eb;
  padding: 12px 25px;
  border-radius: 8px;
  color: #2563eb;
  text-decoration: none;
}

/* BADGE */
.badge.hot {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff4d4d;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .course-detail {
    padding: 20px 4%;
  }

  .course-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  /* Image pehle aaye, sticky hatao */
  .course-image img {
    height: 220px;
    position: static;
    border-radius: 16px;
  }

  /* Title chhota karo */
  .course-content h1 {
    font-size: 22px;
  }

  /* Stats 3 columns me rakho */
  .course-stats {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px 0;
  }

  .course-stats div {
    border-right: 1px solid #e5e7eb;
    padding: 0 8px;
  }
  .course-stats div:last-child { border-right: none; }

  .course-stats h3 {
    font-size: 13px;
  }

  /* Enroll button full width */
  .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Topics 2 column on mobile */
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-full {
    margin-top: 20px;
    padding: 16px;
  }

}