/* ============================================================
   site-overrides.css — replaces every missing template image
   with CSS equivalents, keeping the original dark theme intact.
   ============================================================ */

/* Body & page backgrounds (replaces body-bg.jpg / bg-2.jpg / bg.jpg) */
body {
    background: #151515 !important;
}
.main-bg {
    background: linear-gradient(180deg, #1c1c1c 0%, #151515 100%) !important;
    min-height: 100vh;
}
.bg {
    background: radial-gradient(ellipse 140% 60% at 50% 0%, #2a2a2a 0%, #151515 60%) !important;
    min-height: 100vh;
}

/* Header logo area (replaces h1-bg.jpg + logo.png) */
h1 {
    background: none !important;
    padding: 20px 26px !important;
    float: left;
}
h1 a {
    background: none !important;
    text-indent: 0 !important;
    display: flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #fff !important;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-decoration: none;
}
h1 a::before {
    content: none;
}

/* Navigation bar (replaces menu-bg.jpg) */
header nav {
    width: 100% !important;
    height: auto !important;
    min-height: 52px;
    overflow: visible !important;
    background: linear-gradient(180deg, #2d2d2d 0%, #1e1e1e 100%) !important;
    border-top: 2px solid #b22300;
    border-bottom: 1px solid #111;
}

/* Menu item separator (replaces menu-spacer.gif) */
.menu li {
    background: none !important;
    border-left: 1px solid #333;
}
.menu > li:first-child {
    border-left: none;
    background: none !important;
}

/* Home icon in menu (replaces menu-home.png) */
.menu > li:first-child > a {
    text-indent: 0 !important;
    background: none !important;
    min-width: auto !important;
    padding: 14px 20px !important;
    font-size: 18px !important;
}
.menu > li:first-child > a::before {
    content: "⌂";
    font-size: 20px;
}

/* Slider arrows (replaces slider-prev.png / slider-next.png) */
.prev, .next {
    background: none !important;
    text-indent: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 40px;
    height: auto !important;
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
    padding: 20px 10px;
    cursor: pointer;
}
.prev::after { content: "‹"; }
.next::after { content: "›"; }

/* Horizontal rule / divider (replaces pic-1.gif) */
.border-bot {
    background: none !important;
    border-bottom: 1px solid #2a2a2a !important;
    padding-bottom: 28px !important;
}
.border-bot2 {
    background: none !important;
    border-bottom: 1px solid #2a2a2a !important;
}

/* Container panels (replaces container-top.png / container-bot.png / container-tail.png) */
.container-bot  { background: none !important; }
.container-top  { background: none !important; }
.container {
    background: rgba(0,0,0,0.2) !important;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

/* Button (replaces button-tail.gif) */
.button {
    background: #b22300 !important;
    color: #fff !important;
    border: none;
    padding: 8px 20px !important;
    border-radius: 3px !important;
    transition: background .2s;
    font-size: 13px !important;
}
.button:hover {
    background: #d42b00 !important;
    color: #fff !important;
}
a.button { color: #fff !important; }

/* List bullets (replaces marker-1.gif) */
.list-1 li, .list-2 li {
    background: none !important;
    padding-left: 18px !important;
    position: relative;
}
.list-1 li::before, .list-2 li::before {
    content: "›";
    position: absolute;
    left: 2px;
    color: #b22300;
    font-weight: bold;
}

/* Link arrows (replaces marker-2.gif) */
.link-1 {
    background: none !important;
    padding-left: 0 !important;
}
.link-1::before {
    content: "› ";
    color: #b22300;
}

/* Spacer/column divider (replaces pic-1.gif repeat-y) */
.spacer-1 { background: none !important; border-left: 1px solid #2a2a2a; }

/* Video marker */
.lightbox span { background: none !important; }
.lightbox span::after {
    content: "▶";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 32px;
    color: rgba(255,255,255,0.85);
}

/* ── Admin bar (staff only, above the template header) ── */
.admin-bar {
    width: 100%;
    background: #1a1a2e;
    border-bottom: 2px solid #b22300;
    padding: 6px 0;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.admin-bar .ab-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0 10px;
}
.admin-bar a {
    color: #ccc !important;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s;
}
.admin-bar a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.admin-bar .ab-brand {
    color: #b22300 !important;
    font-weight: 700;
    margin-right: 8px;
    font-size: 13px;
}
.admin-bar .ab-sep { color: #444; margin: 0 2px; }
.admin-bar .ab-logout {
    margin-left: auto;
    color: #ffaaaa !important;
}

/* ── Language strip inside header ── */
.lang-strip {
    clear: both;
    background: rgba(0,0,0,0.4);
    padding: 8px 10px;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #999;
}
.lang-strip span { margin-right: 12px; }
.lang-strip .button {
    display: inline-block !important;
    margin: 2px 4px !important;
    padding: 5px 16px !important;
    font-size: 12px !important;
}
.lang-strip .button.active-lang {
    background: #d42b00 !important;
    outline: 2px solid #fff;
}

/* ── Hero section (CSS-only, no images needed) ── */
.cr-hero-wrap {
    width: 100%;
    background: linear-gradient(135deg, #1a0a00 0%, #2d0f00 40%, #1a1a1a 100%);
    border-bottom: 3px solid #b22300;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cr-hero-wrap::before {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(178,35,0,0.04) 40px,
        rgba(178,35,0,0.04) 80px
    );
}
.cr-hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}
.cr-hero-inner h2 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 14px;
}
.cr-hero-inner p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 28px;
    line-height: 1.7;
}
.cr-hero-inner .button {
    font-size: 15px !important;
    padding: 12px 30px !important;
    margin: 4px !important;
}
.cr-hero-inner .button-outline {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: bold;
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 3px;
    margin: 4px;
    text-decoration: none !important;
    transition: background .2s;
}
.cr-hero-inner .button-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ── Service cards ── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}
.svc-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 28px 24px;
    transition: border-color .2s, transform .2s;
}
.svc-card:hover {
    border-color: #b22300;
    transform: translateY(-2px);
}
.svc-card .svc-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}
.svc-card h4 { color: #f0f0f0; font-size: 17px; margin-bottom: 8px; }
.svc-card p  { color: #888; font-size: 13px; margin-bottom: 16px; line-height: 1.6; }

/* ── Section heading style ── */
.cr-section-title {
    font-size: 28px;
    color: #fff;
    font-weight: normal;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.cr-section-sub {
    color: #888;
    font-size: 13px;
    margin-bottom: 30px;
}
.cr-divider {
    width: 50px;
    height: 3px;
    background: #b22300;
    margin: 8px 0 28px;
}

/* ── Stats strip ── */
.cr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}
.cr-stat-cell {
    background: #1e1e1e;
    padding: 24px 16px;
    text-align: center;
}
.cr-stat-cell .num  { font-size: 2.2rem; font-weight: 900; color: #b22300; }
.cr-stat-cell .lbl  { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CTA booking band ── */
.cr-cta-band {
    background: #b22300;
    padding: 36px 20px;
    text-align: center;
    margin: 0 0 40px;
    border-radius: 4px;
}
.cr-cta-band h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.cr-cta-band p  { color: rgba(255,255,255,0.85); margin-bottom: 18px; }
.cr-cta-band .button {
    background: #fff !important;
    color: #b22300 !important;
    font-size: 15px !important;
    padding: 10px 28px !important;
}
.cr-cta-band .button:hover { background: #f0f0f0 !important; }

/* ── Info boxes (hours / contact) ── */
.cr-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 640px) {
    .cr-info-grid { grid-template-columns: 1fr; }
    .cr-stats      { grid-template-columns: 1fr; }
    .main { min-width: 100% !important; width: 100% !important; }
    .main-bg, .bg { min-width: 100% !important; }
    body { min-width: 100% !important; }
}
.cr-info-box {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 24px 24px 20px;
}
.cr-info-box h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.cr-info-box table { width: 100%; font-size: 13px; }
.cr-info-box td   { padding: 5px 0; vertical-align: top; }
.cr-info-box td:last-child { color: #ccc; text-align: right; }
.cr-info-box .emergency { color: #b22300; font-weight: bold; }
.cr-info-box p    { color: #888; font-size: 13px; margin-bottom: 8px; }
.cr-info-box a:not(.button) { color: #b22300 !important; }
.cr-info-box .button        { color: #fff !important; }

/* ── Sidebar layout — flexbox (replaces float-based) ── */
.cr-sidebar-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0 40px;
}
.cr-sidebar-flex-main {
    flex: 1 1 0;
    min-width: 0;
}
.cr-sidebar-flex-aside {
    flex: 0 0 320px;
    width: 320px;
}
@media (max-width: 760px) {
    .cr-sidebar-flex { flex-direction: column; }
    .cr-sidebar-flex-aside { width: 100%; flex: none; }
}

/* ── Legacy float sidebar (kept for compatibility) ── */
.cr-sidebar-main { float: left; width: 55%; padding-right: 30px; }
.cr-sidebar-aside { float: right; width: 40%; }

/* ── Image-text banner ── */
.cr-image-text-banner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 10px 0 24px;
}
.cr-it-text  { flex: 1; min-width: 0; }
.cr-it-image { flex: 0 0 260px; }
.cr-it-image img { width: 100%; border-radius: 4px; border: 1px solid #2a2a2a; }

/* Text inside image-text banners */
.cr-it-title {
    font-size: 24px !important;
    color: #f0f0f0 !important;
    font-weight: bold;
    margin-bottom: 6px;
}
.cr-it-para {
    color: #bbb !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
}
.cr-it-para:last-of-type { border-bottom: none; }
.cr-it-btn { margin-top: 8px; display: inline-block; }

/* ── Hours widget ── */
/* Hours/contact — two columns side by side like the static fallback */
.cr-hours-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 0 40px;
}
@media (max-width: 640px) {
    .cr-hours-wrap { grid-template-columns: 1fr; }
}
.cr-hours-box, .cr-contact-box { }
.cr-hours-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.cr-hours-table td { padding: 6px 2px; color: #ccc; }
.cr-hours-table td:first-child { color: #888; }
.cr-hours-val { color: #fff !important; font-weight: 600; text-align: right; }
.cr-hours-closed { color: #666 !important; text-align: right; }
.cr-hours-emergency { color: #b22300 !important; font-weight: bold; padding-top: 10px !important; }
.cr-contact-row { color: #ccc !important; font-size: 13px !important; margin-bottom: 8px !important; }
.cr-contact-row a { color: #b22300 !important; }

/* ── Service card image variant ── */
/* Card with image: image bleeds to top/side edges */
.svc-card--has-img {
    padding-top: 0;
    overflow: hidden;
}
.svc-card .svc-img {
    width: calc(100% + 48px);   /* cancel 24px padding on each side */
    margin: -0px -24px 16px;    /* flush to top and sides */
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.svc-card--has-img .svc-img {
    margin-top: 0;
}

/* ── Stat icon (when used in standalone stat banner) ── */
.cr-stat-cell .stat-icon { font-size: 2rem; margin-bottom: 6px; }

/* ── Page builder quick link in public admin bar ── */
.admin-bar a[href*="PageBuilder"] {
    background: rgba(178,35,0,0.2);
    border-radius: 3px;
}

/* ── Main section padding helper ── */
.main[style*="padding:0"] { min-height: unset; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile overrides
   Fixes the original 960px fixed-width template for all devices
   ═══════════════════════════════════════════════════════════ */

/* 1. Remove the hard 960-px lock */
body      { min-width: 0 !important; overflow-x: hidden; }
.main-bg,
.bg       { min-width: 0 !important; }
.main     { width: 100% !important; max-width: 960px; box-sizing: border-box; }

/* ── 960px — add side padding once viewport narrows ── */
@media (max-width: 980px) {
    .main { padding-left: 16px !important; padding-right: 16px !important; }
    .slider-wrapper, .slider { width: 100% !important; height: auto !important; }
}

/* ── 760px — tablet / large phone ── */
@media (max-width: 760px) {

    /* Header: stack brand + contact info vertically */
    header .main .wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 0 4px !important;
        overflow: visible !important;
    }
    h1 {
        float: none !important;
        padding: 0 16px 6px !important;
        text-align: center;
        background: none !important;
    }
    .fright {
        float: none !important;
        text-align: center !important;
    }
    .indent {
        padding: 0 !important;
        text-align: center;
    }
    .address { text-align: center !important; font-size: 12px !important; }
    .phone   { font-size: 18px !important; text-align: center !important; margin-top: 0 !important; }

    /* Navigation: allow horizontal scroll */
    header nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
        min-height: 48px;
    }
    header nav::-webkit-scrollbar { height: 0; }
    .menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none;
    }
    .menu li {
        float: none !important;
        display: inline-flex !important;
        flex-shrink: 0;
    }
    .menu li a {
        font-size: 14px !important;
        padding: 12px 14px !important;
        white-space: nowrap;
    }
    .menu > li:first-child > a {
        min-width: auto !important;
        padding: 12px 16px !important;
    }

    /* Language strip */
    .lang-strip { font-size: 12px; padding: 5px 8px; }
    .lang-strip .button { padding: 4px 12px !important; font-size: 11px !important; }

    /* Content area */
    #content { padding: 20px 0 !important; }

    /* Hero */
    .cr-hero-wrap { padding: 36px 0 28px; }
    .cr-hero-inner h2 { font-size: 1.9rem; }
    .cr-hero-inner p  { font-size: 1rem; }

    /* Image-text banner: stack vertically */
    .cr-image-text-banner { flex-direction: column !important; }
    .cr-it-image { flex: 0 0 auto !important; width: 100% !important; }

    /* Sidebar */
    .cr-sidebar-main  { float: none !important; width: 100% !important; padding-right: 0 !important; }
    .cr-sidebar-aside { float: none !important; width: 100% !important; }

    /* Footer */
    footer .main { padding: 20px 16px !important; }
}

/* ── 480px — small phone ── */
@media (max-width: 480px) {
    h1 a          { font-size: 18px !important; letter-spacing: 0; }
    h1 a::before  { font-size: 16px !important; }
    .phone        { font-size: 16px !important; }
    .address      { font-size: 11px !important; }

    .cr-hero-inner h2 { font-size: 1.5rem; }
    .cr-hero-inner p  { font-size: 0.95rem; }
    .cr-hero-inner .button { font-size: 13px !important; padding: 10px 20px !important; margin: 3px !important; }
    .cr-hero-inner .button-outline { font-size: 13px; padding: 10px 20px; }

    .cr-section-title { font-size: 22px; }
    .cr-section-sub   { font-size: 12px; }

    .svc-grid { grid-template-columns: 1fr !important; }
    .cr-stats { grid-template-columns: 1fr 1fr !important; }
    .cr-stat-cell .num { font-size: 1.7rem; }
    .cr-info-grid { grid-template-columns: 1fr !important; }

    .menu li a { font-size: 13px !important; padding: 11px 10px !important; }

    .cr-cta-band { padding: 24px 14px; }
    .cr-cta-band h3 { font-size: 18px; }
    .cr-cta-band .button { font-size: 13px !important; padding: 10px 20px !important; }

    h2 { font-size: 28px; }
    h3 { font-size: 20px; }

    /* Admin bar on mobile */
    .admin-bar .ab-inner { gap: 2px; padding: 0 6px; }
    .admin-bar a { padding: 3px 6px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   Bootstrap class overrides — applied across ALL public pages
   to keep Bootstrap components consistent with the dark theme.
   Bootstrap is loaded for booking/portal forms; these rules
   neutralise its light-theme colours.
   ═══════════════════════════════════════════════════════════════ */

/* ── Alerts ── */
.alert {
    border-radius: 4px !important;
    font-size: 13px !important;
    padding: 14px 20px !important;
    border-width: 1px !important;
    line-height: 1.7 !important;
}
.alert-info    { background:#0d2a3a !important; border-color:#1a5a7a !important; color:#80c8e8 !important; }
.alert-warning { background:#2a1a0a !important; border-color:#7a4a0a !important; color:#e8b870 !important; }
.alert-success { background:#0a2a1a !important; border-color:#1a7a4a !important; color:#80e8b0 !important; }
.alert-danger  { background:#2a0a0a !important; border-color:#7a1a1a !important; color:#e88080 !important; }
.alert-primary { background:#0a1a2a !important; border-color:#1a4a7a !important; color:#80a8e8 !important; }

/* ── Buttons ── */
.btn {
    border-radius: 3px !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    transition: background .2s, border-color .2s !important;
}
.btn-primary   { background:#b22300 !important; border-color:#b22300 !important; color:#fff !important; }
.btn-primary:hover { background:#d42a00 !important; border-color:#d42a00 !important; }
.btn-secondary { background:transparent !important; border-color:#555 !important; color:#ccc !important; }
.btn-secondary:hover { border-color:#b22300 !important; color:#fff !important; }
.btn-success   { background:#1a7a4a !important; border-color:#1a7a4a !important; color:#fff !important; }
.btn-danger    { background:#7a1a1a !important; border-color:#7a1a1a !important; color:#fff !important; }
.btn-warning   { background:#7a4a0a !important; border-color:#7a4a0a !important; color:#fff !important; }
.btn-outline-primary { background:transparent !important; border-color:#b22300 !important; color:#b22300 !important; }
.btn-outline-primary:hover { background:#b22300 !important; color:#fff !important; }
.btn-outline-secondary { background:transparent !important; border-color:#555 !important; color:#aaa !important; }
.btn-sm { font-size: 12px !important; padding: 5px 12px !important; }
.btn-lg { font-size: 15px !important; padding: 12px 28px !important; }

/* ── Forms ── */
.form-control, .form-select {
    background:#1e1e1e !important;
    border:1px solid #3a3a3a !important;
    color:#e0e0e0 !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
}
.form-control:focus, .form-select:focus {
    background:#252525 !important;
    border-color:#b22300 !important;
    color:#fff !important;
    box-shadow: 0 0 0 2px rgba(178,35,0,.25) !important;
    outline: none !important;
}
.form-label { color: #ccc !important; font-size: 13px !important; margin-bottom: 4px !important; }
.form-text  { color: #666 !important; font-size: 11px !important; }
.form-check-input:checked { background-color:#b22300 !important; border-color:#b22300 !important; }

/* ── Cards ── */
.card {
    background:#1e1e1e !important;
    border:1px solid #2a2a2a !important;
    color:#ddd !important;
}
.card-header { background:#252525 !important; border-bottom-color:#333 !important; color:#eee !important; }
.card-footer { background:#1a1a1a !important; border-top-color:#333 !important; }

/* ── Tables ── */
.table        { color:#ddd !important; }
.table thead  { background:#222 !important; }
.table th     { color:#bbb !important; border-color:#333 !important; font-weight:600 !important; }
.table td     { border-color:#2a2a2a !important; }
.table-striped tbody tr:nth-of-type(odd) { background:rgba(255,255,255,.03) !important; }
.table-hover tbody tr:hover { background:rgba(178,35,0,.08) !important; }

/* ── Badges ── */
.badge { font-size: 11px !important; padding: 3px 8px !important; border-radius: 3px !important; }

/* ── Pagination ── */
.page-link  { background:#1e1e1e !important; border-color:#2a2a2a !important; color:#ccc !important; }
.page-link:hover { background:#2a2a2a !important; color:#fff !important; }
.page-item.active .page-link { background:#b22300 !important; border-color:#b22300 !important; }
.page-item.disabled .page-link { background:#111 !important; color:#444 !important; }

/* ── Modals ── */
.modal-content { background:#1e1e1e !important; border:1px solid #333 !important; color:#ddd !important; }
.modal-header  { border-bottom-color:#333 !important; }
.modal-footer  { border-top-color:#333 !important; }
.modal-title   { color:#fff !important; }
.btn-close     { filter:invert(1) !important; }

/* ── Progress ── */
.progress      { background:#2a2a2a !important; border-radius:3px !important; }
.progress-bar  { background:#b22300 !important; }

/* ── Dropdowns ── */
.dropdown-menu { background:#1e1e1e !important; border-color:#333 !important; }
.dropdown-item { color:#ccc !important; }
.dropdown-item:hover { background:#2a2a2a !important; color:#fff !important; }
.dropdown-divider { border-color:#333 !important; }

/* ── Nav tabs (for portal pages) ── */
.nav-tabs  { border-bottom-color:#333 !important; }
.nav-tabs .nav-link { color:#888 !important; border-color:transparent !important; background:transparent !important; }
.nav-tabs .nav-link:hover { color:#fff !important; border-color:#333 !important; }
.nav-tabs .nav-link.active { background:#1e1e1e !important; border-color:#333 #333 #1e1e1e !important; color:#fff !important; }

/* ── Misc ── */
hr                 { border-color:#333 !important; opacity:.6 !important; }
.text-muted        { color:#666 !important; }
.text-primary      { color:#b22300 !important; }
.bg-primary        { background:#b22300 !important; }
.border            { border-color:#333 !important; }
.list-group-item   { background:#1e1e1e !important; border-color:#2a2a2a !important; color:#ddd !important; }
.list-group-item:hover { background:#252525 !important; }
.list-group-item.active { background:#b22300 !important; border-color:#b22300 !important; }
.breadcrumb        { background:transparent !important; }
.breadcrumb-item a { color:#b22300 !important; }
.breadcrumb-item.active { color:#888 !important; }
.breadcrumb-item + .breadcrumb-item::before { color:#555 !important; }

/* ---------------------------------------------------------------
   Blog System  Public & Admin styles
   --------------------------------------------------------------- */

/* -- Blog grid -- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* -- Blog card -- */
.blog-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.blog-card:hover {
    border-color: #b22300;
    box-shadow: 0 4px 20px rgba(178,35,0,.15);
}
.blog-card-img-wrap {
    display: block;
    height: 180px;
    overflow: hidden;
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.blog-tag {
    background: rgba(178,35,0,.2);
    color: #e07050;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(178,35,0,.3);
}
.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-title a {
    color: #f0e0d0 !important;
    text-decoration: none !important;
}
.blog-card-title a:hover { color: #e07050 !important; }
.blog-card-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
    gap: 6px;
}
.blog-read-more {
    color: #b22300 !important;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none !important;
}
.blog-read-more:hover { color: #e04010 !important; }
.blog-card-date { color: #666; }

/* -- Blog post page -- */
.blog-back-link {
    display: inline-block;
    color: #b22300;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    text-decoration: none;
}
.blog-back-link:hover { color: #e04010; }

.blog-post-body {
    font-size: 15px;
    line-height: 1.85;
    color: #ddd;
    max-width: 820px;
}
.blog-post-body h1,.blog-post-body h2,.blog-post-body h3,
.blog-post-body h4,.blog-post-body h5 {
    color: #f0e0d0;
    margin-top: 28px;
    margin-bottom: 10px;
}
.blog-post-body p  { margin-bottom: 14px; }
.blog-post-body ul,.blog-post-body ol { padding-inline-start: 24px; margin-bottom: 14px; }
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body a  { color: #b22300; }
.blog-post-body a:hover { color: #e04010; }
.blog-post-body blockquote {
    border-inline-start: 3px solid #b22300;
    padding: 8px 20px;
    margin: 16px 0;
    background: #1a1010;
    color: #bbb;
    border-radius: 2px;
}
.blog-post-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 12px 0;
}
.blog-post-body pre {
    background: #1a1a2a;
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    color: #a0c8e8;
}
.blog-post-body code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #a0c8e8;
}
.blog-post-body hr {
    border-color: #2a2a2a;
    margin: 28px 0;
}

/* -- Comments -- */
.blog-comments-list { margin-bottom: 36px; }
.blog-comment {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.blog-comment--reply {
    margin-inline-start: 28px;
    border-inline-start: 3px solid #3a3a3a;
    background: #181818;
}
.blog-comment-header {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.blog-comment-author {
    font-weight: 700;
    font-size: 13px;
    color: #e0c0a0;
}
.blog-comment-date { font-size: 11px; color: #555; }
.blog-comment-body { font-size: 14px; color: #ccc; line-height: 1.7; margin-bottom: 10px; }
.blog-admin-reply {
    background: #1a2a1a;
    border: 1px solid #2a4a2a;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #80c880;
    margin-bottom: 10px;
}
.blog-admin-badge {
    font-weight: 700;
    margin-inline-end: 6px;
    color: #80e880;
}
.blog-reply-btn {
    background: none;
    border: 1px solid #3a3a3a;
    color: #888;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
}
.blog-reply-btn:hover { border-color: #b22300; color: #e07050; }

/* Comment form */
.blog-comment-form-wrap {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 24px;
    margin-top: 24px;
}
.blog-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 4px;
}
.blog-form-input {
    width: 100%;
    background: #242424;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 13px;
    resize: vertical;
}
.blog-form-input:focus {
    border-color: #b22300;
    outline: none;
    background: #282828;
}

/* Alert boxes */
.blog-alert {
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}
.blog-alert-success {
    background: #0a2a1a;
    border-color: #1a5a2a;
    color: #80e880;
}
.blog-alert-error {
    background: #2a0a0a;
    border-color: #5a1a1a;
    color: #e88080;
}

/* -- Responsive -- */
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-comment--reply { margin-inline-start: 14px; }
    .blog-comment-form-wrap { padding: 16px; }
    .blog-comment-form-wrap > form > div:first-of-type {
        grid-template-columns: 1fr !important;
    }
}
