*, *::before, *::after { box-sizing: border-box; }

:root {
    --brand-primary: #071b7b;
    --brand-primary-mid: #0f2878;
    --brand-primary-light: #1a3fad;
    --brand-primary-dark: #051456;
    --brand-primary-deep: #04102e;
    --brand-action: #2563eb;
    --brand-action-hover: #1d4ed8;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #d97706;
    --brand-accent-soft: #fde68a;
    --brand-sky: #93c5fd;
    --brand-sky-soft: #dbeafe;
    --brand-tint: #f0f5ff;
    --brand-tint-border: #c7d7f5;
    --brand-tint-soft: #e0ebff;
    --brand-link: #1d4ed8;
    --brand-link-hover: #071b7b;
    --shadow-brand: rgba(7, 27, 123, 0.18);
    --shadow-action: rgba(37, 99, 235, 0.22);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    background: #f1f5f9;
}

a { color: var(--brand-link); text-decoration: none; }
a:hover { color: var(--brand-link-hover); text-decoration: underline; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header — modern two-tier layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.header-top {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, var(--brand-primary) 100%);
    color: #cbd5e1;
    font-size: 12px;
    border-bottom: 3px solid var(--brand-accent);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    flex-wrap: wrap;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brand-accent-soft);
    font-size: 12px;
}

.header-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.header-top-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-switcher-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.lang-switcher-link:hover {
    color: var(--brand-accent-soft);
    text-decoration: none;
}

.lang-switcher-link.is-active {
    color: var(--brand-accent-soft);
}

.lang-switcher-sep {
    color: rgba(226, 232, 240, 0.45);
    user-select: none;
}

.header-top-links a,
.header-top-links .header-top-auth {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-top-links a:hover,
.header-top-links .header-top-auth:hover {
    color: var(--brand-accent-soft);
    text-decoration: none;
}

.header-top-divider {
    width: 1px;
    height: 14px;
    background: rgba(226, 232, 240, 0.35);
    flex-shrink: 0;
}

.header-top-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.header-top-auth:hover {
    color: var(--brand-accent-soft);
    text-decoration: none;
}

.header-top-auth--accent {
    color: #fde68a;
}

.header-top-auth--accent:hover {
    color: #fff;
}

.header-top-auth--button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: #e2e8f0;
}

.header-top-auth--button:hover {
    color: var(--brand-accent-soft);
}

.header-top-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-main {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.brand-text small {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.header-search {
    flex: 1;
    max-width: 420px;
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
    border-color: var(--brand-action);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    color: #0f172a;
    min-width: 0;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button {
    border: none;
    background: var(--brand-action);
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #051456;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 160px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header-user-link:hover {
    background: #e2e8f0;
    color: var(--brand-primary);
    text-decoration: none;
}

.header-user-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header-user-btn--ghost {
    background: #fff;
    color: var(--brand-primary);
    border-color: #cbd5e1;
}

.header-user-btn--ghost:hover {
    background: #f8fafc;
    color: #051456;
    text-decoration: none;
}

.header-user-btn--primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.header-user-btn--primary:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.main-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav li a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.main-nav li a:hover {
    color: var(--brand-primary);
    background: #fff;
    text-decoration: none;
}

.main-nav li a.active {
    color: var(--brand-primary);
    background: #fff;
    border-bottom-color: var(--brand-accent);
    text-decoration: none;
}

@media (max-width: 900px) {
    .header-main-inner {
        flex-wrap: wrap;
    }

    .header-search {
        max-width: none;
        order: 3;
        flex: 1 1 100%;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-toggle-input:checked + .header-main .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle-input:checked + .header-main .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-input:checked + .header-main .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        display: none;
        border-top: 1px solid #e2e8f0;
    }

    .nav-toggle-input:checked ~ .main-nav {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 8px 0 12px;
        gap: 0;
    }

    .main-nav li a {
        border-radius: 0;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 12px 10px;
    }

    .main-nav li a.active {
        border-left-color: var(--brand-accent);
        border-bottom-color: transparent;
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Homepage */
.home-page {
    padding: 20px 0 10px;
}

.home-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 55%, var(--brand-primary-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(7, 27, 123, 0.2);
}

.home-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-accent-soft);
    letter-spacing: 0.04em;
}

.home-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.2;
    color: #fff;
}

.home-tagline {
    margin: 0;
    font-size: 1rem;
    color: #e0ebff;
    max-width: 720px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 18px;
}

.home-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.home-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.home-btn--primary {
    background: var(--brand-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.home-btn--primary:hover {
    background: var(--brand-accent-hover);
    color: #fff;
}

.home-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.home-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-quick-nav a {
    background: rgba(255, 255, 255, 0.12);
    color: #f0f5ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-quick-nav a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.home-section {
    margin-bottom: 28px;
}

.section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
}

.section-subtitle {
    margin: 0;
    width: 100%;
    color: #64748b;
    font-size: 14px;
}

.section-head-badge {
    background: #e0ebff;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.home-ticker-section {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border: 1px solid #c7d7f5;
    border-left: 4px solid var(--brand-accent);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(7, 27, 123, 0.08);
}

.latest-updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #dbe4f4;
    border-radius: 10px;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(7, 27, 123, 0.04);
}

.latest-update-item:hover {
    background: #f0f5ff;
    border-color: #93c5fd;
    color: var(--brand-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(7, 27, 123, 0.08);
}

.latest-update-item--featured {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 16px 18px;
    box-shadow: 0 12px 24px rgba(7, 27, 123, 0.18);
}

.latest-update-item--featured:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.latest-update-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.latest-update-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-update-title {
    line-height: 1.45;
}

.latest-update-item--featured .badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.ticker-item:hover {
    background: #f0f5ff;
    border-color: #93c5fd;
    color: #051456;
    text-decoration: none;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.featured-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.featured-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-primary);
}

.featured-card-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.category-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-action));
    color: #fff;
}

.category-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.category-card-head a {
    color: #fff;
    text-decoration: none;
}

.category-card-head a:hover {
    text-decoration: underline;
}

.category-view-more {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}

.category-card-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
}

.category-card-list li {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.45;
}

.category-card-list li:last-child {
    border-bottom: none;
}

.category-card-list a {
    color: #051456;
    font-weight: 500;
}

.category-card-list a:hover {
    color: var(--brand-primary);
}

.category-empty {
    color: #94a3b8;
    font-style: italic;
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge--extended {
    background: #fef3c7;
    color: #b45309;
}

.badge--declared {
    background: #e0ebff;
    color: var(--brand-primary);
}

.badge:not(.badge--extended):not(.badge--declared) {
    background: #fee2e2;
    color: #b91c1c;
}

/* Legacy ticker (unused on home) */
.ticker-bar {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 8px 12px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.ticker-bar a {
    color: #8b0000;
    margin: 0 8px;
}

.ticker-bar a::after {
    content: " || ";
    color: #666;
    font-weight: normal;
}

.ticker-bar a:last-child::after {
    content: "";
}

/* Legacy home blocks (other pages may still use) */
.welcome-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.welcome-box h1 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #051456;
}

.social-links {
    text-align: center;
    margin: 10px 0;
    font-size: 13px;
}

.social-links a {
    color: #051456;
    font-weight: bold;
    margin: 0 4px;
}

/* Quick links grid */
.quick-links-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.quick-links-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    width: 25%;
    background: #fff8dc;
}

.quick-links-table a {
    color: #8b0000;
    font-weight: bold;
    font-size: 13px;
}

/* Main content table */
.main-content-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.main-content-table td {
    border: 1px solid #999;
    vertical-align: top;
    padding: 0;
    width: 12.5%;
}

.category-cell {
    min-width: 120px;
}

.category-header {
    background: #8b0000;
    color: #fff;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
}

.category-header a {
    color: #fff;
}

.view-more {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: #ffcccc !important;
}

.category-links {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.category-links li {
    margin-bottom: 6px;
    border-bottom: 1px dotted #ddd;
    padding-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
}

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

.category-links a {
    color: var(--brand-primary);
}

/* Post page */
.post-page {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.post-page h1 {
    color: #051456;
    font-size: 24px;
    margin-top: 0;
}

.post-page .post-content h1,
.post-page .post-content h2,
.post-page .post-content h3 {
    color: #051456;
    margin: 1.6em 0 0.75em;
    line-height: 1.3;
}

.post-page .post-content h1 {
    font-size: 1.25rem;
}

.post-page .post-content h2 {
    font-size: 1.125rem;
}

.post-page .post-content h3 {
    font-size: 1rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.post-content table td,
.post-content table th {
    border: 1px solid #999;
    padding: 8px;
}

.post-detail-table h3 {
    margin: 0 0 10px;
    color: #051456;
    font-size: 1.05rem;
}

.post-short-info {
    margin-bottom: 16px;
    line-height: 1.7;
}

.post-action-links {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-apply {
    display: inline-block;
    background: var(--brand-accent);
    color: #fff !important;
    padding: 8px 16px;
    margin: 5px;
    font-weight: bold;
    text-decoration: none !important;
}

.related-list {
    list-style: disc;
    padding-left: 20px;
}

/* Category listing */
.listing-page {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.listing-page h1 {
    color: #051456;
    font-size: 22px;
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 8px;
}

.listing-intro {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* Articles */
.content-subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.content-subcategory-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #1e3a8a;
    font-size: 14px;
    text-decoration: none;
}

.content-subcategory-link:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.article-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.article-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #f8fafc;
}

.article-card--empty {
    grid-template-columns: 1fr;
    color: #64748b;
}

.article-card-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.article-card-body h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.article-card-body h2 a {
    color: #051456;
    text-decoration: none;
}

.article-card-body h2 a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.article-card-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
}

.article-card-excerpt {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

.article-card-read {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
}

.article-card-read:hover {
    text-decoration: underline;
}

.article-featured-image {
    margin: 0 0 20px;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-lead {
    font-size: 17px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 20px;
}

.content-category-hero {
    margin: 0 0 16px;
    border-radius: 12px;
    overflow: hidden;
}

.content-category-hero img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.content-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: start;
    margin-top: 16px;
}

.content-event-main {
    min-width: 0;
}

.content-event-panel__label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.content-event-panel__category-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.content-event-panel__category-title a {
    color: #051456;
    text-decoration: none;
}

.content-event-panel__category-title a:hover {
    color: var(--brand-primary, #071b7b);
}

.content-event-panel__category-image {
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.content-event-panel__category-image img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    display: block;
}

.content-event-panel__category-body {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.content-event-panel__category-body.post-content > :first-child {
    margin-top: 0;
}

.content-event-panel__category-body.post-content > :last-child {
    margin-bottom: 0;
}

.content-event-panel__category-body img {
    max-width: 100%;
    height: auto;
}

.content-event-panel__category-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary, #071b7b);
    text-decoration: none;
}

.content-event-panel__category-link:hover {
    text-decoration: underline;
}

.content-event-sidebar {
    position: sticky;
    top: 16px;
}

.content-event-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.content-event-panel h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #051456;
}

.content-event-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-event-tag {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

a.content-event-tag:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    text-decoration: none;
}

.content-event-tag.is-active {
    background: var(--brand-primary, #071b7b);
    border-color: var(--brand-primary, #071b7b);
    color: #fff;
}

.content-event-panel__hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.content-event-category-card--solo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #051456;
    font-weight: 600;
    font-size: 14px;
}

.content-event-category-card--solo:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.content-event-category-card--solo img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.content-event-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.content-event-category-card a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #051456;
    font-weight: 600;
    font-size: 14px;
}

.content-event-category-card a:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.content-event-category-card img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .content-event-layout {
        grid-template-columns: 1fr;
    }

    .content-event-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .article-card {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    margin-bottom: 14px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #64748b;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}

.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
    color: #475569;
    font-weight: 600;
}

.post-meta {
    margin: 0 0 16px;
    color: #64748b;
}

.related-posts h2 {
    margin-top: 28px;
    font-size: 1.15rem;
    color: var(--brand-primary);
}

.listing-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.listing-links li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

/* Search */
.search-form {
    text-align: center;
    margin: 15px 0;
}

.search-form input[type="search"],
.search-form input[type="text"] {
    width: 60%;
    max-width: 480px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 18px;
    background: var(--brand-action);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
}

.search-message {
    text-align: center;
    color: #475569;
    margin: 12px 0 18px;
}

.search-message--warn {
    color: #b45309;
}

/* Footer */
.footer-about {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 32px 0;
    margin-top: 24px;
}

.footer-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.footer-about-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}

.footer-about-card h2 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #051456;
}

.footer-about-card p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.site-footer {
    background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-primary-deep) 100%);
    color: #e0ebff;
    margin-top: 0;
    font-size: 14px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 40px 16px 32px;
}

.footer-brand-col {
    padding-right: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-brand:hover {
    text-decoration: none;
}

.footer-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.footer-brand small {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-slogan {
    margin: 0 0 8px;
    color: var(--brand-accent-soft);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-brand-text {
    margin: 0 0 16px;
    color: #c7d7f5;
    font-size: 13px;
    line-height: 1.55;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f0f5ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}

.footer-col h3 {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 14px;
}

.footer-subheading {
    margin-top: 20px !important;
}

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

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: #e0ebff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-list a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 2px;
}

.footer-list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.footer-list--inline li {
    margin: 0;
}

.footer-list--inline a {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.footer-contact li {
    font-size: 13px;
    line-height: 1.5;
}

.footer-contact span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #93c5fd;
    margin-bottom: 2px;
}

.footer-contact a {
    color: #fff;
    word-break: break-all;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #93c5fd;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Admin */
.admin-wrap {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.admin-nav {
    background: #333;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-nav a {
    color: #fff;
    margin-right: 15px;
}

.admin-card {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}

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

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-table th {
    background: #8b0000;
    color: #fff;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

.form-group textarea.rich-editor {
    min-height: 320px;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #8b0000;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary {
    background: #666;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 22px 18px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .main-content-table,
    .main-content-table tbody,
    .main-content-table tr,
    .main-content-table td {
        display: block;
        width: 100%;
    }

    .quick-links-table,
    .quick-links-table tbody,
    .quick-links-table tr,
    .quick-links-table td {
        display: block;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
    }
}

/* Student auth */
.header-logout-form {
    display: inline;
    margin: 0;
}

.header-logout-form button {
    font: inherit;
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 32px 0 48px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(7, 27, 123, 0.08);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: var(--brand-primary);
}

.auth-subtitle {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #f0f5ff;
    border: 1px solid #c7d7f5;
    color: #051456;
}

.auth-google-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-google-link {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--brand-action);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.auth-google-link:hover {
    background: #051456;
    text-decoration: none !important;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.auth-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-field-error {
    display: block;
    margin-top: 5px;
    color: #b91c1c;
    font-size: 13px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--brand-action);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit-btn:hover {
    background: #051456;
}

.auth-note {
    margin: 20px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.auth-card--account {
    max-width: 520px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.student-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c7d7f5;
}

.student-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.auth-logout-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.auth-logout-btn:hover {
    background: #f8fafc;
}

.user-dashboard {
    padding: 28px 0 48px;
}

.user-dashboard-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.user-dashboard-alert--success {
    background: #f0f5ff;
    border: 1px solid #c7d7f5;
    color: #051456;
}

.user-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-mid) 55%, var(--brand-primary) 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
}

.user-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.user-dashboard-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.user-dashboard-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.user-dashboard-profile-text h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
}

.user-dashboard-eyebrow {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.user-dashboard-email {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.user-dashboard-phone {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.user-profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
}

.user-profile-avatar-preview--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.user-profile-avatar-upload {
    min-width: 0;
    flex: 1;
}

.user-profile-avatar-upload input[type="file"] {
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    color: #475569;
}

.user-profile-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.user-profile-field input,
.user-profile-field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}

.user-profile-field input:focus,
.user-profile-field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.user-profile-input--readonly {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.user-profile-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.user-profile-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
}

.user-profile-meta {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.user-profile-meta-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.user-profile-meta strong {
    color: #0f172a;
    font-size: 14px;
}

.user-profile-submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s;
}

.user-profile-submit:hover {
    filter: brightness(1.05);
}

.user-dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-dashboard-signout {
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.user-dashboard-signout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
}

.user-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.user-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.user-dashboard-sidebar {
    position: sticky;
    top: 20px;
}

.user-dashboard-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.user-dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.user-dashboard-panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--brand-primary);
}

.user-dashboard-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.user-dashboard-view-all {
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.user-dashboard-view-all:hover {
    color: #051456;
    text-decoration: none;
}

.user-dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.user-dashboard-quick-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.user-dashboard-quick-card:hover {
    transform: translateY(-2px);
    border-color: #c7d7f5;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
    text-decoration: none;
}

.user-dashboard-quick-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.user-dashboard-quick-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f5ff;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.user-dashboard-details {
    margin: 0;
}

.user-dashboard-details div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.user-dashboard-details div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.user-dashboard-details dt {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.user-dashboard-details dd {
    margin: 0;
    font-size: 14px;
    color: #0f172a;
    word-break: break-word;
}

.user-dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}

.user-dashboard-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.user-dashboard-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-dashboard-job-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.user-dashboard-job-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.user-dashboard-job-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}

.user-dashboard-job-list a:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

.user-dashboard-job-title {
    line-height: 1.5;
}

.user-dashboard-job-list time {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.user-dashboard-empty {
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 900px) {
    .user-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-dashboard-sidebar {
        position: static;
    }

    .user-dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .user-dashboard-hero {
        padding: 22px 18px;
    }

    .user-dashboard-profile {
        width: 100%;
    }

    .user-dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .user-dashboard-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .user-dashboard-job-list li {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-card h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: var(--brand-primary);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

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

.post-details-box {
    background: #f0f5ff;
    border: 1px solid #c7d7f5;
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0 20px;
}

.post-details-box h2 {
    margin: 0 0 12px;
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.post-details-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.post-details-table th,
.post-details-table td {
    border: 1px solid #e0ebff;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.post-details-table th {
    width: 34%;
    background: #f8fafc;
    color: var(--brand-primary);
}

.translation-notice {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
}

.translation-notice code {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

#google_translate_element {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
