/**
 * BPS Trainer - SCSS Variables
 *
 * Override BPS default variables for trainer-specific styling
 * These will be merged with BPS master variables
 *
 * @package BPS_Trainer
 * @since 2.0.0
 */
/**
 * BPS Trainer - Archive Styles
 *
 * Styling for training post archive with access gating
 * Extracted from archive.php inline styles
 *
 * @package BPS_Trainer
 * @since 2.0.0
 */
.training-card {
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.training-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.training-card.locked {
  opacity: 0.7;
  background: linear-gradient(135deg, var(--bg-muted, #f5f5f5) 0%, var(--border-color, #e0e0e0) 100%);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card-icon {
  font-size: 24px;
  line-height: 1;
}
.card-icon.lock {
  opacity: 0.6;
}
.locked-badge {
  background: var(--warning, #ff9800);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}
.dtype-badge {
  background: var(--accent, #2196F3);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: capitalize;
  margin-left: auto;
}
.dtype-badge.module {
  background: var(--success, #4CAF50);
}
.dtype-badge.overview {
  background: var(--accent-alt, #9C27B0);
}
.card-title {
  font-size: 24px;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}
.card-title a:hover {
  color: var(--accent, #2196F3);
}
.card-description {
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin-bottom: 16px;
}
.restricted-message {
  font-style: italic;
  color: var(--text-disabled, #999);
}
.restricted-message a {
  color: var(--accent, #2196F3);
  text-decoration: underline;
}
.card-footer {
  border-top: 1px solid var(--border-color, #eee);
  padding-top: 16px;
}
.pagination-wrapper {
  text-align: center;
}
@media (max-width: 768px) {
  .training-card {
    padding: 16px;
  }
  .card-title {
    font-size: 20px;
  }
}
/**
 * BPS Trainer - Component Styles
 *
 * Shared component styles for lessons, modules, resources, navigation
 * Extracted from template parts inline styles
 *
 * @package BPS_Trainer
 * @since 2.0.0
 */
.overview-modules-container {
  margin: 3rem 0;
}
.modules-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}
.modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.module-card {
  background: var(--bg);
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
.module-card.locked {
  opacity: 0.65;
  background: var(--bg-muted, #f8f8f8);
}
.module-card-header {
  background: linear-gradient(135deg, var(--primary-color, var(--accent)), var(--secondary-color, var(--accent-dark)));
  color: var(--bg);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-card.locked .module-card-header {
  background: linear-gradient(135deg, #999, #666);
}
.module-number {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.module-card-body {
  padding: 1.5rem;
  flex: 1;
}
.module-title {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}
.module-title a {
  color: var(--text-color);
  text-decoration: none;
}
.module-title a:hover {
  color: var(--accent, #007bff);
}
.locked-text {
  color: var(--text-muted, #666);
}
.module-excerpt {
  color: var(--text-muted, #666);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.module-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.lesson-count, .progress-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary, #555);
}
.meta-icon {
  font-size: 1.1rem;
}
.progress-bar-container {
  margin-top: 1rem;
}
.progress-bar {
  background: var(--border-color, #e0e0e0);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  background: linear-gradient(90deg, var(--success, #28a745), var(--success-dark, #1e7e34));
  height: 100%;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  font-weight: 500;
}
.module-card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
}
.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}
.no-modules-message {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-muted, #f8f8f8);
  border-radius: 12px;
  margin: 3rem 0;
}
.text-muted {
  color: var(--text-disabled, #999);
  font-style: italic;
  font-size: 1.1rem;
}
.module-lessons-container {
  margin: 2rem 0;
}
.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lessons-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.lesson-item {
  background: var(--bg);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.lesson-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.lesson-item.locked {
  opacity: 0.7;
  background: var(--bg-muted, #f8f8f8);
}
.lesson-item-inner {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}
.lesson-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}
.icon-play {
  color: var(--accent, #007bff);
}
.icon-lock {
  opacity: 0.5;
}
.lesson-content {
  flex: 1;
}
.lesson-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}
.lesson-title a {
  color: var(--text-color);
  text-decoration: none;
}
.lesson-title a:hover {
  color: var(--accent, #007bff);
}
.locked-title {
  color: var(--text-muted, #666);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lesson-excerpt {
  margin: 0;
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}
.lesson-action {
  min-width: 150px;
  text-align: right;
}
.no-lessons-message {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-muted, #f8f8f8);
  border-radius: 8px;
}
.lesson-navigation {
  padding: 32px 0;
  background: var(--bg-alt, #f5f5f5);
  border-top: 2px solid var(--border-color, #e0e0e0);
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.nav-prev {
  text-align: left;
}
.nav-next {
  text-align: right;
}
.nav-position {
  text-align: center;
  min-width: 150px;
}
.position-text {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-muted, #666);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px !important;
  text-decoration: none !important;
  transition: all 0.2s;
  border-radius: 6px;
}
.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.nav-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
}
.nav-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.nav-next .nav-label {
  align-items: flex-end;
}
.nav-direction {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-placeholder {
  min-height: 48px;
}
.resources-section {
  margin: 32px 0;
}
.resources-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-color);
}
.resources-icon {
  font-size: 28px;
  line-height: 1;
}
.resources-description {
  color: var(--text-muted, #666);
  margin-bottom: 24px;
  font-size: 14px;
}
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resource-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  transition: all 0.2s;
}
.resource-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--accent, #2196F3);
}
.resource-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
}
.resource-icon {
  font-size: 32px;
  line-height: 1;
}
.resource-content {
  flex: 1;
}
.resource-title {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-weight: 600;
}
.resource-description {
  color: var(--text-muted, #666);
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
}
.resource-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.resource-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-muted, #f0f0f0);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted, #666);
  text-transform: uppercase;
  font-weight: 600;
}
.resource-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 20px !important;
}
.external-icon, .download-icon {
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 768px) {
  .modules-list {
    grid-template-columns: 1fr;
  }
  .nav-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-prev, .nav-next {
    text-align: center;
  }
  .nav-prev {
    order: 2;
  }
  .nav-position {
    order: 1;
  }
  .nav-next {
    order: 3;
  }
  .nav-label {
    align-items: center !important;
  }
  .nav-title {
    max-width: 200px;
  }
  .nav-button {
    width: 100%;
    justify-content: center;
  }
  .resource-item {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }
  .resource-action {
    grid-column: 1 / -1;
  }
  .resource-action .btn {
    width: 100%;
    justify-content: center;
  }
  .resource-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .resource-icon {
    font-size: 24px;
  }
  .resource-title {
    font-size: 16px;
  }
}
/**
 * BPS Trainer - Lesson Template Styles
 *
 * Styles for lesson template components that extend BPS visual builder
 * All classes designed to work within .bps-vtemplates wrapper
 *
 * @package BPS_Trainer
 * @since 2.0.0
 */
.bps-vtemplates .section.section-opener.dark {
  min-height: auto !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 3rem 2rem !important;
}
.bps-vtemplates .breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.bps-vtemplates .breadcrumb-custom a {
  color: inherit;
  text-decoration: none;
  transition: 0.15s ease-out;
  opacity: 0.7;
}
.bps-vtemplates .breadcrumb-custom a:hover {
  opacity: 1;
  color: var(--accent);
}
.bps-vtemplates .breadcrumb-custom .separator {
  opacity: 0.5;
}
.bps-vtemplates .breadcrumb-custom .current {
  font-weight: 500;
  color: var(--text-color);
}
.bps-vtemplates .bps-complete-section {
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem auto 0;
  max-width: 600px;
  text-align: center;
  background-color: var(--bg2);
  border: 1px solid var(--e-border-color);
}
.bps-vtemplates .bps-complete-checkbox-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}
.bps-vtemplates .bps-complete-checkbox-wrapper .bps-complete-checkbox {
  width: 28px;
  height: 28px;
  margin-right: 1rem;
  cursor: pointer;
  accent-color: var(--accent);
}
.bps-vtemplates .bps-complete-checkbox-wrapper .bps-complete-label {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color);
}
.bps-vtemplates .bps-completion-message {
  display: none;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  font-weight: 500;
  background-color: #28a745;
  color: #fff;
}
.bps-vtemplates .bps-completion-message.show {
  display: block;
}
.bps-vtemplates .bps-completion-message i {
  margin-right: 0.25rem;
}
.bps-vtemplates .curriculum-module {
  margin-bottom: 1.25rem;
}
.bps-vtemplates .curriculum-module .module-header {
  padding: 1rem;
  background-color: var(--bg2);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease-out;
  color: var(--text-color);
}
.bps-vtemplates .curriculum-module .module-header:hover {
  background-color: var(--bg);
  color: var(--accent);
}
.bps-vtemplates .curriculum-module .module-header i {
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}
.bps-vtemplates .curriculum-module .module-header.expanded i {
  transform: rotate(90deg);
}
.bps-vtemplates .curriculum-module .module-lessons {
  padding-left: 1rem;
}
.bps-vtemplates .lesson-link {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.15s ease-out;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  font-size: 0.875rem;
}
.bps-vtemplates .lesson-link i {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--text-color3);
}
.bps-vtemplates .lesson-link:hover {
  background-color: var(--bg2);
  border-left-color: var(--accent);
  color: var(--accent);
}
.bps-vtemplates .lesson-link.active {
  background-color: var(--bg2);
  border-left-color: var(--accent);
  font-weight: 600;
}
.bps-vtemplates .lesson-link.active i {
  color: var(--accent);
}
.bps-vtemplates .lesson-link span {
  flex: 1;
}
.bps-vtemplates .lesson-link .lesson-duration {
  font-size: 0.75rem;
  color: var(--text-color3);
  margin-left: 0.5rem;
}
.bps-vtemplates .part-divider {
  margin: 2rem 0 1.25rem;
}
.bps-vtemplates .part-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  color: var(--text-color3);
}
.bps-vtemplates .part-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-highlight);
}
.bps-vtemplates .highlight-quote {
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  background-color: var(--bg2);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
  color: var(--text-color2);
  border: 1px solid var(--e-border-color);
}
.bps-vtemplates .exercise-notes {
  padding: 1rem;
  border-radius: 0.375rem;
  background-color: var(--bg2);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.bps-vtemplates .vb-card.card-highlight:hover {
  box-shadow: none;
  transform: none;
}
.bps-vtemplates .lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--e-border-color);
}
.bps-vtemplates .sidebar-box {
  padding: 1.5rem;
  background-color: var(--bg2);
  border-radius: 0.5rem;
  border: 1px solid var(--e-border-color);
  margin-top: 2rem;
}
.bps-vtemplates .sidebar-box h3 {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bps-vtemplates .sidebar-box h3 i {
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .bps-vtemplates .curriculum-module .module-header {
    font-size: 0.875rem;
  }
  .bps-vtemplates .lesson-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .bps-vtemplates .lesson-nav .nav-btn-previous, .bps-vtemplates .lesson-nav .nav-btn-next {
    width: 100%;
  }
}
.bps-vtemplates .lesson-meta {
  opacity: 0.75;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.bps-vtemplates .training-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-orange, #e07b39);
  background-color: rgba(224, 123, 57, 0.12);
  border: 1px solid rgba(224, 123, 57, 0.35);
  border-radius: 2rem;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1.25rem;
}
.bps-vtemplates .video-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 1.5rem;
}
.bps-vtemplates .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.bps-vtemplates .video-wrapper iframe, .bps-vtemplates .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bps-vtemplates .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: #1a1a2e;
  color: var(--accent-gold, #c9a84c);
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}
.bps-vtemplates .video-placeholder i {
  font-size: 3rem;
}
.bps-vtemplates .info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.bps-vtemplates .info-card {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: #ffffff;
  border-left: 4px solid var(--accent-orange, #e07b39);
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0.6rem 1rem;
  transition: 0.15s ease-out;
}
.bps-vtemplates .info-card:hover {
  transform: translateX(4px);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
}
.bps-vtemplates .info-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange, #e07b39);
  white-space: nowrap;
  min-width: 7rem;
}
.bps-vtemplates .info-card-value {
  font-size: 1rem;
  color: var(--text-color);
}
.bps-vtemplates .downloads-card {
  background-color: #f7f6f3;
  border: 1px solid var(--e-border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}
.bps-vtemplates .downloads-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bps-vtemplates .download-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: 0.15s ease-out;
  margin-bottom: 0.25rem;
}
.bps-vtemplates .download-item:last-child {
  margin-bottom: 0;
}
.bps-vtemplates .download-item i {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  color: var(--accent-purple, #6b4fa0);
}
.bps-vtemplates .download-item:hover {
  background-color: var(--accent-purple, #6b4fa0);
  color: #ffffff;
}
.bps-vtemplates .download-item:hover i {
  color: #ffffff;
}
.bps-vtemplates .nav-btn-previous, .bps-vtemplates .nav-btn-next {
  flex: 1;
  max-width: 48%;
}
.bps-vtemplates .nav-btn-previous .btn, .bps-vtemplates .nav-btn-next .btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
}
.bps-vtemplates .nav-btn-next {
  text-align: right;
}
.bps-vtemplates .nav-btn-next .btn {
  align-items: flex-end;
}
.bps-vtemplates .nav-direction {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.bps-vtemplates .nav-title {
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 991px) {
  .bps-vtemplates .downloads-card {
    position: static;
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .bps-vtemplates .nav-btn-previous, .bps-vtemplates .nav-btn-next {
    max-width: 100%;
    text-align: left;
  }
  .bps-vtemplates .nav-btn-previous .btn, .bps-vtemplates .nav-btn-next .btn {
    align-items: flex-start;
  }
}
