.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212121'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-outline-warning {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Main Content */
/*.main-content {*/
/*    padding: 30px 0;*/
/*}*/
.course-sub-title {
    font-size: 18px;
    margin-bottom: 35px;
}

.course-title {
    font-weight: bolder;
    font-size: 28px;
    color: #000000;
    margin-top: 27px;
}

.course-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 13px 8px 71.4px 4px rgba(51, 51, 51, 0.2);
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.course-desc-tag {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: 15px;
}

.course-description {
    margin-bottom: 40px;
}

.course-description p {
    font-size: 16px;
    line-height: 1.875;
    text-align: justify;
}

/* Course Info Card */
.course-info-card {
    border: 0.5px solid var(--light-gray);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.course-info-card .card-header {
    background: linear-gradient(90deg, #9D9D9D 0%, #757575 38.86%, #3C3C3C 100%);
    border: none;
    padding: 15px;
    text-align: center;
}

.course-info-card .card-header h3 {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.price-info {
    text-align: center;
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #BABABA;
    margin-bottom: 5px;
}

.old-price span {
    font-size: 16px;
    display: block;
}

.old-price small {
    font-size: 16px;
}

.new-price span {
    font-size: 24px;
    font-weight: 600;
    display: block;
}

.new-price small {
    font-size: 24px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons .btn-dark {
    /*background-color: var(--medium-gray);*/
    /*border: none;*/
    /*font-weight: 600;*/
    /*font-size: 16px;*/
    padding: 12px 24px;
    /*border-radius: 8px;*/
    /*width: 100%;*/
}

.action-buttons .btn-outline-dark {
    /*border: 0.5px solid var(--medium-gray);*/
    /*color: var(--text-dark);*/
    /*font-weight: 600;*/
    /*font-size: 16px;*/
    padding: 12px 24px;
    /*border-radius: 8px;*/
    /*width: 100%;*/
}

.course-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-info li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.course-info li:last-child {
    border-bottom: none;
}

.course-info img {
    width: 14px;
    height: 14px;
}

.course-info span {
    color: #79787d;
    font-size: 12px;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 30px;
}

.accordion-item {
    background-color: var(--dark-gray);
    background: linear-gradient(90.01deg, #FFFFFF -18.17%, #E2E2E2 46.37%, #E2E2E2 104.98%);
    border-radius: 16px !important;
    margin-bottom: 24px;
    overflow: hidden;
    border: 0.5px;
}

.accordion-button {
    background-color: transparent;
    padding: 20px;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 400;
    text-align: right;
    box-shadow: none;
    border-bottom: 1px solid rgba(250, 250, 250, 0.1);
}

.accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212121'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
    color: var(--text-light);
    background-color: transparent;
}

.accordion-before-line {
    width: 3px;
    height: 32px;
    position: absolute;
    right: 24px;
    background-color: #959499;
    border-radius: 10px;

}


.accordion-body {
    background-color: #FAFAFA;
    color: #959499;
    padding: 26px 24px;
    font-size: 14px;
    line-height: 1.5;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-image-source: linear-gradient(90.01deg, #FFFFFF -18.17%, #E2E2E2 46.37%, #E2E2E2 104.98%);
    border-image-slice: 1;
    text-align: justify;
}


/* Comments Section */
.comments-section {
    background-color: #F0F0F0;
    padding: 20px;
    border-radius: 16px;
}

.comment {
    background-color: var(--text-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    overflow: hidden;
    background: linear-gradient(to bottom, #484848 0%, #000000 100%);
    border: 1px solid linear-gradient(to bottom, #F5F5F5 1.92%, #9D9D9D 100%);
    margin-left: 10px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h5 {
    color: #3D3D3D;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.date {
    color: #3D3D3D;
    font-size: 10px;
    display: block;
    margin-bottom: 5px;
}

.user-rating {
    display: flex;
    gap: 2px;
    padding-top: 10px;
}

.course-reactions-tabs .user-rating {
    padding-top: 0;
}


.comment-body p {
    color: var(--text-dark);
    font-size: 10px;
    line-height: 1.55;
    text-align: justify;
}

.load-more {
    text-align: center;
    color: var(--light-gray);
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--text-light);
    padding: 40px 0;
}

.line-separator {
    height: 3px;
    background-color: #9D9D9D;
    opacity: 0.09;
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.brand-info h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 4px;
}

.brand-info p {
    font-size: 14px;
    color: #333333;
    margin-bottom: 4px;
}

.brand-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.link-column a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-social p {
    color: #000000;
    font-size: 14px;
}

.social-icons {
    display: flex;
    /*justify-content: space-between;*/
    gap: 12px;
    /*padding: 12px;*/
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons i {
    color: #404040;
    font-size: 20px;
}

.footer-contact {
    display: flex;
    gap: 44px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-info p {
    color: #333333;
    font-size: 18px;
    margin-bottom: 1px;
}

.contact-info h3 {
    color: #333333;
    font-size: 24px;
    margin: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: #333333;
    font-size: 24px;
}

.image-stack img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.image-stack img:hover {
    transform: translateY(-5px);
}

.course-info-card.stopped {
    position: absolute !important;
}

.course-card {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.course-card:hover {
    transform: scale(1.3);
    z-index: 99;
}

.course-name {
    font-size: 10px;
    font-weight: 700;
    margin-top: 7px;
}

/*!* آیتم کناری بعدی *!*/
/*.tst99:hover + .tst99 {*/
/*    transform: scale(1.1);*/
/*    z-index: 5;*/
/*}*/

/*!* آیتم کناری قبلی - فقط در مرورگرهایی که :has پشتیبانی میشه *!*/
/*.tst99:has(+ .tst99:hover) {*/
/*    transform: scale(1.1);*/
/*    z-index: 5;*/
/*}*/


.accordion-button-text {
    margin-right: 35px;
    color: #212121;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-items {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .course-description {
        margin-bottom: 30px;
    }

    .course-info-card .card-header {
        background: #3C3C3C;
        color: #ffffff;
        font-weight: 600;
    }

    .price-info {
        text-align: right;
        margin-bottom: 1px;
        display: flex;
        gap: 10px;
    }

    .course-info-card .card-header h3 {
        font-weight: 500;
    }

    .course-info-card-price .offer-button {
        padding: 8px 20px;
    }

    .course-title {
        font-size: 18px;
        margin-top: 18px;

    }

    .course-sub-title {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .special-offer {
        padding: 15px;
    }

    .offer-content h3 {
        font-size: 24px;
    }

    .offer-description {
        font-size: 16px;
    }

    .course-thumbnail {
        width: 90px;
    }
}

@media (max-width: 576px) {
    .course-sub-title {
        font-size: 15px;
    }

    .course-title {
        font-size: 25px;
    }

    .header-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-items {
        gap: 15px;
    }

    .footer-brand {
        flex-direction: column;
    }

    .brand-info {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .link-column {
        align-items: center;
    }

    .footer-social {
        align-items: center;
    }
}