/* Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f9fafb;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Container */
.container {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: #007ACC;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    margin-bottom: 12px;
}

.menu li a {
    text-decoration: none;
    color: #374151;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.menu li a:hover,
.menu li a.active {
    background: #e0f2ff;
    color: #007acc;
    font-weight: 600;
}

/* Footer */
.footer {
    margin-top: auto;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    margin-left: 260px; /* Để không đè lên sidebar */
    padding: 30px 50px;
    background-color: #f9fafb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.content-inner {
    margin: 20px 0; /* Thêm khoảng cách để không bị chèn vào Pagination */
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

/* Typography */
h1, h2 {
    color: #111827;
    margin-bottom: 30px;
    text-align: center; /* Căn giữa h1 */
}

h1 {
    font-size: 28px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
    color: #007ACC;
    font-weight: 600;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #374151;
    font-weight: 400;
    text-align: justify;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* Icon Styling (BẢN WEB) */
i {
    color: #000000; /* Giữ nguyên màu icon trên web */
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}

ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.sidebar-toggle {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 20px;
    gap: 20px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.pagination a:hover {
    background-color: #f0f9ff;
    border-color: #007acc;
    color: #007acc;
}

.pagination small {
    color: #6b7280;
    font-size: 12px;
}

.pagination span {
    font-weight: bold;
    font-size: 16px;
    display: block;
}

.prev i, .next i {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive mobile view */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%; /* Sidebar chiếm toàn bộ chiều rộng trên mobile */
        left: -100%; /* Ẩn sidebar khi không mở */
        transition: left 0.3s ease; /* Di chuyển sidebar */
    }

    .content {
        margin-left: 0;
        padding: 30px 20px;  /* Điều chỉnh padding trái/phải để kéo dài nội dung sang trái */
    }

    .content-inner {
        padding-left: -50px; /* Điều chỉnh nội dung để kéo dài về lề trái */
    }

    .sidebar.open ~ .content {
        margin-left: 260px; /* Khi sidebar mở, đẩy content sang bên */
    }

    /* Nút Toggle chỉ hiển thị trên mobile */
    .sidebar-toggle {
        display: block;
        position: absolute;
        top: 565px;
        left: 10px;
        background-color: #ffffff;
        color: rgb(202, 55, 55);
        font-size: 18px;
        cursor: pointer;
        z-index: 10000;
    }

    .sidebar.open {
        left: 0; /* Hiển thị sidebar khi class 'open' được thêm vào */
    }

    /* Ẩn nút toggle trên web */
    @media (min-width: 769px) {
        .sidebar-toggle {
            display: none;
        }
    }
}
