/* CSS template */

body {
    background: #f3f4f6;
    font-family: Arial, sans-serif;
}


/* KHUNG BAO */
.wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,0.12);
}

/* SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
}
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-overlay {
   /* position: absolute; */ 
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px;
}

/* BOX */
.box-title {
    background: #7facd3;
    color: #fff;
    padding: 6px 6px;
    font-weight: bold;
}

.box-title-left {
    background: #eaedef;
    color: #0071a9;
    padding: 6px 6px;	
    font-weight: bold;
}

.box-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 12px;
}

.box-content a{    
text-decoration:none;
}

.box-news {
    
    border-top: none;
    padding: 6px;
}
.box-news a{    
text-decoration:none;
}

/* NEWS ITEM + THUMBNAIL */
.news-item {
    display: flex;
    gap: 10px;
  /*  margin-bottom: 6px; */
    cursor: pointer;
    padding: 4px;
    
}

.news-item:hover {
    background: #eaf3ff;
}

.news-item.active {
    background: #d9e9ff;
    font-weight: bold;
}

.news-thumb {
    width: 70px;
    height: 55px;
    object-fit: cover;
   
}


.news-imgthumb {
    width: 127px;
    height: 100px;
    object-fit: cover;
   
}



.news-item-b {
    display: flex;
    gap: 10px;
   margin-bottom: 6px;
    cursor: pointer;
    padding: 6px;
    
}



.xem-them {
    float: right;
    color: blue;
    cursor: pointer;
}


.news-video {
	width: 100%;
    height: 100%;
    object-fit: cover;
	padding-bottom: 4px;

   
}

.gallery {
    display: flex;
    flex-wrap: wrap;   /* Tự động xuống dòng */
    gap: 10px;         /* Khoảng cách giữa ảnh */
}

.gallery img {
    width: 200px;      /* Chiều rộng mỗi ảnh */
    height: 150px;     /* Chiều cao ảnh */
    object-fit: cover; /* Giữ tỉ lệ */

}



.news-info strong {
    font-size: 14px;
    display: block;
}
.news-date {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    display: block;
}

/* CUỘN THÔNG BÁO */
.notice-box {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.notice-list {
    animation: scrollUp 12s linear infinite;
    padding-left: 18px;
}
.notice-box:hover .notice-list {
    animation-play-state: paused;
}
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* FOOTER */
.footer {
    background: #21436b;
    color: #fff;
    text-align: center;
    padding: 14px;
}

/* NAVBAR COLORS */
.navbar-custom{
    background:#21436b;
}
.navbar-custom .nav-link{
    color:#fff !important;
    font-weight:bold;
}
.navbar-custom .nav-link:hover{
    text-decoration:none;
	background:orange;	
}




/* GIẢM CHIỀU CAO THANH MENU */
.navbar-custom {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.navbar-custom .nav-link {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 20px !important; /* giúp chữ không bị lệch */
}




/* ======= BANNER ======= */

.banner {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;

    background-image: url("images/bg_banner.jpg");
    background-repeat: no-repeat;
    background-position: right center;
    background-color: rgb(255, 247, 232);
}

/* Lớp nổi lên trên ảnh */
.banner-overlay {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}




.logo {
    height: 80px;
	
}


/* nhóm chữ */
.brand-text {
    display: flex;
    flex-direction: column;   /* xếp 2 dòng theo cột */
}

/* dòng 1: tên thương hiệu */


.brand-name {
    box-sizing: border-box;
    color: rgb(255, 0, 0);
    display: block;
    cursor: auto;
    font-family: "Times New Roman", serif;
    font-size: 28px;
    text-transform: uppercase;
  
}



/* dòng 2: “CÔNG TY TNHH ABC” */
.brand-sub {
    box-sizing: border-box;
    color: rgb(255, 0, 0);
    display: block;
    cursor: auto;
    font-family: "Times New Roman", serif;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px rgb(0, 0, 0);
	
    margin-top: 4px;          /* tạo khoảng cách xuống dòng */	
    line-height: 1.1;
}



/* Thu nhỏ nút menu */
.navbar-toggler {
    padding: 3px 6px !important; 
    width: 36px !important;
    height: 34px !important;
    border-radius: 4px;
}

/* Thu nhỏ icon menu (3 gạch) */
.navbar-toggler-icon {
    width: 18px !important;
    height: 18px !important;
    background-size: 30px 30px !important;
}

/* Khi menu mở trên mobile – cho menu gọn lại */
@media (max-width: 991px) { 
    #menu .nav-link {
        padding: 6px 10px;
        font-size: 15px;
    }

    .navbar-nav {
        gap: 4px;
    }
}


/* Khối chứa nội dung bài viết */
.article-content {
    width: 100%;
    padding: 15px 20px;
    line-height: 1.6;
    font-size: 17px;
}

/* Mọi hình ảnh bên trong bài viết đều căn giữa */
.article-content img {
    display: block;
    margin: 15px auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Nếu muốn giới hạn chiều rộng hình ảnh cho đẹp */
.article-content .img-medium {
    max-width: 70%; /* tùy chỉnh */
}

/* Căn lề văn bản cho dễ đọc */
.article-content p {
    margin-bottom: 14px;
}

/* Tiêu đề bài viết */
.article-content h1,
.article-content h2,
.article-content h3 {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 14px;
    font-weight: 700;
	text-align: justify;
    text-justify: inter-word;
}


.article-content p {
    text-align: justify;
    text-justify: inter-word;
}





.box-tt {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
	padding-left: 50px;
    color: #21436b;
	

	height: 72px;
    line-height: 50px; /* Canh giữa chữ */
	width: auto 100%;

    /* --- NỀN KÉP --- */
    background-image: url("images/left-banner.png"), url("images/m-banner.png");
    background-repeat: no-repeat, repeat-x;       /* Trái lặp – Phải không lặp */  
	background-position: left bottom, right bottom;   /* ←căn 2 ảnh bằng dưới */
 
   
}



.box-menu {
    font-size: 14px;
    font-weight: bold;
   
	padding-top: 4px;
	padding-left: 50px;
    color: #21436b;
	
	height: 28px;
    line-height: 20px; /* Canh giữa chữ */
	width: auto 100%;

    /* --- NỀN KÉP --- */
    background-image: url("images/arr_list.jpg"), url("images/list_total.jpg");
    background-repeat: no-repeat, repeat-x;       /* Trái lặp – Phải không lặp */  
	background-position: left bottom, right bottom;   /* ←căn 2 ảnh bằng dưới */
   
}

.box-menu a {
    text-decoration: none;  /* Bỏ gạch chân */
    color: #000;            /* Màu chữ bình thường (tùy bạn) */
}

.box-menu a:hover {
    color: #8B0000;         /* Đỏ đô khi hover */
}


.form-box.bright {
    width: 360px;
    padding: 25px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    font-family: "Segoe UI", sans-serif;
    color: #222;
}

.form-box.bright h2 {
    text-align: center;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.btntk {
    width: 100%;
    padding: 12px;
    background: #233a81;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btntk:hover {
    background: #004c99;
}

.form-box.blue {
    width: 380px;
    padding: 30px;
    margin: 60px auto;
    background: linear-gradient(135deg, #193765, #00aaff);
    border-radius: 15px;
    color: #fff;
    font-family: "Segoe UI", sans-serif;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.form-box.blue input {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
    outline: none;
}


/* Link chuyển trang */
.switch {
    margin-top: 15px;
    font-size: 14px;
}

.switch a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}
