/* Blog Styles for AgroDealz */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: #fff;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

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

/* Blog Header */
.blog-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.blog-category {
    display: inline-block;
    background-color: #2c5530;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
}

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

/* Blog Content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5530;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c5530;
    margin: 2rem 0 1rem 0;
}

.blog-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #495057;
    margin: 1.5rem 0 0.75rem 0;
}

.blog-content p {
    margin: 1rem 0;
}

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

.blog-content li {
    margin: 0.5rem 0;
}

.blog-content strong {
    color: #2c5530;
    font-weight: 600;
}

.blog-content a {
    color: #007bff;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* Product Item */
.product-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #2c5530;
    border-radius: 4px;
}

.product-item h3 {
    color: #2c5530;
    margin-top: 0;
}

/* Blog Posts Grid (for index pages) */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Post Card */
.blog-post-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.blog-post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.3;
}

.blog-post-title a {
    color: #2c5530;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #1e3a21;
    text-decoration: underline;
}

.blog-post-excerpt {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem 0;
    flex-grow: 1;
}

.blog-post-author,
.blog-post-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 1rem;
}

.read-more {
    margin-top: 1rem;
}

.read-more a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.read-more a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5530 0%, #1e3a21 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.8rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin: 1rem 0 1.5rem 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #2c5530;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.cta-feature span:first-child {
    font-size: 1.2rem;
}

/* Blog Footer */
.blog-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.6rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .blog-container {
        max-width: 100%;
        padding: 0;
    }

    .back-link,
    .read-more,
    .cta-section {
        display: none;
    }
}

