/* Training page specific styles */
.training-page {
    max-width: 1400px;
    margin: 0 auto;
padding: 2rem 1rem;
}

/* Training content scrollable container */
#training-content.scroll-container {
    background: white;
    border-radius: 8px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Public page styling */
.training-page #training-content.scroll-container {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Training Section Styles */
.training-section {
    padding: 1rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

    .section-header h2 {
        color: #003366;
        font-size: 1.75rem;
  font-weight: 600;
        margin-bottom: 0.5rem;
    }

.section-description {
    color: #666;
    font-size: 1.05rem;
    margin: 0;
}

/* Training Videos Grid */
.training-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.training-video-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Alternating row colors for training cards - matches table styling */
.training-section:nth-child(even) {
    background: #f3f3f3;
/*    e6eaf7*/
}

    .training-video-card:hover {
  transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #f0f0f0;
    overflow: hidden;
}

    .video-thumbnail img {
    position: absolute;
        top: 0;
      left: 0;
        width: 100%;
        height: 100%;
      object-fit: cover;
    }

.video-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
  width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.training-video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-card-body {
    padding: 1rem;
}

.video-title {
 font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.video-duration {
    display: inline-block;
 font-size: 0.85rem;
    color: #999;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

    .video-modal.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
  opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-dialog {
    background: white;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    max-height: calc(100vh - 4rem);
    margin: 0 auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}

    .video-modal-header h4 {
      margin: 0;
        font-size: 1.25rem;
        color: #333;
    }

.video-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
  line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .video-modal-close:hover {
 color: #333;
    }

.video-modal-body {
    padding: 0;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 95%;
    background: #000;
}

    .video-container > div {
     width: 100% !important;
        height: 100% !important;
    }

    .video-container .video-js {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

.video-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.video-footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-description-text {
    margin: 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.95rem;
}

.video-share-section {
    display: flex;
 align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.share-url-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.share-url {
  background: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    max-width: 400px;
}

/* Responsive adjustments in training-mobile.css*/

