:root {
    --color-primary: #0f2c46;
    --color-primary-dark: #0a1e31;
    --color-primary-light: #1f4b72;
    --color-secondary: #1d5b99;
    --color-accent: #f5b042;
    --color-accent-dark: #d49130;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f8fb;
    --color-background: #edf1f5;
    --color-light: #f8fafc;
    --color-text: #142032;
    --color-text-muted: #5c6474;
    --color-border: #d5dbe5;
    --color-border-strong: #b6beca;
    --color-success: #2ec27e;
    --color-danger: #d9534f;

    --font-family-base: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.3;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 12px rgba(15, 24, 43, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 24, 43, 0.12);
    --shadow-lg: 0 20px 45px rgba(15, 24, 43, 0.16);

    --card-padding: var(--space-lg);

    /* legacy aliases (to be phased out) */
    --primary: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --primary-light: var(--color-primary-light);
    --secondary: var(--color-secondary);
    --accent: var(--color-accent);
    --accent-dark: var(--color-accent-dark);
    --surface: var(--color-surface);
    --background: var(--color-background);
    --light: var(--color-light);
    --text: var(--color-text);
    --text-light: var(--color-text-muted);
    --muted: var(--color-text-muted);
    --border: var(--color-border);
    --border-strong: var(--color-border-strong);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--light);
}
.card-image.placeholder {
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
}

/* Spacing utilities */
.pt-lg { padding-top: var(--space-2xl); }
.pb-lg { padding-bottom: var(--space-2xl); }
.section-gap { padding: var(--space-2xl) 0; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 1100px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: var(--line-height-tight);
}

p {
    color: var(--color-text);
}

.text-muted {
    color: var(--color-text-muted);
}

/* Utilities */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--card-padding);
    box-shadow: var(--shadow-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2xs) var(--space-sm);
    border-radius: 999px;
    background: rgba(15, 44, 70, 0.1);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.badge-pill {
    border-radius: 999px;
    background: rgba(245, 181, 68, 0.18);
    color: #F5B544;
    padding: var(--space-2xs) var(--space-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-sm);
    border: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-base);
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-public {
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.btn-primary-public {
    background: #F5B544;
    color: #0B2340;
    border: 1px solid #F5B544;
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary-public:hover {
    background: #dfa03b;
    color: #0B2340;
}

.btn-secondary-public {
    background: transparent;
    color: #F5B544;
    border: 1px solid #F5B544;
    border-radius: 999px;
    font-weight: 700;
}

.btn-secondary-public:hover {
    color: #0B2340;
    background: rgba(245, 181, 68, 0.12);
    border-color: #dfa03b;
}

.btn-secondary {
    background: var(--color-accent);
    color: #1f1f1f;
}

.btn-secondary:hover {
    background: var(--color-accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #b52a38;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    border-color: #b52a38;
    color: #b52a38;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Forms */
form {
    width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(18, 56, 91, 0.1);
    outline: none;
}

.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-toolbar input,
.search-toolbar select {
    background: var(--surface);
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.form-row.two-cols {
    grid-template-columns: 2fr 1fr;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.choice-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.color-picker-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-input {
    width: 80px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.color-preview {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: var(--picked-color, var(--primary));
}

.preview-panel {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px dashed var(--border);
}

.preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    background: var(--category-color, var(--primary));
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--category-color, var(--primary));
}

.checkbox-label {
    margin: 0;
    font-weight: 500;
    color: var(--text);
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections & tables */
section,
.table-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

section {
    padding: var(--space-2xl) 0;
}

.table-wrapper {
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Navigation */
.navbar {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--primary);
    color: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.logo-text .title {
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.logo-text .subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

.nav-menu .nav-cta .btn {
    border-radius: 999px;
    background: #F5B544;
    color: #0B2340;
    border: 1px solid #F5B544;
}

.nav-menu .nav-cta .btn:hover {
    background: #dfa03b;
    color: #0B2340;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.2s ease;
}

.nav-menu a {
    color: var(--muted);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-menu .nav-cta {
    margin-left: 0.5rem;
}

/* Admin Layout */
.admin-body {
    background: var(--background);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--background);
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
}

.sidebar__brand {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.sidebar__logo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.sidebar__brand h2 {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar__brand p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0,0,0,0.15);
    padding: 0.85rem;
    border-radius: var(--radius-md);
}

.sidebar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar__section {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.85);
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar__link i {
    width: 20px;
    text-align: center;
}

.sidebar__link:hover,
.sidebar__link.is-active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.sidebar__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Fallback layout for legacy admin pages without .admin-wrapper */
body > .admin-sidebar {
    width: 260px;
    min-height: 100vh;
    float: left;
}

body > .admin-content {
    margin-left: 260px;
    padding: 2rem;
}

@media (max-width: 992px) {
    body > .admin-sidebar {
        width: 100%;
        float: none;
        min-height: auto;
    }
    body > .admin-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header__title h1 {
    margin-bottom: 0.25rem;
}

.admin-header__title p {
    margin: 0;
    color: var(--color-text-muted);
}

.admin-header__actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
}

.admin-header__profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15,44,70,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header__profile span {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.profile-menu {
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.admin-content {
    padding: 2rem;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.metric-card {
    display: flex;
    gap: var(--space-sm);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.metric-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(15, 44, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.metric-card__label {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.metric-card__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.metric-card__sub {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.admin-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.admin-list-item__main {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.admin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(15, 44, 70, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    overflow: hidden;
}

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

.admin-list-item__meta {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    min-width: 180px;
}

.admin-list-item__actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-icon:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.badge-role,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-role {
    background: rgba(15, 44, 70, 0.08);
    color: var(--color-primary-dark);
}

.badge-role.is-accent {
    background: rgba(245, 176, 66, 0.15);
    color: var(--color-accent-dark);
}

.badge-status {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.badge-status.is-draft {
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.badge-status.is-suspended {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-list-card {
    padding: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.category-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.category-item.active {
    background: rgba(26, 58, 92, 0.08);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item h4 {
    margin: 0;
}

.category-item .item-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.category-item .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary-dark);
}

.category-detail {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.category-empty {
    text-align: center;
    color: var(--muted);
    padding: 1.5rem;
}

@media (max-width: 992px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .admin-sidebar .admin-logo {
        flex: 1 1 220px;
        margin-bottom: 0;
    }
    .admin-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-menu li {
        flex: 1 1 200px;
    }
    .category-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .category-item .item-actions {
        width: 100%;
    }
}

.admin-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.admin-nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.admin-nav-user span {
    color: var(--muted);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    display: block;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0B2340 0%, #16375A 85%);
    color: #fff;
    padding: 4.5rem 0;
}
.hero-news {
    background: linear-gradient(135deg, #071523 0%, #0B2340 100%);
    color: #fff;
}
.hero-news .hero-visual {
    position: relative;
}
.hero-news .hero-visual.hero-news-visual {
    background: linear-gradient(145deg, rgba(11,35,64,0.9), rgba(7,21,35,0.88)), url('/assets/images/home-hero-legal.jpg');
    background-size: cover;
    background-position: center;
    min-height: 260px;
    border-radius: var(--radius-lg);
}
.hero-news .hero-visual img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    height: 260px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}
.hero-visual-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(245,181,68,0.18), rgba(255,255,255,0.08));
    color: #fff;
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}
.hero-visual-fallback .placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(245,181,68,0.22);
    color: #fff;
    margin-bottom: var(--space-xs);
}
.hero-subpage {
    padding: var(--space-2xl) 0;
}
.hero .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    align-items: center;
}
.hero-subpage .hero-content h1,
.hero-subpage .hero-content p {
    color: #fff;
}
.hero-subpage .hero-buttons .btn-outline {
    color: #F5B544;
    border-color: rgba(245,181,68,0.7);
}
.hero-subpage .hero-buttons .btn-outline:hover {
    color: #0B2340;
    background: rgba(245,181,68,0.16);
    border-color: #dea045;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero .eyebrow {
    color: #F5B544;
    letter-spacing: 0.18em;
}
.hero .hero-buttons .btn-outline {
    color: #F5B544;
    border-color: rgba(245,181,68,0.75);
    background: transparent;
}
.hero .hero-buttons .btn-outline:hover {
    color: #0B2340;
    background: rgba(245,181,68,0.16);
    border-color: #dfa03b;
}
.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}



.slider-nav:hover {
    background: #fff;
}

.slider-nav.prev { left: 1rem; }
.slider-nav.next { right: 1rem; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
}

.slider-dot.active {
    background: var(--accent);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    color: var(--muted);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-muted-sm {
    color: var(--muted);
    font-size: 0.9rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: 1.5rem;
}

.mb-lg {
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

.text-success {
    color: #28a745;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-image {
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
    position: relative;
}

.article-image .card-image {
    border-radius: 0;
    height: 200px;
    object-fit: cover;
}

.article-card .card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(18, 56, 91, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-card h3 a {
    color: var(--primary-dark);
}

.article-card p {
    color: var(--muted);
}

.card-content .meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #0B2340 0%, #16375A 85%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem 2.5rem;
    margin: 3rem 0 2rem;
    color: #fefefe;
}

.newsletter-content {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter h2 {
    color: #fefefe;
    margin-bottom: 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.newsletter p {
    color: rgba(245,247,251,0.85);
    margin-bottom: 1.25rem;
}

.newsletter form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    width: min(900px, 100%);
    align-items: center;
}

.newsletter input[type="email"] {
    flex: 1;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius-md);
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    min-height: 54px;
}

.newsletter button[type="submit"] {
    background: #F5B544;
    color: #0B2340;
    border: 1px solid #F5B544;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    min-height: 54px;
}

.newsletter button[type="submit"]:hover {
    background: #dea045;
    border-color: #dea045;
    color: #0B2340;
}

@media (max-width: 640px) {
    .newsletter form {
        grid-template-columns: 1fr;
    }
    .newsletter button[type="submit"] {
        width: 100%;
    }
}

.card-image.placeholder {
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
}

/* Tools */
.tools-showcase {
    padding: var(--space-2xl) 0;
    background: var(--color-surface-alt);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    justify-content: space-between;
}
.tool-card > .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--color-primary);
}

.tool-icon.success { background: var(--color-success); }
.tool-icon.info { background: #0ea5e9; }
.tool-card-body h3 { margin-bottom: 0.35rem; }

.tool-section {
    margin-bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tool-section-header h3 {
    margin-bottom: 0.35rem;
}

.tool-form-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: flex-end;
}

.tool-form-row .form-group {
    flex: 1;
    min-width: 220px;
}

.tool-result {
    margin-top: var(--space-sm);
    font-weight: 600;
    min-height: 1.8rem;
}

.tool-list {
    margin-top: var(--space-sm);
    padding-left: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.template-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
}

.template-card a {
    margin-top: auto;
    align-self: flex-start;
}

.template-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.template-meta i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* News feed */
.news-feed {
    padding: var(--space-2xl) 0;
    background: var(--color-background);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card .article-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    min-height: 220px;
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
}

.news-card .article-media .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card .category-badge {
    position: absolute;
    left: var(--space-sm);
    bottom: var(--space-sm);
}

.news-card .article-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.news-card .article-body h3 {
    margin: 0;
}

.news-card .article-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.news-label.hot {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: #d9534f;
    color: #fff;
    border-radius: 999px;
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
}

.quote-section {
    padding: 3rem 0;
}

.quote-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-card h2 {
    margin-bottom: 1rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.quote-body {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-author {
    font-weight: 600;
    color: var(--primary);
}

.quote-source {
    color: var(--muted);
    font-size: 0.9rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    background: var(--surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text);
}

.action-btn i {
    font-size: 1.6rem;
    color: var(--primary);
}

.action-btn strong {
    font-size: 1rem;
    color: var(--primary-dark);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-grid .card {
    text-align: center;
    padding: 2rem;
}

.card-grid .card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Portal / Admin shared */
.portal-header,
.admin-header {
    background: var(--surface);
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.portal-nav,
.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-back-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(18, 56, 91, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Messages / Tables */
.messages-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.messages-sidebar,
.compose-form,
.message-item,
.upload-area {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.message-item {
    border: 1px solid var(--border);
}

.message-item.unread {
    border-color: var(--accent);
    background: rgba(224, 161, 6, 0.08);
}

.message-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.empty-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.empty-card i {
    font-size: 3rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.messages-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    color: var(--muted);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(18, 56, 91, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.document-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.file-pdf { color: #dc3545; }
.file-doc { color: #0d6efd; }
.file-img { color: #198754; }
.file-default { color: var(--muted); }

.document-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.document-card .document-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.info-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.info-card ul {
    margin: 0.75rem 0 0 1.5rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.portal-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 2.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--muted);
}

.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert-success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.alert-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.alert-info {
    color: #055160;
    background: #cff4fc;
    border: 1px solid #b6effb;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(18, 56, 91, 0.1);
    color: var(--primary-dark);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: var(--accent);
    color: #fff;
}

.badge-open,
.badge-pending {
    background: #ffc107;
    color: #1f1f1f;
}

.badge-closed,
.badge-archived {
    background: #6c757d;
    color: #fff;
}

.status-badge.status-published {
    background: rgba(16,185,129,0.15);
    color: #0f5132;
}

.status-badge.status-draft {
    background: rgba(108,117,125,0.15);
    color: #374151;
}

.status-badge.status-info {
    background: rgba(29,91,153,0.15);
    color: var(--secondary);
}

.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--background);
}

.auth-card {
    width: min(520px, 100%);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.auth-card.auth-card-wide {
    width: min(680px, 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.auth-header p {
    color: var(--text-light);
}

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--surface);
    padding: 0 0.75rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-alt {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.terms-checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.terms-checkbox input {
    margin-top: 0.25rem;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-weak { color: #dc3545; }
.strength-medium { color: #f0ad4e; }
.strength-strong { color: #198754; }

@media (max-width: 640px) {
    .auth-card {
        padding: 1.75rem;
    }
}

.portal-header-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-bottom: none;
}

.portal-header-accent h1,
.portal-header-accent p {
    color: #fff;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.calendar-wrapper,
.calendar-sidebar .sidebar-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
}

.calendar-day {
    min-height: 90px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    position: relative;
}

.calendar-day.other-month {
    background: var(--light);
    color: var(--text-light);
}

.calendar-day.today {
    border: 2px solid var(--primary);
    background: rgba(18, 56, 91, 0.08);
}

.calendar-day.has-events {
    border-left: 4px solid var(--secondary);
}

.day-number {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.day-events {
    font-size: 0.8rem;
    color: var(--text-light);
}

.event-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    margin-right: 0.25rem;
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-hero {
    background: linear-gradient(135deg, #0B2340 0%, #16375A 85%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.search-hero h1 {
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.search-hero p {
    color: rgba(245,247,251,0.85);
    margin-bottom: 1.5rem;
}
.search-form {
    display: grid;
    grid-template-columns: 1fr 180px 160px 140px 140px 120px;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.search-form input,
.search-form select {
    height: 48px;
    border: 1px solid #d5dbe5;
    border-radius: var(--radius-sm);
    padding: 0 0.75rem;
}
.search-results {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}
.search-result-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.search-result-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}
.search-result-card p {
    color: var(--color-text-muted);
}
.search-result-meta {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.highlight {
    background: #fff59d;
    padding: 0 3px;
    border-radius: 2px;
}
.pagination .page-link.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.card-image.placeholder {
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
}

.sidebar-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.reminder-item,
.court-item {
    padding: 0.75rem;
    border-left: 3px solid var(--primary);
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.reminder-item .date,
.court-item .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: #0B2340;
    color: #f5f7fb;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding: 3rem 0 2.5rem;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

footer h3 {
    margin-bottom: 0.75rem;
    color: #fefefe;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

footer ul a {
    color: rgba(245,247,251,0.85);
}

footer a {
    color: #F5B544;
}

footer a:hover {
    color: #ffd27a;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245,181,68,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5B544;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    background: #F5B544;
    color: #0B2340;
}

footer p,
footer .footer-custom-text {
    color: rgba(245,247,251,0.82);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(245,247,251,0.75);
}

.search-hero {
    background: linear-gradient(135deg, #0B2340 0%, #16375A 85%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.search-hero h1 {
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.search-hero p {
    color: rgba(245,247,251,0.85);
    margin-bottom: 1.5rem;
}
.search-form {
    display: grid;
    grid-template-columns: 1fr 200px 180px 140px;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.search-form input,
.search-form select {
    height: 48px;
    border: 1px solid #d5dbe5;
    border-radius: var(--radius-sm);
    padding: 0 0.75rem;
}
.search-results {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}
.search-result-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.search-result-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}
.search-result-card p {
    color: var(--color-text-muted);
}
.search-result-meta {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.highlight {
    background: #fff59d;
    padding: 0 3px;
    border-radius: 2px;
}
.pagination .page-link.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.card-image.placeholder {
    background: linear-gradient(135deg, #F5B544, #FFE6A3);
}

.footer-newsletter {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.footer-newsletter form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.footer-newsletter input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem 1rem;
}

.footer-newsletter button[type="submit"] {
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
}

.footer-custom-text {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(245,247,251,0.82);
}

.demo-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #1f1f1f;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 20px;
        left: 20px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.show {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        flex-direction: column;
    }

    .messages-container {
        grid-template-columns: 1fr;
    }
}
.file-input-hidden {
    display: none;
}

.card-center { text-align: center; padding: 2rem; }
.upload-label { cursor: pointer; display: block; border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 1rem; text-align: center; }
.upload-icon-sm { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.5rem; }
.search-input, .filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.search-input {
    max-width: 260px;
}
.filter-select {
    min-width: 180px;
}
.form-check-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.preview-image {
    max-width: 320px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.sidebar-section { margin-top: 1rem; padding: 0.5rem 1.5rem; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-title { font-weight: 600; color: rgba(255,255,255,0.8); }
.sidebar-user { margin-right: 1rem; color: var(--primary); font-weight: bold; }
.upload-success { font-size: 0.9rem; color: var(--primary); }
.sidebar-divider { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }

.sidebar-user-badge { display:inline-flex; align-items:center; gap:0.5rem; color: var(--primary-dark); font-weight:600; }
.sidebar-user-badge span { color: var(--muted); font-size: 0.85rem; font-weight:400; }

.table th, .table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--primary-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table td:last-child { text-align: right; }

.status-badge { display:inline-flex; align-items:center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; text-transform: uppercase; }
.status-badge.featured { background: rgba(253,183,26,0.15); color: var(--accent); }
.featured-icon { color: var(--accent); }
