:root {
    --primary-color: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --table-header: #e0f2fe;
    --container-width: 1200px;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-banner {
    position: relative;
    width: 55%;
    height: 310px;
    background-color: #DADADA;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 32px auto;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.profile-section {
    text-align: center;
    margin-top: -115px;
    position: relative;
    z-index: 10;
}

.profile-avatar {
    width: 166px;
    height: 166px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
    background-color: #fff;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin-top: 12px;
    line-height: 28px;
    font-weight: 600;
}

.profile-bio {
    color: #000;
    font-size: 16px;
    width: 90%;
    margin: 16px auto 21px;
    line-height: 24px;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin: 15px 0 32px 0;
}


.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 400;
}

.social-link i {
    font-size: 18px;
    color: #3b82f6;
}

.stats-grid {
    display: flex;
    flex-flow: row;
    gap: 20px;
    margin: 30px auto 0;
    justify-content: center;
}

.stat-card {
    border: 1px solid #DADADA;
    border-radius: 8px;
    padding: 18px 67px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #FFA200;
}

.stat-label {
    font-size: 16px;
    color: #000;
    margin-top: 16px;
    line-height: 24px;
    font-weight: 400;
}

.section-wrapper {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
    line-height: 34px;
}

.about-text {
    font-size: 16px;
    color: #000;
    text-align: justify;
    line-height: 32px;
    font-weight: 400;
}

.data-table-wrapper {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.data-table th {
    background-color: #AED3F7;
    color: #000;
    font-weight: 600;
    padding: 16px;
    font-size: 14px;
}

.data-table:last-child th {
    background-color: #E6DFFF;
}

.data-table:first-child thead {
    border: 1px solid #AED3F7;
}

.data-table:last-child thead {
    border: 1px solid #e6dfff;
}

.data-table td {
    padding: 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid var(--border-color);
    line-height: 22px;
    font-weight: 500;
}

.data-table:first-child tr:last-child td {
    border-bottom: none;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: right;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-item {
    text-align: center;
}

.skill-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.skill-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.stars i {
    color: var(--border-color);
    font-size: 16px;
}

.stars i.filled {
    color: var(--primary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.course-card,
.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.tags-wrapper {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tag {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.price-current {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
}

.price-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.article-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.8;
}

.rating-section {
    text-align: center;
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rating-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    color: #000;
}

.rating-stars {
    margin: 14px 0;
}

.rating-stars .stars {
    display: flex;
    flex-flow: row;
    gap: 4px;
}

.rating-stars .stars svg:hover path,
.rating-stars .stars svg:has(~ svg:hover) path {
    fill: #FFA200;
    cursor: pointer;
    transition: fill 0.2s ease-in-out;
}

.rating-stars .stars svg.active {
    fill: #FFA200;
}

.btn-primary {
    background-color: #FFA200;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 20px;
    color: #000;
}

.btn-primary:hover {
    background-color: #d97706;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-all {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card-pro {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid #BBB;
}

.courses-grid {
    display: flex;
    gap: 20px;
}

.card-image-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 14px;
    line-height: 24px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.card-teacher {
    font-size: 12px;
    color: var(--text-color-bl);
    margin-bottom: 15px;
    text-align: right;
    font-weight: 400;
}

/* تگ‌های دسته‌بندی رنگی */
.card-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.tag-orange {
    background: #FFF3E0;
    color: var(--text-color-bl);
    font-weight: 400;
    font-size: 10px;
}

.tag-purple {
    background: #bdaaff;
}

.card-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    flex-direction: row-reverse;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.price-current span {
    font-size: 12px;
    font-weight: 400;
}

.price-old {
    font-size: 14px;
    color: #696969;
    text-decoration: line-through;
    font-weight: 400;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    /* جایگزین متغیر --border-color */
}

.article-image {
    padding: 12px;
}

.articles-section .section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: var(--text-color-bl);
}

.article-content {
    padding: 0 20px 16px;
    text-align: right;
}

.article-content h3 {
    font-size: 14px;
    color: var(--text-color-bl);
    margin-bottom: 8px;
    line-height: 22px;
    height: 44px;
}

.article-content p {
    color: var(--text-color-bl);
    font-size: 12px;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #0A3762;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
}

.review-btn {
    width: 26px;
    height: 25px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.review-btn:hover {
    background: #f3f4f6;
}

.reviews-slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-left: 20px;
}

div#articles-carousel {
    margin-top: 32px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color-bl);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.view-all-link svg {
    padding: 2px;
}

.breadcrumb {
    margin: 16px 0 0;
}

.breadcrumb span {
    display: flex;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links {
        flex-wrap: wrap;
        gap: 24px;
        margin: 15px 0 14px 0;
    }

    .data-table th,
    .data-table td {
        font-size: 12px;
        padding: 10px;
    }

    .hero-banner {
        width: 100%;
        height: 208px;
        border-radius: 12px;
    }

    .social-link {
        font-size: 0;
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-name {
        font-size: 16px;
        line-height: 20px;
        margin: 11px auto 20px;
        font-weight: 600;
    }

    .profile-bio {
        font-size: 14px;
        line-height: 26px;
        margin: 0;
        width: 100%;
    }

    .stat-value {
        font-size: 16px;
    }

    .stats-grid {
        display: flex;
        flex-flow: row;
        gap: 20px;
        margin: 26px auto 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-label {
        font-size: 14px;
        line-height: 26px;
        font-weight: 400;
    }

    .section-title {
        font-size: 16px;
        font-weight: 600;
    }

    .about-text {
        font-size: 14px;
        color: #000;
        text-align: justify;
        line-height: 27px;
        font-weight: 400;
    }

    .course-card-pro .card-title {
        line-height: 21px;
    }

    .course-card-pro .price-current {
        line-height: 26px;
    }

    .rating-title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 600;
    }

    .reviews-slider-controls {
        display: none;
    }

    .profile-section {
        margin-top: -78px;
    }
    .stat-card {
        width: 100%;
    }
    .site-footer .container{
        padding: 0;
    }
    div#articles-carousel {
        margin-top: 14px;
    }
    .play-btn {
        width: 50px;
        height: 50px;
    }
}