/**
 * Bloor Pain Clinic - Blog & Articles Stylesheet
 */

/* Blog Hero Banner (Index & Archives) */
.bp-blog-hero {
    background: linear-gradient(135deg, #0f2b48 0%, #1a365d 100%);
    color: #ffffff;
    padding: 55px 0 50px 0;
    margin-bottom: 45px;
    text-align: center;
}

.bp-blog-hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.bp-blog-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Cards Grid */
.bp-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.bp-blog-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(15, 43, 72, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(15, 43, 72, 0.12);
}

.bp-blog-card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #f1f5f9;
    overflow: hidden;
}

.bp-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.bp-blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    color: #0066cc;
}

.bp-blog-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #0f2b48;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.bp-blog-card-category:hover {
    background: #0066cc;
    color: #ffffff;
}

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

.bp-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 10px;
}

.bp-blog-meta i {
    color: #0066cc;
    margin-right: 4px;
}

.bp-blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.bp-blog-card-title a {
    color: #0f2b48;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-blog-card-title a:hover {
    color: #0066cc;
}

.bp-blog-card-excerpt {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.bp-blog-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.bp-blog-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.bp-blog-card-link:hover {
    color: #0f2b48;
    gap: 10px;
}

/* ==========================================================================
   SINGLE BLOG POST - CENTERED HERO DESIGN
   ========================================================================== */

.bp-single-hero {
    background: linear-gradient(135deg, #0f2b48 0%, #1a365d 100%);
    color: #ffffff;
    padding: 60px 0 50px 0;
    margin-bottom: 40px;
    text-align: center;
}

.bp-blog-breadcrumb {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bp-blog-breadcrumb a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-blog-breadcrumb a:hover {
    color: #ffffff;
}

.bp-blog-breadcrumb span {
    margin: 0 4px;
    color: #64748b;
}

.bp-single-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.bp-single-category:hover {
    background: #0066cc;
    color: #ffffff;
}

.bp-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
}

.bp-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.bp-single-meta i {
    color: #38bdf8;
}

/* Featured Image */
.bp-single-featured-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 43, 72, 0.08);
}

/* Article Body Typography */
.bp-single-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 45px;
}

.bp-single-content p {
    margin-bottom: 1.6rem;
}

.bp-single-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f2b48;
    margin: 2.2rem 0 1rem 0;
    line-height: 1.3;
}

.bp-single-content h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2b48;
    margin: 1.8rem 0 0.9rem 0;
    line-height: 1.35;
}

.bp-single-content blockquote {
    border-left: 4px solid #0066cc;
    background: #f0f7ff;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.12rem;
    color: #0f2b48;
}

.bp-single-content ul,
.bp-single-content ol {
    margin-bottom: 1.6rem;
    padding-left: 1.5rem;
}

.bp-single-content li {
    margin-bottom: 0.6rem;
}

.bp-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Author Brand Card */
.bp-single-author-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 45px;
}

.bp-author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0f2b48;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 3px solid #0066cc;
}

.bp-author-card-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f2b48;
    margin-bottom: 6px;
}

.bp-author-card-bio {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Post Tags */
.bp-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 35px;
}

.bp-post-tags-label {
    font-weight: 700;
    color: #0f2b48;
    font-size: 0.95rem;
}

.bp-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bp-tag-pill {
    display: inline-block;
    background: #eef5ff;
    color: #0066cc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dbeafe;
}

.bp-tag-pill:hover {
    background: #0f2b48;
    color: #ffffff;
    border-color: #0f2b48;
    transform: translateY(-1px);
}

/* Post Navigation (Prev/Next Cards) */
.bp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.bp-post-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(15, 43, 72, 0.03);
}

.bp-post-nav-card:hover {
    border-color: #0066cc;
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.12);
    transform: translateY(-2px);
}

.bp-post-nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef5ff;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.bp-post-nav-card:hover .bp-post-nav-arrow {
    background: #0066cc;
    color: #ffffff;
}

.bp-post-nav-content {
    flex-grow: 1;
    overflow: hidden;
}

.bp-post-nav-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0066cc;
    margin-bottom: 4px;
}

.bp-post-nav-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f2b48;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-post-nav-card:hover .bp-post-nav-title {
    color: #0066cc;
}

/* SIDEBAR WIDGETS */
.bp-single-sidebar {
    position: sticky;
    top: 90px;
}

.bp-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(15, 43, 72, 0.04);
}

.bp-widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2b48;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.bp-widget-cta {
    background: linear-gradient(135deg, #0f2b48 0%, #1a365d 100%);
    color: #ffffff;
    border: none;
}

.bp-widget-cta-icon {
    font-size: 2.2rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 12px;
}

.bp-widget-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Recent Posts List in Sidebar */
.bp-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bp-recent-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bp-recent-post-item:hover {
    opacity: 0.85;
}

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

.bp-recent-post-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #eef5ff;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bp-recent-post-info {
    overflow: hidden;
}

.bp-recent-post-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f2b48;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-recent-post-date {
    font-size: 0.78rem;
    color: #64748b;
}

/* Related Posts Section */
.bp-related-section {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.bp-related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f2b48;
    text-align: center;
    margin-bottom: 35px;
}

/* RESPONSIVE MEDIA QUERIES FOR MOBILE FRIENDLINESS */
@media (max-width: 991.98px) {
    .bp-blog-hero {
        padding: 42px 15px 35px 15px;
    }
    .bp-blog-hero-title,
    .bp-single-title {
        font-size: 1.9rem;
    }
    .bp-blog-hero-subtitle {
        font-size: 0.95rem;
    }
    .bp-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .bp-single-sidebar {
        position: static;
        margin-top: 35px;
    }
    .bp-post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .bp-single-hero {
        padding: 38px 15px 30px 15px;
    }
    .bp-single-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    .bp-single-meta {
        gap: 8px 14px;
        font-size: 0.82rem;
    }
    .bp-blog-grid {
        grid-template-columns: 1fr;
    }
    .bp-single-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    .bp-single-content h2 {
        font-size: 1.4rem;
    }
    .bp-single-content h3 {
        font-size: 1.25rem;
    }
    .bp-post-nav-card {
        padding: 15px;
    }
    .bp-post-nav-title {
        font-size: 0.9rem;
    }
    .bp-post-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}
