* {
    box-sizing: border-box;
}

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

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

header {
    background: #0d47a1;
    color: white;
    padding: 18px 0;
}

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

header h1 {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 70px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.btn,
button {
    display: inline-block;
    background: #1976d2;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover,
button:hover {
    background: #0d47a1;
}

.secondary {
    background: #777;
}

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

.card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #eef3f8;
    border-radius: 8px;
    padding: 12px;
}

.card h3 {
    color: #0d47a1;
}

.page {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 10px;
}

.contact-box {
    background: #eef3f8;
    padding: 20px;
    border-radius: 8px;
}

.form-box {
    max-width: 650px;
    background: white;
    padding: 28px;
    margin-top: 35px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

form label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

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

textarea {
    min-height: 120px;
}

.error {
    background: #ffcdd2;
    color: #b71c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.hint {
    color: #555;
    font-size: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    background: #1976d2;
    color: white;
}

.thumb {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

.small-btn {
    padding: 6px 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    margin-right: 5px;
}

.edit {
    background: #388e3c;
}

.delete {
    background: #d32f2f;
}

footer {
    background: #0d47a1;
    color: white;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
}

@media (max-width: 750px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        display: inline-block;
        margin: 5px;
    }
}
