* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background-color: #f8f9fa;
    padding: 10px 0;
    height: auto; /* Tự động điều chỉnh chiều cao theo nội dung */
}

.navbar-brand img {
    max-width: 150px;
}

.navbar-nav .nav-link {
    color: #252525 !important;
    font-weight: bold; /* Chữ in đậm */
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #e1e1e1; /* Màu đỏ khi hover */
    color: #fff !important;/* Màu chữ chuyển thành trắng khi hover */
    border-radius: 5px; /* Bo góc nhẹ khi hover */
    padding: 5px 10px; /* Thêm padding để có hiệu ứng đẹp hơn khi hover */
}
.special-heading {
    color: black; /* Màu đen */
    font-weight: bold; /* In đậm */
    text-align: center; /* Căn giữa */
    margin-bottom: 3rem; /* Khoảng cách dưới */
}

.intro-text {
    margin-bottom: 40px;
    text-align: center;
}

.image-text-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Giới hạn kích thước tối đa của container */
    margin: 0 auto; /* Căn giữa container */
    overflow: hidden; /* Đảm bảo hình ảnh không tràn ra ngoài */
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Bo góc cho hình ảnh */
}

.text-overlay {
    position: absolute;
    top: 52%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    background-color: rgba(0, 0, 0, 0); /* Nền trong suốt */
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
}

.new-label {
    background-color: #dd000d;
    color: white;
    padding: 10px;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 50%; /* Tạo hiệu ứng khoanh tròn */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.new-label:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Tạo hiệu ứng sáng khi hover */
    transform: rotate(360deg); /* Tạo hiệu ứng xoay tròn */
}

.text-overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.text-overlay p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}



.news-section .container {
		background-color:white;
		padding:100px;
	}

.news-section .container p,li {
		text-align:justify;
		font-size: 1rem;
	}

.news-section .container li {
		text-align:justify;
		font-size: 1rem;
		margin-left:20px;
	}

.news-section .container h3 {
		font-size: 1rem;
		font-weight:bold;
	}
.news-section .date-post {
		text-align:center !important;
		font-size:0.8rem;
		padding-bottom:30px;
		
}


@media (max-width: 768px) {
	
    .news-section .container {
		background-color:white;
		padding:20px;
	}
	
	.special-heading {
    font-size:2rem;
    }
}


.carousel-item .col-md-4 {
    
    padding: 15px;
}

.carousel-item img {
    height: 200px; /* Tùy chỉnh chiều cao của hình ảnh */
    object-fit: cover;
}

.carousel-item h5 {
    margin-top: 10px;
}

.carousel-item a {
    margin-top: 10px;
}


.content-text {
	padding:50px;
	border-color: black;
	border-radius:15px;
	 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1)
}


/* Ẩn carousel khi màn hình nhỏ hơn 768px */
@media (max-width: 768px) {
    #related-articles {
        display: none; /* Ẩn toàn bộ carousel */
    }
}


/* Thêm shadow cho thẻ card */
.card {
    border-radius:15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow nhẹ cho card */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Hiệu ứng chuyển động khi hover */
}

.card:hover {
    transform: translateY(-5px); /* Di chuyển nhẹ card lên trên khi hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Tăng shadow khi hover */
}

/* Điều chỉnh kích thước hình ảnh trong thẻ card */
.card-img-top {
    max-width: 100%; /* Giảm kích thước hình ảnh xuống 60% */
    height: auto; /* Giữ nguyên tỷ lệ khung hình */
    display: block;
    margin: 0; /* Căn giữa hình ảnh */
    transition: transform 0.3s ease-in-out; /* Hiệu ứng chuyển động khi hover */
}

.card:hover .card-img-top {
    transform: scale(1.05); /* Phóng to hình ảnh khi hover */
}

/* Canh giữa và điều chỉnh kích thước nút "Xem Ngay" */
.card-body {
    text-align: center; /* Canh giữa toàn bộ nội dung trong card-body */
}

.card .btn {
    font-size: 1rem; /* Giảm kích thước chữ */
    padding: 8px 16px; /* Giảm padding */
    width: auto; /* Để nút có chiều rộng tự nhiên */
    display: block;
    margin: 10px auto 0 auto; /* Canh giữa nút */
}


#news .btn-danger {
	width: fit-content;
	color: #252525;
    background-color: transparent;
    border-color: #dd000d;
	
}

#news .btn-danger:hover {
    color: #fff;
    background-color: #dd000d;
    border-color: #dd000d;
}

#related-articles .btn-danger {
	width: fit-content;
	color: #252525;
    background-color: transparent;
    border-color: #dd000d;
	
}


#related-articles .btn-danger:hover {
    color: #fff;
    background-color: #dd000d;
    border-color: #dd000d;
}



.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #dd000d; /* Màu đỏ cho nền */
    border-radius: 50%; /* Bo tròn các góc của nút */
    width: 30px;
    height: 30px;
    background-size: 100%, 100%;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
}

/* Loại bỏ màu nền mờ */
.carousel-control-prev-icon:after,
.carousel-control-next-icon:after {
    content: '';
    background-color: transparent; /* Nền trong suốt */
}


