.login-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #003d73, #005bab 50%, #d32f2f);
    font-family: Outfit, sans-serif;
}
.login-card {
    width: min(420px, calc(100% - 32px));
    background: #fff;
    padding: 36px 32px;
    border-radius: 24px;
    display: grid;
    gap: 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
}
.login-card img { height: 70px; margin: 0 auto; }
.login-card h1 { margin: 0; text-align: center; }
.login-card p, .login-card a { text-align: center; color: #5d6b7c; }
.login-card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.login-card input, .admin-form input, .admin-form textarea, .admin-form select {
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}
.login-card button, .btn {
    background: #d32f2f;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.admin-body {
    margin: 0;
    font-family: Outfit, sans-serif;
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: #f5f8fc;
    color: #122033;
}
.sidebar {
    background: #0b1624;
    color: #d5dee8;
    padding: 28px 20px;
}
.sidebar img { height: 58px; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 28px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a {
    color: #d5dee8;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar a.active, .sidebar a:hover { background: #005bab; color: #fff; }
.nav-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 6px;
}
.admin-main { padding: 36px; }
.lead { color: #5d6b7c; margin-top: 0; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.stat-grid article, .panel {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0,40,80,.06);
}
.stat-grid span { font-size: 36px; font-weight: 800; color: #005bab; }
.stat-grid a.stat-link {
    text-decoration: none;
    color: inherit;
}
.stat-grid a.stat-link article {
    height: 100%;
}
.panel { margin-top: 12px; overflow: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.message-preview {
    white-space: pre-wrap;
    max-width: 420px;
    color: #3d4b5c;
}
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.published { background: #e8f7ee; color: #146c2e; }
.tag.draft { background: #fff4e5; color: #b54708; }
.actions a { margin-right: 12px; color: #005bab; font-weight: 600; }
.actions .danger { color: #d32f2f; }
.actions .restore { color: #146c2e; }
.btn.ghost {
    background: #fff;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}
.trash-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
}
.trash-filters a {
    text-decoration: none;
    color: #3d4b5c;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
}
.trash-filters a.active {
    background: #003d73;
    border-color: #003d73;
    color: #fff;
}
.trash-item { display: flex; align-items: center; gap: 12px; }
.trash-item > div span { display: block; color: #5d6b7c; font-size: 13px; margin-top: 2px; }
.trash-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f8fc;
    flex-shrink: 0;
}
.tag.type-post { background: #e8f2fb; color: #005bab; }
.tag.type-testimonial { background: #f3e8fb; color: #6d28d9; }
.tag.type-gallery { background: #fff4e5; color: #b54708; }
.tag.type-partner { background: #e8f7ee; color: #146c2e; }
.tag.type-message { background: #fdecec; color: #b42318; }
.tag.type-member { background: #e8f2fb; color: #003d73; }
.tag.type-career { background: #fff4e5; color: #b54708; }
.tag.type-career_position { background: #f3e8fb; color: #6d28d9; }
.tag.type-program { background: #e8f7ee; color: #146c2e; }
.subtle { display: block; color: #5d6b7c; font-size: 13px; font-weight: 400; margin-top: 2px; }
.tag.type-team { background: #e8f2fb; color: #005bab; }
.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.detail-list dt { color: #5d6b7c; font-size: 13px; font-weight: 600; }
.detail-list dd { margin: 2px 0 0; font-weight: 600; }
.detail-heading { font-size: 18px; margin: 28px 0 12px; }
.member-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.member-files a {
    display: grid;
    gap: 6px;
    text-decoration: none;
    color: #005bab;
    font-weight: 600;
    font-size: 13px;
}
.member-files img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f8fc;
}
.person-cell { display: flex; align-items: center; gap: 12px; }
.person-cell span { display: block; color: #5d6b7c; font-size: 13px; }
.thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}
.thumb.letter {
    display: grid;
    place-items: center;
    background: #e8f2fb;
    color: #005bab;
    font-weight: 700;
}
.tag.home { background: #e8f2fb; color: #005bab; }
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.admin-gallery-card {
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.admin-gallery-card > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.admin-gallery-card > div { padding: 12px 14px 16px; display: grid; gap: 6px; }
.admin-gallery-card span { color: #5d6b7c; font-size: 13px; }
.admin-gallery-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-preview-thumb {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 8px;
}
.admin-partner-logo {
    height: 140px;
    display: grid;
    place-items: center;
    background: #f5f8fc;
    padding: 16px;
}
.admin-partner-logo img {
    max-width: 100%;
    max-height: 108px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.partner-preview-thumb {
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
    background: #f5f8fc;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 8px;
}
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.flash.success { background: #e8f7ee; color: #146c2e; }
.flash.error { background: #fdecec; color: #b42318; }
.admin-form {
    display: grid;
    gap: 16px;
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    max-width: 860px;
}
.admin-form.with-editor { max-width: 1080px; }
.admin-form label { display: grid; gap: 8px; font-weight: 600; }
.field-caption {
    font-size: 13px;
    font-weight: 500;
    color: #5d6b7c;
    line-height: 1.4;
}
.hero-preview {
    width: 100%;
    max-width: 640px;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    margin: 4px 0 12px;
    display: block;
    background: #f5f8fc;
}
.admin-form .btn + .btn { margin-left: 8px; }
.tox-tinymce { border-radius: 12px !important; border-color: #dbe3ec !important; }
.cke { width: 100% !important; }
.cke_chrome { border-radius: 12px !important; overflow: hidden; border-color: #dbe3ec !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) {
    .admin-body, .stat-grid, .form-row, .detail-list { grid-template-columns: 1fr; }
}
