/* ==========================================================================
   Hazra Hearing Aid Centre - Blog Detail Page Stylesheet (blog-detail.css)
   Seamlessly integrates with custome.css, responsive.css & blogs.css
   ========================================================================== */

/* Breadcrumb in Banner / Top */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.blog-breadcrumb a {
    color: var(--primry-color, #0056b3);
    transition: color 0.2s ease;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: var(--orange-color, #df001f);
}

.blog-breadcrumb span.separator {
    color: #a0aec0;
}

.blog-breadcrumb span.current {
    color: #2d3748;
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Main Blog Detail Section (70% Left / 30% Right Desktop Layout)
   ========================================================================== */
.blog-detail-section {
    padding: 60px 0 90px 0;
    background-color: #f8fafc;
}

/* Main 2-column Container */
.blog-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: flex-start;
}

/* LEFT SIDE - 70% WIDTH ON DESKTOP */
.blog-detail-main {
    flex: 0 0 calc(70% - 18px);
    max-width: calc(70% - 18px);
    width: calc(70% - 18px);
}

/* RIGHT SIDE - 30% WIDTH ON DESKTOP */
.blog-detail-sidebar {
    flex: 0 0 calc(30% - 18px);
    max-width: calc(30% - 18px);
    width: calc(30% - 18px);
}

/* Sticky Wrapper for Sidebar */
.sidebar-sticky-wrap {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================================================
   Left Side - Article Container & Components
   ========================================================================== */
.blog-article-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.08);
}

/* Header & Title */
.blog-detail-header {
    margin-bottom: 24px;
}

.blog-detail-title {
    font-size: 34px;
    line-height: 46px;
    font-weight: 700;
    color: #0d141e;
    margin-bottom: 0;
    font-family: "Poppins", sans-serif;
}

/* Row/Div with Author and Date */
.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: #f1f5f9;
    border-radius: 12px;
    border-left: 4px solid var(--primry-color, #0056b3);
    margin-top: 24px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #4a5568;
}

.blog-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.blog-detail-meta .meta-item i {
    font-size: 16px;
}

.blog-detail-meta .meta-author i {
    color: var(--primry-color, #0056b3);
}

.blog-detail-meta .meta-date i {
    color: var(--orange-color, #df001f);
}

.blog-detail-meta .meta-time i {
    color: #2b6cb0;
}

.blog-detail-meta strong {
    color: #1a202c;
}

/* Large Featured Image */
.blog-detail-featured-media {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background-color: #e2e8f0;
}

.blog-detail-featured-media img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* Clean & Simple Article Content Typography */
.blog-detail-body {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
}

.blog-detail-body p {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 20px;
}

.blog-detail-body h2 {
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    color: #111827;
    margin-top: 36px;
    margin-bottom: 16px;
    font-family: "Poppins", sans-serif;
}

.blog-detail-body h3 {
    font-size: 19px;
    line-height: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 28px;
    margin-bottom: 12px;
}

.blog-detail-body ul {
    margin: 16px 0 24px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.blog-detail-body ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 10px;
}

.blog-detail-body strong {
    color: #111827;
}

/* Question and Answer (Q&A / FAQ) Section */
.blog-qa-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.blog-qa-item {
    margin-bottom: 24px;
}

.blog-qa-question {
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.blog-qa-answer {
    font-size: 16px;
    line-height: 1.85;
    color: #4b5563;
    margin-bottom: 0;
}

/* Back Link & Navigation Bar */
.blog-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.btn-back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: var(--orange-color);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(223, 0, 31, 0.25);
}

.btn-back-to-blogs:hover {
    background-color: #b70016;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 0, 31, 0.38);
}

.btn-back-to-blogs i {
    font-size: 15px;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.btn-back-to-blogs:hover i {
    transform: translateX(-4px);
}

.blog-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.blog-share-icons {
    display: flex;
    gap: 8px;
}

.blog-share-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.blog-share-icons a:hover {
    background: var(--primry-color, #0056b3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   RIGHT SIDE (30%) - Recent Blogs Sidebar & CTA Card
   ========================================================================== */
.sidebar-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.08);
}

.sidebar-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #0d141e;
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
    font-family: "Poppins", sans-serif;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--orange-color, #df001f);
    border-radius: 2px;
}

/* Vertical List of Small Recent Blog Cards */
.recent-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recent-blog-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.recent-blog-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-blog-card:hover {
    transform: translateX(4px);
}

/* Small Card Thumbnail */
.recent-blog-thumb {
    width: 85px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.recent-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.recent-blog-card:hover .recent-blog-thumb img {
    transform: scale(1.08);
}

/* Small Card Content */
.recent-blog-info {
    flex: 1;
    min-width: 0;
}

.recent-blog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--orange-color, #df001f);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.recent-blog-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.recent-blog-card:hover .recent-blog-title {
    color: var(--primry-color, #0056b3);
}

.recent-blog-date {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-blog-date i {
    font-size: 12px;
    color: #94a3b8;
}

/* Sidebar Consultation / CTA Box */
.sidebar-cta-box {
    background: linear-gradient(145deg, #0056b3 0%, #003366 100%);
    border-radius: 20px;
    padding: 30px 24px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.25);
}

.sidebar-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    color: #ffffff;
}

.sidebar-cta-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.sidebar-cta-box p {
    font-size: 14px;
    line-height: 22px;
    color: #e0e7ff;
    margin-bottom: 20px;
}

.sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--orange-color, #df001f);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(223, 0, 31, 0.35);
}

.sidebar-cta-btn:hover {
    background: #ffffff;
    color: var(--primry-color, #0056b3) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-cta-phone {
    margin-top: 14px;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-cta-phone a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-cta-phone a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Error / Fallback State (Invalid or Missing Blog ID)
   ========================================================================== */
.blog-not-found-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.08);
}

.blog-not-found-icon {
    width: 90px;
    height: 90px;
    background: #fee2e2;
    color: var(--orange-color, #df001f);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
}

.blog-not-found-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0d141e;
    margin-bottom: 12px;
}

.blog-not-found-card p {
    font-size: 16px;
    line-height: 26px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 28px auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Mobile (Screens <= 991.98px): Stack Columns Vertically */
@media only screen and (max-width: 991.98px) {
    .blog-detail-section {
        padding: 45px 0 70px 0;
    }

    .blog-detail-layout {
        flex-direction: column;
        gap: 40px;
    }

    /* Full Width on Tablet/Mobile */
    .blog-detail-main {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .blog-detail-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .sidebar-sticky-wrap {
        position: static;
    }

    .blog-article-card {
        padding: 30px 24px;
    }

    .blog-detail-title {
        font-size: 28px;
        line-height: 38px;
    }

    .blog-detail-body .lead-paragraph {
        font-size: 17px;
        line-height: 28px;
    }

    .blog-detail-body h2 {
        font-size: 22px;
        line-height: 32px;
    }
}

/* Mobile (Screens <= 767.98px) */
@media only screen and (max-width: 767.98px) {
    .blog-detail-section {
        padding: 35px 0 50px 0;
    }

    .blog-article-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .blog-detail-title {
        font-size: 24px;
        line-height: 34px;
        margin-bottom: 16px;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }

    .blog-detail-featured-media {
        max-height: 280px;
        margin-bottom: 24px;
    }

    .blog-detail-body {
        font-size: 15px;
        line-height: 1.75;
    }

    .blog-callout {
        padding: 16px;
        gap: 12px;
    }

    .blog-quote-box {
        padding: 20px;
    }

    .blog-article-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }

    .btn-back-to-blogs {
        justify-content: center;
    }

    .blog-share-links {
        justify-content: center;
    }

    .sidebar-box {
        padding: 22px 18px;
    }

    .recent-blog-thumb {
        width: 75px;
        height: 65px;
    }
}
