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

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

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

header{
    background:#740001;
    padding:20px 0;
    margin-bottom:30px;
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

header h1{
    color:white;
}

.btn{
    background:#2563eb;
    color:white;
    text-decoration:none;
    padding:10px 15px;
    border-radius:10px;
}

.red{
    background:#dc2626;
}

.card{
    background:white;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:25px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.content{
    padding:20px;
}

.content h2,
.content h3{
    margin-bottom:10px;
}

.content p{
    margin-top:15px;
    line-height:1.6;
}

.empty{
    background:white;
    padding:40px;
    border-radius:15px;
    text-align:center;
}

.center{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.login-box{
    background:white;
    padding:35px;
    border-radius:16px;
    width:100%;
    max-width:400px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.login-box h2{
    margin-bottom:20px;
}

input,
textarea{
    width:100%;
    padding:14px;
    margin-top:15px;
    border:1px solid #d1d5db;
    border-radius:10px;
}

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

button{
    width:100%;
    margin-top:15px;
    padding:14px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:10px;
    cursor:pointer;
}

.error{
    background:#fee2e2;
    color:#991b1b;
    padding:10px;
    border-radius:10px;
}


.actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.edit-btn{
    background:#2563eb;
    color:white;
    text-decoration:none;
    padding:10px 14px;
    border-radius:8px;
}

.delete-btn{
    background:#dc2626;
    color:white;
    text-decoration:none;
    padding:10px 14px;
    border-radius:8px;
}

.admin-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}


@media(max-width:768px){

    .admin-grid{
        grid-template-columns:1fr;
    }

    header .container{
        flex-direction:column;
        gap:15px;
    }

}


.post-image{
    width:100%;
    height:300px;
    object-fit:cover;
}