body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #002147;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  height: 80px;
}

/* COURSE DETAIL SECTION */
.course-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.course-detail img {
  width: 50%;
  border-radius: 12px;
  object-fit: cover;
  animation: fadeZoom 1.2s ease forwards;
  opacity: 0;
}

.course-info {
  flex: 1;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

/* LIST STYLING */
.course-info ul {
  padding-left: 20px;
}
.course-info li {
  margin-bottom: 8px;
}

/* BUTTON */
.learn-btn {
  /* display: inline-block; */
  float: right;
  margin-top: 15px;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0078d7;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.learn-btn:hover {
  background: #005bb5;
}

/* ANIMATIONS */
@keyframes fadeZoom {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .course-detail {
    flex-direction: column;
    padding: 10px;
    width: auto;
    background-color: #e3e2e8;
  }

  .course-detail img {
    width: 320px;
    height: auto;   /* full height */
    object-fit: cover;
  }

  .course-info {
    width: 320px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    margin-top: -20px; /* overlaps slightly for style */
  }
  .course-info ul {
    padding-left: 30px;
    line-height: 1.2; /* tighter spacing */
  }

  .learn-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .course-info h1, h2, p{
    padding: 0px 20px;
  }

}