﻿main {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.course-title {
    color: #007b83;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.course-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.course-price {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 700;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.instructor-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007b83;
}

.duration, .level, .category {
    display: inline-block;
    background-color: #e9f2f2;
    color: #007b83;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 600;
    margin-left: 10px;
    font-size: 0.9rem;
}

.btn-enroll {
    background-color: #007b83;
    border: none;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
    display: block;
    text-align: center;
    cursor: pointer;
}

    .btn-enroll:hover {
        background-color: #005f62;
    }

.course-details p {
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.course-tags {
    margin-top: 1rem;
    text-align: center;
}

    .course-tags span {
        background-color: #007b83;
        color: white;
        border-radius: 12px;
        padding: 6px 14px;
        margin: 0 5px;
        font-size: 0.9rem;
        font-weight: 600;
    }

/* پیشنهادهای دوره */
.recommended-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.recommended-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007b83;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommended-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.recommended-card {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

    .recommended-card:hover {
        transform: translateY(-5px);
    }

.recommended-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.recommended-body {
    padding: 0.75rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommended-title-course {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.recommended-instructor {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.recommended-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
    text-align: left;
}

/* Hide scrollbar but keep scroll */
.recommended-cards::-webkit-scrollbar {
    height: 6px;
}

.recommended-cards::-webkit-scrollbar-thumb {
    background-color: #007b83;
    border-radius: 3px;
}

/* کامنت‌ها */
.comments-section {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.comments-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007b83;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comment-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .comment-form textarea {
        resize: vertical;
        min-height: 80px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    .comment-form input[type="text"] {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-family: 'Vazirmatn', Tahoma, sans-serif;
    }

    .comment-form button {
        align-self: flex-start;
        background-color: #007b83;
        border: none;
        padding: 0.75rem 1.5rem;
        color: white;
        font-weight: 700;
        font-size: 1rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .comment-form button:hover {
            background-color: #005f62;
        }

.comment-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comment-item {
    background: #f4f7f8;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    font-size: 1rem;
    color: #333;
    position: relative;
}

    .comment-item .comment-author {
        font-weight: 700;
        color: #007b83;
        margin-bottom: 0.25rem;
    }

    .comment-item .comment-text {
        white-space: pre-line;
        line-height: 1.4;
    }

.list-opinion {
    position: relative;
    display: block;
    padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);
    color: var(--bs-list-group-color);
    text-decoration: none;
    /* background-color: var(--bs-list-group-bg); */
    border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
    width: 100%;
    /* color: var(--bs-list-group-action-color); */
    text-align: inherit;
}
