/* ==========================================================================
   GIAO DIỆN CHI TIẾT BÀI VIẾT - XƯỞNG IN ĐÀ NẴNG / ATV MEDIA
   ========================================================================== */
.pt-detail-wrapper,
.pt-detail-wrapper * {
    box-sizing: border-box;
}

.pt-detail-wrapper {
    font-family: 'Be Vietnam Pro', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.75;
    padding-bottom: 60px;
    font-size: 15px;
}

/* Breadcrumb Bar */
.pt-detail-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    margin-bottom: 30px;
}

.pt-detail-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

.pt-detail-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: #64748b;
}

.pt-detail-bc li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pt-detail-bc a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-detail-bc a:hover {
    color: #0b3664;
    text-decoration: underline;
}

.pt-detail-bc .sep {
    color: #cbd5e1;
    font-size: 11px;
}

.pt-detail-bc li.active {
    color: #0b3664;
    font-weight: 600;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Layout Grid */
.pt-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

/* Cột Trái: Bài Viết Chính */
.pt-detail-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pt-article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pt-article-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 16px;
}

.pt-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 22px;
    font-size: 13px;
    color: #64748b;
}

.pt-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pt-article-meta-item i {
    color: #0b3664;
}

/* Khung Tóm Tắt (Sapo) */
.pt-article-sapo {
    background: #f0f7ff;
    border-left: 4px solid #0b3664;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 25px;
    font-size: 15.5px;
    line-height: 1.65;
    color: #1e3a8a;
    font-weight: 500;
}

/* Ảnh Đại Diện Bài Viết */
.pt-article-figure {
    margin: 0 0 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background: #0f172a;
}

.pt-article-figure img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.pt-article-figure:hover img {
    transform: scale(1.015);
}

.pt-article-figcaption {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nội Dung Chi Tiết Bài Viết */
.pt-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #27272a;
}

.pt-article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0b3664;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.pt-article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 24px 0 12px;
}

.pt-article-body h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 18px 0 10px;
}

.pt-article-body p {
    margin-bottom: 18px;
}

.pt-article-body ul, 
.pt-article-body ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.pt-article-body li {
    margin-bottom: 8px;
}

.pt-article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pt-article-body table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14.5px;
}

.pt-article-body table th,
.pt-article-body table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
}

.pt-article-body table th {
    background: #0b3664;
    color: #ffffff;
    font-weight: 600;
}

.pt-article-body blockquote {
    background: #f1f5f9;
    border-left: 4px solid #0b3664;
    padding: 14px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #475569;
}

/* Tags & Chia Sẻ */
.pt-article-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pt-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pt-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 12.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pt-tag-item:hover {
    background: #0b3664;
    color: #ffffff;
}

.pt-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #64748b;
}

.pt-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pt-share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.pt-share-btn.fb { background: #1877f2; }
.pt-share-btn.zalo { background: #0068ff; font-weight: bold; font-size: 11px; }
.pt-share-btn.copy { background: #475569; cursor: pointer; border: none; }

/* Khung Tác Giả / Kỹ Thuật Viên Xưởng In */
.pt-author-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 35px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pt-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0b3664;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(11, 54, 100, 0.25);
}

.pt-author-info {
    flex: 1;
}

.pt-author-role {
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pt-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.pt-author-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}

.pt-author-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pt-btn-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pt-btn-author-call {
    background: #dc2626;
    color: #ffffff;
}

.pt-btn-author-call:hover {
    background: #b91c1c;
    color: #ffffff;
}

.pt-btn-author-zalo {
    background: #0068ff;
    color: #ffffff;
}

.pt-btn-author-zalo:hover {
    background: #0054cc;
    color: #ffffff;
}

/* ==========================================================================
   CỘT PHẢI: SIDEBAR
   ========================================================================== */
.pt-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    top:90px;
    position:sticky;
}

.pt-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pt-widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #0b3664;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0b3664;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Widget Liên Hệ / Báo Giá Nhanh */
.pt-widget-contact {
    background: linear-gradient(135deg, #0b3664 0%, #061c33 100%);
    color: #ffffff;
    border: none;
}

.pt-widget-contact .pt-widget-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.pt-contact-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(220, 38, 38, 0.35);
    border: 1px solid rgba(220, 38, 38, 0.6);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fecaca;
}

.pt-contact-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.pt-widget-hotline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.pt-widget-hotline-btn:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
}

.pt-widget-hotline-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
    box-shadow: none;
}

.pt-widget-hotline-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pt-widget-zalo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: #0068ff;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 18px;
    transition: background 0.2s ease;
}

.pt-widget-zalo-btn:hover {
    background: #0054cc;
    color: #ffffff;
}

.pt-contact-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12.5px;
    color: #e2e8f0;
}

.pt-contact-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pt-contact-perks li i {
    color: #4ade80;
}

/* Widget Danh Mục In Ấn */
.pt-sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-sidebar-cat-item {
    border-bottom: 1px dashed #e2e8f0;
}

.pt-sidebar-cat-item:last-child {
    border-bottom: none;
}

.pt-sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pt-sidebar-cat-link:hover {
    color: #0b3664;
    transform: translateX(4px);
}

.pt-sidebar-cat-link i {
    font-size: 12px;
    color: #94a3b8;
}

/* Widget Bài Viết Mới Nhất */
.pt-sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pt-sidebar-news-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pt-sidebar-news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.pt-sidebar-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pt-sidebar-news-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-sidebar-news-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-sidebar-news-link:hover {
    color: #0b3664;
}

.pt-sidebar-news-date {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   BÀI VIẾT LIÊN QUAN (GRID DƯỚI)
   ========================================================================== */
.pt-related-section {
    margin-top: 45px;
}

.pt-related-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0b3664;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pt-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pt-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pt-related-thumb {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    display: block;
}

.pt-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pt-related-card:hover .pt-related-thumb img {
    transform: scale(1.06);
}

.pt-related-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pt-related-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.pt-related-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-related-title a:hover {
    color: #0b3664;
}

.pt-related-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Banner CTA Cuối Trang */
.pt-detail-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #0b3664 0%, #1e3a8a 100%);
    border-radius: 12px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(11, 54, 100, 0.2);
}

.pt-detail-cta-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
}

.pt-detail-cta-text p {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
}

.pt-detail-cta-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.pt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pt-cta-btn:hover {
    transform: translateY(-2px);
}

.pt-cta-btn.call {
    background: #dc2626;
    color: #ffffff;
}

.pt-cta-btn.zalo {
    background: #ffffff;
    color: #0b3664;
}

/* Responsive */
@media (max-width: 991.98px) {
    .pt-detail-layout {
        grid-template-columns: 1fr;
    }
    .pt-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pt-detail-article {
        padding: 24px 20px;
    }
    .pt-article-title {
        font-size: 23px;
    }
    .pt-detail-cta {
        flex-direction: column;
        text-align: center;
    }
    .pt-detail-cta-btns {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .pt-related-grid {
        grid-template-columns: 1fr;
    }
    .pt-article-title {
        font-size: 20px;
    }
    .pt-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pt-author-btns {
        justify-content: center;
    }
    .pt-article-meta {
        gap: 10px;
    }
}
