*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#f4f7fb;
    color:#222;
}

.container{
    width:90%;
    max-width:950px;
    margin:50px auto;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.top h1{
    font-size:36px;
    color:#1f2937;
}

.top div{
    display:flex;
    gap:12px;
}

button{
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    padding:10px 18px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

button:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

#postList{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.card{
    background:#fff;
    border-radius:18px;
    padding:20px 24px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    transition:.2s;
}

.card:hover{
    transform:translateY(-3px);
}

.card h3{
    margin-bottom:15px;
}

.card h3 a{
    color:#1f2937;
    font-size:24px;
    font-weight:bold;
    text-decoration:none;
    transition:.2s;
}

.card h3 a:hover{
    color:#2563eb;
}

.card p{
    color:#555;
    margin-top:8px;
    line-height:1.7;
}

input,
textarea{
    width:100%;
    padding:14px;
    margin:15px 0;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
}

textarea{
    min-height:220px;
    resize:vertical;
}

.button-group{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:25px;
}

@media (max-width:768px){

.container{
    width:94%;
}

.top{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
}

.top h1{
    font-size:30px;
}

.top div{
    width:100%;
}

button{
    flex:1;
}

.card{
    padding:18px;
}

.card h3 a{
    font-size:20px;
}

}
