/* Blog Page Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(40, 90, 50, 0.8) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 1.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item.active {
    color: #fff;
}

/* Blog Section */
.blog-section {
    background: #f8f9fa;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.blog-card:hover .blog-img-container img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 50px;
}

.blog-date .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background: #e8f5e9;
    color: #28a745;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #28a745;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-read-more {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.blog-read-more:hover {
    color: #1e7e34;
    transform: translateX(5px);
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

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

/* Pagination */
.pagination {
    gap: 8px;
}

.page-link {
    color: #2c3e50;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #28a745;
    background: #e8f5e9;
    border-color: #28a745;
}

.page-item.active .page-link {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.newsletter-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form-inline .form-control {
    border: none;
    padding: 14px 20px;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.newsletter-form-inline .form-control:focus {
    box-shadow: none;
}

.newsletter-form-inline .btn {
    padding: 14px 30px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.newsletter-form-inline .btn:hover {
    background: #1a252f;
    border-color: #1a252f;
}

/* Single Blog Post Styles */
.single-blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.post-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.post-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 30px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.post-meta span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.post-body {
    padding: 40px 30px;
}

.post-body h2 {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.post-body h3 {
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 25px 0 15px;
}

.post-body p {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-body li {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid #28a745;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: #6c757d;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags span {
    background: #e8f5e9;
    color: #28a745;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.author-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-card .card-body {
    padding: 15px;
}

.related-post-card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #28a745;
}

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

.sidebar-widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

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

.sidebar-widget ul li a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-widget ul li a:hover {
    color: #28a745;
}

.sidebar-widget ul li a i {
    margin-right: 10px;
    color: #28a745;
    width: 18px;
}

/* Responsive */
@media (max-width: 991px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-header {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-header {
        height: 250px;
    }
    
    .post-body {
        padding: 25px 20px;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-section h3 {
        font-size: 1.35rem;
    }
}
