body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Georgia", serif;
    color: #222;
    background: radial-gradient(circle at top, #ffe8cc 0%, #ffdcc0 35%, #ffd2a1 100%);
}

a { 
    text-decoration: none; 
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    width: 100%; 
    max-width: 800px; 
    display: flex; 
    flex-direction: column; 
    z-index: 2; 
    margin: 50px auto;
    position: relative;
    padding: 1rem;
    text-align: center;
}

.wrapper .header {
    display: flex;
    align-items: center;
    font-size: 36px;
    background: linear-gradient(135deg, #ffcf9f, #ffd9b8);
    margin-top: 0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wrapper .header .welcome { flex-grow: 1; max-width: 80%; object-fit: contain; }
.wrapper .header .ornament { flex-grow: 1; margin-left: 1rem; max-width: 20%; max-height: 100px; object-fit: contain; }

.post-wrapper {
    background: #ffd5a8;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 2rem;
    border-radius: 0px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.post-wrapper::-webkit-scrollbar { width: 8px; }
.post-wrapper::-webkit-scrollbar-thumb { background: #ffc68a; border-radius: 4px; }
.post-wrapper::-webkit-scrollbar-track { background: transparent; }

.post {
    display: block;
    background: #fff1de;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #222;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.post:hover {
    background: #ffdcb8;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

.blog-title { font-weight: bold; color: #222; margin: 0 0 0.3rem 0; }
.blog-date { font-size: 12px; color: #555; margin: 0; }

.back {
    display: inline-block;
    margin: 0.1rem 0;
    font-weight: bold;
    text-decoration: underline;
    font-size: 24px;
    color: #222;
}

.back a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff1de;
    border-radius: 0px;
    font-weight: bold;
    font-size: 20px;
    color: #222;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back a:hover {
    background: #ffdcb8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

.side-img {
    position: fixed;
    width: 120px;
    opacity: 0.8;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}
.side-img:hover { transform: rotate(5deg) scale(1.1); opacity: 1; }
.left-img1 { top: 10%; left: 2%; transform: rotate(-10deg); }
.left-img2 { bottom: 15%; left: 3%; transform: rotate(5deg); }
.right-img1 { top: 20%; right: 2%; transform: rotate(8deg); }
.right-img2 { bottom: 10%; right: 3%; transform: rotate(-6deg); }

.container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff1de;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: left;
}

.container .header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #ffc68a;
    padding-bottom: 1rem;
}

.container h1 { margin: 0; font-size: 2rem; }
.date { color: #666; font-size: 14px; margin-top: 0.5rem; }

.blog-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.blog-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.content {
    margin-top: 2rem;
    line-height: 1.7;
    font-size: 18px;
}

.content img {
    display: block;
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    margin: 1.5rem auto;
}

.footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ffc68a;
    display: flex;
    justify-content: space-between;
}

.btn {
    background: #ffdcb8;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: inline-block;
}

.btn:hover {
    background: #ffc68a;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .wrapper .header {
        flex-direction: column;
        text-align: center;
        font-size: 24px;
    }
    .wrapper .header .ornament {
        margin-left: 0;
        margin-top: 0.5rem;
        max-width: 60%;
    }
    .post-wrapper { max-height: 60vh; }
    .back a { font-size: 16px; padding: 0.4rem 0.8rem; }
    .blog-title { font-size: 16px; }
    .side-img { display: none; }

    .container {
        padding: 1rem;
        margin: 1rem;
    }
    .content { font-size: 16px; }
    .footer { flex-direction: column; gap: 10px; text-align: center; }
}
