.single-course .whb-header,
.post-type-archive-course .whb-header {
    margin-bottom: 10px;
    box-shadow: 0 1px 10px #bbb;
}
.post-type-archive-course h1 {
    text-align: center;
}

.course-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-header {
    text-align: center;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #23282d;
    margin-bottom: 20px;
}

.course-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.course-thumbnail {
    margin-bottom: 30px;
}

.course-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Course List */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.course-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.course-item .course-thumbnail {
    margin-bottom: 0;
}

.course-item .course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.course-item .course-content {
    padding: 20px;
    text-align: center;
}

.course-item .course-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-item .course-title a {
    color: #23282d;
    text-decoration: none;
}

.course-item .course-title a:hover {
    color: #0073aa;
}

.course-item .course-excerpt {
    font-size: 1rem;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.course-meta span {
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #555;
}

.course-difficulty {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.course-duration {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

.course-stages {
    background: #e8f5e8 !important;
    color: #388e3c !important;
}

.course-type {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

.course-actions {
    text-align: center;
}

.course-actions .button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.course-actions .button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* No Courses Message */
.no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-courses p {
    font-size: 1.2rem;
}

.course-stage {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.course-stage:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.course-stage-title {
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.course-stage-duration {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 14px;
    color: #6c757d;
}

.course-stage-duration .duration-icon {
    margin-left: 5px;
}

.course-stage-duration .duration-text {
    font-weight: 600;
}

.course-stage-content {
    line-height: 1.6;
    color: #555;
}

.course-stage-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e1e1e1;
}

.course-progress {
    background: #f1f1f1;
    border-radius: 10px;
    height: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.course-progress-bar {
    background: linear-gradient(90deg, #0073aa, #005a87);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.course-progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #555;
}

.course-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.course-stage-completion-message {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-top: 20px;
}

.course-stage-completion-message .completion-text {
    font-size: 16px;
    font-weight: 600;
    color: #155724;
    margin-bottom: 15px;
}

.course-nav-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.course-nav-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.course-nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.course-nav-button.secondary {
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ddd;
}

.course-nav-button.secondary:hover {
    background: #e1e1e1;
    color: #333;
}

.course-completion-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.course-access-denied {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* RTL Support */
.rtl .course-navigation {
    direction: rtl;
}

.rtl .course-stage-title {
    text-align: right;
}

.rtl .course-stage-content {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-stage {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .course-stage-title {
        font-size: 20px;
    }
    
    .course-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .course-nav-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .course-stage {
        padding: 15px;
    }
    
    .course-stage-title {
        font-size: 18px;
    }
}
