/* ============================================
   SINGLE POST PAGE STYLES - VSIR THEME
   ============================================ */

/* Post Container */
.post.post--single {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.banner-overlay {
    position: relative;
    top: 100px;
}

.breadcrumb li a {
    color: #fff;
}

.breadcrumb li a,
.breadcrumb li span {
    color: #fff;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff !important;
}

/* Post Header */
.post__header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.post__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Post Meta Information */
.post__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.post__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.post__meta span:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.post__meta i {
    font-size: 16px;
    color: var(--primary-color);
}

.post__meta span:hover i {
    color: #fff;
}

/* Post Tags */
.post__tags {
    margin-top: 15px;
}

.post__tags a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    transition: all 0.3s ease;
}

.post__tags a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

/* Post Content */
.post__content {
    margin-bottom: 50px;
}

.ck-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.ck-content p {
    margin-bottom: 1.5rem;
}

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    color: #2c3e50;
    font-weight: 700;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.ck-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.ck-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ck-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.ck-content ul,
.ck-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.ck-content li {
    margin-bottom: 8px;
}

/* Social Sharing Section */
.new-item-shar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #dee2e6;
}

.new-item-shar span {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Social sharing buttons */
.social-sharing {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-sharing a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-sharing a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-sharing a.facebook {
    background: #3b5998;
}

.social-sharing a.twitter {
    background: #1da1f2;
}

.social-sharing a.linkedin {
    background: #0077b5;
}

.social-sharing a.telegram {
    background: #0088cc;
}

.social-sharing a.whatsapp {
    background: #25d366;
}

/* Post Footer - Related Posts Navigation */
.post__footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
}

.post__relate-group {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
}

.post__relate-group:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.relate__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.post.post--related {
    display: flex;
    gap: 15px;
    align-items: center;
}

.post__thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post__relate-group:hover .post__thumbnail img {
    transform: scale(1.1);
}

.post__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post__relate-group:hover .post__overlay {
    opacity: 1;
}

.post--related .post__header {
    text-align: left;
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

.post--related .post__title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-decoration: none;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

.post--related .post__title:hover {
    color: var(--primary-color);
}

.post--related .post__meta {
    justify-content: flex-start;
    margin-top: 5px;
    gap: 0;
}

.post--related .post__meta span {
    background: none;
    padding: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 60px;
    padding: 40px 0;
    border-radius: 10px;
}

.related-posts-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

.header-news-container {
    padding: 0px !important;
}

.breadcrumb a {
    text-decoration: none;

}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 25px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}

.related-post-title:hover {
    color: var(--primary-color);
}

.related-post-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #adb5bd;
}

.related-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-post-category {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .post.post--single {
        padding: 30px 25px;
        margin: 20px;
    }

    .post__title {
        font-size: 2rem;
    }

    .post__meta {
        gap: 10px;
        justify-content: center;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0px;
    }
}

@media (max-width: 768px) {
    .post.post--single {
        padding: 25px 20px;
        margin: 15px;
    }

    .post__title {
        font-size: 1.8rem;
    }

    .post__meta {
        flex-direction: column;
        gap: 8px;
    }

    .ck-content {
        font-size: 15px;
    }

    .post.post--related {
        flex-direction: column;
        text-align: center;
    }

    .post__thumbnail {
        width: 100%;
        height: 150px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .related-posts-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .post.post--single {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 10px;
    }

    .post__title {
        font-size: 1.5rem;
    }

    .social-sharing {
        gap: 10px;
    }

    .social-sharing a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .new-item-shar {
        padding: 20px 15px;
    }

    .related-post-content {
        padding: 20px;
    }
}