/* ============================================================
   Blog CSS — Cheetham Plumbing
   Matches existing site design (colours, fonts, components)
   ============================================================ */

/* ── Page Header Banner ──────────────────────────────────── */
.blog-page-header {
    background: linear-gradient(135deg, #225085 0%, #1a3d6b 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.blog-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/slider/slider1.jpg') center/cover no-repeat;
    opacity: .12;
}

.blog-page-header .container-fluid {
    position: relative;
}

.blog-breadcrumb {
    margin-bottom: 12px;
}

.blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: .85rem;
}

.blog-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, .8);
}

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

.blog-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, .6);
}

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

.blog-page-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.blog-page-subtitle {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Blog Section ────────────────────────────────────────── */
.blog-section {
    padding: 60px 0;
}

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-grid {
    margin: 0 -12px;
}

.blog-grid>[class*="col-"] {
    padding: 0 12px;
    margin-bottom: 28px;
}

/* ── Blog Card ───────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(34, 80, 133, .1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(34, 80, 133, .18);
}

.blog-card-img-link {
    display: block;
    overflow: hidden;
    height: 220px;
    background: #e8eef5;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

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

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, #e8eef5, #d0dcea);
}

.blog-card-img-placeholder .icofont-pipe {
    font-size: 3.5rem;
    color: #225085;
    opacity: .3;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: 14px;
    color: #757b88;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card-meta i {
    margin-right: 4px;
    color: #225085;
}

.blog-card-meta time {
    color: #757b88;
}

.blog-card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #225085;
    line-height: 1.4;
    margin: 0 0 12px;
}

.blog-card-title a {
    color: #225085;
    text-decoration: none;
    transition: color .2s;
}

.blog-card-title a:hover {
    color: #757b88;
}

.blog-card-excerpt {
    color: #555;
    font-size: 16px;
    line-height: 26px;
    flex: 1;
    margin-bottom: 16px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #225085;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s, color .2s;
    margin-top: auto;
}

.blog-read-more:hover {
    color: #757b88;
    border-color: #757b88;
}

.blog-read-more .icofont-arrow-right {
    font-size: 13px;
    transition: transform .2s;
}

.blog-read-more:hover .icofont-arrow-right {
    transform: translateX(3px);
}

/* ── Pagination ──────────────────────────────────────────── */
.blog-pagination {
    padding: 20px 0 10px;
}

.blog-pagination .pagination .page-link {
    color: #225085;
    border-color: #d0dcea;
    font-size: .9rem;
    padding: 8px 16px;
}

.blog-pagination .pagination .page-item.active .page-link {
    background: #225085;
    border-color: #225085;
    color: #fff;
}

.blog-pagination .pagination .page-link:hover {
    background: #e8eef5;
    color: #225085;
}

/* ── Empty State ─────────────────────────────────────────── */
.blog-empty {
    padding: 80px 20px;
    color: #757b88;
}

.blog-empty .icofont-file-text {
    font-size: 4rem;
    color: #225085;
    opacity: .3;
    display: block;
    margin-bottom: 16px;
}

.blog-empty h3 {
    color: #225085;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */
.post-breadcrumb-section {
    background: #f5f8fc;
    border-bottom: 1px solid #e0e9f3;
    padding: 12px 0;
    margin-top: 155px;
}

.post-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: .85rem;
}

.post-breadcrumb .breadcrumb-item a {
    color: #225085;
}

.post-breadcrumb .breadcrumb-item a:hover {
    color: #757b88;
}

.post-breadcrumb .breadcrumb-item.active {
    color: #757b88;
}

/* ── Post Section ────────────────────────────────────────── */
.post-section {
    padding: 48px 0 60px;
}

/* ── Single Post ─────────────────────────────────────────── */
.single-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(34, 80, 133, .08);
    overflow: hidden;
}

.post-header {
    padding: 36px 40px 24px;
    border-bottom: 1px solid #e8eef5;
}

.post-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #225085;
    margin: 0 0 16px;
    line-height: 1.25;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #757b88;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #225085;
}

.post-featured-image {
    overflow: hidden;
    max-height: 480px;
}

.post-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 36px 40px;
    line-height: 28px;
    color: #333;
    font-size: 16px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'Raleway', sans-serif;
    color: #225085;
    margin-top: 1.6em;
    margin-bottom: .6em;
    font-weight: 600;
}

.post-content h2 {
    font-size: 24px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content a {
    color: #225085;
    font-weight: 600;
}

.post-content a:hover {
    color: #757b88;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.post-content li {
    margin-bottom: .4em;
    list-style-type: disc;
}

.post-content ol li {
    list-style-type: decimal;
}

.post-content blockquote {
    border-left: 4px solid #225085;
    background: #f5f8fc;
    margin: 1.5em 0;
    padding: 16px 24px;
    color: #555;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.post-content table th {
    background: #225085;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}

.post-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8eef5;
}

.post-content table tr:nth-child(even) td {
    background: #f5f8fc;
}

.post-content pre {
    background: #f5f8fc;
    border: 1px solid #e0e9f3;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    font-size: .9rem;
}

.post-content code {
    background: #f0f4fb;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .88em;
}

/* ── Share Buttons ───────────────────────────────────────── */
.post-share {
    padding: 24px 40px;
    border-top: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-label {
    font-weight: 600;
    color: #225085;
    font-size: .9rem;
    margin-right: 4px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    color: #fff;
}

.share-btn:hover {
    color: #fff;
    opacity: .88;
    transform: translateY(-1px);
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #25D366;
}

.post-back {
    padding: 0 40px 36px;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.post-sidebar {
    padding-left: 8px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(34, 80, 133, .08);
}

.sidebar-widget .widget-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #225085;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef5;
}

.sidebar-cta {
    background: #225085;
}

.sidebar-cta .widget-title {
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
}

.sidebar-cta p {
    font-size: 15px;
}

.sidebar-cta-contact {
    margin-top: 12px;
    font-size: .88rem;
}

.sidebar-cta-contact p {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-cta-contact i {
    color: rgba(255, 255, 255, .7);
}

.sidebar-products .footer-menu li {
    margin-bottom: 8px;
}

.sidebar-products .footer-menu li a {
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color .2s;
}

.sidebar-products .footer-menu li a:hover {
    color: #225085;
}

.sidebar-products .footer-menu li a .icofont-arrow-right {
    font-size: .75rem;
    color: #225085;
}

/* Recent Posts */
.recent-posts-list {
    padding: 0;
    list-style: none;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4fb;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.recent-post-thumb img {
    width: 64px;
    height: 48px;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    display: block;
    font-size: .87rem;
    font-weight: 600;
    color: #225085;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color .2s;
}

.recent-post-title:hover {
    color: #757b88;
}

.recent-post-date {
    font-size: .77rem;
    color: #9aa3b0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .post-sidebar {
        padding-left: 0;
        margin-top: 32px;
    }

    .post-header {
        padding: 24px 24px 18px;
    }

    .post-content {
        padding: 24px 24px;
    }

    .post-share {
        padding: 20px 24px;
    }

    .post-back {
        padding: 0 24px 28px;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .blog-page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 989px) {
    .post-breadcrumb-section {
        margin-top: 0;
    }
}

@media (max-width: 767px) {

    .blog-card-img-link,
    .blog-card-img {
        height: 200px;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .blog-page-header {
        padding: 40px 0 35px;
    }

    .blog-page-title {
        font-size: 1.5rem;
    }

    .post-header {
        padding: 20px 18px 14px;
    }

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

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

    .post-share {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .post-back {
        padding: 0 18px 24px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}