* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

.bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subscribe-btn {
    font-family: 'Lato', sans-serif;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.search-filter {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-btn {
    font-family: 'Lato', sans-serif;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: #374151;
}

.category-btn:hover {
    background: #f3f4f6;
}

.category-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.category-tag {
    font-family: 'Lato', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 1rem;
}

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

.blog-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.5s;
}

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

.blog-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #111827;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-card:hover .blog-content h3 {
    color: #2563eb;
}

.blog-content p {
    font-family: 'Lato', sans-serif;
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.blog-footer {
    font-family: 'Lato', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.author {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.load-more {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: -1rem;
}

/*
.load-more-btn {
    font-family: 'Lato', sans-serif;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}
*/

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h3 {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #9ca3af;
}

@media (min-width: 640px) {
    .hero h2 {
        font-size: 3.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h2 {
        font-size: 4rem;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hidden {
    display: none;
}

/* Add these styles to your existing CSS, preferably after the .load-more-btn styles */

/* Pagination Styles */
/*
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pagination a.active:hover {
    transform: none;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.pagination a:first-child,
.pagination a:last-child {
    padding: 0 1rem;
    font-weight: 700;
}
*/

/* Load More Button Styles (update existing if needed) */
.load-more-btn {
    font-family: 'Lato', sans-serif;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.load-more-btn:hover {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.no-more {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    padding: 2rem 0;
}

/* Pagination Info Text */

/*
.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-family: 'Lato', sans-serif;
}
*/

/* Mobile Responsive Pagination */
/*
@media (max-width: 640px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
    
    .pagination a:first-child,
    .pagination a:last-child {
        padding: 0 0.75rem;
    }
}
*/

/* Pagination styles - optimized to prevent wrapping */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    /* Reduced from 0.5rem */
    margin: 3rem 0;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Allow horizontal scrolling if needed */
    padding: 0.5rem 0;
    max-width: 100%;
}

.pagination::-webkit-scrollbar {
    height: 4px;
}

.pagination::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.pagination::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    /* Reduced from 2.5rem */
    height: 2.25rem;
    /* Reduced from 2.5rem */
    padding: 0 0.5rem;
    /* Reduced from 0.75rem */
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    /* Reduced from 0.875rem */
    color: #374151;
    background: white;
    border: 1px solid #e5e7eb;
    /* Reduced from 2px */
    border-radius: 0.375rem;
    /* Reduced from 0.5rem */
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
    white-space: nowrap;
    /* Prevent text wrapping */
}

.pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.pagination a.active {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.pagination a.active:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

/* Prev/Next buttons slightly wider */
.pagination a:first-child,
.pagination a:last-child {
    min-width: 3rem;
    padding: 0 0.75rem;
}

.pagination span {
    padding: 0 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    font-family: 'Lato', sans-serif;
}

/* For mobile: reduce further */
@media (max-width: 640px) {
    .pagination {
        gap: 0.25rem;
        justify-content: center;
        /* Align left on mobile */
    }

    .pagination a {
        min-width: 1.75rem;
        height: 1.75rem;
        padding: 0 0.375rem;
        font-size: 0.75rem;
    }

    .pagination a:first-child,
    .pagination a:last-child {
        min-width: 2.5rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }

    /* Hide ellipsis on very small screens */
    @media (max-width: 480px) {
        .pagination span {
            display: none;
        }

        /* Show only Prev, 4 pages, Next on smallest screens */
        .pagination a:nth-child(n+4):nth-child(-n+7) {
            /* Keep page numbers 1-4 visible */
        }
    }
}

/* For very wide screens, limit max width */
@media (min-width: 1024px) {
    .pagination {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Blog Post Details Specific Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.post-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

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

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-details h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.author-details p {
    color: #6b7280;
    font-size: 0.875rem;
}

.featured-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: contain;
    transition: transform 0.7s;
}

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

.post-content {
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
}

.post-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    color: #111827;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #111827;
    margin: 1.5rem 0 0.75rem;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.post-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.25rem;
}

.post-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875em;
}

.post-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.post-tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tag:hover {
    background: #e5e7eb;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.action-btn.like:hover {
    color: #ef4444;
    border-color: #fecaca;
}

.action-btn.share:hover {
    color: #2563eb;
    border-color: #dbeafe;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.back-to-blog:hover {
    gap: 1rem;
}

/* Related Posts Section */
.related-posts {
    margin-top: 4rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.related-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.5s;
}

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

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

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

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

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-content h3 {
    color: #2563eb;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Newsletter Subscription */
.newsletter-section {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    font-family: 'Lato', sans-serif;
    padding: 1rem 2rem;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

    .post-content p {
        font-size: 1rem;
    }

    .post-actions {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-post-container {
        padding: 1.5rem 1rem;
    }

    .post-title {
        font-size: 1.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

.LazyBtn {
    width: 100%;
    text-align: center;
    display:inline-block;
    padding:1rem 2rem;
    background:linear-gradient(135deg,#2563eb 0%,#9333ea 100%);
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}
