body{
	background-color: #FFF;
}

/* HEADER STYLE */
div#article_header{
	display: block;
	max-width: 1500px;
	padding: 40px;
	margin: auto;
	margin-top: 50px;
}
div#article_header p#topline a::before{
	content: "___ ";
}
div#article_header p#topline a{
	color: #2563eb;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
}
div#article_header p{
	line-height: 26px;
}
div#article_header h1{
	margin-top: 20px;
	margin-bottom: 20px;
}
p#intro{
	color: grey;
}

/* TOOLBAR */
div#toolbar{
	display: block;
	max-width: 1500px;
	padding: 0 40px;
	margin: auto;
}
div#toolbar select{
	width: 150px;
	height: 30px;
	font-family: "Merriweather", Tahoma, serif;
	font-size: 15px;
}
div#toolbar span{
	float: right;
}

/* LIST BAI VIET */
div#article_area{
	display: block;
	max-width: 1500px;
	padding: 20px 40px 50px 40px;
	margin: auto;
}

ul#list_article {
    width: 100%;
    padding: 0px;
    margin: 0px;
    list-style: none;
    
    display: grid;
    /* Tự động lặp lại tối đa có thể, mỗi item tối thiểu 200px, 
       khi màn hình nhỏ sẽ tự động căn đều khoảng trống */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 0px; /* Khoảng cách giữa các item (cả ngang và dọc) */
}

ul#list_article li {
    transition: all 0.3s ease;
}
ul#list_article li:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Tạo bóng đổ nhẹ phía dưới */
	transform: translateY(-5px); /* Hiệu ứng nhấc nhẹ lên trên một chút (tùy chọn) */
}

/* Wrapper ảnh & nhãn badge */
ul#list_article li .img-wrapper {
	position: relative;
	width: 100%;
}
ul#list_article li .img-wrapper img {
	width: 100%;
	/*height: 160px;*/
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
/* --- STYLE BÀI VIẾT PIN TOP (.pinned) --- */
/*ul#list_article li.pinned {
	border: 2px solid #2563eb;
	background-color: #f8fafc;
}*/

/* --- BADGE NHÃN TRÊN ẢNH --- */
/* Nhãn Pinned (Nằm góc trên bên trái) */
.pin-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background-color: rgba(37, 99, 235, 0.8);
	color: #ffffff;
	font-size: 11px;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	z-index: 1;
}

/* Nhãn Lock/Restricted (Nằm góc trên bên phải) */
.lock-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background-color: rgba(31, 41, 55, 0.85); /* Màu tối xám đậm */
	color: #ffffff;
	font-size: 11px;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 3px;
}

/* --- STYLE BÀI VIẾT BỊ GIỚI HẠN (.restricted) --- */
/*ul#list_article li.restricted {
	border-style: dashed;
}*/
ul#list_article li.restricted .img-wrapper img {
	filter: grayscale(20%); /* Giảm độ tươi của ảnh nhẹ để tạo cảm giác riêng tư */
}





ul#list_article li a{
	display: flex;
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	padding: 10px;
	flex-direction: column;
	color: black;

	text-decoration: none;
}
ul#list_article li a:hover{
	background-color: #f2f2f2;
}

ul#list_article li span.title{
	display: block;
	padding-top: 10px;
	padding-bottom: 10px;

}
ul#list_article li span.descp{
	display: inline-flex;
	font-size: 12px;
	color: grey;
	line-height: 24px;
}
ul#list_article li span.descp img{
	border-radius: 50%;
	margin-right: 8px;
}
ul#list_article li span.descp span{
	margin-right: 8px;
	font-family: "Tahoma";
}

ul#list_article li span.catalog label{
	display: inline-block;
	font-size: 10px;
	color: grey;
	border-radius: 4px;
	border: 1px solid gray;
	padding: 2px 5px;
	margin-top: 10px;
}
ul#list_article li span.catalog label::before{
	content: "● ";
}


/* PAGGING BAR */
div#pagging-bar {
	display: none;
	width: 100%;
	text-align: center;
	margin: 40px 0;
}
div#pagging-bar span{
	display: inline-block;
	width: 36px;
	line-height: 36px;
	border: 1px solid #e3e7eb;
	border-radius: 5px;
	cursor: pointer;
	color: #68717d;
	font-family: Tahoma;
}
div#pagging-bar span:hover{
	background-color: #f1f3f5;
}
div#pagging-bar span#active{
	background-color: #2563eb;
	color: #FFF;
}

div#pagging-bar select{
	display: inline-block;
	width: 38px;
	height: 38px;
	vertical-align: top;
	border: 1px solid #e3e7eb;
	border-radius: 5px;
	font-size: 15px;
	color: #68717d;
}

@media(max-width: 600px){
	div#article_header {
	    padding: 40px 20px;
	}

	div#toolbar {
		padding: 0 20px;
	}
	div#article_area{
		padding: 20px 20px 50px 20px;
	}
	ul#list_article {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}