﻿.page-location a,
    .page-location span {
        color: #6b7280;
        text-decoration: none;
    }

        .page-location a:hover {
            color: #2563eb;
        }

        /* tạo dấu / giữa các phần */
        .page-location a + a::before,
        .page-location a + span::before {
            content: "/";
            margin: 0 8px;
            color: #9ca3af;
        }

    /* màu phần cuối */
    .page-location span {
        color: #003da6;
        font-weight: 500;
    }
	.content_main img, .content_main video{
		margin: auto;
	}
	#article-body p, #article-body img{
		margin-bottom: 10px;
	}
	.content_main h1,.content_main h2, .content_main h3, .content_main h4, .content_main h5{
		font-weight: bold;
	}
	
	/* Khối này bạn nhúng vào bài viết */
    .pdf-embed {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    }

    .pdf-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      background: #f8fafc;
      border-bottom: 1px solid #e5e7eb;
      flex-wrap: wrap;
    }

    .toolbar-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .btn {
      min-width: 40px;
      height: 36px;
      padding: 0 12px;
      border: 1px solid #d1d5db;
      border-radius: 10px;
      background: #fff;
      color: #374151;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .btn:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
    }

    .btn.primary {
      background: #2563eb;
      border-color: #2563eb;
      color: #fff;
    }

    .btn.primary:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
    }

    .pdf-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 14px;
      color: #4b5563;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 64px;
      height: 34px;
      padding: 0 10px;
      background: #fff;
      border: 1px solid #dbe3ee;
      border-radius: 999px;
      font-weight: 600;
      color: #111827;
    }

    .pdf-viewer {
      background: linear-gradient(to bottom, #eef2f7, #e8edf4);
      padding: 20px;
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      min-height: 500px;
    }

    .page-shell {
      background: #fff;
      padding: 14px;
      border-radius: 16px;
      box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05);
    }

    #pdfCanvas {
      display: block;
      max-width: 100%;
      height: auto;
      background: #fff;
      border-radius: 8px;
    }

    .loading-box {
      display: none;
      padding: 14px 16px;
      margin: 12px 16px 0;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #fff;
      color: #374151;
      font-size: 14px;
    }

    .loading-box.show {
      display: block;
    }

    @media (max-width: 768px) {
      .pdf-toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .toolbar-group,
      .pdf-info {
        justify-content: center;
      }

      .pdf-viewer {
        padding: 12px;
        min-height: 320px;
      }

      .page-shell {
        padding: 8px;
        border-radius: 12px;
      }
    }
	.pdf-embed .btn{
		line-height: 36px;
	}