/* Base Theme Updates for Clean Green Look */
:root {
    --primary: #16a34a;
    --primary-light: #22c55e; 
    --secondary: #22c55e;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--gray-100);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.logo-icon { display: none; }
.logo-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}
.logo-text p { display: none; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.search-icon-nav {
    font-size: 1.1rem;
    cursor: pointer;
    color: #333;
}
.search-icon-nav:hover { color: var(--primary); }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger-menu { display: block; font-size: 1.5rem; cursor: pointer; }
}
@media (min-width: 769px) {
    .hamburger-menu { display: none; }
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-links li {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: #94a3b8;
    font-size: 0.9rem;
}

.developer {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================================================= */
/*                              BLOG STYLES                                  */
/* ========================================================================= */

/* Blogs Grid Page */
.blog-header {
    background: var(--white);
    color: var(--dark);
    padding: 80px 20px 40px;
    text-align: center;
    margin-bottom: 50px;
}
.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--primary);
}
.blog-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

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

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.blog-img-placeholder {
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 3rem;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    text-decoration: none;
}

.blog-title:hover {
    color: #16a34a;
}

.blog-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
}

/* Single Blog View Page */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #64748b;
}

.breadcrumb a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #64748b;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.blog-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 20px;
}

.blog-content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 15px;
}

.blog-content-body p {
    margin-bottom: 20px;
}

.blog-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content-body a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

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

.blog-content-body ul, .blog-content-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content-body li {
    margin-bottom: 10px;
}

.blog-content-body blockquote {
    border-left: 4px solid #16a34a;
    background: #f8fafc;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 20px 20px;
        margin-bottom: 30px;
    }
    .blog-header h1 {
        font-size: 2.2rem;
    }
    .blog-header p {
        font-size: 1rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 40px;
        gap: 20px;
    }
    .single-blog-title {
        font-size: 1.8rem;
    }
    .blog-content-body {
        font-size: 1rem;
    }
    .blog-container {
        padding: 20px 15px 40px;
    }
    .blog-featured-img {
        margin-bottom: 20px;
    }
}

/* Global Mobile Resizing */
@media (max-width: 768px) { html { font-size: 14px; } .blog-header h1 { font-size: 2.2rem; } .blog-title { font-size: 2rem; } }
