/* SCORM Courses List Styles */

:root {
  --color-primary: #085C9A;
  --color-text-primary: #000000;
  --link-color: #169AFD;
  --background-color: #FDFAF1;
  --background-secondary-color: #FBF5E4;
  --yellow-color: #FCBC00;
  --gray-color: #9F9F9F;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-primary);
}

.scorm-courses-list-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
}

/* Login Required */
.scorm-courses-login-required {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.scorm-courses-login-required p {
  font-size: 18px;
  color: #495057;
  margin-bottom: 40px;
}

.scorm-courses-login-required .button {
  background-color: #095C9A;
  font-family: "Roboto", Sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #FBF5E4;
  border-radius: 15px 15px 15px 15px;
  padding: 20px 40px 20px 40px;
}

.scorm-courses-login-required .button:hover {
  color: #FCBC00;
  opacity: 0.9;
}

.scorm-courses-login-required .button:focus {
  outline-offset: 2px;
  outline: 2px solid var(--color-border-focus);
}

.scorm-courses-welcome {
  padding: 40px 0;
  text-align: center;
}

.courses-title {
  margin-bottom: 40px;
}

/* Section Styles */
.scorm-courses-list-header {
  background-color: var(--background-color);
  /* max-width: 1600px;
  width: 96%;
  margin: 0 auto; */
}

.scorm-courses-list-header h1 {
  margin: 0;
}

.scorm-courses-section {
  background-color: var(--background-secondary-color);
  padding: 40px 0;
}

.scorm-courses-section:nth-child(even) {
  background-color: var(--background-color);
}

.scorm-courses-section-inner {
  max-width: 1290px;
  padding: 0 40px;
  margin: 0 auto;
}

.scorm-section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scorm-section-title .icon {
  font-size: 28px;
}

.scorm-section-title .course-count {
  font-size: 18px;
  font-weight: 400;
  color: #6c757d;
  margin-left: auto;
}

/* Grid Layout */
.scorm-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* Course Card */
.scorm-course-card {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.scorm-course-card:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.course-thumbnail {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.completion-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Course Content */
.course-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.course-title a {
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.3s;
}

.course-title a:hover {
  color: #007cba;
}

.course-excerpt {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.5;
	margin-bottom: 15px;
}

.course-excerpt .excerpt-text {
	margin: 0 0 8px 0;
}

.course-excerpt .excerpt-read-more {
	display: inline-block;
	background: none;
	border: none;
	color: var(--color-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.course-excerpt .excerpt-read-more:hover {
	color: var(--link-color);
}

.course-excerpt .excerpt-read-more:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Course Description Modal */
.course-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.course-modal .modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	animation: fadeIn 0.3s ease;
}

.course-modal .modal-content {
	position: relative;
	background: white;
	border-radius: 12px;
	max-width: 600px;
	width: 100%;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease;
	z-index: 1;
}

.course-modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 24px 16px;
	border-bottom: 1px solid #e9ecef;
}

.course-modal .modal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--color-primary);
	padding-right: 20px;
}

.course-modal .modal-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #6c757d;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.course-modal .modal-close:hover {
	background: #f8f9fa;
	color: #000;
}

.course-modal .modal-close:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.course-modal .modal-body {
	padding: 24px;
	overflow-y: auto;
	max-height: calc(80vh - 100px);
}

.course-modal .modal-description {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #495057;
}

/* Modal Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Progress Bar */

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007cba, #005a87);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-text {
  font-size: 14px;
  font-weight: 500;
}

/* Score */
.course-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
}

.score-value {
  font-weight: 600;
  color: #28a745;
}

/* Date */
.course-date {
  font-size: 14px;
}

.date-label {
  margin-right: 5px;
}



/* Actions */
.course-actions {
  margin-top: auto;
  padding-top: 15px;
}

.course-actions .button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.course-actions .button-primary {
  background: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
}

.course-actions .button-primary:hover {
  color: var(--yellow-color);
}

/* Status-specific styles */

.scorm-course-card.in-progress {
  border-left: 4px solid #ffc107;
}

.scorm-course-card.completed {
  border-left: 4px solid #28a745;
}

.scorm-diplomas-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scorm-diplomas-grid .diploma-actions p {
  margin: 0;
  display: flex;
  gap: 5px;
}

.scorm-diploma-card .diploma-download-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary);
}

/* No courses message */
.scorm-no-courses {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.scorm-no-courses p {
  font-size: 16px;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
	.scorm-courses-section-inner {
		padding: 0 20px;
	}

	.scorm-courses-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.scorm-section-title {
		font-size: 20px;
	}

	.scorm-section-title .icon {
		font-size: 24px;
	}

	.course-thumbnail {
		height: 150px;
	}

	.course-modal {
		padding: 10px;
	}

	.course-modal .modal-content {
		max-height: 90vh;
		border-radius: 8px;
	}

	.course-modal .modal-header {
		padding: 16px;
	}

	.course-modal .modal-title {
		font-size: 18px;
	}

	.course-modal .modal-body {
		padding: 16px;
		max-height: calc(90vh - 80px);
	}
}