/* Giao diện Sản Phẩm Vắc Xin & Chi Tiết Tiêm Chủng (Vaccine Detail & Catalog Styles) */

.vaccine-detail-page {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

/* Sleek Modern Breadcrumb Bar */
.news-breadcrumb-bar {
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color, #c8102e);
}

.breadcrumb-item.active span {
    color: var(--primary-color, #c8102e);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    flex-shrink: 0;
}

.breadcrumb-separator svg,
.breadcrumb-separator i {
    width: 13px;
    height: 13px;
}

/* 2-Column Main Layout for Vaccine Detail Page (Margin bottom 54px sang trọng) */
.vaccine-detail-layout {
    display: flex;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 54px;
}

@media (max-width: 992px) {
    .vaccine-detail-layout {
        flex-direction: column;
    }
}

.article-sidebar {
    align-self: stretch;
    box-sizing: border-box;
}

/* Cột Bên Trái Sticky Container (top: 100px - Đảm bảo không bao giờ bị Header che lấp khi cuộn) */
.sticky-sidebar-container {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
}

.vaccine-toc-widget {
    background: #ffffff;
    border-radius: var(--radius-md, 14px);
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.vaccine-toc-widget .widget-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #c8102e);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile TOC widget: hidden on desktop, visible on mobile */
.mobile-article-toc {
    display: none;
}

/* Smooth Scroll Section Anchor Offset */
.article-main-content section,
.article-main-content h2,
.article-main-content h3,
.article-main-content [id] {
    scroll-margin-top: 110px !important;
}

.toc-link-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 8px 10px 8px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    background: transparent;
    transition: color 0.15s ease, border-left-color 0.15s ease, background-color 0.15s ease;
    margin-bottom: 4px;
    text-align: justify;
    line-height: 1.5;
    box-sizing: border-box;
}

.toc-link-item:hover {
    color: var(--primary-color, #c8102e);
    background-color: rgba(200, 16, 46, 0.04);
    border-left-color: rgba(200, 16, 46, 0.3);
}

.toc-link-item.active {
    color: var(--primary-color, #c8102e);
    font-weight: 600;
    background-color: rgba(200, 16, 46, 0.06);
    border-left-color: var(--primary-color, #c8102e);
    border-radius: 0 6px 6px 0;
}

.toc-link-item i,
.toc-link-item svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 3px;
    transition: color 0.15s ease;
}

.toc-link-item:focus,
.toc-link-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.toc-link-item:hover i,
.toc-link-item:hover svg,
.toc-link-item.active i,
.toc-link-item.active svg {
    color: var(--primary-color, #c8102e);
}

/* Callout Hotline CTA Sidebar Widget (Bảo vệ viền bo tròn 100%) */
.sidebar-cta-widget {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.95) 0%, rgba(145, 10, 33, 0.92) 100%);
    color: #ffffff;
    border-radius: var(--radius-md, 16px);
    padding: 26px 22px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.22);
    overflow: hidden;
}

.cta-widget-icon {
    width: 36px;
    height: 36px;
    color: var(--secondary-color, #eaaa00);
    margin-bottom: 12px;
}

.sidebar-cta-widget h3 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-align: left;
}

.sidebar-cta-widget p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    margin: 0 0 18px 0;
    text-align: justify;
}

.cta-widget-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--primary-color, #c8102e);
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-widget-btn:hover {
    background: var(--secondary-color, #eaaa00);
    color: #0f172a;
    transform: translateY(-2px);
}

/* Main Content Body for Product Detail */
.vaccine-detail-page .article-main-content {
    background: #ffffff;
    border-radius: var(--radius-lg, 20px);
    border: 1px solid #e2e8f0;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .vaccine-detail-page .article-main-content {
        padding: 24px 20px;
    }
}

/* HTML / Markdown Parser Styling Rules for Article/Product Body Content */
.article-body-content {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 30px;
    text-align: justify;
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
    color: #0f172a;
    font-weight: 800;
    margin: 32px 0 14px 0;
    line-height: 1.35;
    text-align: justify;
}

.article-body-content h2 { font-size: 22px; border-bottom: 2px solid var(--primary-color, #c8102e); padding-bottom: 8px; }
.article-body-content h3 { font-size: 18.5px; }
.article-body-content h4 { font-size: 16.5px; color: var(--primary-color, #c8102e); }

.article-body-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 20px;
    padding-left: 22px;
}

.article-body-content li {
    margin-bottom: 8px;
    line-height: 1.8;
    text-align: justify;
}

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.article-body-content blockquote {
    border-left: 3px solid var(--primary-color, #c8102e);
    padding-left: 18px;
    margin: 24px 0;
    color: #475569;
    font-style: italic;
    background: transparent;
}

.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    box-sizing: border-box;
}

.article-body-content th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: justify;
    font-size: 14.5px;
}

.article-body-content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: justify;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
}

/* Author Signature at Bottom Right */
.article-author-signature {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

/* Isolated White Card Section 100% Width */
.suggested-news-section {
    background: #ffffff;
    border-radius: var(--radius-lg, 20px);
    border: 1px solid #e2e8f0;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-top: 50px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

.suggested-news-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-color, #c8102e);
}

/* Slider Styles for Related Vaccines */
.related-slider-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 4px 12px 4px;
    margin: -4px -4px 0 -4px;
    box-sizing: border-box;
}

.related-slider-container::-webkit-scrollbar {
    display: none;
}

.related-slider-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 240px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .related-slider-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .related-slider-card {
        flex: 0 0 85%;
    }
}

.slider-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.slider-nav-btn:hover {
    background-color: var(--primary-color, #c8102e);
    color: #ffffff;
    border-color: var(--primary-color, #c8102e);
    transform: scale(1.05);
}

/* Mobile Responsive Optimization for Smartphone Viewports */
@media (max-width: 768px) {
    .vaccine-detail-page {
        padding: 12px 12px 90px 12px !important;
    }
    .vaccine-header-card {
        padding: 16px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    }
    .vaccine-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .vaccine-detail-media {
        height: 210px !important;
        border-radius: 12px !important;
    }
    .article-detail-title {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
    .vaccine-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .vaccine-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }
    .vaccine-action-bar > div {
        width: 100% !important;
    }
    .vaccine-action-buttons {
        width: 100% !important;
        flex-direction: column !important;
    }
    .desktop-only-back-btn {
        display: none !important;
    }
    .btn-select-detail {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
    }
    .vaccine-detail-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    .article-main-content {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .article-sidebar {
        display: none !important;
    }
    .mobile-article-toc {
        display: block !important;
        margin-bottom: 24px !important;
    }
    .vaccine-detail-page .suggested-news-section {
        display: none !important;
    }
}

/* Premium Hover Transitions & Hover Lift Effects for all Action Buttons */
.desktop-only-back-btn,
.btn-select-detail,
.btn-detail-link,
.btn-select-vaccine {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover for Back Button */
.desktop-only-back-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
    background-color: #f8fafc !important;
}

/* Hover for Detail Selection Button */
.btn-select-detail:hover {
    transform: translateY(-3px) !important;
}
.btn-select-detail:not(.btn-selected):hover {
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3) !important;
    background-color: #a00d24 !important;
    border-color: #a00d24 !important;
}
.btn-select-detail.btn-selected:hover {
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.15) !important;
    background-color: #ffe4e6 !important;
}

/* Hover for View Detail Link */
.btn-detail-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.2) !important;
    background-color: var(--primary-color, #c8102e) !important;
    color: #ffffff !important;
    border-color: var(--primary-color, #c8102e) !important;
}

/* Hover for Select Vaccine in Slider */
.btn-select-vaccine {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.btn-select-vaccine:hover {
    transform: translateY(-3px) !important;
}
.btn-select-vaccine:not(.btn-selected):hover {
    background-color: var(--primary-color, #c8102e) !important;
    border-color: var(--primary-color, #c8102e) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.2) !important;
}
.btn-select-vaccine.btn-selected {
    background-color: #fff1f2;
    border: 1px solid var(--primary-color, #c8102e);
    color: var(--primary-color, #c8102e);
}
.btn-select-vaccine.btn-selected:hover {
    background-color: #ffe4e6 !important;
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.15) !important;
}

