/* Blog-specific styles */
.blog-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.blog-hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.blog-hero .tagline {
    font-size: 1.5rem;
    color: var(--light-green);
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem 5%;
    gap: 2rem;
}

.blog-grid {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.blog-post {
    background-color: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-post h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-placeholder {
    background-color: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

.read-more-button {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.read-more-button:hover {
    background-color: var(--light-green);
}

/* Blog post full page styles */
.blog-post-full {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--gray);
    padding: 2rem;
    border-radius: 10px;
}

.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.post-header h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.post-content h2 {
    color: var(--light-green);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

.cta-box {
    background-color: var(--dark-green);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-box .cta-button {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-box .cta-button:hover {
    background-color: var(--light-green);
    transform: translateY(-3px);
}

/* Fix for blog post individual pages */
.blog-post-full img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}

.data-table th {
    background-color: var(--dark-green);
    color: var(--white);
}

.data-table tr:nth-child(odd) {
    background-color: rgba(255,255,255,0.05);
}

/* Sidebar styles */
.sidebar-widget {
    background-color: var(--gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.popular-posts, .categories {
    list-style: none;
}

.popular-posts li, .categories li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.popular-posts li:last-child, .categories li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a, .categories a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.popular-posts a:hover, .categories a:hover {
    color: var(--light-green);
}

/* Active nav link */
nav ul li a.active {
    color: var(--light-green);
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--light-green);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-content {
        flex-direction: column;
    }
    
    .sidebar {
        order: -1;
    }
    
    .blog-hero h2 {
        font-size: 2.5rem;
    }
}
