
@font-face {
    font-family: "Vazir";
    src: url("../font/vazir.woff2");

}
@font-face {
    font-family: "iransans";
    src: url("../font/iransans.ttf");

}
@font-face {
    font-family: "bkoodak";
    src: url("../font/bkoodak.ttf");

}
@font-face {
    font-family: "nas";
    src: url("../font/nas.ttf");

}

/* Fonts */
:root {
    --site-font:'vazir';
    --heading-site-font:'vazir';
    --nav-site-font:'vazir';
    --default-font:var(--site-font), "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: var(--heading-site-font), "Montserrat",  sans-serif;
    --nav-font: var(--nav-site-font), "Raleway",  sans-serif;
}


.footer h4::after{

    right: 0;
}


.service-details .services-list a{
    padding: 08px 15px 8px 0px;
    border-right: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
    border-left: 0px

}
.recent-posts-widget .post-item img {
    margin-left: 15px;
}
.blog-author img{
    margin-left: 20px;
}
.blog-author .social-links {
    margin: 0 0px 10px 10px;
}

.blog-comments .comment.comment-reply {
    padding-right: 40px;
    padding-left: 0px;
}
.blog-comments .comment .comment-img {
    margin-left: 14px;
    margin-right: 0px;
}

.about .nav-pills li+li {
    margin-right: 40px;
    margin-left: 0px;

}
.features .phone-wrap {
    right: unset;
    left: 0;
}
.recent-posts .post-author-img {
    margin-left: 15px;
    margin-right: unset;
}


.blog-posts .post-author-img {
    margin-left: 15px;
    margin-right: unset;
}
.page-title .breadcrumbs ol li+li::before {
    padding-left: 10px;
    padding-right: unset;
}
.hero .btn-watch-video i {
    margin-left: 8px;
    margin-right: unset;
}

.hero .btn-watch-video {
    margin-right: 25px;
    margin-left: unset;
}
.categories-widget ul a span {
    padding-right: 5px;
    padding-left: unset;
}
.blog-details .meta-top i {
    margin-left: 8px;
    margin-right: unset;
}
.blog-details .meta-top ul li+li {
    padding-right: 20px;
    padding-left: unset;
}

.blog-details .meta-bottom .cats{
    padding: 0 0px 0px 20px;
}
.search-widget form button {
    left: 0;
    right: unset;
    border-radius: 4px 0px 0px 4px;
}
.features .icon-list i {
    margin-left: 10px;
    margin-right: unset;
}
.form-control {
    direction: rtl;
}
.contact .info-item i {
    margin-left: 20px;
    margin-right: unset;
}
.portfolio-details .portfolio-info h3:after {
    right: 0;
    left: unset;
}
#my_isotope_padding{
    padding: 15px;
}
/* ===================================== */
/* ⭐ Star Rating Styles                 */
/* این کد رو به main_rtl.css اضافه کن    */
/* ===================================== */

/* --- باکس میانگین امتیاز --- */
.average-rating-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 16px 24px;
    display: inline-block;
}

.average-rating-box .avg-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.average-rating-box .avg-rating-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.average-rating-box .avg-rating-count {
    font-size: 14px;
    color: #777;
}

/* --- ستاره‌های نمایشی (کامنت‌ها و میانگین) --- */
.star-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.star-icon.filled {
    color: #ffc107;
}

.star-icon.half-filled {
    color: #ffc107;
    opacity: 0.6;
}

.star-icon.empty {
    color: #ddd;
}

/* --- ستاره‌های کامنت --- */
.comment-stars {
    margin: 6px 0 4px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.comment-stars .star-icon {
    font-size: 16px;
}

/* --- فرم انتخاب ستاره --- */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.star-rating-input .form-label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.star-select {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr; /* ستاره‌ها چپ‌به‌راست باشن */
}

.star-select .star-btn {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.star-select .star-btn:hover {
    transform: scale(1.15);
}

.star-select .star-btn.selected {
    color: #ffc107;
}

/* --- انیمیشن ستاره --- */
@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.star-select .star-btn.selected {
    animation: starPop 0.25s ease;
}

/* --- فرم کامنت --- */
#blog-comment-form {
    padding-top: 30px;
}

#blog-comment-form h4 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

#blog-comment-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#blog-comment-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#blog-comment-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

#blog-comment-form .btn-primary {
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#blog-comment-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#blog-comment-form .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* --- ریسپانسیو --- */
@media (max-width: 576px) {
    .star-select .star-btn {
        font-size: 28px;
    }

    .star-rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .average-rating-box {
        padding: 12px 16px;
    }

    .average-rating-box .avg-rating-number {
        font-size: 16px;
    }
}
/* --- باکس میانگین امتیاز --- */
.average-rating-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 16px 24px;
    display: inline-block;
}

.average-rating-box .avg-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.average-rating-box .avg-rating-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.average-rating-box .avg-rating-count {
    font-size: 14px;
    color: #777;
}

/* --- ستاره‌های نمایشی (کامنت‌ها و میانگین) --- */
.star-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.star-icon.filled {
    color: #ffc107;
}

.star-icon.half-filled {
    color: #ffc107;
    opacity: 0.6;
}

.star-icon.empty {
    color: #ddd;
}

/* --- ستاره‌های کامنت --- */
.comment-stars {
    margin: 6px 0 4px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.comment-stars .star-icon {
    font-size: 16px;
}

/* --- فرم انتخاب ستاره --- */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.star-rating-input .form-label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.star-select {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
}

.star-select .star-btn {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.star-select .star-btn:hover {
    transform: scale(1.15);
}

.star-select .star-btn.selected {
    color: #ffc107;
}

/* --- انیمیشن ستاره --- */
@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.star-select .star-btn.selected {
    animation: starPop 0.25s ease;
}

/* --- فرم کامنت --- */
#blog-comment-form {
    padding-top: 30px;
}

#blog-comment-form h4 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

#blog-comment-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#blog-comment-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#blog-comment-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

#blog-comment-form .btn-primary {
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#blog-comment-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#blog-comment-form .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* --- مخفی کردن عنوان پیش‌فرض comment_form --- */
#blog-comment-form #reply-title {
    display: none;
}

/* --- ریسپانسیو --- */
@media (max-width: 576px) {
    .star-select .star-btn {
        font-size: 28px;
    }

    .star-rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .average-rating-box {
        padding: 12px 16px;
    }

    .average-rating-box .avg-rating-number {
        font-size: 16px;
    }
}