.course-layout {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  align-items: stretch;
}

.course-intro {
  flex: 1 1 60%;
}

.course-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 1rem;
}

.course-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #444;
}

.skills-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 2rem;
}

.skills-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.check-icon {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  background-color: #24a48c; /* cerchio verde acqua */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
}

.check-icon::before {
  content: '✔';
  color: #fff; /* spunta bianca */
  display: block;
  line-height: 1;
}

.course-info-box {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  height: auto;
  min-height: 200px;
}

.teacher-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.teacher-info-box img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.teacher-info-box .role {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.teacher-info-box h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e1e1e;
}


.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.2rem;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  line-height: 1;
  text-align: center;
}


.cta-btn:hover {
  background: #005bb5;
  color:#eee;
}

/* Metadati del banner */
.course-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.course-meta .meta-row:last-child {
  padding-bottom: 15px;
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  color: #333;
}

.meta-value {
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .course-layout {
      flex-direction: column;
  }

  .course-intro,
  .course-info-box {
      flex: 1 1 100%;
  }
}
