/* ============================================================
   BLOG.CSS — Sydney Painting & Waterproofing
   Extends style.css. Import after style.css.
   ============================================================ */

/* ---- Shared Blog Typography ---- */
.blog-listing-page,
.single-post-page {
    background-color: #f6f6f6;
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */

/* Intro */
.blog-intro {
    text-align: center;
    margin-bottom: 50px;
}

.blog-intro .main-title h6 {
    color: #00aeef;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.blog-intro .main-title h2 {
    color: #121212;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-intro .main-title p {
    color: #555;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* Category Filter */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1.5px solid #ddd;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    transition: 0.3s all;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #00aeef;
    border-color: #00aeef;
    color: #fff;
}

/* Featured Post */
.featured-post {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: 0.3s transform, 0.3s box-shadow;
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.featured-image {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s transform;
    min-height: 400px;
}

.featured-post:hover .featured-image img {
    transform: scale(1.04);
}

.featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00aeef;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
}

.featured-content {
    flex: 0 0 45%;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.featured-content .post-category {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00aeef;
}

.featured-content h2 {
    font-size: 1.6rem;
    color: #121212;
    line-height: 1.35;
}

.featured-content > p {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

.featured-meta span {
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-meta span i {
    color: #00aeef;
    font-size: 0.75rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: 0.3s transform, 0.3s box-shadow;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

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

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

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

.blog-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #00aeef;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border-radius: 20px;
}

.blog-card-body {
    padding: 25px 25px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.blog-card-date {
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.blog-card-date i {
    color: #00aeef;
    font-size: 0.75rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #121212;
    line-height: 1.4;
    margin: 0;
    font-family: "Cinzel", serif;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00aeef;
    margin-top: 5px;
    transition: 0.3s gap;
}

.blog-card:hover .blog-read-more {
    gap: 12px;
}

/* Blog CTA Banner */
.blog-cta-banner {
    background: linear-gradient(135deg, #00aeef 0%, #0089bc 100%);
    border-radius: 16px;
    padding: 60px 50px;
    text-align: center;
    margin-top: 20px;
}

.blog-cta-content h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.blog-cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.blog-cta-content .btn {
    margin: 0 8px;
}

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

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* Post Meta Top */
.post-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.post-meta-top .post-category {
    background: #00aeef;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
}

.post-meta-top .post-date,
.post-meta-top .post-author {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-top .post-date i,
.post-meta-top .post-author i {
    color: #00aeef;
    font-size: 0.75rem;
}

/* Post Title */
.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #121212;
    line-height: 1.3;
    margin-bottom: 30px;
    font-family: "Cinzel", serif;
}

/* Hero Image */
.post-hero-image {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.post-hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Post Body */
.post-body {
    font-family: "Inter", sans-serif;
    color: #333;
    line-height: 1.85;
}

.post-body p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 22px;
    line-height: 1.85;
}

.post-body h2 {
    font-size: 1.6rem;
    color: #121212;
    margin: 40px 0 18px;
    font-family: "Cinzel", serif;
}

.post-body h3 {
    font-size: 1.3rem;
    color: #121212;
    margin: 35px 0 15px;
    font-family: "Cinzel", serif;
}

.post-body h4 {
    font-size: 1.15rem;
    color: #00aeef;
    margin: 25px 0 12px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.post-body strong {
    color: #121212;
    font-weight: 700;
}

.post-body ul,
.post-body ol {
    margin: 15px 0 22px 20px;
    padding: 0;
}

.post-body ul li,
.post-body ol li {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 8px;
    display: list-item;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

/* In-content CTA Block */
.post-body .blog-cta {
    background: linear-gradient(135deg, #00aeef 0%, #0089bc 100%);
    border-radius: 14px;
    padding: 40px 40px;
    margin: 40px 0;
    text-align: center;
}

.post-body .blog-cta h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: "Cinzel", serif;
}

.post-body .blog-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-body .blog-cta a:not(.btn) {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.post-body .blog-cta .btn {
    margin-top: 5px;
    background: #fff;
    color: #00aeef;
    border-color: #fff;
}

.post-body .blog-cta .btn:hover {
    background: transparent;
    color: #fff;
}

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0 30px;
    padding: 25px 30px;
    background: #f0f8fd;
    border-radius: 12px;
    border-left: 4px solid #00aeef;
}

.post-share p {
    color: #121212;
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: 0.3s opacity;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.twitter { background: #000; }

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9375rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #162b28 0%, #1d3d39 100%);
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-cta h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sidebar-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.sidebar-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.sidebar-cta .btn i {
    margin-right: 6px;
    font-size: 0.8125rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00aeef;
    font-family: "Cinzel", serif;
}

/* Sidebar Recent Post */
.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    text-decoration: none;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s all;
}

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

.sidebar-post img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: 0.3s transform;
}

.sidebar-post:hover img {
    transform: scale(1.04);
}

.sidebar-post-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #121212;
    line-height: 1.45;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s color;
    font-family: "Inter", sans-serif;
}

.sidebar-post:hover .sidebar-post-title {
    color: #00aeef;
}

.sidebar-post-date {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    color: #aaa;
}

/* Sidebar Categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-categories li {
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    color: #444;
    text-decoration: none;
    transition: 0.3s color;
}

.sidebar-categories li a:hover {
    color: #00aeef;
}

.sidebar-categories li a span {
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    transition: 0.3s all;
}

.sidebar-categories li a:hover span {
    background: #00aeef;
    color: #fff;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 2px solid #e8e8e8;
}

.related-title {
    font-size: 1.5rem;
    color: #121212;
    margin-bottom: 30px;
    font-family: "Cinzel", serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media screen and (max-width: 1200px) {
    .single-post-layout {
        grid-template-columns: 1fr 300px;
        gap: 35px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .featured-post {
        flex-direction: column;
    }

    .featured-image {
        flex: none;
    }

    .featured-image img {
        min-height: 280px;
        height: 280px;
    }

    .featured-content {
        flex: none;
        padding: 30px 30px;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-cta {
        grid-column: span 2;
    }

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

    .post-hero-image img {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid.three-col {
        grid-template-columns: 1fr;
    }

    .blog-intro .main-title h2 {
        font-size: 1.75rem;
    }

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

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-cta {
        grid-column: span 1;
    }

    .blog-cta-banner {
        padding: 40px 25px;
    }

    .blog-cta-banner .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .post-body .blog-cta {
        padding: 30px 25px;
    }

    .related-posts .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .blog-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.8125rem;
    }

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

    .post-hero-image img {
        height: 220px;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
}