#slider {
    margin-top: 20px;
}

.news {
    margin-top: 20px;
}


.navbar-nav .nav-item .nav-link {
    transition: color 0.3s ease, border-bottom-color 0.3s ease; 
    border-bottom: 1px solid transparent; 
}

.navbar-nav .nav-item .nav-link:hover {
    border-bottom-color: #17bdb3; /* Màu gạch chân khi hover */
    border-bottom-width: 2px; /* Độ dày của gạch chân khi hover */
}

.nav {
    display: flex;
    flex-wrap: wrap;
}

/* Màu chữ đen và chữ in đậm */
.nav-link {
    color: black;
    font-weight: bold;
    text-decoration: none; /* Loại bỏ gạch chân từ liên kết */
    transition: color 0.3s ease; /* Tạo hiệu ứng chuyển đổi màu chữ mềm mại */
}

.nav-link:hover {
    color: #17bdb3; /* Màu xám đậm khi hover */
}

.title{
    color: #17bdb3;
}

.navbar-brand-img{
    margin-left: 40px;
}

.form-container {
transition: transform 0.3s ease-in-out; /* Hiệu ứng chuyển động */
transform-origin: center center;
transform: scale(1);
}

.form-container:hover {
transform: scale(1.05); /* Khi trỏ chuột vào, làm form to ra */
}

.gradient-header {
    background: linear-gradient(to right, #17bdb3, #fff);
    color: #fff;
    padding: 7px;
    text-align: left;
}


#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #fff;
}


.like_cmt{
    margin-top: 150px; /* Add margin for better spacing */
}

#comment-container {
    max-width: 600px;
    margin: left;
    margin-top: 20px; /* Add margin for better spacing */
    margin-bottom: 50px;
}

#comments {
    margin-top: 10px; /* Add margin for better spacing between comments */
}

.navbar-nav li {
    margin-right: 50px;/*  Adjust the value as needed to increase or decrease spacing */
    font-weight: bold;
}

.custom-form-rounded {
    border-radius: 30px; /* Increase border-radius for more rounding */
    border: 1px solid #dcdcdc91;
    padding: 5px; /* Increase padding for more length */
}

.custom-width-input {
    width: 200px; /* Adjust the width as needed */
    border: none;
    outline: none;
    box-shadow: none;
    margin-left: 10px; /* Shift the input to the right by 3 pixels */
}

.custom-btn-light {
    background-color: #fff; /* Set the background color to white */
    color: black; /* Set the text color to black */
}

.ml-edit {
    margin-left: 5px;
}

@media (max-width: 767px) {
    /* Adjust the margin for smaller screens */
    .ml-edit {
        margin-left: 10px!important;
        margin-top: 10px; /* Adjust as needed */
        margin-bottom: 10px; /* Adjust as needed */
    }
}

.custom-navbar {
    border-bottom: 3px solid #17bdb3; /* Đường viền dưới màu xanh */
    transition: background-color 0.3s ease;
}

/* Thêm vào CSS để đặt màu nền khi cuộn trang */
.navbar-scrolled {
    background-color: white !important; /* Màu nền khi cuộn, có thể thay đổi theo mong muốn */
}

.small-text {
    font-size: 0.8rem;
}    

.custom-background {
    background-color: #17bdb3; /* Mã màu của bạn */
}

.edit-text {
    color: white;
    text-align: justify;
}

.custom-border {
    border-bottom: 3px solid #fff; 
}

.custom-border2 {
    border-bottom: 1px solid black; 
}

.edit-title{
    font-weight: 650;
    text-align: left;
}

.edit-p {
    line-height: 1.2; /* Điều chỉnh khoảng cách giữa các dòng */
    color: #888;
    font-size: 0.9em;
    font-weight: 620;
    text-align: justify;
}

   /* Định dạng màu chữ khi hover */
.text-reset:hover .edit-title {
    color: #17bdb3; /* Màu chữ khi hover */
    text-decoration: none;
}

.text-reset:hover .edit-p {
    color: #17bdb3; /* Màu chữ khi hover */
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


.img_qc {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Để căn giữa hình ảnh */
}

@media (max-width: 767px) {
    .img_qc {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto; /* Để căn giữa hình ảnh */
    }
}

.footer {
    background-color: #f2f2f2; /* Màu xám nhạt */
    padding: 20px; /* Khoảng cách giữa nội dung và biên của footer */
    text-align: center; /* Căn giữa nội dung trong footer */
}

.footer-text{
    text-align: center;
    color: #888888;
}


/* CSS cho navbar khi nút scrollTopBtn hiển thị */
.navbar-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff; /* Màu nền của navbar khi cuộn */
    z-index: 1000;
    transform: translateY(0); /* Thêm thuộc tính transform để làm mờ chuyển động */
    transition: transform 0.3s ease; /* Thêm transition cho hiệu ứng mượt khi thay đổi */
}
  
/* Thêm transition cho hiệu ứng mượt khi thay đổi CSS */
.navbar {
    transition: background-color 0.3s ease;
}
  
  /* CSS cho nút scrollTopBtn khi cuộn lên đầu trang */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
  
  /* CSS cho navbar khi cuộn lên đầu trang và nút scrollTopBtn hiển thị */
.navbar-scrolled-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}
  

.avatar-frame {
    width: 230px; /* Kích thước của khung */
    height: 230px;
    border: 7px solid #17bdb3; /* Màu xanh cho viền */
    border-radius: 50%;
    overflow: hidden;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pagination-container {
    display: flex;
    justify-content: center; /* Căn giữa các phần tử trong container */
    align-items: center; /* Căn giữa theo chiều dọc */
    margin-top: 20px; /* Duy trì khoảng cách từ phần trên của trang */
}

.page-item {
    margin: 0 0.5px; /* Khoảng cách giữa các nút */
}

    /* Đổi màu cho nút "Trước" */
    .page-item.previous-button button {
        background-color: #17bdb3;
        color: #ffffff; 
    }

    /* Đổi màu cho nút "Sau" */
    .page-item.next-button button {
        background-color: #17bdb3; 
        color: #ffffff; 
    }

.container {
    overflow-x: hidden;
}    

.entry {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.entry img {
    width: 100%; /* Điều chỉnh theo nhu cầu của bạn */
    height: auto;
    display: block;
    margin: 0 auto; /* Canh giữa hình ảnh trong container */
}

.entry video {
    width: 100%; 
    display: block;
    margin: 0 auto;
}


.custom-image-new1{
    width: 485px;
    height: 270px;
}

.custom-image-new2{
    width: 485px;
    height: auto;
}

.custom-image-category{
    width: 600px;
    height: 300px;
}

.custom-image-category2{
    width: 485px;
    height: 220px;
}

.custom-image-lq{
    width: 300px;
    height: 180px;
}

.cmt {
    max-width: 600px;
    margin-top: 100px;
    border-top: 3px solid #DDDDDD; 
    background-color: #EEEEEE;
}

.avatar-frame2 {
    display: flex;
    margin: 10px;
}

.avatar-frame2 img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

.avatar-frame3 img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #17bdb3; /* Thêm viền màu đen mỏng */
}

.avatar-frame2 .content {
    display: flex;
    flex-direction: column;
}

.avatar-frame2 strong {
    margin-left: 5px;
}

.avatar-frame2 p {
    margin-left: 5px;
    white-space: pre-line;
    overflow-wrap: break-word;
}

#moveableItem {
    z-index: 199;
    transition: opacity  0.3s ease;
}
@media (max-width: 767px) {
    #moveableItem {
        display: none;
    }
}
#moveableItem.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 199;
    transform: translateY(-20%) translateX(45%) scale(0.4);
    transition: opacity  0.3s ease;
}



