/* Blog CSS Stylesheet */

/* Header Override for Blog subfolders */
header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Blog Listing Styling */
.blog-hero {
    padding: 80px 0 40px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(129, 212, 96, 0.05) 0%, transparent 60%);
    border-bottom: 1px solid #f0f0f0;
}

.blog-hero h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.blog-hero h1 span {
    color: var(--primary-green-hover);
}

.blog-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blogs Grid */
.blog-grid-section {
    padding: 60px 0 100px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(129, 212, 96, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card-meta .category-badge {
    background-color: #f0f7ec;
    color: var(--primary-green-hover);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.blog-card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--primary-green-hover);
}

.blog-card-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
    font-size: 12px;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.read-more-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card:hover .read-more-link {
    color: var(--primary-green-hover);
}

/* Individual Blog Article Layout */
.article-breadcrumbs {
    padding: 40px 0 20px;
    font-size: 14px;
    color: var(--text-light);
}

.article-breadcrumbs a {
    color: var(--text-light);
}

.article-breadcrumbs a:hover {
    color: var(--text-dark);
}

.article-breadcrumbs span {
    margin: 0 8px;
    color: #ccc;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background-color: #f0f7ec;
    color: var(--primary-green-hover);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.article-meta-info .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.article-meta-info .author-details {
    display: flex;
    flex-direction: column;
}

.article-meta-info .author-details .name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.article-meta-info .author-details .role {
    font-size: 12px;
    color: var(--text-light);
}

.article-meta-info .publish-date {
    font-size: 14px;
    color: var(--text-light);
    margin-left: auto;
}

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

/* Typography styles for article body */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2D3748;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 28px;
    margin: 48px 0 20px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 22px;
    margin: 36px 0 16px;
    color: var(--text-dark);
}

.article-content ul, 
.article-content ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

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

.article-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding: 16px 24px;
    margin: 32px 0;
    background-color: #f7fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a5568;
}

.article-content strong {
    color: var(--text-dark);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 36px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.article-content a {
    color: var(--primary-green-hover);
    text-decoration: underline;
    font-weight: 500;
}

.article-content a:hover {
    color: var(--text-dark);
}

/* Back to blogs link bottom */
.article-footer-nav {
    margin-top: 60px;
    border-top: 1px solid #f0f0f0;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .article-meta-info .publish-date {
        margin-left: 0;
    }
    
    .article-content {
        font-size: 16px;
    }
}
