* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

nav {
    background-color: #14243c;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #93c5fd;
}

nav span {
    color: white;
    margin-left: auto;
}

nav form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.hero {
    background-color: #203f69;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 40px;
    margin: 0 0 15px;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
}

p {
    line-height: 1.6;
}

form {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 2px 8px #00000015;
}

label {
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
}

button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background-color: #1d4ed8;
}

a {
    color: #2563eb;
}

.search-form {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

.listings {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px #00000015;
    overflow-wrap: anywhere;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.card h3 {
    margin-top: 15px;
    color: #14243c;
}

.price {
    color: #15803d;
    font-size: 24px;
    font-weight: bold;
}

.card form {
    padding: 0;
    margin: 15px 0 0;
    box-shadow: none;
}

.card form button {
    background-color: #dc2626;
}

.card form button:hover {
    background-color: #b91c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    padding: 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background-color: #14243c;
    color: white;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

footer {
    background-color: #14243c;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 600px) {

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav span {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

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

    th, td {
        padding: 8px;
    }
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.pagination a {
    background-color: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #1d4ed8;
}
