body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #222;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

main {
    padding: 2rem;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

button {
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

.actions form {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    max-width: none;
}

.actions a,
.actions button {
    text-decoration: none;
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #808080;
    background: transparent;
    font: inherit;
    transition: background 0.2s;
}

.actions a:hover,
.actions button:hover {
    background: #808080;
    color: white;
}

.actions button {
    cursor: pointer;
}

footer {
    background: #222;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer a {
    color: white;
}

footer p {
    margin: 0.5rem 0;
}
