.course-detail {
  background-color: var(--agrion-extra, #f8f9fa); /* Light background using your hierarchy */
  color: var(--agrion-black, #333); /* Dark text for readability */
  font-family: var(--agrion-font, 'DM Sans', sans-serif);
  padding: 2rem 1rem;
}

.course-detail h3 {
  font-size: clamp(1.5rem, 4vw, 1.8rem); /* Responsive font size */
  margin-bottom: 1rem;
  color: var(--agrion-base, #1f6306);
  border-bottom: 2px solid rgba(var(--agrion-gray-rgb, 117, 120, 115), 0.2);
  padding-bottom: 0.5rem;
  font-weight: 700;
}

.course-detail h4 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--agrion-black, #546D12);
  font-weight: 600;
}

.course-detail p {
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--agrion-gray, #757873);
}

.course-detail ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.course-detail ul li {
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 2vw, 1rem);
  line-height: 1.6;
  color: var(--agrion-gray, #757873);
}

.course-detail__section {
  background-color: var(--agrion-white, #fff);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--agrion-bdr-radius, 10px);
  box-shadow: 0 2px 8px rgba(var(--agrion-black-rgb, 14, 34, 7), 0.08);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.course-detail__section:hover {
  box-shadow: 0 4px 12px rgba(var(--agrion-black-rgb, 14, 34, 7), 0.12);
}

.course-detail__subsection {
  margin-bottom: 1.5rem;
}

/* Image Container */
.course-detail__img {
  width: 100%;
  /*max-width: 600px;*/
  margin: 0 auto 1.5rem;
  display: block;
}

/* Actual Image Styling */
.course-detail__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--agrion-bdr-radius, 10px);
  box-shadow: 0 4px 12px rgba(var(--agrion-base-rgb, 31, 99, 6), 0.15);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-detail__img img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--agrion-base-rgb, 31, 99, 6), 0.2);
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .course-detail {
    padding: 1.5rem 0.75rem;
  }

  .course-detail h3 {
    font-size: 1.5rem;
  }

  .course-detail h4 {
    font-size: 1.2rem;
  }

  .course-detail__img {
    max-width: 100%;
    margin-bottom: 1.25rem;
  }
  
  .course-detail__img img {
    aspect-ratio: 4 / 3; /* Slightly taller on tablets */
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .course-detail {
    padding: 1rem 0.5rem;
  }

  .course-detail__section {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }

  .course-detail h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .course-detail h4 {
    font-size: 1.1rem;
    margin-top: 1rem;
  }

  .course-detail p,
  .course-detail ul li {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .course-detail ul {
    padding-left: 1.25rem;
  }

  .course-detail__img {
    margin-bottom: 1rem;
  }
  
  .course-detail__img img {
    border-radius: 8px;
    aspect-ratio: 16 / 10; /* Better for mobile viewing */
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .course-detail__section {
    padding: 0.875rem;
  }

  .course-detail h3 {
    font-size: 1.2rem;
  }

  .course-detail__img img {
    aspect-ratio: 1 / 1; /* Square on very small screens */
  }
}