.post-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 4.5rem;
}

@media (min-width: 1024px) {
    .post-container {
        grid-template-columns: 2.5fr 1fr;
    }
}

.post-main {
    max-width: 800px;
}

.post-sidebar {
    padding-top: 2rem;
}

.post-breadcrumbs {
    white-space: nowrap;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gen-body-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .post-breadcrumbs {
        flex-wrap: wrap;
    }
}

.post-breadcrumbs a {
    color: var(--gen-body-color);
    text-decoration: none;
}

.post-breadcrumbs a:hover {
    text-decoration: underline;
}

.post-breadcrumbs .separator {
    font-size: 0.7rem;
}

.post-breadcrumbs .current {
    color: #A0AEC0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.post-breadcrumbs .current-post {
    color: #A0AEC0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.post-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #A0AEC0;
    margin-bottom: 1rem;
}

.post-breadcrumbs a {
    color: #A0AEC0;
    text-decoration: none;
}

.post-breadcrumbs a:hover {
    text-decoration: underline;
}

.post-breadcrumbs .separator {
    font-size: 0.7rem;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.2rem;
}

.post-meta-top .category-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: #c96868;
    border-radius: 5px;
}

.post-meta-top .post-date {
    font-size: 0.9rem;
    color: var(--gen-body-color);
}

.post-title {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5rem 0;
    color: var(--gen-body-color);
}

.post-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}


.post-content {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gen-body-color);
}

.post-content h2,
.post-content h3 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.post-content h2::before,
.post-content h3::before {
    content: '';
    display: block;
    width: 4px;
    height: -webkit-fill-available;
    background-color: #e53e3e;
    margin-right: 0.8rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content a {
    color: #3182ce;
    text-decoration: underline;
}

.post-content .main-image-placeholder {
    width: 100%;
    background-color: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 1px dashed #cbd5e0;
    min-height: 400px;
    flex-direction: column;
    gap: 1rem;
}

.post-content .main-image-placeholder svg {
    width: 60px;
    height: 60px;
    color: #a0aec0;
}

.post-content .content-image-placeholder {
    width: 100%;
    background-color: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 1px dashed #cbd5e0;
    min-height: 300px;
    flex-direction: column;
    gap: 1rem;
}

.post-content .content-image-placeholder svg {
    width: 50px;
    height: 50px;
    color: #a0aec0;
}

.post-content .highlighted-content {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.post-content .highlighted-content p {
    margin: 0;
    font-weight: 500;
    color: #856404;
    font-size: 1.1rem;
}

.post-content .placeholder-image {
    width: 100%;
    background-color: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 1px dashed #cbd5e0;
    min-height: 300px;
    flex-direction: column;
    gap: 1rem;
}

.post-content .placeholder-image svg {
    width: 50px;
    height: 50px;
    color: #a0aec0;
}

.post-content .image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.sidebar-widget {
    background-color: #fcfcfce5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.sidebar-widget-alt {
    background-color: #fcfcfce5;
}

.widget-title-popular {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: rgb(17 24 39);
    border-bottom: 1px solid var(--gen-border);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.widget-decorator {
    display: block;
    width: 7rem;
    height: 3px;
    background-color: #7AB2D3;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.popular-posts-list .post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popular-posts-list .post-item:last-child {
    margin-bottom: 0;
}

.post-item .rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e53e3e;
}

.post-item img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
}

.post-item-info .post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    margin: 0;
    margin-top: 0.25rem;
}

.post-item-info a:hover .post-title {
    color: #3B82F6;
}

.post-item-info .post-date {
    font-size: 0.8rem;
    color: #718096;
}

.related-posts-list .post-item {
    margin-bottom: 1.5rem;
}

.related-posts-list .post-item:last-child {
    margin-bottom: 0;
}

.related-post-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.related-post-image-container img {
    width: 100%;
    height: 180px;
    /* Fixed height for consistency */
    border-radius: 8px;
    background-color: #333;
    object-fit: fill;
    /* Maintain aspect ratio */
}

.related-post-image-container .related-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #e53e3e;
    color: #fff;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

.related-post-image-container .related-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 2px solid #fff;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
}

.related-post-title:hover {
    color: #3B82F6;
}

.rating-social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.rating-social-section .current-rating {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-social-section .current-rating .stars {
    color: #f6ad55;
    font-size: 1.1rem;
}

.rating-social-section .share-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.share-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.share-icon.facebook {
    background-color: #1877f2;
}

.share-icon.twitter {
    background-color: #1da1f2;
}

.share-icon.linkedin {
    background-color: #0077b5;
}

.share-icon.pinterest {
    background-color: #bd081c;
}

.share-icon.telegram {
    background-color: #0088cc;
}

.share-icon.email {
    background-color: #ea4335;
}

.rating-widget {
    background: #FFF7ED;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.rating-widget .widget-title {
    font-size: 1.5rem;
}

.rating-widget p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.rating-stars svg {
    width: 35px;
    height: 35px;
    color: #f6ad55;
    cursor: pointer;
    transition: all 0.2s;
    stroke: #f6ad55;
    stroke-width: 2;
    fill: none;
}

.rating-stars:hover svg {
    stroke: #f59e0b;
    fill: none;
}

.rating-stars svg:hover,
.rating-stars svg.active {
    fill: #f6ad55;
    stroke: #f6ad55;
}

.rating-stars svg:hover~svg {
    fill: none;
    stroke: #f6ad55;
}

.current-rating {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 1rem;
}

.rating-social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 1.2rem;
    color: #f6ad55;
    line-height: 1;
    -webkit-text-stroke: 1px #f6ad55;
    -webkit-text-fill-color: transparent;
}

.star.filled {
    color: #f6ad55;
    -webkit-text-fill-color: #f6ad55;
}

.star.half {
    position: relative;
    color: #f6ad55;
    -webkit-text-stroke: 1px #f6ad55;
    -webkit-text-fill-color: transparent;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f6ad55;
    -webkit-text-fill-color: #f6ad55;
    -webkit-text-stroke: 0;
}

.rating-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.rating-score {
    font-weight: 600;
    color: var(--gen-body-color);
}

.rating-outof {
    color: #718096;
}

.rating-reviews {
    color: #718096;
}

.social-share-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 15px;
    background-color: #f7fafc;
    color: #718096;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #7986CB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-icon.pinterest:hover {
    background-color: #bd081c;
    color: white;
    border-color: #bd081c;
}

.social-icon.telegram:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-icon.email:hover {
    background-color: #ea4335;
    color: white;
    border-color: #ea4335;
}

@media (max-width: 768px) {
    .rating-social-section {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .social-share-icons {
        justify-content: flex-start;
    }
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
}

.comment-author {
    font-weight: bold;
    color: #2d3748;
}

.comment-date {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-left: 0.5rem;
}

.comment-text {
    margin: 0.5rem 0;
    color: #4a5568;
    line-height: 1.6;
}

.comment-reply-btn {
    background-color: #e53e3e;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.comment-form-section {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #7AB2D3;
    background: linear-gradient(145deg, #F0F7FF, #ffffff);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.comment-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: black;
}

.comment-form-title::after {
    content: '';
    display: block;
    width: 7rem;
    height: 3px;
    background-color: #7AB2D3;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.comment-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit-btn {
    background-color: #000000;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}

.comment-form .submit-btn:hover {
    background-color: #333333;
    transform: translateY(-1px);
}