/* Blog Specific Styles */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(to right, #1da1f2, #1991db);
    color: white;
    border-radius: 8px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    gap: 2rem;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.category a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

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

.widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.search-widget form {
    display: flex;
    gap: 0.5rem;
}

.search-widget input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-widget button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popular-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.views {
    font-size: 0.8rem;
    color: #666;
}

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

.categories-list a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--secondary-color);
    text-decoration: none;
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

    /* Main Layout Structure */
.dashboard-container {
    display: flex;
    min-height: 100vh;
	padding: 4px;
    background-color: #f5f5f5;
}

.main-content {
    flex: 1;
	padding: 4px;
    width: 100%;
    overflow-x: hidden;
}



/* Blog Container Grid */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: 100%;
    }
    
    .main-content {
        min-width: 100%;
    }
}



/* Blog Post Specific Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.blog-post-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-featured-image {
    margin: -2rem -2rem 2rem -2rem;
}

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

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

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

.post-content h2,
.post-content h3 {
    margin: 2rem 0 1rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s;
}

.share-buttons a:hover {
    transform: translateY(-2px);
}

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

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

.linkedin-share {
    background: #0a66c2;
}

.related-posts {
    margin-top: 3rem;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

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

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Main Post Container */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Post Header Section */
.blog-post-header {
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta .category {
    background: #1da1f2;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.post-meta .category:hover {
    background: #1991db;
}

.post-meta .date {
    color: #666;
    font-size: 0.9rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 1rem 0;
    color: #1a1a1a;
    font-weight: 700;
}

/* Post Content Styling */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    color: #1a1a1a;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

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

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.post-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Pro tip styling */
.post-content p strong:first-child:contains("**Pro tip**") {
    display: block;
    background: #f8f9fa;
    padding: 1.2rem;
    border-left: 4px solid #1da1f2;
    margin: 1.5rem 0;
}

/* Post Stats and Share Section */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.views i {
    color: #1da1f2;
}

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

.share-buttons span {
    color: #666;
    font-size: 0.95rem;
}

.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-buttons a:hover {
    transform: translateY(-2px);
}

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

.facebook-share {
    background: #4267B2;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}


/* Similar Posts Section Styles */
.similar-posts {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.similar-posts-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.similar-posts-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.similar-posts-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.similar-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.similar-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.similar-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.similar-post-content {
    padding: 1.5rem;
}

.similar-post-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.similar-post-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.similar-post-content h4 a:hover {
    color: #3498db;
}

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

.similar-post-meta .date {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-post-meta .date i {
    color: #3498db;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .similar-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .similar-posts {
        padding: 1.5rem;
    }
    
    .similar-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .similar-post-image {
        height: 180px;
    }
    
    .similar-posts-header h3 {
        font-size: 1.5rem;
    }
    
    .similar-posts-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .similar-posts {
        padding: 1rem;
    }
    
    .similar-post-content {
        padding: 1rem;
    }
    
    .similar-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}


/* Post Header Banner Styles */
.post-header-banner {
    padding: 2.5rem;
    margin: -2.5rem -2.5rem 2.5rem -2.5rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

/* Category Link */
.post-header-banner .category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.post-header-banner .category:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Title Styling */
.post-header-banner h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Meta Information Container */
.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Individual Meta Items */
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.meta-item:hover i {
    transform: scale(1.1);
}

/* Background Pattern Overlay */
.post-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-header-banner h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .post-header-banner {
        padding: 2rem;
        margin: -2rem -2rem 2rem -2rem;
    }

    .post-header-banner h1 {
        font-size: 2rem;
    }

    .post-meta-info {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-header-banner {
        padding: 1.5rem;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .post-header-banner h1 {
        font-size: 1.8rem;
    }

    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .meta-item {
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .post-header-banner {
        background: linear-gradient(135deg, #1a2634, #2980b9);
    }
}