.single-post .width-blog-main {
    width: 80%;
    margin: 0 auto;
    padding: 40px 0px;
    margin-left: 0px;
    max-width: 886px;
}
.comment-field-with-image {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.comment-form-comment {
    width: 100%;
}
.under-form-c, .comment-form-image label {
    font-size: 12px;
    color: #8E8E8E;
}
.comment-form-comment textarea::placeholder {
    font-size: 12px;
    color: #8E8E8E;
    opacity: 1;
}
.comment-form-comment textarea:focus, #commentform input:focus {
    outline: none !important;
    box-shadow: none !important;
}
.comment-respond h3 small {
    display: block;
}
.comment-image-upload img {
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    width: 40px;
}

.page-id-48 .book-gal-container, .single-post-page {
    overflow: hidden !important;
}
.single-post .breadcrumb a, .single-post .breadcrumb span {
    color: #606060 !important;
    font-size: 18px;
    margin: 0 5px;
    font-weight: 500;
}
.single-post .post-date {
    font-size: 18px;
    color: #8E8E8E;
    font-weight: 500;
}
.single-post .post-meta-row {
    display: flex;
    justify-content: space-between;
}
.post-share-sticky .post-share {
    background: #F2FBFC;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    position: sticky;
    right: 0;
    top: 50%;
    flex-direction: column;
    width: fit-content;
}

a.share-icon {
    display: flex;
    width: 24px;
}

.single-post-page {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
    max-width: 100%;
    justify-content: center;
    margin: 0 auto;
    padding: 0px 20px 0px 0px;
}
.single-post .post-featured-image {
    margin: 20px 0px;
}
.single-post .post-title {
    font-size: 24px;
    margin: 10px 0 10px 0;
    color: #2F2F2F;
    font-weight: 500;
}
.single-post .post-excerpt {
    color: #8E8E8E;
    font-size: 18px;
}
.single-post .post-content {
    padding: 20px 0px;
}

.list-source ul {
    list-style: none;
    padding-right: 30px;
    margin: 0px;
}

.list-source ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.list-source ul li::before {
    content: "";
    display: block;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #38a169;
}

.list-source-eng ul {
    list-style: none;
    padding-left: 30px;
    margin: 0px;
}

.list-source-eng ul li {
    position: relative;
    padding-left: 0px;
    margin-bottom: 10px;
}

.list-source-eng ul li::before {
    content: "";
    display: block;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #38a169;
}

.related-posts {
    margin-top: 50px;
}

.related-title {
    text-align: right;
    font-size: 20px;
    margin-bottom: 25px;
    color: #23403d; /* from screenshot */
    font-weight: 500;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

.related-post-item a {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.related-thumb img {
    min-width: 140px;
    height: 140px;
    object-fit: cover;
}

.related-text {
    max-width: 80%;
}

.related-post-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.related-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}
.comment-user-image {
    border-radius: 50%;
    object-fit: cover;
}


/*****/

.comments-section {
    max-width: 100%;
    margin: 0px auto 0px auto;
    padding: 20px;
    direction: rtl;
    text-align: right;
    background: #FBFBFB;
    overflow: hidden;
}

/* Comment Form */
.comment-respond {
    border-radius: 8px;
    margin-bottom: 40px;
	padding: 20px;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #365B5E;
}

.comment-form-author,
.comment-form-email {
    display: block;
    max-width: 400px;
    margin-left: 2%;
}

.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #f6f6f6;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E8E8E8;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    background: #F6F6F6;
}

.comment-form-image {
    margin: 15px 0;
    max-width: 400px;
}
p.logged-in-as{display:none;}
.comment-form-image label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
p.comment-form-author, .comment-form-email, .comment-form-cookies-consent, .comment-form-image, .form-submit {
    margin-right: 60px;
}

p.comment-form-author {
    margin-top: 20px;
}
.comment-form-image input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #E8E8E8;
    background: #F6F6F6;
}

/* Image Preview for Returning Users */
.comment-form-image-preview {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-user-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #17a2b8;
}

.change-image-btn {
    background: #f8f9fa;
    color: #333;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.change-image-btn:hover {
    background: #e9ecef;
    border-color: #17a2b8;
    color: #17a2b8;
}

.single-post .submit-button {
    background: #299297 !important;
    color: white !important;
    padding: 15px 50px !important;
    border: none !important;
    cursor: pointer;
    font-size: 14px !important;
    transition: background 0.3s;
}

.single-post .submit-button:hover {
    background: #138496;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0px;
}

.comment-list li {
    border: 1px solid #E8E8E8;
    margin-bottom: 15px;
}

.comment-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.comment-author .fn {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.comment-metadata {
    font-size: 14px;
    color: #8E8E8E;
    font-weight: 500;
    padding: 0px 20px;
    text-align: left;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-content {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    padding: 10px 20px;
}

.comment-content p {
    margin: 0 0 10px;
}

.reply {
    margin-top: 10px;
    padding: 0px 20px 20px 20px;
}

.reply a {
    color: #17a2b8;
    text-decoration: none;
    font-size: 13px;
}

.reply a:hover {
    text-decoration: underline;
}

/* Nested Comments */
.children {
    list-style: none;
    padding-right: 40px;
    margin-top: 15px;
}

.comment-user-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
h3.comments-title {
    color: #365B5E;
    font-size: 20px;
    margin-bottom: 20px;
	    font-weight: 500;
}
.comment-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F6F6F6;
    padding: 10px;
    justify-content: space-between;
}
.post-author-box {
    margin-top: 40px;
}

.post-author-box h3 {
    font-size: 20px;
    color: #365B5E;
    margin-bottom: 20px;
}

.author-details-wrapper {
    padding: 30px;
    text-align: center;
    background: 
        url("https://bymajed.com/wp-content/uploads/2025/12/Group.png") no-repeat right top,
        linear-gradient(180deg, #F2FBFC 66.35%, #FFFFFF 100%);
    background-size: contain, auto;
}


.breadcrumb svg {
    margin-top: -5px;
    margin-left: 5px;
}
.author-avatar img {
    border-radius: 999px;
    width: 144px;
    height: 144px;
    object-fit: contain;
    margin: 0 auto;
	border: 4px solid #365b5e;
}
.author-info-content h4 {
    font-size: 24px;
    color: #365B5E;
}

p.author-bio {
    color: #777777;
    font-size: 14px;
    font-weight: 400;
}
.single-post-book {
    display: flex;
    align-content: center;
    max-width: 1000px;
    gap: 20px;
    margin: 0 auto;
}

.single-post-book .width-blog-main {
    max-width: unset;
    width: 70%;
}

.column-book-stiky {
    width: 30%;
    padding: 40px 0px;
}
.single-post-book .post-featured-image {
    margin-top: 0px;
}

.breadcrumb-book {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 30px;
}
.column-book-stiky img {
    position: sticky;
    top: 40px;
}
.single-post-book .post-share {
    background: transparent;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    position: relative;
    left: unset;
    top: unset;
    flex-direction: row-reverse;
    transform: unset;
}
.comment-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Rating Stars */
.comment-form-rating {
    margin: 20px 0;
}

.comment-form-rating > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.star-rating-input {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
    direction: ltr;
    font-size: 0;
}

.star-rating-input .star-wrapper {
    position: relative;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: inline-block;
}

.star-rating-input .star-wrapper::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 35px;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating-input .star-wrapper.filled::before {
    color: #DBA102;
}

.star-rating-input .star-wrapper.half-filled::before {
    background: linear-gradient(90deg, #DBA102 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star-rating-input .star-half,
.star-rating-input .star-full {
    position: absolute;
    top: 0;
    height: 100%;
    cursor: pointer;
}

.star-rating-input .star-half {
    left: 0;
    width: 50%;
    z-index: 2;
}

.star-rating-input .star-full {
    right: 0;
    width: 50%;
    z-index: 2;
}

.rating-display {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
    direction: rtl;
}

.rating-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 24px;
    direction: ltr;
}

.rating-stars .star {
    position: relative;
}

.rating-stars .star.full {
    color: #DBA102;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #DBA102 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars .star.empty {
    color: #ddd;
}

.comment-rating {
    display: inline-block;
    margin-right: 10px;
}

.post-average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.post-average-rating .rating-stars {
    font-size: 20px;
}

.post-average-rating .rating-text {
    font-size: 14px;
    color: #666;
}
.rating-stars-shortcode {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    border: 4px solid #299297;
    border-radius: 999px;
    height: 120px;
    width: 120px;
    justify-content: center;
}
.rating-stars-shortcode span.star {
    font-size: 18px;
}

.rating-avg{
        color: #fff;
    font-weight: 600;
}
.width-blog-main .post-share {
    background: unset !important;
    border-radius: 8px !important;
    display: none !important;
    gap: 5px !important;
    position: relative !important;
    left: 5% !important;
    top: 50% !important;
    flex-direction: row-reverse !important;
    padding: 0px !important;
    transform: unset !important;
}
.single-post .breadcrumb span.breadcrumb-page-title {
    color: #365B5E !important;
}


.post-share-sticky {
    padding: 40px 0px;
    position: relative;
    width: 20%;
    display: flex;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
}


@media (max-width: 768px) {
	.width-blog-main .post-share{display:flex !important;left: 0px !important;}
	.single-post-page {
	    padding: 0px 20px 0px 20px;
	}
	.post-share-sticky {
	    display: none;
	}
	.single-post .width-blog-main {
	    width: 100%;
	    max-width: 100%;
	}

}