body {
    background: #faf8f6;
    color: #111111;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root {
    color-scheme: light;
    --brand: #b30000;
    --brand-hover: #8a0000;
    --surface: #ffffff;
    --surface-muted: #f5f2f0;
    --text: #111111;
    --muted: #5f5f5f;
    --border: #e6e1dd;
}
.navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.navbar-brand,
.badge-primary,
.alert-primary {
    color: var(--brand) !important;
}
.navbar-brand {
    font-weight: 800;
}
.navbar .nav-link {
    color: #111111 !important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--brand) !important;
}
.navbar .btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff !important;
}
.navbar .btn-primary:hover,
.navbar .btn-primary:focus,
.navbar .btn-primary:active {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff !important;
}
.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff;
}
.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: rgba(179, 0, 0, 0.08);
    border-color: var(--brand);
}
.btn-light,
.btn-outline-secondary,
.btn-secondary {
    background-color: #ffffff;
    border-color: #d8d2cc;
    color: #111111;
}
.btn-outline-secondary {
    background-color: transparent;
    color: #111111;
    border-color: #b7b0a8;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: rgba(17, 17, 17, 0.04);
    color: #111111;
    border-color: #a49b93;
}
.btn-light:hover,
.btn-light:focus {
    background-color: #f7f3f1;
}
.hero {
    background: linear-gradient(120deg, #2f0d0d, #b30000);
    color: #ffffff;
    border-radius: 1.25rem;
}
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p {
    color: #ffffff;
}
.hero .form-label {
    color: rgba(255, 255, 255, 0.92);
}
.hero .form-control,
.hero .form-select {
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    border-color: rgba(255, 255, 255, 0.6);
}
.hero .form-control:focus,
.hero .form-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.35);
}
.category-card,
.post-card,
.listing-card,
.card,
.auth-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition: transform .2s, box-shadow .2s;
}
.category-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.category-card {
    min-height: 280px;
}
.post-card img,
.post-placeholder {
    height: 190px;
    width: 100%;
    object-fit: cover;
}
.post-placeholder {
    background: #f5f0ef;
    display: grid;
    place-items: center;
    font-size: 3rem;
}
.auth-card {
    max-width: 520px;
    margin: 2.5rem auto;
}
.price {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.15rem;
}
.meta {
    font-size: .86rem;
    color: var(--muted);
}
.listing-card {
    min-height: 220px;
    display: flex;
}
.listing-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--brand);
}
.listing-card {
    border: 1px solid var(--border);
}
.listing-image {
    width: 260px;
    min-width: 260px;
    height: 100%;
    min-height: 190px;
    background: #f5f0ef;
    overflow: hidden;
    display: block;
}
.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.listing-content {
    min-width: 0;
    flex: 1;
}
.clamp-2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.form-control,
.form-select,
textarea {
    border-color: #d8d2cc;
    background: #ffffff;
    color: #111111;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.15);
}
.form-label,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
label {
    color: #111111;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}
.card a,
.card .text-decoration-none,
footer {
    color: #111111;
}
.card a:hover,
.card .text-decoration-none:hover {
    color: var(--brand);
}
footer {
    background: #ffffff;
}
.badge {
    background-color: rgba(179, 0, 0, 0.1);
    color: var(--brand);
}
.text-muted,
small,
.form-text,
.help-block {
    color: var(--muted) !important;
}
.breadcrumb .breadcrumb-item a {
    color: #111111;
}
.breadcrumb .breadcrumb-item.active {
    color: var(--muted);
}
.alert-danger,
.alert-warning,
.alert-info,
.alert-success {
    border-radius: 1rem;
}
.alert-danger {
    background-color: #feecea;
    color: #7a1212;
    border-color: #f2c7c2;
}
.post-image-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}
.post-image-card img {
    display: block;
    width: 100%;
    height: auto;
}
.post-image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
    color: #ffffff;
    backdrop-filter: blur(6px);
}
.post-image-overlay h1,
.post-image-overlay h2,
.post-image-overlay h3,
.post-image-overlay p {
    color: #ffffff;
}
.post-image-overlay .overlay-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.7;
    max-height: 7rem;
    overflow: hidden;
}
.related-posts .listing-card {
    border-color: rgba(179, 0, 0, 0.16);
    background: #fff5f4;
}
.related-posts .listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 16%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 18%);
    pointer-events: none;
}
@media (max-width: 575px) {
    .listing-card {
        display: block;
    }
    .listing-image {
        display: block;
        width: 100%;
        height: 190px;
    }
    .listing-image img {
        height: 190px;
    }
}

