.posts-page {
    padding: 0;
}

.posts-header {
    margin-bottom: 60px;
}

.posts-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lms-secondary-color);
    margin-bottom: 1rem;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.1); */
}

.posts-subtitle {
    font-size: 1.1rem;
    color: var(--lms-secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card__image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lms-gray-500);
    font-size: 3rem;
}

.post-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card__overlay {
    opacity: 1;
}

.post-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--lms-gray-600);
}

.post-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card__title a {
    color: var(--lms-gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card__title a:hover {
    color: var(--lms-primary);
}

.post-card__excerpt {
    color: var(--lms-gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-card__footer {
    margin-top: auto;
}

.read-more {
    color: var(--lms-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--lms-primary-dark);
    transform: translateX(4px);
}

.posts-pagination {
    display: flex;
    justify-content: center;
}

.empty-state {
    padding: 3rem;
}

.empty-state i {
    color: var(--lms-gray-400);
}

.empty-state h4 {
    color: var(--lms-gray-600);
    margin-bottom: 1rem;
}

/* Post Single Page */
.post-single-page {
    padding: 0;
}

.post-single {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--lms-gray-600);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lms-gray-800);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-excerpt {
    font-size: 1.1rem;
    color: var(--lms-gray-600);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--lms-gray-700);
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--lms-gray-800);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-footer {
    border-top: 1px solid var(--lms-gray-200);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--lms-gray-700);
}

.tag {
    background: var(--lms-primary-light);
    color: var(--lms-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-weight: 600;
    color: var(--lms-gray-700);
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: scale(1.05);
}

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

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

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

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lms-gray-800);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lms-primary);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-post-item:hover {
    border-color: var(--lms-primary-light);
}

.related-post-image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lms-gray-500);
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0rem;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--lms-gray-800);
    text-decoration: none;
}

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

.related-post-meta {
    font-size: 0.8rem;
    color: var(--lms-gray-600);
}

.newsletter-signup {
    text-align: center;
}

.newsletter-signup p {
    color: var(--lms-gray-600);
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form .btn {
    padding: 0.75rem 1rem;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-title {
        font-size: 2rem;
    }

    .posts-subtitle {
        font-size: 1rem;
    }

    .post-card__content {
        padding: 1rem;
    }

    .post-card__title {
        font-size: 1.1rem;
    }

    .post-single {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .posts-header {
        margin-bottom: 40px;
    }

    .posts-title {
        font-size: 1.75rem;
    }

    .post-single {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.5rem;
    }
}
