/* Blog Pages CSS - Add to your style.css */
/* Page Header */
.page-header {
    background: linear-gradient(0deg, rgba(12, 66, 74, 0.95), rgba(12, 66, 74, 0.2)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 150px 0 80px;
    margin-top: 0;
}

.page-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-item a:hover {
    color: var(--primary-red);
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

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

/* Blog Intro */
.blog-intro {
    background: var(--white);
}

/* Featured Post */
.featured-post {
    background: var(--light-bg);
}

.featured-post-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    font-size: 14px;
    color: var(--text-gray);
}

.meta-item i {
    color: var(--primary-red);
    margin-right: 6px;
}

.featured-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.featured-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: var(--primary-red);
}

.featured-post-excerpt {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Blog Grid */
.blog-grid {
    background: var(--white);
}

.blog-post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.blog-post-meta {
    margin-bottom: 15px;
}

.blog-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

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

.blog-post-title a:hover {
    color: var(--primary-red);
}

.blog-post-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

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

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

.page-link {
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}

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

.page-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--dark-bg);
}

.newsletter-title {
    font-size: 36px;
    font-weight: 700;
}

.newsletter-text {
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-subscribe-form .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-subscribe-form .form-control {
    border: none;
    padding: 15px 25px;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
}

.newsletter-subscribe-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 35px;
    font-weight: 600;
}

/* Blog Detail Page */
.blog-detail-content {
    background: var(--white);
}

.blog-detail-post {
    background: var(--white);
}

.blog-detail-image {
    border-radius: 20px;
    overflow: hidden;
}

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

.blog-detail-meta {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-detail-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
}

.blog-detail-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
}

.blog-detail-body .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.content-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.content-list {
    padding-left: 20px;
}

.content-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.content-highlight {
    background: rgba(227, 30, 36, 0.05);
    border-left: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
}

.content-highlight i {
    font-size: 32px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.content-highlight h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.content-highlight p {
    margin: 0;
    color: var(--text-gray);
}

.content-image {
    text-align: center;
}

.content-image img {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-gray);
}

.content-blockquote {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-red);
    padding: 30px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
}

.content-blockquote footer {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
}

/* Tags */
.blog-tags {
    padding: 25px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.tags-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-bg);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Share */
.blog-share {
    padding: 25px 0;
}

.share-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-role {
    font-size: 14px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.author-bio {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Comments */
.comments-section {
    padding-top: 30px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.comment-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.comment-date {
    font-size: 13px;
    color: var(--text-gray);
}

.comment-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-reply {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
}

.comment-reply:hover {
    color: var(--text-dark);
}

/* Comment Form */
.comment-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.comment-form .form-control {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 18px;
}

.comment-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.15);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Search Widget */
.search-form .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.search-form .form-control {
    border: 1px solid #ddd;
    border-right: none;
}

.search-form .btn {
    border: 1px solid var(--primary-red);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #e9ecef;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: var(--primary-red);
    padding-left: 10px;
}

.categories-list .count {
    color: var(--text-gray);
    font-size: 14px;
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

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

.recent-post-title a:hover {
    color: var(--primary-red);
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-gray);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 8px 18px;
    background: var(--light-bg);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* CTA Widget */
.cta-widget {
    background: var(--dark-bg) !important;
}

.cta-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Related Posts */
.related-posts {
    background: var(--light-bg);
}

/* Responsive */
@media (max-width: 991px) {
    .featured-post-image img {
        height: 350px;
    }
    
    .blog-detail-image img {
        height: 400px;
    }
    
    .blog-detail-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .featured-post-image img {
        height: 280px;
    }
    
    .blog-detail-image img {
        height: 300px;
    }
    
    .featured-post-title {
        font-size: 26px;
    }
    
    .blog-detail-title {
        font-size: 28px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
}
