/* ===== Ubuntu African Art Refined Styling ===== */
:root {
    --ub-dark: #3B2E2A;
    --ub-gold: #CBA135;
    --ub-sand: #F7F4F0;
    --line: #E5E0DA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--ub-sand);
    color: var(--ub-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain
}

.brand {
    font-weight: 700;
    color: var(--ub-dark)
}

.spacer {
    flex: 1
}

.navlinks {
    display: flex;
    gap: 14px
}

.navlink {
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--ub-dark);
    transition: background .2s;
}

.navlink:hover {
    background: var(--ub-sand)
}

.btn,
.btn.ghost {
    border: 0;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: all .15s ease;
}

.btn {
    background: var(--ub-gold);
    color: #fff
}

.btn:hover {
    filter: brightness(.95)
}

.btn.ghost {
    background: #fff;
    color: var(--ub-dark);
    border: 1px solid var(--line)
}

.btn.ghost:hover {
    background: var(--ub-sand)
}

/* Layout */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

/* Headings */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px
}

h1 {
    font-size: 28px
}

h2 {
    font-size: 22px
}

h3 {
    font-size: 18px;
    color: #444
}

/* Inputs */
input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 15px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--ub-gold);
    box-shadow: 0 0 0 2px rgba(203, 161, 53, .2);
}

label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block
}

/* Search bar */
.searchbar {
    display: flex;
    gap: 10px
}

.searchbar input {
    flex: 1
}

/* Grid gallery */
.grid {
    display: grid;
    gap: 18px;
}

@media(min-width:640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:1000px) {
    .grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(min-width:1400px) {
    .grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
    transition: transform .15s, box-shadow .15s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08)
}

.media {
    aspect-ratio: 4/3;
    overflow: hidden
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.body {
    padding: 14px
}

.title {
    font-weight: 600;
    margin-bottom: 4px
}

.meta {
    font-size: 14px;
    color: #666
}

/* Tables (admin) */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--line)
}

th {
    font-weight: 600;
    color: #444;
    background: #fafafa
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 40px
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 14px;
    color: #666
}