/* Global styles */
:root {
    --primary: #0b3d91;
    --accent: #ff6f61;
    --bg: #f8f9fb;
    --text: #222;
    --max-width: 1100px;
    --radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e6e9ee;
}

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

.site-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary);
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text);
}

nav a:hover,
nav a:focus {
    outline: 2px solid var(--accent);
    border-radius: 5px;
}

/* Hero */
.hero {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Cards & grids */
.card {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Forms */
label {
    font-weight: bold;
    display: block;
    margin: 0.5rem 0 0.2rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 5px;
    border: 1px solid #bbb;
}

input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    padding: 0.7rem;
}

input[type="submit"]:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #e6e9ee;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
