/* 
Midwest Gas Pipe Repair - Blog Styles
=========================================
*/

/* Blog Header
=========================================*/
.blog-header {
    background: linear-gradient(rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.9)), url('/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Content Section
=========================================*/
.blog-content {
    padding: 80px 0;
}

/* Featured Post
=========================================*/
.featured-post {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.featured-post:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.featured-post .post-image {
    height: 100%;
}

.featured-post .post-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.featured-post .post-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-post .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.featured-post .post-date {
    color: var(--gray-color);
}

.featured-post .post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.featured-post h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

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

.featured-post p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.featured-post .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.featured-post .read-more:hover {
    color: var(--secondary-color);
}

.featured-post .read-more i {
    transition: all 0.3s;
}

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

/* Post Cards
=========================================*/
.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-card .post-image {
    position: relative;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s;
}

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

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

.post-card .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.post-card .post-date {
    color: var(--gray-color);
}

.post-card .post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.post-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.post-card h2 a:hover {
    color: var(--primary-color);
}

.post-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.post-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    margin-top: auto;
}

.post-card .read-more:hover {
    color: var(--secondary-color);
}

.post-card .read-more i {
    transition: all 0.3s;
}

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

/* Pagination
=========================================*/
.pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

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

.page-link:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

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

/* Sidebar
=========================================*/
.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.search-widget .form-control {
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
    border: 1px solid #e1e1e1;
}

.search-widget .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 20px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-widget .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.categories-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
}

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

.categories-list a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s;
    cursor: pointer;
}

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

.categories-list a.active {
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 5px;
}

.categories-list span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

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

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.recent-post-content .post-date {
    color: var(--gray-color);
    font-size: 0.85rem;
}

/* Emergency CTA Widget */
.emergency-cta-widget {
    background: linear-gradient(rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.1)), white;
    border-left: 4px solid var(--primary-color);
}

.emergency-cta-widget h3 {
    color: var(--primary-color);
    border-bottom: none;
    padding-bottom: 0;
}

.emergency-cta-widget h3:after {
    display: none;
}

.emergency-cta-widget p {
    margin-bottom: 20px;
}

.emergency-cta-widget .btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.emergency-cta-widget .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.emergency-cta-widget .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f1f1;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

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

/* Blog CTA Section
=========================================*/
.blog-cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    margin-top: 50px;
}

.blog-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.blog-cta p {
    margin-bottom: 0;
    opacity: 0.9;
}

.blog-cta .cta-button {
    background-color: var(--primary-color);
}

/* Single Post Styles
=========================================*/
.single-post-header {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.single-post-header .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.single-post-header .post-date,
.single-post-header .post-author,
.single-post-header .post-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-header .post-date i,
.single-post-header .post-author i {
    color: var(--gray-color);
}

.single-post-header .post-category i {
    color: var(--primary-color);
}

.single-post-header .post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.single-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.single-post-content {
    padding: 50px 0;
}

.single-post-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
}

.single-post-text h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-text h3 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.single-post-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.single-post-text ul li,
.single-post-text ol li {
    margin-bottom: 10px;
}

.single-post-text blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

.single-post-text blockquote p:last-child {
    margin-bottom: 0;
}

.post-tags {
    margin-top: 40px;
}

.post-tags h4 {
    margin-bottom: 15px;
}

.post-share {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share h4 {
    margin-bottom: 0;
    margin-right: 10px;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    color: var(--dark-color);
    transition: all 0.3s;
}

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

.author-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

.author-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info h4 {
    margin-bottom: 10px;
}

.author-info p {
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    color: var(--dark-color);
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.related-posts h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.comments-section {
    margin-top: 60px;
}

.comments-section h3 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comments-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.comment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-content {
    flex-grow: 1;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 15px;
}

.comment-reply a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-reply a:hover {
    text-decoration: underline;
}

.comment-form {
    margin-top: 60px;
}

.comment-form h3 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comment-form h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment-form .form-control {
    margin-bottom: 20px;
    padding: 12px 15px;
}

.comment-form textarea.form-control {
    height: 150px;
}

/* Media Queries
=========================================*/
@media (max-width: 991px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }

    .featured-post .post-content {
        padding: 20px;
    }

    .featured-post h2 {
        font-size: 1.6rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .blog-header {
        padding: 40px 0;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 50px 0;
    }

    .featured-post {
        flex-direction: column;
    }

    .featured-post .post-image img {
        border-radius: 10px 10px 0 0;
    }

    .featured-post h2 {
        font-size: 1.5rem;
    }

    .post-card h2 {
        font-size: 1.3rem;
    }

    .single-post-header h1 {
        font-size: 2rem;
    }

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

    .author-social {
        justify-content: center;
    }

    .comment {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comment-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 575px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .featured-post h2 {
        font-size: 1.4rem;
    }

    .post-card h2 {
        font-size: 1.2rem;
    }

    .single-post-header h1 {
        font-size: 1.8rem;
    }

    .single-post-text h2 {
        font-size: 1.5rem;
    }

    .single-post-text h3 {
        font-size: 1.3rem;
    }
}