/* SCORM Header Styles */
.scorm-header {
  background: var(--scorm-header-background-color, #23282d);
  border-bottom: 1px solid
    rgba(var(--scorm-header-text-rgb, 255, 255, 255), 0.2);
  padding: 0.5em 0;
  color: var(--scorm-header-text-color, #ffffff);
}

.scorm-header-inner {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.scorm-logo img {
  max-height: 60px;
  width: auto;
}

.scorm-logo h1 {
  color: var(--scorm-header-text-color, #ffffff);
  margin: 0;
  font-size: 1.5em;
}

.scorm-back-link {
  color: var(--scorm-header-text-color, #ffffff);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.scorm-back-link:hover {
  color: var(--scorm-accent-color, #00a0d2);
  text-decoration: none;
}

.scorm-back-arrow {
  font-size: 14px;
}

.single-scorm-course-page-content {
  max-width: 1300px;
  width: 90%;
  margin: 50px auto !important;
}

/* SCORM Fullscreen Styles */
.scorm-fullscreen-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.scorm-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.scorm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.scorm-header-row h2 {
  margin: 0;
  flex: 1;
}

/* Fullscreen overlay */
.scorm-fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  overflow: hidden;
}

.scorm-fullscreen-overlay.active {
  display: block;
}

.scorm-fullscreen-content {
  position: relative;
  width: 98%;
  height: 98%;
  margin: 1% auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.scorm-fullscreen-header {
  background: #333;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  min-height: 50px;
}

.scorm-fullscreen-title {
  margin: 0;
  font-size: 18px;
}

.scorm-fullscreen-close {
  background: #ff4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.scorm-fullscreen-close:hover {
  background: #cc0000;
}

.scorm-fullscreen-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.scorm-fullscreen-body > div,
.scorm-fullscreen-body iframe,
.scorm-fullscreen-body .scorm-content-wrapper {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
}

/* Ensure any nested content takes full space */
.scorm-fullscreen-body * {
  box-sizing: border-box;
}

.scorm-fullscreen-body .scorm-content-wrapper > * {
  width: 100% !important;
  height: 100% !important;
}

.scorm-player-container {
  margin: 0 !important;
}
