/* Blog Styles - KcableX Techiverse Brand */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #44daff 100%);
    padding: 150px 0 80px;
    margin-top: -70px;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
}

/* Blog Body Wrapper */
.blog-main {
    margin-top: 3rem;
}

/* Blog Post Card */
.blog-post-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-image {
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    margin-bottom: 0.5rem;
}

.post-category a {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--danger);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-meta i {
    margin-right: 0.25rem;
}

.post-excerpt {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--danger);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
    color: #d90000;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
}

.page-link:hover {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.like-button {
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
}

.like-button i {
    margin-right: 0;
}

.like-count {
    margin-right: 0.3rem !important;
}

/* Sidebar */
.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--danger);
    display: inline-block;
}

.recent-posts,
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li,
.category-list li {
    margin-bottom: 0.75rem;
}

.recent-posts li a,
.category-list li a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.recent-posts li a:hover,
.category-list li a:hover {
    color: var(--danger);
    padding-left: 0.25rem;
}

.category-list li a span {
    color: var(--text-light);
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-cloud .tag:hover {
    background: var(--danger);
    color: white;
}

.featured-post {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.featured-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.featured-post h5 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}

.featured-post h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

.featured-post h5 a:hover {
    color: var(--danger);
}

.featured-post small {
    font-size: 0.7rem;
    color: var(--text-light);
}

.newsletter-widget {
    background: var(--primary-light);
}

/* Single Post */
.post-article {
    padding: 2rem 0 4rem;
}

.post-article [aria-label="breadcrumb"] {
    text-align: center;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.post-content h2,
.post-content h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--danger);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-light);
    font-style: italic;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-tags {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-tags .tag {
background: var(--background);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.post-tags .tag:hover {
    background: var(--danger);
    color: white;
}

/* Author Box */
.author-box {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.related-post-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-card h5 {
    font-size: 1rem;
    padding: 0.75rem;
    margin: 0;
}

.related-post-card h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-post-card h5 a:hover {
    color: var(--danger);
}

.related-post-card small {
    padding: 0 0.75rem 0.75rem;
    display: block;
    color: var(--text-light);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.comment-author {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-author strong {
    color: var(--primary-dark);
}

.comment-author small {
    color: var(--text-light);
    margin-left: 1rem;
}

.comment-content {
    color: var(--text-medium);
    line-height: 1.6;
}

.comment-form {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.comment-form h4 {
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    display: inline-flex;
}

.breadcrumb-item a {
    color: var(--text-medium);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--danger);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 120px 0 50px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .author-box .row {
        text-align: center;
    }
    
    .author-avatar {
        margin-bottom: 1rem;
    }
    
    .related-post-card {
        margin-bottom: 1rem;
    }
}

/* SHARE ICONS STYLES */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fc;
    border-radius: 8px;
    text-align: center;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.share-facebook {
    background: #1877f2;
    color: white;
}
.share-twitter {
    background: #1da1f2;
    color: white;
}
.share-linkedin {
    background: #0077b5;
    color: white;
}
.share-whatsapp {
    background: #25d366;
    color: white;
}
.share-copy {
    background: #6c757d;
    color: white;
}
.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: white;
}