/* THIẾT LẬP CHUNG CHO TOÀN TRANG */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f9ff; /* nền xanh nhẹ */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 1. PHẦN CHÍNH (ID)  */

/* Header */
#header {
    background-color: #004d99; /* xanh Đoàn */
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    border-bottom: 4px solid #FFD700; /* viền vàng huy hiệu */
}

#header h1 {
    margin: 0;
}

/* Footer */
#footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    flex: 1;
}

#footer0 {flex: 1;}

/* 2. NỘI DUNG (CLASS) */

/* Bài viết */
.bai-viet {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #0072BC; /* nhấn mạnh xanh Đoàn */
    background-color: #fff;
}

/* Căn lề giữa cho nội dung */
.can-le {text-align: center;}

/* Tiêu đề bài */
.tieu-de-bai {
    color: #D71920; /* đỏ cách mạng */
    font-size: 22px;
    margin-bottom: 10px;
}

/* Tác giả */
.tac-gia {
    font-style: italic;
    text-align: right;
    color: #666;
    margin-top: 10px;
}

/* GÓC ẢNH */
.goc-anh {
    text-align: center;
    margin-bottom: 30px;
    border-top: 2px dashed #0072BC;
    padding-top: 20px;
}

.anh-minh-hoa {
    margin: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 30%;
}

.anh-dau-trang {
    display: block; 
    margin: 0 auto; 
    width: 20%;
}


/* GÓC BÌNH LUẬN */
.goc-binh-luan {
    background-color: #eaf4ff;
    padding: 20px;
    border: 1px solid #cfe2ff;
    border-radius: 6px;
}

/* Ô nhập liệu */
input[type=text],
textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Nút gửi */
.nut-gui {
    background-color: #0072BC;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nut-gui:hover {
    background-color: #005A96; /* xanh đậm khi rê chuột */
}

/* 4. BỐ CỤC TRANG */
.container {
    display: flex;
    margin: 20px auto;
    gap: 30 px; /* Khoảng cách giữa phần nội dung và thanh bên (sidebar) */
    padding: 0 20px;
}

#noi-dung-chinh {
    flex: 1; /* tự động giãn ra chiếm hết phần không gian còn lại */
}

/* Thanh bên */
#sidebar {
    width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    /* Giữ sidebar đứng im khi cuộn */
    position: sticky;
    top: 10px; 
    height: fit-content;
}

#sidebar h3 {
    color: #00529c;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
    margin-top: 0;
}

.link-menu {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    font-weight: bold;
    border-bottom: 1px dashed #ccc;
    transition: all 0.3s;
}

.link-menu:hover {
    color: #d32f2f;
    padding-left: 10px; /* Hiệu ứng lùi chữ vào trong một chút khi trỏ chuột */
    background-color: #fff5f5;
}