/* Blog Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-green) 100%);
    padding: 60px 20px 40px;
    text-align: center;
}

.blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8b500 0%, #fceabb 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--white);
    color: var(--black);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-tag.primary {
    background: var(--primary-green);
    color: var(--white);
}

.blog-card-meta {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.meta-badge {
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-green);
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    font-size: 13px;
}

.author-info span {
    color: var(--primary-green);
    font-weight: 600;
}

.author-info .date {
    color: var(--gray);
    margin-left: 5px;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-more-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-green);
}

/* Popular/Recent Articles Widget */
.sidebar-article {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article-image {
    width: 70px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 5px;
}

.sidebar-article-content h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sidebar-article-content h4 a:hover {
    color: var(--primary-green);
}

.sidebar-article-content .date {
    font-size: 12px;
    color: var(--gray);
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-green);
}

.category-count {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--dark-green);
}

.pagination-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* ==================== */
/* Article Page Styles */
/* ==================== */

.article-hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-green) 100%);
    padding: 60px 20px 40px;
}

.article-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.article-breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

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

.article-breadcrumb span {
    color: var(--gray);
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.article-author-info p {
    font-size: 13px;
    color: var(--gray);
}

.article-stats {
    display: flex;
    gap: 20px;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
}

/* Article Content */
.article-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.article-content {
    max-width: 100%;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--black);
}

.article-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: #374151;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    color: #374151;
}

.article-body blockquote {
    background: var(--lightest-green);
    border-left: 4px solid var(--primary-green);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
    font-size: 18px;
    font-style: italic;
    color: var(--black);
    margin-bottom: 10px;
}

.article-body blockquote cite {
    font-size: 14px;
    color: var(--gray);
    font-style: normal;
    font-weight: 600;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.article-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta-btn {
    background: var(--white);
    color: var(--primary-green);
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.article-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
}

.article-share span {
    font-weight: 600;
    color: var(--black);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: var(--white);
}

.share-btn.facebook {
    background: #4267B2;
    color: var(--white);
}

.share-btn.linkedin {
    background: #0077B5;
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-gray);
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-container,
    .article-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px;
    }

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

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

    .article-title {
        font-size: 28px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-featured-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 40px 15px 30px;
    }

    .blog-hero h1 {
        font-size: 26px;
    }

    .blog-section,
    .article-section {
        padding: 40px 15px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-cta {
        padding: 30px 20px;
    }

    .article-cta h3 {
        font-size: 20px;
    }
}
