/* =======================================================
   BLOG PAGE STYLES
   Previously duplicated as inline <style> blocks in:
   blog.html, blog-details.html, and all 11 blog post pages
   ======================================================= */

/* Blog post title styling */
.blog-post-title {
    font-size: 5rem !important; /* Reduced from 6rem (~80px) */
    line-height: 1.05 !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    font-weight: 700 !important; /* Reduced from 800 */
    letter-spacing: -2px !important;
    color: var(--title-color) !important;
}

/* Responsive blog post title */
@media (max-width: 991px) {
    .blog-post-title {
        font-size: 4.5rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 3.8rem !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 575px) {
    .blog-post-title {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
}

/* Adequate spacing between header and blog content
   Adjusted to push content slightly down relative to header
*/
.blog__details-area.space {
    padding-top: 100px !important;
}

@media (max-width: 991px) {
    .blog__details-area.space {
        padding-top: 30px !important;
    }
}

@media (max-width: 575px) {
    .blog__details-area.space {
        padding-top: 15px !important;
    }
}

@media (max-width: 375px) {
    .blog__details-area.space {
        padding-top: 10px !important;
    }
}

.blog__details-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Increase gap between inner blog posts and the right sidebar on desktop */
@media (min-width: 992px) {
    .blog__details-wrap {
        padding-right: 80px !important;
    }
}

.blog__details-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Make blog content images full width and square on mobile */
@media (max-width: 768px) {
    .blog__details-content img {
        width: 100vw !important;
        height: 100vw !important;
        max-width: none !important;
        object-fit: cover !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        border-radius: 0 !important;
    }
}

/* Remove bottom border and padding from blog details bottom section */
.blog__details-bottom {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Adjust share section alignment */
.blog__details-bottom .post-share {
    justify-content: flex-start !important;
}

/* Mobile responsive adjustments for share section */
@media (max-width: 767.98px) {
    .blog__details-bottom .post-share {
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }
}

/* Squared thumbnail images for sidebar */
.sidebar__post-thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    overflow: hidden;
}

.sidebar__post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main Blog Page and Insights Page Post Card Titles - Make them smaller and more readable */
.blog-main-page .service-card-title,
.insights-main-page .service-card-title {
    font-size: 28px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

@media (max-width: 1199px) {
    .blog-main-page .service-card-title,
    .insights-main-page .service-card-title {
        font-size: 24px !important;
    }
}

@media (max-width: 767px) {
    .blog-main-page .service-card-title,
    .insights-main-page .service-card-title {
        font-size: 22px !important;
    }
}

@media (max-width: 575px) {
    .blog-main-page .service-card-title,
    .insights-main-page .service-card-title {
        font-size: 20px !important;
    }
}

/* Ensure blog and insight cards are always the same height and images have a uniform aspect ratio */
.blog-main-page .service-card,
.insights-main-page .service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.blog-main-page .service-card-img,
.insights-main-page .service-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden;
}

.blog-main-page .service-card-img a,
.insights-main-page .service-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-main-page .service-card-img img,
.insights-main-page .service-card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.blog-main-page .service-card-content,
.insights-main-page .service-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.blog-main-page .service-card-content .btn-wrap,
.insights-main-page .service-card-content .btn-wrap {
    margin-top: auto !important;
}

/* Sidebar Recent Posts spacing fix */
#brandbusters-recent-posts {
    margin-bottom: 60px !important;
}

#brandbusters-recent-posts .sidebar__widget {
    margin-bottom: 0 !important;
}


/* Main Blog Page Hero Title ("Tips & tricks blog") - Optional override */
/* Uncomment below if you want the main big hero title to be slightly smaller as well */
/*
.blog-main-page .hero-title {
    font-size: 110px !important;
}
@media (max-width: 767px) {
    .blog-main-page .hero-title {
        font-size: 80px !important;
    }
}
@media (max-width: 575px) {
    .blog-main-page .hero-title {
        font-size: 64px !important;
    }
}
*/
