<style>
    .no-select img {
      max-width: 100%; /* Hình ảnh sẽ không vượt quá chiều rộng của div */
      height: auto; /* Giữ nguyên tỷ lệ hình ảnh */
      display: block; /* Đảm bảo hình ảnh là phần tử block để không có khoảng trắng xung quanh */
      white-space: pre-wrap;
  }
</style>
<style>
    .no-select img {
        padding: 10px;  /* Điều chỉnh giá trị này theo ý muốn */
    }

    .no-select img[align="left"] {
        margin-right: 15px;  /* Khoảng cách bên phải cho hình căn trái */
    }

    .no-select img[align="right"] {
        margin-left: 15px;  /* Khoảng cách bên trái cho hình căn phải */
    }

    .no-select p {
        margin: 0;
        padding: 0;
    }

    .no-select p + p {
        margin-top: 1em;  /* Khoảng cách giữa các đoạn */
    }


  /* them su kien phong to */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 10px;
  z-index: 1001;
}

.close-btn:hover {
  color: #ddd;
}


/* Responsive styles */
@media (max-width: 768px) {
  .overlay img {
    max-width: 95%;
    max-height: 95%;
  }

  .close-btn {
    font-size: 24px;
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 480px) {
  .overlay img {
    max-width: 100%;
    max-height: 100%;
  }
}
  h5 strong {
    text-align: center;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 15px !important;
    white-space: nowrap;

}
h6 strong {
    font-size: 13px !important;
}


/* css cho pdf */
#pdf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px; /* Giảm margin-top */
    position: relative;
    width: 100%;
    max-width: 1200px;
}

#pdf-viewer {
    width: 100%;
    height: 50vh;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0; /* Xóa khoảng trống bên dưới slide */
}

#navigation-container {
    display: flex;
    justify-content: center; /* Đưa các nút vào giữa */
    align-items: center;
    margin-top: 5px; /* Giảm khoảng cách giữa slide và các nút */
    width: 100%;
    padding: 0 10px; /* Giảm padding bên trái và phải */
    position: relative; /* Để các nút nằm giữa slide */
}

#navigation {
    display: flex;
    align-items: center;
    justify-content: center; /* Đảm bảo nút nằm giữa */
}

#navigation button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 5px; /* Giảm khoảng cách giữa các nút */
    cursor: pointer;
    background-color: #4e888d;
    border: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#navigation button:hover {
    background-color: #f48840;
}

#page-num {
    font-size: 16px;
    font-weight: bold;
    margin: 0 10px;
    text-align: center;
}

#download-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 5px; /* Giảm khoảng cách giữa nút tải về và slide */
}

/* Media query cho mobile */
@media (max-width: 768px) {
    #pdf-viewer {
        height: 40vh;
    }

    #navigation button {
        padding: 8px 12px;
        font-size: 12px;
    }

    #download-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    #blog-content {
        width: 100%;
        overflow-x: auto; /* Hiển thị thanh cuộn ngang nếu nội dung vượt quá chiều rộng */
        -webkit-overflow-scrolling: touch; /* Hỗ trợ cuộn mượt trên các thiết bị cảm ứng (iOS) */
    }
    .sidebar-item.related{
        display:none;
    }
}


/* button download tam an
#download-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

#download-btn {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    background-color: #28a745;
    border: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

#download-btn:hover {
    background-color: #218838;
}*/
/* end pdf */


/* bai viet lien quan */
    .sidebar-item.related {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.sidebar-heading-related {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.sidebar-heading-related h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1a4f8b;
    margin: 0;
}

.content-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-related ul li {
    padding: 5px 0;
    transition: all 0.3s ease;
}

.content-related ul li:last-child {
    border-bottom: none;
}

.content-related ul li a {
    text-decoration: none;
    display: block;
}

.content-related ul li h5 {
    color: #4e888d;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.content-related ul li:hover {
    transform: translateX(8px);
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 6px;
}

.content-related ul li:hover h5 {
    color: #f48840;
}

    #blog-content table, #blog-content th, #blog-content td {
    border: 1px solid #000; /* Đường viền bảng */
    padding: 5px;
    text-align: left;
}
    .comment-link {
    color: #007bff; /* Màu chữ mặc định */
    text-decoration: none; /* Bỏ gạch chân */
}

    .comment-link:hover {
    color: #f48840; /* Màu chữ khi rê chuột vào */
}
/* end */