* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #1e293b;
}
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}
.site-header {
    background: #0f172a;
    color: #fff;
    padding: 16px 0;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}
.site-header nav a {
    color: #cbd5e1;
    margin-left: 18px;
    text-decoration: none;
}
.main-content { padding: 32px 0 48px; }
.hero {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 28px;
}
.hero.compact { padding: 24px 36px; }
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 22px;
}
.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.event-card { overflow: hidden; padding: 0; }
.event-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.event-body { padding: 20px; }
.event-meta {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #475569;
    background: #e2e8f0;
    padding: 6px 10px;
    border-radius: 999px;
}
.button {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    text-decoration: none;
    cursor: pointer;
}
.button.secondary {
    background: #0f172a;
}
.empty-state { text-align: center; }
.single-event h1 { margin-top: 10px; }
.description { line-height: 1.7; font-size: 16px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}
.gallery-item figcaption {
    margin-top: 8px;
    font-weight: 600;
}
.gallery-item figcaption span {
    display: block;
    color: #64748b;
    font-weight: 400;
    margin-top: 3px;
}
.top-space { margin-top: 20px; }
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 16px 0;
    text-align: center;
}
.auth-wrap {
    max-width: 460px;
    margin: 40px auto;
}
.auth-card label,
.form-card label {
    display: block;
    font-weight: 700;
    margin: 12px 0 6px;
}
.auth-card input,
.form-card input,
.form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: #0f172a;
    color: white;
    padding: 28px 20px;
}
.sidebar h2 { margin-top: 0; }
.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin: 14px 0;
}
.admin-content {
    padding: 28px;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.checkbox-inline {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}
.admin-gallery img { height: 160px; }
@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { padding-bottom: 10px; }
    .header-wrap, .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
