body {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    background-color: #fffbf5;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    line-height: 1.9;
}

/* แก้ไขพื้นหลังหัวเว็บให้เป็นสีครีมกลมกลืนกับ body */
.site-header {
    border-bottom: 1px solid #eef0f2;
    padding: 20px 0;
    text-align: center;
    background-color: #fffbf5; 
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a252f;
    text-decoration: none;
}

/* สไตล์สำหรับเมนูกลางของเว็บไซต์ */
.main-menu {
    margin-top: 15px;
}
.main-menu a {
    text-decoration: none;
    color: #7f8c8d;
    margin: 0 12px;
    font-size: 16px;
    font-weight: bold;
}
.main-menu a:hover {
    color: #1a252f;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-home {
    text-decoration: none;
    color: #7f8c8d;
    font-size: 16px;
}

.back-home:hover {
    color: #1a252f;
}

h1 {
    font-size: 34px;
    color: #1a252f;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ส่วนของหมวดหมู่และวันที่ */
.meta-info {
    font-size: 14px;
    color: #95a5a6;
    margin-bottom: 30px;
}
.category {
    background-color: #e2f0d9;
    color: #27ae60;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
}

.post-body {
    font-size: 18pt;
    color: #2c3e50;
}

.post-body p {
    margin-bottom: 25px;
}

/* ส่วนของแท็กท้ายบทความ */
.tags-container {
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.tag {
    background-color: #f0f0f0;
    color: #7f8c8d;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 8px;
}
.tag:hover {
    background-color: #e0e0e0;
}

footer {
    text-align: center;
    border-top: 1px dashed #e0e0e0;
    padding-top: 30px;
    margin-top: 60px;
    color: #95a5a6;
    font-size: 15px;
}
/* โซนกล่องประกาศหน้าแรก */
.announce-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.section-title {
    font-size: 22px;
    color: #1a252f;
    border-bottom: 2px solid #eef0f2;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* รายการบทความแต่ละอันในหน้าแรก */
.home-post-item {
    padding: 20px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.home-post-item h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
}
.home-post-item h3 a {
    text-decoration: none;
    color: #1a252f;
    transition: color 0.2s;
}
.home-post-item h3 a:hover {
    color: #27ae60;
}

/* ระบบปุ่มแบ่งหน้า Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}
.pagination button {
    background-color: #ffffff;
    border: 1px solid #dcdde1;
    color: #2c3e50;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.pagination button:hover {
    background-color: #f5f7fa;
    border-color: #7f8c8d;
}
.pagination button.active {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
    font-weight: bold;
}

/* กล่องแสดงแท็กและหมวดหมู่รวมในหน้าแรก */
.widget-section {
    background-color: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 25px;
    margin-top: 60px;
}
.widget h3 {
    margin-top: 0;
    font-size: 18px;
    color: #34495e;
    margin-bottom: 15px;
}
.categories-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* สไตล์จัดการรูปโปรไฟล์เป็ดวงกลม */
.header-profile {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* สั่งบีบรูปจัตุรัสให้กลายเป็นวงกลม */
    object-fit: cover;  /* ป้องกันไม่ให้รูปเบี้ยวหรือยืดระเบิด */
    border: 3px solid #ffffff; /* แถมเส้นขอบสีขาวหนาๆ ให้ดูมีมิติ */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* เติมเงานุ่มๆ ให้ดูแพง */
    transition: transform 0.2s;
}

/* เวลาเอาเมาส์ไปชี้ ให้รูปดุ๊กดิ๊กขยายขึ้นมานิดนึง */
.profile-img:hover {
    transform: scale(1.05);
}