/*--------------------------------------------------------------
# Blog Styles
--------------------------------------------------------------*/
.blog-section {
    padding: var(--section-padding);
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    overflow: hidden;
}

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

.blog-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-meta .date, .blog-meta .category {
    display: inline-flex;
    align-items: center;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-pagination {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.blog-pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-light);
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-pagination .page-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Blog Article Styles */
.blog-article-header {
    padding: 3rem 0;
    text-align: center;
}

.category-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.article-section {
    padding: var(--section-padding);
}

.blog-article {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.article-content {
    padding: 2rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.article-content blockquote {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.article-tags a {
    display: inline-block;
    background-color: #f8f9fa;
    color: var(--text-medium);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    color: var(--text-medium);
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.article-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.author-box {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 0;
    line-height: 1.6;
}

.related-articles {
    margin-top: 3rem;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
}

.related-article-card {
    margin-bottom: 1.5rem;
}

.related-article-card img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.related-article-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-article-card a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-card a:hover {
    color: var(--primary-color);
}

.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.about-widget {
    text-align: center;
}

.about-widget img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

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

.categories-widget a {
    display: flex;
    justify-content: space-between;
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: var(--primary-color);
}

.recent-posts-widget .recent-post {
    display: flex;
    margin-bottom: 1.5rem;
}

.recent-posts-widget .recent-post:last-child {
    margin-bottom: 0;
}

.recent-posts-widget .recent-post img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 1rem;
}

.recent-posts-widget .recent-post-content {
    flex: 1;
}

.recent-posts-widget .recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-posts-widget .recent-post a {
    display: flex;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-widget .recent-post a:hover {
    color: var(--primary-color);
}

.recent-posts-widget .date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.cta-widget {
    text-align: center;
    background-color: var(--primary-light);
}

.cta-widget h3 {
    color: var(--primary-color);
}

.newsletter-section {
    padding: var(--section-padding-sm);
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 0;
}

.newsletter-form .input-group {
    margin-bottom: 0.5rem;
}

.newsletter-form .form-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Media Queries for Blog */
@media (max-width: 992px) {
    .blog-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .article-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }
}