section#about,
section#product-list {
    padding: 2.5rem 0;
}

#product-list h2,
#product-list h3,
#product-list p {
    color: black;
    font-weight: bold;
}
#product-list h5{
    color: black;
    font-weight: normal;
}
#product-list h5 a:hover {
    color: #00b7ff;
    font-weight: bold;
}
.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.swiper-wrapper {
    width: fit-content;
    margin-bottom: 20px; /* Khoảng cách giữa slider và pagination/navigation */
}

.swiper-slide {
    width: auto !important;
    padding-right: 20px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    min-width: 200px;
    height: 270px;
}

.product-item img {
    height: 100px;
    margin-bottom: 10px;
    border-radius: 4px;
    object-fit: cover;
    width: 100%; /* Để ảnh scale vừa khung */
}

.product-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.product-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    height: 40px; /* Để mô tả không bị quá dài làm lệch layout */
    overflow: hidden;
}

.product-item .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.product-item .btn-primary:hover {
    background-color: #0056b3;
}

.swiper-pagination {
    position: relative !important; /* Để không overlay lên nội dung */
    margin-top: 10px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #ddd;
    opacity: 0.8;
    margin: 0 5px;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}


/* News */
    .news-detail .col-md-8.offset-md-2 {
        background-color: #fff;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .news-detail{
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .news-detail h1.mb-4 ,  .news-detail h2.mb-4 {
        color: #333;
        /* font-size: 2.5rem; */
        font-weight: bold;
        margin-bottom: 25px !important;
        border-bottom: 3px solid #007bff;
        padding-bottom: 10px;
    }

    .news-detail p.text-muted.mb-3 {
        color: #6c757d !important;
        font-style: italic;
        margin-bottom: 20px !important;
    }

    .news-detail img.img-fluid.mb-4.rounded {
        border-radius: 8px !important;
        margin-bottom: 30px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .news-detail .news-content {
        line-height: 1.8;
        font-size: 1.05rem;
        color: #495057;
        margin-bottom: 30px;
    }

    .news-detail .news-content h2, .news-detail .news-content h3 {
        color: #007bff;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: bold;
    }

    .news-detail .news-content p {
        margin-bottom: 1.5rem;
    }

    .news-detail .mt-5 .btn-secondary {
        color: #fff;
        background-color: #6c757d;
        border-color: #6c757d;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .news-detail .mt-5 .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    } 
    .news-detail .card {
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .news-detail .card-body {
        padding: 1.5rem;
    }

    .news-detail .card-title {
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 1rem;
        border-bottom: 2px solid #eee;
        padding-bottom: 0.5rem;
    }

    .news-detail .list-unstyled {
        padding-left: 0;
        list-style: none;
    }

    .news-detail .list-unstyled li a {
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .news-detail .list-unstyled li a:hover {
        color: #007bff;
    }
section#home-banner  {
    padding: 0 !important;
}
#home-banner.slider-img .author-skills.bg-blue {
    position: relative;
}

#home-banner .owl-carousel .slide img.img-fluid.w-100 {
    display: block; /* Đảm bảo ảnh hiển thị như một block */
    width: 100%;    /* Chiều rộng 100% của phần tử cha */
    height: auto;   /* Chiều cao tự động để giữ tỷ lệ khung hình */
    object-fit: cover; /* Lấp đầy container, có thể crop ảnh */
    min-height: 300px; /* Đặt chiều cao tối thiểu, điều chỉnh theo ý muốn */
    max-height: 700px; /* Đặt chiều cao tối đa, điều chỉnh theo ý muốn */
}

#home-banner .owl-carousel {
    position: relative; /* Để định vị các nút điều hướng */
}

#home-banner .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px; /* Khoảng cách từ cạnh */
}

#home-banner .owl-nav button.owl-prev,
#home-banner .owl-nav button.owl-next {
    background: rgba(0, 0, 0, 0.5) !important; /* Nền trong suốt */
    color: #fff !important;
    font-size: 2rem !important;
    padding: 5px 15px !important;
    border-radius: 5px !important;
    margin: 0 10px;
}

#home-banner .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

#home-banner .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

#home-banner .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: block;
    border-radius: 50%;
}

#home-banner .owl-dots .owl-dot.active span {
    background: #007bff; /* Màu dot active */
}

#result {
    background-color: rgba(255, 255, 255, 0.8); /* Nền trắng mờ */
    color: #333; /* Chữ màu đen hoặc xám đậm */
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 20px ;
}

#result.success {
    background-color: rgba(144, 238, 144, 0.8); /* Xanh lá cây nhạt cho thành công */
    color: #228B22; /* Xanh lá cây đậm cho chữ thành công */
}

#result.error {
    background-color: rgba(255, 99, 71, 0.8); /* Đỏ nhạt cho lỗi */
    color: #8B0000; /* Đỏ đậm cho chữ lỗi */
}

#result.hidden {
    display: none;
}
.card-detail{
    padding: 20px;
    color: #0056b3;
}
#scrollTopBtn {
    z-index: 1000; /* Đảm bảo nút luôn ở trên các phần tử khác */
    opacity: 0.8;
    height: 60px;
    width: 60px;
}

#scrollTopBtn:hover {
    opacity: 1;
}

.content p span {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
    display: inline !important; /* Thử thêm thuộc tính này */
}

.content p {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
}


.page-content{
    color: black;
}

.footer{
    color: #0056b3;
    background-image: url('/portal_assets/img/banner_footer.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    font-weight: bold;
}

.featured-news .news-title {
    font-size: 20px;
    font-weight: bold;
    color: #007bff; /* Màu xanh dương nổi bật */
}

.blog-sec .list-unstyled li{
    border-bottom: 1px dotted black;
}
.blog-sec .sidebar-links {
    color: black;
}


.blog-sec .sidebar-links .list-unstyled li{
    border-bottom: none;
    margin-bottom: 10px;
}



.blog-sec .header-text {
  font-weight: bold;
  color: #0077cc; /* Màu đỏ đậm */
  text-transform: uppercase;
  background: linear-gradient(to right, #e0f3ff, #ffffff);
  padding: 10px 20px;
  border-left: 6px solid #0077cc;
   border-top-left-radius: 8px; 
    border-top-right-radius: 8px; 
    border-bottom-left-radius: 0px; 
    border-bottom-right-radius: 5px; 
  box-shadow: 0 2px 5px rgba(0, 119, 204, 0.2);
  display: inline-block;
  margin-bottom: 5px;
  width: 100%;
}

.news-detail .header-text {
  font-weight: bold;
  color: #0077cc; /* Màu đỏ đậm */
  text-transform: uppercase;
  background: linear-gradient(to right, #e0f3ff, #ffffff);
  padding: 10px 20px;
  border-left: 6px solid #0077cc;
   border-top-left-radius: 8px; 
    border-top-right-radius: 8px; 
    border-bottom-left-radius: 0px; 
    border-bottom-right-radius: 5px; 
  box-shadow: 0 2px 5px rgba(0, 119, 204, 0.2);
  display: inline-block;
  margin-bottom: 5px;
  width: 100%;
}

.news-detail h5{
    font-size: 15px;
}
.blog-sec h2{
    font-size: 20x;
}

.blog-sec h3{
    font-size: 18px;
}


.news-category-box {
    background-color: #f5f9ff; /* Màu nền bạn muốn */
    border-top-left-radius: 0; 
    border-top-right-radius: 0; 
    border-bottom-left-radius: 5px; 
    border-bottom-right-radius: 5px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow nhẹ */
    padding: 20px; /* Thêm padding bên trong box */
    margin-bottom: 20px; /* Thêm khoảng cách giữa các box */
}

.news-detail{
border-bottom: 2px solid #0056b3
}

.border-detail{
border-bottom: 2px solid #0056b3
}

.author-skills h4{
	color: white;
}


.marquee-container {
    width: 100%;
    overflow: hidden; /* Ẩn phần nội dung vượt quá khung */
    background-color: #f0f8ff; /* Màu nền nhẹ */
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap; /* Ngăn nội dung xuống dòng */
    box-sizing: border-box;
    margin-bottom: 20px;
}

.marquee-content {
    display: inline-block; /* Đảm bảo nội dung nằm trên một dòng */
    padding-left: 100%; /* Bắt đầu từ ngoài màn hình */
    animation: marquee 30s linear infinite; /* Tên animation, thời gian, kiểu, lặp vô hạn */
}

/* Điều chỉnh khoảng cách giữa các đoạn văn bản trong marquee */
.marquee-content p {
    display: inline-block;
    margin: 0 50px; /* Khoảng cách giữa các thông báo */
    font-size: 0.95rem;
    color: red;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(0); } /* Bắt đầu từ vị trí ban đầu */
    100% { transform: translateX(-100%); } /* Di chuyển sang trái 100% chiều rộng nội dung */
}

/* Để đảm bảo hiệu ứng chạy mượt mà trên nhiều trình duyệt */
@-webkit-keyframes marquee {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(-100%); }
}


.vertical-marquee-container {
    height: 250px; /* **Chiều cao cố định của vùng hiển thị cuộn.** Điều chỉnh theo số lượng item bạn muốn thấy cùng lúc */
    overflow: hidden; /* Ẩn nội dung vượt quá khung */
    position: relative; /* Quan trọng: để .vertical-marquee-content có thể định vị tuyệt đối */
    border-radius: 8px;
    padding: 10px;
}

.vertical-marquee-content {
    position: absolute; /* Quan trọng: cho phép di chuyển bằng top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0; /* Đảm bảo không có margin/padding mặc định gây ảnh hưởng */
    animation: verticalMarquee 5s linear infinite; /* Thời gian animation, điều chỉnh để nhanh/chậm */
}

/* Pause animation on hover */
.vertical-marquee-container:hover .vertical-marquee-content {
    animation-play-state: paused;
}

.vertical-marquee-content li {
    padding: 8px 0; /* Khoảng cách giữa các mục */
    border-bottom: 1px dashed #e9ecef; /* Đường gạch ngang giữa các mục */
    font-size: 0.95rem;
    white-space: normal; /* Cho phép nội dung xuống dòng nếu dài */
}

.vertical-marquee-content li:last-of-type {
    border-bottom: none; /* Bỏ đường gạch ngang ở mục cuối cùng của mỗi bộ */
}

/* Keyframes cho animation cuộn dọc */
@keyframes verticalMarquee {
    0% { top: 0; }
    /* Tính toán điểm dừng:
       Lấy chiều cao của UL (nội dung đã nhân đôi)
       Chia đôi để được chiều cao của nội dung gốc
       Di chuyển lên bằng chiều cao đó
    */
    100% { top: -50%; } /* Di chuyển lên trên 50% chiều cao của chính nó (UL) */
}

/* Webkit vendor prefix for broader browser compatibility */
@-webkit-keyframes verticalMarquee {
    0% { top: 0; }
    100% { top: -50%; }
}

.stretched-link{
    font-weight: bold;
}


.sidebar-statistics h5 {
    color: #dc3545; /* Màu đỏ như trong hình */
    font-weight: bold;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.sidebar-statistics ul {
    padding-left: 0;
}

.sidebar-statistics li {
    font-size: 1rem;
    color: #333;
    padding: 5px 0;
    border-bottom: none;
}

.sidebar-statistics strong {
    float: right;
    font-weight: bold;
}

.promote-img{
    max-height: 200px; 
    width: 100%; 
    display: block; 
    margin: 0 auto; 
    object-fit: cover;
    margin-bottom: 20px;
}

@keyframes shake {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(-2px, 0px) rotate(-5deg); }
  40% { transform: translate(2px, 0px) rotate(5deg); }
  60% { transform: translate(-2px, 0px) rotate(-5deg); }
  80% { transform: translate(2px, 0px) rotate(5deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

#openContactDialog:hover {
  animation: shake 0.5s;
  animation-iteration-count: 1;
}

#result {
    min-height: 20px;
    transition: opacity 0.3s ease;
}

#result.text-success {
    color: #28a745;
    font-weight: 500;
}

#result.text-danger {
    color: #dc3545;
    font-weight: 500;
}