:root {
    --dark-purple: #0A192F;
    --light-purple: #1A344E;
    --text-color: #f0f0f0;
    --box-bg: #112240;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-purple);
    color: var(--text-color);
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--light-purple);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
}

header a {
    color: var(--text-color);
    text-decoration: none;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    background-color: #f0f0f0;
}

.search-box button {
    padding: 8px 12px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: var(--box-bg);
    color: white;
    cursor: pointer;
}

.gallery {
	display: flex; /* Sử dụng Flexbox thay vì Grid */
    flex-wrap: wrap; /* Cho phép các mục xuống dòng */
    justify-content: center; /* Căn giữa các mục */
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    background-color: var(--box-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
	flex: 1 1 200px;
	max-width: 300px;
}

@media (max-width: 600px) {
        .gallery-item {
            flex: 1 1 100%; /* Trên màn hình nhỏ, mỗi item chiếm toàn bộ chiều rộng */
            max-width: none;
        }
    }

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item-content {
    padding: 15px;
}

.gallery-item h3 {
    margin: 0;
    font-size: 1.2rem;
}

.gallery-item a {
    color: var(--text-color);
    text-decoration: none;
}


.post-detail {
    background-color: var(--box-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    max-width: 600px;
}

.post-meta {
    border-bottom: 2px solid var(--light-purple);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.post-meta p {
    margin: 5px 0;
}

.post-message {
    line-height: 1.4;
}

.post-message p{
	font-size:1.2em;
}

.post-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-actions a {
    background-color: #f0f0f0; 
    color: var(--dark-purple); 
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}
.post-actions a:hover {
    background-color: #dcdcdc; 
}

.people-detail {
    text-align: center;
    padding: 20px 0;
}

.people-detail img {
    width: 300px;
    object-fit: cover;
    margin-bottom: 10px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.post-item {
    background-color: var(--box-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 50px; 
}
.post-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    width: 25px;
    height: 15px;
    border: 2px solid var(--text-color);
    background-color: transparent;
}
.post-item::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 10px solid var(--text-color);
}

.post-item p{
    font-size: 1.2em;
}

.post-header {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.post-header p {
    margin: 5px 0;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background-color: var(--light-purple);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a.active {
    background-color: var(--box-bg);
}

.similar-people {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--box-bg);
}

.similar-people h2 {
    text-align: center;
}

footer{
    text-align: center;
}