﻿:root {
    --primary: #2a6e36;
    --secondary: #f39c12;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 100px;
        margin-right: 10px;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-left: 25px;
    }

        nav ul li a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
        }

            nav ul li a:hover, nav ul li a.active {
                color: var(--primary);
            }

.language-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

    .language-toggle:hover {
        background: #1f5129;
    }

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1200x400/2a6e36/white?text=Blog+%26+News') no-repeat center center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumb-content {
    display: flex;
    list-style: none;
}

    .breadcrumb-content li {
        margin-right: 10px;
        font-size: 0.9rem;
    }

        .breadcrumb-content li:after {
            content: "/";
            margin-left: 10px;
            color: #999;
        }

        .breadcrumb-content li:last-child:after {
            content: "";
        }

    .breadcrumb-content a {
        color: var(--primary);
        text-decoration: none;
    }

        .breadcrumb-content a:hover {
            text-decoration: underline;
        }

/* Blog Layout */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 60px 0;
}

.blog-posts {
    flex: 2;
    min-width: 300px;
}

.blog-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Blog Posts */
.blog-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.post-image {
    height: 250px;
    background-color: var(--primary);
    background-position: center;
    background-size: cover;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

    .post-meta div {
        margin-right: 20px;
        display: flex;
        align-items: center;
    }

    .post-meta i {
        margin-right: 5px;
        color: var(--primary);
    }

.post-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.post-content h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

    .read-more:hover {
        color: var(--secondary);
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

    .page-btn:hover, .page-btn.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

    .sidebar-widget h3 {
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--light);
    }

/* Categories */
.categories-list {
    list-style: none;
}

    .categories-list li {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

        .categories-list li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

    .categories-list a {
        display: flex;
        justify-content: space-between;
        color: var(--text);
        text-decoration: none;
        transition: color 0.3s;
    }

        .categories-list a:hover {
            color: var(--primary);
        }

/* Recent Posts */
.recent-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .recent-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-content a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

    .recent-post-content a:hover {
        color: var(--primary);
    }

.recent-post-content .post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}

    .newsletter-form input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .newsletter-form button {
        background: var(--primary);
        color: var(--white);
        border: none;
        padding: 12px;
        border-radius: 4px;
        width: 100%;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
    }

        .newsletter-form button:hover {
            background: #1f5129;
        }

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--light);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

    .tag:hover {
        background: var(--primary);
        color: var(--white);
    }

/* Call to Action */
.cta {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin: 60px 0 0;
}

    .cta h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .cta p {
        max-width: 700px;
        margin: 0 auto 30px;
        font-size: 1.1rem;
    }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 10px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

    .btn-primary:hover {
        background: #e67e22;
        transform: translateY(-3px);
    }

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

    .btn-outline:hover {
        background: var(--white);
        color: var(--primary);
        transform: translateY(-3px);
    }

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

    .footer-column h3 {
        color: var(--secondary);
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

    .footer-column p, .footer-column a {
        margin-bottom: 10px;
        color: #ccc;
        text-decoration: none;
        display: block;
    }

        .footer-column a:hover {
            color: var(--white);
        }

.social-icons {
    display: flex;
    margin-top: 15px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #444;
        border-radius: 50%;
        margin-right: 10px;
        transition: background 0.3s;
    }

        .social-icons a:hover {
            background: var(--primary);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .blog-container {
        flex-direction: column;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

        .post-meta div {
            margin-bottom: 10px;
        }
}