/* Homepage Blog Section */
.blog-section {
    background: #fff;
    padding: 3rem 0;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.blog-section .blog-post-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-section .blog-post-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.blog-section .blog-post-image {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    height: auto;
}

.blog-section .blog-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-section .blog-post-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-section .blog-post-meta {
    margin-bottom: 0.75rem;
    color: #718096;
    font-size: 0.813rem;
}

.blog-section .blog-post-title {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-section .blog-post-title:hover {
    color: #4a5568;
}

.blog-section .blog-post-excerpt {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-section .blog-post-footer {
    margin-top: auto;
    font-size: 0.813rem;
    color: #a0aec0;
}

.blog-section .blog-post-footer i {
    margin-inline-end: 0.375rem;
}

/* Blog Hero Section */
.blog-hero {
    background: #fff;
    padding: 2rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-categories {
    margin-bottom: 0.75rem;
}

.blog-hero-categories .badge {
    background: rgba(0,123,255,0.05);
    color: #007bff;
    font-weight: 500;
    font-size: 0.813rem;
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-hero-categories .badge:hover {
    background: rgba(0,123,255,0.1);
}

.blog-hero-title {
    color: #2d3748;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-hero-meta {
    color: #718096;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.blog-hero-meta span {
    display: flex;
    align-items: center;
}

.blog-hero-meta i {
    margin-inline-end: 0.375rem;
    color: #a0aec0;
}

/* Blog Container Layout */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* Main Content Area */
.blog-main {
    min-height: 70vh;
}

/* Blog Post List */
.blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.blog-post-item:hover {
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.blog-post-image {
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.blog-post-item:hover .blog-post-image img {
    transform: scale(1.03);
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #718096;
    font-size: 0.875rem;
}

.blog-post-meta .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
	text-decoration: none;
}

.blog-post-meta i {
    margin-inline-end: 0.375rem;
}

.blog-post-date {
    color: #718096;
    font-size: 0.813rem;
}

.blog-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-decoration: none;
}

.blog-post-title:hover {
    color: #4a5568;
}

.blog-post-excerpt {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-post-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.813rem;
    color: #a0aec0;
}

.blog-post-footer i {
    margin-inline-end: 0.375rem;
}

/* Single Blog Post Styles */
.single-blog-post {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.single-blog-post-header {
    margin-bottom: 2rem;
}

.single-blog-post-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1rem 0;
    line-height: 1.3;
}

.single-blog-post-image {
    margin: 2rem -2rem;
}

.single-blog-post-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.single-blog-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

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

.single-blog-post-content h2,
.single-blog-post-content h3,
.single-blog-post-content h4 {
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.single-blog-post-content ul,
.single-blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.single-blog-post-content li {
    margin-bottom: 0.5rem;
}

.single-blog-post-content blockquote {
    border-right: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

.single-blog-post-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.single-blog-post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.blog-post-tags a {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.813rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-post-tags a:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.blog-post-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.blog-post-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #4a5568;
    text-decoration: none;
}

.blog-post-share a:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background: rgba(0,0,0,0.02);
    color: #2d3748;
}

.category-list a.active {
    background: #edf2f7;
    color: #2d3748;
    font-weight: 500;
}

.category-count {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.813rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.tag-item.active {
    background: #4a5568;
    color: #fff;
}

/* Featured Products in Sidebar */
.sidebar-products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-product-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.sidebar-product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-product-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.sidebar-product-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.sidebar-product-info {
    flex: 1;
}

.sidebar-product-title {
    font-size: 0.875rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-product-price {
    font-size: 0.813rem;
    color: #48bb78;
}

.sidebar-product-discount {
    color: #e53e3e;
    font-size: 0.75rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-section {
        padding: 2rem 0;
    }
    
    .blog-section .blog-post-content {
        padding: 1rem;
    }
    
    .blog-section .blog-post-title {
        font-size: 0.938rem;
    }
    
    .blog-section .blog-post-excerpt {
        font-size: 0.813rem;
    }

    .blog-post-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .blog-post-image {
        width: 100%;
        height: 200px;
    }

    .blog-post-title {
        font-size: 1rem;
    }

    .blog-post-excerpt {
        font-size: 0.813rem;
    }
    
    .sidebar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .single-blog-post {
        padding: 1.5rem;
    }

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

    .single-blog-post-image {
        margin: 1.5rem -1.5rem;
    }
}
