/* Kurs – EU AI Act (spelare + köpsida) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.course-page,
.course-player-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #2d2d2d;
    min-height: 100vh;
}

.course-page .navbar,
.course-player-page .navbar {
    background: #fff !important;
}

.course-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.course-hero-card,
.course-player-card,
.course-login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(45, 45, 45, 0.08);
    padding: 2rem;
}

.course-hero-card h1,
.course-player-card h1,
.course-section h2 {
    color: #667eea;
    font-weight: 700;
}

.course-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.course-progress {
    margin-bottom: 1.5rem;
}

.course-progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d2d2d;
}

.course-progress-bar {
    height: 10px;
    background: #dee2e6;
    border-radius: 999px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.course-video-wrap {
    margin: 1.25rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #2d2d2d;
}

.course-video-wrap video {
    width: 100%;
    display: block;
}

.course-step-meta {
    color: #5a5a5a;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.course-quiz {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d4d3c8;
    scroll-margin-top: 5rem;
}

.course-quiz-locked {
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    color: #5a5a5a;
    text-align: center;
    margin: 0;
}

.course-quiz-locked-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.course-quiz h3 {
    color: #667eea;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.course-quiz-question {
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-quiz-options {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.course-quiz-options li {
    margin-bottom: 0.5rem;
}

.course-quiz-options label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.course-quiz-options label:hover {
    border-color: #667eea33;
}

.course-quiz-options input:checked + span {
    font-weight: 600;
}

.course-quiz-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
}

.course-quiz-feedback.is-visible {
    display: block;
}

.course-quiz-feedback.is-correct {
    background: #d1fae5;
    border-left: 4px solid #10b981;
}

.course-quiz-feedback.is-wrong {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.course-quiz-feedback strong {
    display: block;
    margin-bottom: 0.35rem;
}

.course-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.course-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.course-btn-primary {
    background: #667eea;
    color: #fff;
}

.course-btn-primary:hover:not(:disabled) {
    opacity: 0.92;
    color: #fff;
}

.course-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.course-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.course-diploma-box {
    text-align: center;
    padding: 2rem 1rem;
}

.course-diploma-box .course-btn {
    margin-top: 1rem;
}

.course-links-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.course-links-grid a {
    display: block;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dee2e6;
}

.course-links-grid a:hover {
    border-color: #667eea;
    background: #f0efff;
}

.course-login-form .form-label {
    font-weight: 600;
}

.course-login-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.65rem 0.85rem;
}

.course-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.course-alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.course-alert-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.course-alert-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
}

.course-timeline {
    padding-left: 1.25rem;
}

.course-timeline li {
    margin-bottom: 0.5rem;
}

.course-buy-features {
    list-style: none;
    padding: 0;
}

.course-buy-features li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.course-buy-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

@media (max-width: 576px) {
    .course-wrap {
        padding: 1rem 0.75rem 3rem;
    }
    .course-hero-card,
    .course-player-card {
        padding: 1.25rem;
    }
}

/* Sticky card under navbar */
.sticky-lg-top {
    z-index: 1010;
}
