/* Blog Section Styles */

/* Blog Header Section */
.blog-header-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.blog-header-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(237, 111, 35, 0.2);
    border-color: var(--primary-color);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 0;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.blog-card-content {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-card-date {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.blog-card-date i {
    color: var(--primary-color);
}

.blog-card-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 1rem;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.blog-card-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.blog-card:hover .blog-card-read-more {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.blog-card-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read-more i {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border-color: #e0e0e0;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(237, 111, 35, 0.1);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: #999;
    background-color: #f8f9fa;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* Blog Post Page Styles */
.blog-post-section {
    padding: 3rem 0 4rem;
    background-color: white;
}

.blog-post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.blog-post-date,
.blog-post-author,
.blog-post-category {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.blog-post-date i,
.blog-post-author i,
.blog-post-category i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.blog-post-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.blog-post-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.15rem;
}

.blog-post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.blog-post-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-post-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.blog-post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-post-share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.blog-post-share-links {
    display: flex;
    gap: 0.75rem;
}

.blog-post-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-post-share-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(237, 111, 35, 0.4);
    text-decoration: none;
}

.blog-post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-post-nav-link {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-post-nav-link:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(237, 111, 35, 0.15);
    text-decoration: none;
    transform: translateY(-3px);
}

.blog-post-nav-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-post-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.blog-post-nav-link:hover .blog-post-nav-title {
    color: var(--primary-color);
}

/* Blog Sidebar */
.blog-sidebar {
    padding-left: 2rem;
}

.blog-sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-sidebar-widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.blog-sidebar-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-sidebar-post-content {
    flex: 1;
}

.blog-sidebar-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.blog-sidebar-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-sidebar-post-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-categories li {
    margin-bottom: 0.75rem;
}

.blog-sidebar-categories a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.blog-sidebar-categories a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
    text-decoration: none;
}

.blog-sidebar-categories span {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-header-title {
        font-size: 2.25rem;
    }

    .blog-header-subtitle {
        font-size: 1.1rem;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-featured-image {
        height: 350px;
    }

    .blog-post-content h2 {
        font-size: 1.75rem;
    }

    .blog-post-content h3 {
        font-size: 1.35rem;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 1rem;
    }

    .blog-card-image-wrapper {
        height: 200px;
    }

    .blog-card-title {
        font-size: 1.35rem;
    }

    .blog-post-nav {
        flex-direction: column;
    }

    .blog-post-nav-link {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-header-section {
        padding: 3rem 0 2rem;
    }

    .blog-header-title {
        font-size: 1.75rem;
    }

    .blog-header-subtitle {
        font-size: 1rem;
    }

    .blog-posts-section {
        padding: 3rem 0;
    }

    .blog-card-content {
        padding: 2rem 1.5rem;
    }
    
    .blog-card-body {
        padding: 2rem 1.5rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-featured-image {
        height: 250px;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
