body {
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #F1F5F9;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.main-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-page-column {
    padding: 0px 20px;
    /* margin: 50px 0; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    gap: 25px;
    /* margin-top: 50px; */
    /* margin-bottom: 50px; */
    margin: 50px 0px;
}

/* رسپانسیو برای نمایشگرهای کوچک‌تر */
@media screen and (max-width: 768px) {
    .main-page-column {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        margin-top: 25px;
    }
    
    .sidebar-box-main {
        display: flex;
        flex-direction: column;
        gap: 25px
    }

    .video-box {
        flex: 1;
        width: 100%;
    }

    .video-header-content {
        padding: 20px;
    }

    .video-title {
        font-size: 22px;
    }

    .video_meta_description {
        font-size: 14px;
        line-height: 22px;
    }

    .video_jalali_date {
        font-size: 12px;
    }
}

.video-box {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #FFF;
    padding: 25px;
}

.video-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #222;
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
}

.video_meta_description {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #304C48;
    text-align: justify;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: #495057;
    text-align: justify;
    margin: 0;
    padding: 0;
}

.video-jalali-duration {
    display: flex;
    gap: 10px
}

.video_jalali_date {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #636C68;
}

span.video_durations-box {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #636C68;
}


/* استایل لایه لودینگ */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  z-index: 10;
}

/* وقتی ویدیو بارگذاری شده، لایه لودینگ ناپدید می‌شود */
.video-container-box {
  position: relative;
}



.video-description-container {
    background-color: #FFF;
    padding: 25px;
    text-align: justify;
}

.video-description-box h2 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.video-description-box h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.video-description-box h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.video-description-box h5 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.video-description-box p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 32px;
}

@media screen and (max-width: 768px) {
    .video-description-container {
        padding: 15px; /* کاهش فاصله داخلی */
    }
}

.video-references {
    /* margin-top: 20px; */
    background-color: #FFF;
    padding: 25px;
}

.reference-item {
    margin-bottom: 10px;
}

.reference-title {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.reference-title:hover {
    text-decoration: underline;
}

.reference-meta {
    font-size: 12px;
    color: #666;
}


.video-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 25px;
    background-color: #FFF;
    font-size: 12px;
    align-items: center;
}

.video-keywords-title {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.video-keywords-item {
    background-color: #e0e0e0;
    border-radius: 0px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    color: blue;
}

a.post-keywords-item {
    background-color: #e0e0e0;
    padding: 5px 8px;
    border-radius: 0px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    color: blue;
}

a.video-keywords-item {
    background-color: #e0e0e0;
    padding: 5px 8px;
    border-radius: 0px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    color: blue;
}

@media screen and (max-width: 768px) {
    .video-keywords {
        padding: 15px; /* کاهش فاصله داخلی */
        font-size: 12px; /* کاهش سایز فونت برای موبایل */
    }

    .video-keywords-title {
        font-size: 14px; /* کاهش سایز تیتر */
    }

    .video-keyword-item {
        font-size: 12px;
        padding: 4px 8px;
    }

    span.video-keywords-item {
        font-size: 12px;
        padding: 4px 8px;
    }
}


.sidebar-box-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* کشیدن همه آیتم‌ها برای پر کردن عرض */
    gap: 25px;    
}

@media screen and (max-width: 768px) {
    .sidebar-box-main {
        gap: 25px; /* کاهش فاصله بین آیتم‌ها در موبایل */
        align-items: stretch; /* پر کردن عرض کامل در موبایل */
    }
}

.post-detail-container-main-aside-author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    gap: 15px;
    margin: 0;
    background-color: #FFF;
    width: -webkit-fill-available;
}

.author-image, img.author-image {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.post-detail-container-main-aside-author-informations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

a.post-detail-container-main-aside-author-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
    /* font-size: 14px; */
    /* font-weight: bold; */
    /* margin: 0; */
    /* padding: 0; */
}

p.post-detail-container-main-aside-author-education {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    text-align: center;
    margin: 0;
    padding: 0;
}

p.post-detail-container-main-aside-author-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
    /* font-size: 14px; */
    /* font-weight: bold; */
    /* margin: 0; */
    /* padding: 0; */
}

@media screen and (max-width: 768px) {
    .post-detail-container-main-aside-author-box {
        padding: 15px; /* کاهش فاصله داخلی */
        gap: 10px; /* کاهش فاصله بین آیتم‌ها */
    }

    .author-image,
    img.author-image {
        width: 75px;
        height: 75px;
    }

    a.post-detail-container-main-aside-author-name,
    p.post-detail-container-main-aside-author-name {
        font-size: 14px; /* کوچک‌تر شدن فونت نام نویسنده */
    }
}

.post_detail_box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    padding: 25px;
    background-color: #FFF;
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    padding: 25px;
    background-color: #FFF;
    width: -webkit-fill-available;
}

.view-count, .category-title, .topic-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
}


@media screen and (max-width: 768px) {
    .post_detail_box {
        padding: 15px; /* کاهش فاصله داخلی */
    }

    .view-count, .category-title, .topic-title {
        font-size: 12px; /* کاهش سایز فونت برای موبایل */
    }
}

.post-detail-container-main-aside-info-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    padding: 25px;
    background-color: #FFF;
    width: -webkit-fill-available;
}

a.category-title, a.topic-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
    color: #495057;
}

.related-box {
    padding: 25px;
    background-color: #FFF;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

span.related-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
}

ul.related-list {
    padding: 0px;
    list-style: none;
    font-size: 12px;
    margin: 0px;
}

li.related-item {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0px;
}

a.related-item-link {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
    color: #495057;
}

.rating-container {
    background-color: #FFF;
    font-size: 12px;
    padding: 25px;
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

span.related-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
}

form {
    margin: 0px;
}

p.post-average-rating-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    color: #495057;
    text-align: justify;
    margin: 0;
    padding: 0;
}

        .send-comment-section {
    background-color: #FFF;
    padding: 25px;
    margin: 0px;
}

p.send-comment-section-description {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #636C68;
}

button {
    border-radius: 0px;
    border: none;
    padding: 4px 15px;
    font-size: 14px;
    background-color: #2a9d8f;
    color: #FFF;
}

.recent-comments-section {
    background-color: #FFF;
    padding: 25px;
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
p.recent-comments-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #343a40;
    /* margin-top: 15px; */
    /* margin-bottom: 5px; */
    margin: 0px;
    margin: 0px;
}

p.send-comment-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #343a40;
    /* margin-top: 15px; */
    /* margin-bottom: 5px; */
    margin: 0px;
    margin: 0px;
}

p.recent-comments-section-sender {
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    font-weight: 500;
}

p.recent-comments-section-sender-text {
    margin: 0px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #304C48;
    text-align: justify;
    margin: 0;
    /* padding: 0; */
}

p.recent-comments-section-sender-date {
    margin: 0px;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #636C68;
}

p.recent-comments-section-admin {
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    font-weight: 500;
}

p.recent-comments-section-admin-text {
    margin: 0px;
    /* padding: 8px 15px; */
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #304C48;
    text-align: justify;
    margin: 0;
    /* padding: 0; */
}

.comment-form {
    max-width: 100%;
    /* background-color: #f9f9f9; */
    padding: 20px;
    border-radius: 0px;
    font-size: 14px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.comment-form .form-label {
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 0px;
    background-color: #fff;
    font-size: 12px;
    box-sizing: border-box;
}

.comment-form .error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.comment-form .submit-button {
    padding: 8px 15px;
    background-color: #2a9d8f;
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
}

.comment-form .submit-button:hover {
    background-color: #0056b3;
}



@media screen and (max-width: 768px) {
    .related-box {
        padding: 15px; /* کاهش فضای داخلی */
        gap: 10px; /* کاهش فاصله بین آیتم‌ها */
    }

    .related-title {
        font-size: 14px; /* کاهش سایز عنوان */
    }

    ul.related-list {
        font-size: 12px; /* کوچک‌تر شدن فونت برای موبایل */
    }

    a.related-item-link {
        font-size: 12px;
    }
}


















.share-buttons {
    background-color: rgb(255, 255, 255);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    margin: 0px;
    gap: 15px;
}

img.share-icon {
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
}

.share-buttons-icons-continaer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.share-buttons-container-icons {
    margin: 0px;
    display: flex;
    gap: 10px;
    /* width: 60%; */
    /* justify-content: space-between; */
}

.link-copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #E9ECEF;
    border: 1px solid #ccc;
    /* border-radius: 6px; */
    padding: 5px 5px;
    cursor: pointer;
    /* width: 75%; */
    margin: 0px;
    justify-content: center;
    /* color: #FFF; */
}

.short-link-input {
    border: none;
    background: none;
    font-size: 12px;
    width: 120px;
    color: #495057;
    pointer-events: none;
}

.share-icon {
    width: 20px;
    height: 20px;
}
        
