.course-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.course-modal.is-open {
  display: flex;
}

.course-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.course-modal__dialog {
  position: relative;
  width: min(920px, 92vw);
  max-height: 90vh;
  overflow: auto;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.course-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.course-modal__close:hover {
  background: #e6e6e6;
}

.course-modal__course-title {
  color: #f0a500;
}

.js-course-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.js-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.js-course-card:focus {
  outline: 2px solid #f0a500;
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}
