:root {
    --polvak-navy: #08234a;
    --polvak-blue: #123e72;
    --polvak-red: #c91f36;
    --polvak-light: #f5f8fc;
    --polvak-ink: #162033;
    --polvak-muted: #66758c;
}

html {
    overflow-x: hidden;
}

body {
    color: var(--polvak-ink);
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    padding-top: 92px;
}

a { color: var(--polvak-blue); }

.navbar {
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 92px;
}
.navbar-brand { max-width: 390px; }
.navbar-brand strong {
    color: var(--polvak-navy);
    display: block;
    font-size: 2.45rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: .82;
    text-transform: uppercase;
}
.navbar-brand small {
    color: var(--polvak-navy);
    display: block;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    margin-top: .18rem;
    text-transform: uppercase;
}
.nav-link { font-weight: 500; color: #26364e; }
.nav-link.active, .nav-link:hover { color: var(--polvak-red); }

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

.brand-text {
    border-left: 2px solid #d9b84c;
    padding-left: .85rem;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--polvak-navy), var(--polvak-blue));
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand-mark-light {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
}

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

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

.admin-login-logo {
    height: 62px;
    object-fit: contain;
    width: auto;
}

.btn-polvak {
    --bs-btn-bg: var(--polvak-red);
    --bs-btn-border-color: var(--polvak-red);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #a9172b;
    --bs-btn-hover-border-color: #a9172b;
    border-radius: 999px;
    font-weight: 700;
    padding: .65rem 1.15rem;
}

.btn-outline-polvak {
    --bs-btn-color: var(--polvak-navy);
    --bs-btn-border-color: rgba(8, 35, 74, .24);
    --bs-btn-hover-bg: var(--polvak-navy);
    --bs-btn-hover-border-color: var(--polvak-navy);
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: .65rem 1.15rem;
}

.hero {
    background:
        linear-gradient(110deg, rgba(8, 35, 74, .28) 0%, rgba(8, 35, 74, .18) 46%, rgba(18, 62, 114, .08) 100%),
        var(--hero-image, url("../img/hero/polvak-kktc-police-hero.png")) center/cover;
    color: #fff;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: .98;
}

.hero p { color: rgba(255, 255, 255, .82); font-size: 1.16rem; max-width: 650px; }

.hero-panel {
    background: rgba(255, 255, 255, .95);
    border-radius: 8px;
    color: var(--polvak-ink);
    padding: 1.25rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.stat {
    border-left: 3px solid var(--polvak-red);
    padding-left: 1rem;
}

.stat strong { display: block; color: var(--polvak-navy); font-size: 1.45rem; }
.section-pad { padding: 84px 0; }
.section-muted { background: var(--polvak-light); }
.section-title { color: var(--polvak-navy); font-weight: 800; letter-spacing: -.025em; }
.section-lead { color: var(--polvak-muted); font-size: 1.08rem; }

.content-card {
    background: #fff;
    border: 1px solid rgba(8, 35, 74, .1);
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.content-card:hover {
    box-shadow: 0 18px 46px rgba(8, 35, 74, .12);
    transform: translateY(-3px);
}

.image-placeholder {
    background: linear-gradient(135deg, #dce7f5, #f8fbff);
    min-height: 190px;
    position: relative;
}

.image-placeholder::after {
    content: "POLVAK";
    color: rgba(8, 35, 74, .22);
    font-weight: 800;
    letter-spacing: .18em;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.card-img-top { height: 210px; object-fit: cover; }
.badge-soft { background: rgba(201, 31, 54, .1); color: var(--polvak-red); }
.cta-band { background: linear-gradient(135deg, var(--polvak-navy), var(--polvak-blue)); color: #fff; }
.page-hero { background: var(--polvak-light); padding: 74px 0; }
.prose { color: #34435b; line-height: 1.8; white-space: pre-line; }
.fw-black { font-weight: 900; }

.eyebrow {
    color: var(--polvak-red);
    display: inline-block;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-light { color: #f2cf58; }

.about-hero {
    background:
        linear-gradient(115deg, rgba(245, 248, 252, .98) 0%, rgba(245, 248, 252, .92) 55%, rgba(18, 62, 114, .14) 100%);
    overflow: hidden;
    padding: 92px 0 78px;
}

.about-lead {
    color: #34435b;
    font-size: 1.18rem;
    line-height: 1.85;
    max-width: 660px;
}

.about-photo-stack {
    min-height: 430px;
    position: relative;
}

.about-photo-main {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(8, 35, 74, .2);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.about-photo-card {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(8, 35, 74, .1);
    border-radius: 8px;
    bottom: -28px;
    box-shadow: 0 18px 44px rgba(8, 35, 74, .18);
    display: flex;
    gap: 1rem;
    left: 32px;
    max-width: 330px;
    padding: 1rem;
    position: absolute;
}

.about-photo-card img {
    height: 74px;
    object-fit: contain;
    width: 62px;
}

.about-photo-card strong {
    color: var(--polvak-navy);
    display: block;
    font-weight: 900;
    letter-spacing: .04em;
}

.about-photo-card span {
    color: var(--polvak-muted);
    display: block;
    font-size: .94rem;
    line-height: 1.45;
}

.about-story p {
    color: #34435b;
    font-size: 1.08rem;
    line-height: 1.85;
}

.story-image {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(8, 35, 74, .12);
    object-fit: cover;
    width: 100%;
}

.about-closing {
    background:
        linear-gradient(135deg, rgba(8, 35, 74, .98), rgba(18, 62, 114, .96));
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    margin-top: 1rem;
    overflow: hidden;
    padding: 2.2rem;
}

.about-closing p {
    color: rgba(255, 255, 255, .84);
}

.about-closing-image {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.form-control, .form-select { border-radius: 8px; padding: .75rem .9rem; }
.site-footer {
    background: #071b39;
    color: #fff;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 58px 0 24px;
}
.site-footer a { color: rgba(255, 255, 255, .72); display: block; margin-bottom: .45rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer strong { font-weight: 600; }
.site-footer h6 { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .48); font-size: .9rem; margin-top: 36px; padding-top: 20px; }

.admin-shell {
    background:
        radial-gradient(circle at top right, rgba(18, 62, 114, .1), transparent 34rem),
        #eef3f8;
    color: #162033;
    min-height: 100vh;
    padding-top: 0;
}

.admin-layout { min-height: 100vh; }

.admin-sidebar {
    background:
        linear-gradient(180deg, #071b39 0%, #08234a 58%, #06142b 100%);
    box-shadow: 12px 0 34px rgba(8, 35, 74, .12);
    min-height: 100vh;
    padding: 0;
    position: sticky;
    top: 0;
}

.admin-brand {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    padding: 1.15rem 1rem;
}

.admin-brand strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.admin-brand span {
    color: rgba(255, 255, 255, .58);
    display: block;
    font-size: .78rem;
    line-height: 1.2;
}

.admin-sidebar nav {
    padding: .75rem;
}

.admin-sidebar a {
    align-items: center;
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    display: flex;
    font-size: .95rem;
    font-weight: 700;
    gap: .65rem;
    margin-bottom: .22rem;
    padding: .78rem .9rem;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar a::before {
    background: rgba(255, 255, 255, .28);
    border-radius: 999px;
    content: "";
    height: .42rem;
    width: .42rem;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}

.admin-sidebar a.active::before {
    background: #f2cf58;
}

.admin-main {
    padding: 1.6rem;
}

.admin-topbar {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(8, 35, 74, .08);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(8,35,74,.08);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding: 1.1rem 1.25rem;
}

.admin-topbar h1 {
    color: var(--polvak-navy);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}

.admin-kicker {
    color: var(--polvak-red);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.admin-user {
    background: #f5f8fc;
    border: 1px solid rgba(8, 35, 74, .08);
    border-radius: 8px;
    padding: .65rem .9rem;
    text-align: right;
}

.admin-user span {
    color: var(--polvak-muted);
    display: block;
    font-size: .72rem;
}

.admin-user strong {
    color: var(--polvak-navy);
    display: block;
    font-size: .94rem;
}

.admin-card {
    border: 1px solid rgba(8,35,74,.08);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(8,35,74,.08);
    overflow: hidden;
}

.admin-card .card-body {
    padding: 1.35rem;
}

.admin-card .display-6 {
    color: var(--polvak-navy);
    font-weight: 800;
}

.admin-shell .table {
    --bs-table-bg: #fff;
    margin-bottom: 0;
}

.admin-shell .table thead th {
    background: #f7f9fc;
    border-bottom: 1px solid rgba(8, 35, 74, .08);
    color: var(--polvak-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: .95rem 1rem;
    text-transform: uppercase;
}

.admin-shell .table tbody td {
    border-color: rgba(8, 35, 74, .06);
    color: #2f3d52;
    padding: .95rem 1rem;
    vertical-align: middle;
}

.admin-list-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-list-toolbar h2 {
    color: var(--polvak-navy);
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
}

.admin-list-toolbar p {
    color: var(--polvak-muted);
    margin: .16rem 0 0;
}

.admin-content-table thead th:first-child {
    min-width: 460px;
}

.admin-list-item {
    align-items: center;
    display: flex;
    gap: .9rem;
    min-width: 0;
}

.admin-list-thumb {
    aspect-ratio: 4 / 3;
    background: #e8eef6;
    border: 1px solid rgba(8,35,74,.08);
    border-radius: 8px;
    flex: 0 0 96px;
    height: 72px;
    object-fit: cover;
    width: 96px;
}

.admin-list-item strong {
    color: var(--polvak-navy);
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .28rem;
}

.admin-list-item span {
    color: var(--polvak-muted);
    display: -webkit-box;
    font-size: .9rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-date {
    color: #34435b;
    font-weight: 800;
    white-space: nowrap;
}

.admin-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    padding: .38rem .62rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-status-live {
    background: rgba(27, 135, 84, .12);
    color: #16734a;
}

.admin-status-draft {
    background: rgba(102, 117, 140, .14);
    color: #536175;
}

.admin-status-featured {
    background: rgba(218, 184, 76, .2);
    color: #8c6b0e;
}

.admin-status-muted {
    background: rgba(8, 35, 74, .08);
    color: #5c6b82;
}

.admin-actions {
    align-items: center;
    display: flex;
    gap: .42rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.admin-shell .form-label {
    color: #2f3d52;
    font-size: .86rem;
    font-weight: 800;
}

.admin-shell .form-control,
.admin-shell .form-select {
    background-color: #fbfdff;
    border-color: rgba(8,35,74,.14);
    box-shadow: none;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
    border-color: rgba(18, 62, 114, .55);
    box-shadow: 0 0 0 .2rem rgba(18, 62, 114, .12);
}

.admin-shell .accordion-item {
    border: 1px solid rgba(8,35,74,.08);
    border-radius: 8px;
    overflow: hidden;
}

.admin-shell .accordion-button {
    color: var(--polvak-navy);
    font-weight: 800;
}

.admin-shell .accordion-button:not(.collapsed) {
    background: #f7f9fc;
    box-shadow: none;
}

.admin-shell .alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(8,35,74,.08);
}

.admin-shell .btn {
    font-weight: 800;
}

.admin-shell .btn-sm {
    border-radius: 999px;
    font-size: .8rem;
    padding: .36rem .72rem;
}

.admin-shell.d-flex {
    background:
        linear-gradient(135deg, rgba(7, 27, 57, .92), rgba(18, 62, 114, .78)),
        url("../img/hero/polvak-kktc-police-hero.png") center/cover;
}

.admin-shell.d-flex .admin-card {
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.admin-shell.d-flex .card-body {
    padding: 1.8rem !important;
}

@media (max-width: 991.98px) {
    body { padding-top: 74px; }
    .admin-shell { padding-top: 0; }
    .navbar { min-height: 74px; }
    .navbar-brand { max-width: 270px; }
    .brand-logo { height: 46px; }
    .brand-text { padding-left: .55rem; }
    .navbar-brand strong { font-size: 1.55rem; }
    .navbar-brand small { font-size: .56rem; letter-spacing: .035em; }
    .hero { min-height: auto; padding: 88px 0; }
    .section-pad { padding: 58px 0; }
    .about-hero { padding: 68px 0 54px; }
    .about-photo-stack { min-height: auto; padding-bottom: 44px; }
    .about-photo-card { bottom: 0; left: 16px; right: 16px; }
    .about-closing { padding: 1.4rem; }
    .admin-sidebar {
        min-height: auto;
        position: static;
    }
    .admin-sidebar nav {
        display: grid;
        gap: .35rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-sidebar a {
        margin-bottom: 0;
    }
    .admin-main {
        padding: 1rem;
    }
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: .9rem;
    }
    .admin-user {
        text-align: left;
        width: 100%;
    }
    .admin-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-content-table thead th:first-child {
        min-width: 330px;
    }
    .admin-list-thumb {
        flex-basis: 74px;
        height: 58px;
        width: 74px;
    }
    .admin-actions {
        align-items: flex-end;
        flex-direction: column;
    }
}
