:root {
    --ko-primary: #2563eb;
    --ko-secondary: #64748b;
    --ko-accent: #f59e0b;
    --ko-success: #10b981;
    --ko-danger: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Add this rule to your /index.css file */

main {
    padding-top: 120px !important;
}

/* Blog Container */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--ko-primary) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ko-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search button:hover {
    background: #d97706;
}

/* Featured Posts */
.featured-posts {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.view-all {
    color: var(--ko-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #1e40af;
}

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

.featured-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    background: var(--ko-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.featured-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.post-content {
    padding: 1.5rem;
}

.post-category {
    background: var(--ko-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
}

/* Sidebar */
.blog-sidebar {
    space-y: 2rem;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--ko-primary);
    padding-bottom: 0.5rem;
}

/* Categories List */
.categories-list {
    space-y: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: var(--ko-primary);
}

.category-count {
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
    cursor: pointer;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item:hover {
    color: var(--ko-primary);
}

.popular-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-post-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--ko-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1e40af;
}

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

.tag {
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--ko-primary);
    color: white;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: var(--ko-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: #1e40af;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* Loading States */
.loading-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-posts i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-controls select {
        flex: 1;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-search {
        margin: 0 1rem;
    }
}
/* Blog Post Specific Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-meta-large {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.meta-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: var(--bg-gray);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--border-color);
}

/* Featured Image */
.featured-image-container {
    margin: 2rem 0;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

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

.post-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content em {
    font-style: italic;
}

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

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

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Share Section */
.share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 1rem;
    text-align: center;
}

.share-section h3 {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

/* Loading and Error States */
.post-loading,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.post-loading i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h2 {
    color: var(--ko-danger);
    margin-bottom: 1rem;
}

/* Responsive Design for Post Page */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 0 0.5rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta-large {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .meta-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}
/* Add this to your blog.css file */

.blog-hero .hero-search {
    position: relative;
    max-width: 450px; 
    margin: 0 auto;
}

.blog-hero .hero-search input#blog-search {
    width: 100%;
    border-radius: 50px;
    border: none;
    padding: 0.9rem 4rem 0.9rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* THIS IS THE FIX: */
    box-sizing: border-box; 
}

.blog-hero .hero-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    
    background: var(--ko-accent, #f59e0b); 
    color: white;
    
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1rem;
}

/* Add to: index.css */

footer {
    background: #1f2937; /* Dark background (adjust if needed) */
    color: #d1d5db;     /* Light gray text */
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

footer .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

footer .footer-logo span {
    color: var(--ko-accent, #f59e0b);
}

footer .footer-tagline {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

footer .footer-links {
    margin-bottom: 1.5rem;
}

footer .footer-links a {
    color: #e5e7eb; /* Light text for links */
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: white;
    text-decoration: underline;
}

footer .footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}