
body {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    background-color: #F1F5F9;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.post-detail-container-main {
    width: 100%;
    max-width: 1200px; /* حداکثر عرض برای صفحات بزرگ */
    margin: 0 auto;
    padding: 0 20px; /* فاصله داخلی برای جلوگیری از چسبیدن به لبه‌ها */
    box-sizing: border-box;
}

.post-detail-container-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 25px;
    margin: 50px 0;
}

.post-detail-container-main-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-detail-container-main-column-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #FFF;
    padding: 25px;
}

.post-detail-container-main-column-header-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
}

.post-detail-container-main-column-header-meta {
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: #495057;
    text-align: justify;
    margin: 0;
    padding: 0;
}

.post-detail-container-main-column-header-date,
.post-detail-container-main-column-header-duration {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #ADB5BD;
}



.post-detail-container-main-column-description-box {
    background-color: #FFF;
    padding: 25px;
    text-align: justify;
}

.post-detail-container-main-column-description h2,
.post-detail-container-main-column-description h3,
.post-detail-container-main-column-description h4,
.post-detail-container-main-column-description h5 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.post-detail-container-main-column-description h2 {
    font-size: 20px;
}

.post-detail-container-main-column-description h3 {
    font-size: 18px;
}

.post-detail-container-main-column-description h4 {
    font-size: 16px;
}

.post-detail-container-main-column-description h5 {
    font-size: 14px;
}

.post-detail-container-main-column-description p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 32px;
}

.post-detail-container-main-column-references {
    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;
}

.post-detail-container-main-column-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 25px;
    background-color: #FFF;
    font-size: 12px;
    align-items: center;
}

.keywords-title {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.post-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* فاصله بین تگ‌ها، هم افقی هم عمودی */
    padding: 25px;
    background-color: #FFF;
    font-size: 12px;
    align-items: center;
}

.post-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.keywords-item {
    background-color: #e0e0e0;
    padding: 5px 8px;
    border-radius: 0px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    color: blue;
}



.post-detail-container-main-aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
}

.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-name {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.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;
}

.view-count,
.category-title,
.topic-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
}

.rating-container {
    background-color: #FFF;
    font-size: 12px;
    padding: 25px;
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.podcast-image-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.66%; /* نسبت 3:2 */
    overflow: hidden;
}

.podcast-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) blur(5px); /* ابتدا تصویر بلر و سیاه و سفید */
    z-index: 0;
    animation: zoom-blur 90s ease-in-out infinite; /* انیمیشن زوم و بلر */
}

@keyframes zoom-blur {
    0% {
        transform: scale(1); /* اندازه طبیعی */
        filter: grayscale(100%) blur(5px); /* بلر و سیاه و سفید */
    }
    50% {
        transform: scale(1.1); /* زوم به اندازه 10% بزرگتر */
        filter: grayscale(100%) blur(2px); /* بلر کمتر */
    }
    100% {
        transform: scale(1); /* بازگشت به اندازه طبیعی */
        filter: grayscale(100%) blur(5px); /* بلر و سیاه و سفید */
    }
}

.podcast-image-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 51, 153, 0.8), rgba(50, 18, 122, 0.8));
    z-index: 1;
    animation: zoom-gradient 60s linear infinite; /* انیمیشن زوم */
}

@keyframes zoom-gradient {
    0% {
        transform: scale(1); /* اندازه طبیعی */
    }
    100% {
        transform: scale(1.2); /* زوم به اندازه 20% بزرگتر */
    }
}

.audio-player-container {
    display: flex;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    align-self: center;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.audio-player {
    display: inline-block;
    padding: 25px;
    width: 100%;
}

.audio-player audio {
    width: 100%;
}

.custom-controls {
    padding: 8px 15px;
}

button#play-btn,
button#stop-btn {
    background-color: #FFF;
    border: none;
    padding: 8px 15px;
    width: 75px;
}

@media screen and (max-width: 768px) {

    .post-detail-container-main {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
        margin-top: 25px;
    }

    .post-detail-container-main-aside {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: stretch;
    }

    .post-detail-container-columns {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .post-detail-container-main-column-header {
        padding: 20px;
    }

    .post-detail-container-main-column-header-title {
        font-size: 22px;
    }

    .post-detail-container-main-column-header-meta,
    .post-detail-container-main-column-header-date,
    .post-detail-container-main-column-header-duration {
        font-size: 14px;
        line-height: 22px;
    }

    .post-detail-container-main-column-header-date,
    .post-detail-container-main-column-header-duration {
        font-size: 12px;
    }

    .post-detail-container-main-column-description-box {
        padding: 15px;
    }

    .post-detail-container-main-column-keywords {
        padding: 15px;
        font-size: 12px;
    }

    a.keywords-title {
        font-size: 14px;
    }

    .keyword-item,
    span.keywords-item {
        font-size: 12px;
        padding: 4px 8px;
    }

    .post-detail-container-main-aside-author-box {
        padding: 15px;
        gap: 10px;
    }

    .author-image,
    img.author-image {
        width: 75px;
        height: 75px;
    }

    .author-name-text {
        font-size: 14px;
    }

    .post-detail-container-main-aside-info-box {
        padding: 15px;
    }

    .view-count,
    .category-title,
    .topic-title {
        font-size: 12px;
    }

    .related-box {
        padding: 15px;
        gap: 10px;
    }

    .related-title {
        font-size: 14px;
    }

    ul.related-list,
    a.related-item-link {
        font-size: 12px;
    }

    .custom-controls {
        display: none;
    }

}



















    .post-detail-container-main-aside-author-education {
        font-size: 12px;
        font-weight: 500;
        color: #495057;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .post-detail-container-main-aside-author-informations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px
    }
    
    .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; */
    }
    
    a.category-title,
    a.topic-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    text-align: right;
    color: #495057;
    }
    
    span.related-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #343A40;
    }
    
    p.post-average-rating-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    color: #495057;
    text-align: justify;
    margin: 0;
    padding: 0;
    }
    
    form {
    margin: 0px;
    }
    
    .related-box {
        padding: 25px;
        background-color: #FFF;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    ul.related-list {
    padding: 0px;
    list-style: none;
    font-size: 12px;
    margin: 0px;
    }
    
    a.related-item-link {
        font-size: 12px;
        font-weight: 500;
        margin: 0;
        padding: 0;
        text-align: right;
        color: #495057;
    }
    
    li.related-item {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 10px 0px;
    }
    
    
    
    
    
    
    
    
    
    
    
    
.custom-podcast-player {
    background-image: var(--cover-url);
    background-size: cover;
    background-position: center;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.custom-podcast-player::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
    filter: grayscale(1);
}

.player-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.play-btn img {
    width: 30%;
    filter: brightness(0) invert(1);
}

.progress-container {
    flex: 1;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.timeline-wrapper {
    position: relative;
    height: 5px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-bar {
    position: absolute;
    height: 100%;
    width: 0%;
    background: #fff;
    top: 0;
    left: 0;
    z-index: 1;
}

.timeline-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #F4C430;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    z-index: 2;
}

.time-display {
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    text-align: center;
    margin: 0px;
    line-height: 10px;
}

.cover-preview img {
    width: 100px;
    height: 100px;
    /* border-radius: 12px; */
    object-fit: cover;
}

.speaker-info {
	color: white;
	font-size: 12px;
	font-family: Arial, sans-serif;
	/* margin-bottom: 10px; */
	text-align: center;
	font-family: inherit;
	padding: 0px;
	font-weight: 500;
}






/* ✅ Responsive Media Query */
@media (max-width: 768px) {
    .player-inner {
        flex-direction: column-reverse;
        align-items: center;
        gap: 15px;
    }

    .progress-container {
        width: 100%;
        margin: 0;
    }

    .cover-preview img {
        width: 80px;
        height: 80px;
    }

    .play-btn {
        width: 80px;
        height: 80px;
    }

    .play-btn img {
        width: 40%;
    }

    .time-display {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cover-preview img {
        width: 60px;
        height: 60px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn img {
        width: 50%;
    }

    .time-display {
        font-size: 9px;
    }
}


.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;
}




        .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;
}


