:root {
    --hr-primary: #1a56db;
    --hr-primary-dark: #1342a8;
    --hr-primary-light: #e8f0fe;
    --hr-sidebar-bg: #0f172a;
    --hr-sidebar-hover: #1e293b;
    --hr-sidebar-active: #1a56db;
    --hr-sidebar-text: #94a3b8;
    --hr-sidebar-text-active: #f1f5f9;
    --hr-sidebar-width: 260px;
    --hr-topbar-height: 64px;
    --hr-page-bg: #f1f5f9;
    --hr-card-bg: #ffffff;
    --hr-border: #e2e8f0;
    --hr-text: #1e293b;
    --hr-text-muted: #64748b;
    --hr-success: #10b981;
    --hr-warning: #f59e0b;
    --hr-danger: #ef4444;
    --hr-info: #3b82f6;
    --hr-radius: 12px;
    --hr-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --hr-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--hr-text);
    background: var(--hr-page-bg);
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ===== SHELL LAYOUT ===== */
.hr-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.hr-sidebar {
    width: var(--hr-sidebar-width);
    background: var(--hr-sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.hr-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hr-logo-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.hr-logo-text {
    display: flex;
    flex-direction: column;
}

.hr-logo-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}

.hr-logo-sub {
    font-size: 10px;
    color: var(--hr-sidebar-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.hr-nav {
    flex: 1;
    padding: 12px 0;
}

.hr-nav-section {
    margin-bottom: 4px;
}

.hr-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 20px 4px;
}

.hr-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--hr-sidebar-text);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-size: 13.5px;
    border-radius: 0;
}

.hr-nav-item:hover {
    background: var(--hr-sidebar-hover);
    color: #e2e8f0;
    text-decoration: none;
}

.hr-nav-item.active {
    background: rgba(26,86,219,0.15);
    color: var(--hr-sidebar-text-active);
    border-right: 3px solid var(--hr-primary);
}

.hr-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.hr-nav-item span {
    flex: 1;
}

.hr-nav-badge {
    background: var(--hr-primary);
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.hr-nav-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 0;
}

.hr-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.hr-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.hr-user-card:hover { background: var(--hr-sidebar-hover); }

.hr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.hr-user-info { flex: 1; min-width: 0; }
.hr-user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-user-role { font-size: 11px; color: var(--hr-sidebar-text); }

/* ===== MAIN BODY ===== */
.hr-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ===== TOPBAR ===== */
.hr-topbar {
    height: var(--hr-topbar-height);
    background: white;
    border-bottom: 1px solid var(--hr-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    flex-shrink: 0;
    z-index: 50;
}

.hr-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hr-text);
    flex: 1;
}

.hr-topbar-actions { display: flex; align-items: center; gap: 8px; }

.hr-topbar-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--hr-border);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hr-text-muted);
    transition: all 0.15s;
    font-size: 16px;
}

.hr-topbar-btn:hover { background: var(--hr-page-bg); color: var(--hr-text); }

/* ===== CONTENT ===== */
.hr-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ===== PAGE HEADER ===== */
.hr-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hr-page-title { font-size: 22px; font-weight: 700; color: var(--hr-text); margin: 0; }
.hr-page-subtitle { font-size: 13px; color: var(--hr-text-muted); margin: 2px 0 0; }

/* ===== STAT CARDS ===== */
.hr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hr-stat-card {
    background: white;
    border-radius: var(--hr-radius);
    padding: 20px;
    box-shadow: var(--hr-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hr-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.hr-stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.hr-stat-icon.green { background: #f0fdf4; color: #10b981; }
.hr-stat-icon.amber { background: #fffbeb; color: #f59e0b; }
.hr-stat-icon.purple { background: #faf5ff; color: #8b5cf6; }
.hr-stat-icon.red { background: #fef2f2; color: #ef4444; }
.hr-stat-icon.teal { background: #f0fdfa; color: #14b8a6; }

.hr-stat-value { font-size: 28px; font-weight: 700; color: var(--hr-text); line-height: 1; }
.hr-stat-label { font-size: 12px; color: var(--hr-text-muted); margin-top: 3px; }

/* ===== CARDS ===== */
.hr-card {
    background: white;
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.hr-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hr-card-title { font-size: 15px; font-weight: 600; color: var(--hr-text); margin: 0; }
.hr-card-body { padding: 20px; }
.hr-card-footer { padding: 12px 20px; border-top: 1px solid var(--hr-border); background: #f8fafc; }

/* ===== DASHBOARD GRID ===== */
.hr-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.hr-dashboard-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ===== LISTS ===== */
.hr-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hr-border);
}
.hr-list-item:last-child { border-bottom: none; }

.hr-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.hr-list-content { flex: 1; min-width: 0; }
.hr-list-title { font-size: 13.5px; font-weight: 600; color: var(--hr-text); margin: 0 0 2px; }
.hr-list-meta { font-size: 12px; color: var(--hr-text-muted); }

/* ===== BADGES ===== */
.hr-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.hr-badge.blue { background: #eff6ff; color: #2563eb; }
.hr-badge.green { background: #f0fdf4; color: #16a34a; }
.hr-badge.amber { background: #fffbeb; color: #d97706; }
.hr-badge.red { background: #fef2f2; color: #dc2626; }
.hr-badge.purple { background: #faf5ff; color: #7c3aed; }
.hr-badge.gray { background: #f1f5f9; color: #475569; }
.hr-badge.teal { background: #f0fdfa; color: #0d9488; }

/* ===== BUTTONS ===== */
.btn-hr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-hr-primary { background: var(--hr-primary); color: white; }
.btn-hr-primary:hover { background: var(--hr-primary-dark); color: white; }
.btn-hr-outline { background: white; color: var(--hr-text); border: 1px solid var(--hr-border); }
.btn-hr-outline:hover { background: var(--hr-page-bg); }
.btn-hr-danger { background: var(--hr-danger); color: white; }
.btn-hr-danger:hover { background: #dc2626; }
.btn-hr-sm { padding: 5px 12px; font-size: 12px; }

/* ===== TABLE ===== */
.hr-table { width: 100%; border-collapse: collapse; }
.hr-table th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--hr-text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--hr-border); background: #f8fafc; }
.hr-table td { padding: 12px 16px; font-size: 13.5px; color: var(--hr-text); border-bottom: 1px solid var(--hr-border); }
.hr-table tr:last-child td { border-bottom: none; }
.hr-table tr:hover td { background: #f8fafc; }

/* ===== FORM ===== */
.hr-form-group { margin-bottom: 16px; }
.hr-label { display: block; font-size: 13px; font-weight: 500; color: var(--hr-text); margin-bottom: 6px; }
.hr-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--hr-text);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.hr-input:focus { border-color: var(--hr-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.hr-select { width: 100%; padding: 9px 12px; border: 1px solid var(--hr-border); border-radius: 8px; font-size: 13.5px; color: var(--hr-text); background: white; outline: none; cursor: pointer; }
.hr-select:focus { border-color: var(--hr-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.hr-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--hr-border); border-radius: 8px; font-size: 13.5px; color: var(--hr-text); background: white; resize: vertical; outline: none; min-height: 90px; }
.hr-textarea:focus { border-color: var(--hr-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }

/* ===== SEARCH BAR ===== */
.hr-search-bar {
    position: relative;
    max-width: 320px;
}
.hr-search-bar i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hr-text-muted);
    font-size: 15px;
}
.hr-search-bar input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    background: white;
}
.hr-search-bar input:focus { border-color: var(--hr-primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }

/* ===== PROGRESS ===== */
.hr-progress { background: #e2e8f0; border-radius: 4px; height: 6px; overflow: hidden; }
.hr-progress-bar { height: 100%; border-radius: 4px; background: var(--hr-primary); transition: width 0.3s; }
.hr-progress-bar.green { background: var(--hr-success); }

/* ===== SURVEY CARD ===== */
.hr-survey-card {
    background: white;
    border-radius: var(--hr-radius);
    padding: 20px;
    box-shadow: var(--hr-shadow);
    border-left: 4px solid var(--hr-primary);
    transition: box-shadow 0.15s;
}
.hr-survey-card:hover { box-shadow: var(--hr-shadow-md); }
.hr-survey-card.completed { border-left-color: var(--hr-success); }
.hr-survey-card.expired { border-left-color: #e2e8f0; opacity: 0.7; }

/* ===== EVENT CARD ===== */
.hr-event-card {
    background: white;
    border-radius: var(--hr-radius);
    padding: 16px;
    box-shadow: var(--hr-shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: box-shadow 0.15s;
}
.hr-event-card:hover { box-shadow: var(--hr-shadow-md); }

.hr-event-date {
    width: 52px;
    height: 56px;
    background: var(--hr-primary-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hr-primary);
}
.hr-event-date-day { font-size: 22px; font-weight: 700; line-height: 1; }
.hr-event-date-mon { font-size: 10px; font-weight: 600; text-transform: uppercase; }

/* ===== NEWS CARD ===== */
.hr-news-card {
    background: white;
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.hr-news-card:hover { box-shadow: var(--hr-shadow-md); }
.hr-news-card-body { padding: 16px; flex: 1; }
.hr-news-card-footer { padding: 10px 16px; border-top: 1px solid var(--hr-border); background: #f8fafc; }

/* ===== VIDEO CARD ===== */
.hr-video-card {
    background: white;
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.hr-video-card:hover { box-shadow: var(--hr-shadow-md); }
.hr-video-thumbnail {
    height: 160px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hr-video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.hr-video-play {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--hr-primary);
}
.hr-video-card-body { padding: 14px; }

/* ===== MODALS ===== */
.hr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hr-modal {
    background: white;
    border-radius: var(--hr-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}
.hr-modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--hr-border); display: flex; align-items: center; justify-content: space-between; }
.hr-modal-title { font-size: 16px; font-weight: 700; color: var(--hr-text); margin: 0; }
.hr-modal-close { background: none; border: none; font-size: 20px; color: var(--hr-text-muted); cursor: pointer; padding: 0; display: flex; }
.hr-modal-body { padding: 20px 24px; }
.hr-modal-footer { padding: 16px 24px; border-top: 1px solid var(--hr-border); display: flex; gap: 8px; justify-content: flex-end; }

/* ===== ALERTS ===== */
.hr-alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.hr-alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hr-alert.danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hr-alert.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.hr-alert.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ===== EMPTY STATE ===== */
.hr-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--hr-text-muted);
}
.hr-empty i { font-size: 48px; opacity: 0.3; margin-bottom: 12px; display: block; }
.hr-empty-title { font-size: 15px; font-weight: 600; color: var(--hr-text); margin-bottom: 4px; }

/* ===== LOADING ===== */
.hr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--hr-text-muted);
    gap: 10px;
}

/* ===== LOGIN PAGE ===== */
.hr-login-shell {
    min-height: 100vh;
    display: flex;
    background: var(--hr-page-bg);
}
.hr-login-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.hr-login-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}
.hr-login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}
.hr-login-brand { text-align: center; position: relative; z-index: 1; }
.hr-login-logo { width: 72px; height: 72px; background: rgba(255,255,255,0.15); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; color: white; margin: 0 auto 24px; }
.hr-login-brand-title { font-size: 36px; font-weight: 800; color: white; margin-bottom: 8px; }
.hr-login-brand-sub { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 40px; }
.hr-login-features { list-style: none; padding: 0; margin: 0; }
.hr-login-features li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 12px; }
.hr-login-features li i { color: #60a5fa; font-size: 16px; }

.hr-login-right {
    width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}
.hr-login-form-wrap { width: 100%; max-width: 360px; }
.hr-login-welcome { font-size: 26px; font-weight: 800; color: var(--hr-text); margin-bottom: 4px; }
.hr-login-hint { font-size: 14px; color: var(--hr-text-muted); margin-bottom: 32px; }

/* ===== TABS ===== */
.hr-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hr-border); margin-bottom: 20px; }
.hr-tab { padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: var(--hr-text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none; }
.hr-tab.active { color: var(--hr-primary); border-bottom-color: var(--hr-primary); }
.hr-tab:hover { color: var(--hr-text); }

/* ===== FILTERS ===== */
.hr-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hr-filter-btn { padding: 6px 14px; border: 1px solid var(--hr-border); border-radius: 20px; font-size: 12.5px; background: white; color: var(--hr-text-muted); cursor: pointer; transition: all 0.15s; }
.hr-filter-btn:hover { border-color: var(--hr-primary); color: var(--hr-primary); }
.hr-filter-btn.active { background: var(--hr-primary); color: white; border-color: var(--hr-primary); }

/* ===== PAGE GRIDS ===== */
.hr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== PROFILE ===== */
.hr-profile-header {
    background: linear-gradient(135deg, #0f172a 0%, #1a56db 100%);
    border-radius: var(--hr-radius);
    padding: 32px;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.hr-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

/* ===== RATING ===== */
.hr-rating { display: flex; gap: 4px; }
.hr-rating-star { font-size: 20px; cursor: pointer; color: #d1d5db; transition: color 0.1s; }
.hr-rating-star.active { color: #f59e0b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hr-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hr-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hr-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hr-login-left { display: none; }
    .hr-login-right { width: 100%; }
    .hr-stats-grid { grid-template-columns: 1fr 1fr; }
    .hr-dashboard-grid { grid-template-columns: 1fr; }
    .hr-grid-2, .hr-grid-3, .hr-grid-4 { grid-template-columns: 1fr; }
}

/* ===== VALIDATION ===== */
.valid.modified:not([type=checkbox]) { outline: 1px solid #10b981; }
.invalid { outline: 1px solid var(--hr-danger); }
.validation-message { color: var(--hr-danger); font-size: 12px; margin-top: 4px; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
    margin: 16px;
}
.blazor-error-boundary::after { content: "An error has occurred. Please reload." }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== SPINNER ===== */
.hr-spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--hr-border);
    border-top-color: var(--hr-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PUBLIC PORTAL ===== */
.pub-wrapper { min-height:100vh; display:flex; flex-direction:column; background:#f8fafc; }
.pub-header { background:#0f172a; position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(0,0,0,.3); }
.pub-header-inner { max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:64px; }
.pub-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.pub-logo-title { font-size:15px; font-weight:700; color:#fff; line-height:1.2; }
.pub-logo-sub { font-size:10px; color:#94a3b8; }
.pub-nav { display:flex; align-items:center; gap:4px; }
.pub-nav-link { color:#cbd5e1; text-decoration:none; padding:7px 12px; border-radius:8px; font-size:13px; display:flex; align-items:center; gap:6px; transition:all .15s; }
.pub-nav-link:hover,.pub-nav-link.active { background:rgba(255,255,255,.1); color:#fff; }
.pub-nav-btn { background:#1a56db; color:#fff !important; padding:7px 16px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; display:flex; align-items:center; gap:6px; margin-left:8px; transition:background .15s; }
.pub-nav-btn:hover { background:#1e40af; }
.pub-subnav-link { color:rgba(255,255,255,.65); text-decoration:none; padding:7px 14px; font-size:12px; font-weight:500; display:flex; align-items:center; gap:5px; white-space:nowrap; transition:all .15s; border-right:1px solid rgba(255,255,255,.08); }
.pub-subnav-link:hover { color:#fff; background:rgba(255,255,255,.08); }
.pub-main { flex:1; max-width:1200px; margin:0 auto; width:100%; padding:32px 24px; box-sizing:border-box; }
.pub-footer { background:#0f172a; margin-top:auto; }
.pub-footer-inner { max-width:1200px; margin:0 auto; padding:28px 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.pub-footer-links { display:flex; gap:16px; }
.pub-footer-links a { color:#94a3b8; text-decoration:none; font-size:13px; }
.pub-footer-links a:hover { color:#fff; }
.pub-hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%); border-radius:16px; padding:48px; color:#fff; margin-bottom:32px; }
.pub-card { background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.04); overflow:hidden; }
.pub-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.12); transform:translateY(-1px); transition:all .2s; }
.pub-section-title { font-size:20px; font-weight:700; color:#0f172a; margin:0 0 4px 0; }
.pub-section-sub { font-size:13px; color:#64748b; margin:0 0 24px 0; }
.pub-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.pub-badge-blue { background:#dbeafe; color:#1d4ed8; }
.pub-badge-green { background:#dcfce7; color:#166534; }
.pub-badge-amber { background:#fef3c7; color:#92400e; }
.pub-badge-red { background:#fee2e2; color:#991b1b; }
.pub-badge-gray { background:#f1f5f9; color:#475569; }
.pub-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 20px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; border:none; transition:all .15s; }
.pub-btn-primary { background:#1a56db; color:#fff; }
.pub-btn-primary:hover { background:#1e40af; color:#fff; }
.pub-btn-outline { background:transparent; color:#1a56db; border:1.5px solid #1a56db; }
.pub-btn-outline:hover { background:#1a56db; color:#fff; }
.pub-news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:20px; }
.pub-news-card { background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.08); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:inherit; transition:all .2s; }
.pub-news-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.12); transform:translateY(-2px); }
.pub-news-img { width:100%; height:180px; object-fit:cover; background:#e2e8f0; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:32px; }
.pub-news-body { padding:16px; flex:1; display:flex; flex-direction:column; }
.pub-news-headline { font-size:15px; font-weight:700; color:#0f172a; margin:8px 0 8px; line-height:1.4; }
.pub-news-excerpt { font-size:13px; color:#64748b; line-height:1.5; flex:1; }
.pub-news-meta { display:flex; align-items:center; justify-content:space-between; margin-top:12px; font-size:12px; color:#94a3b8; }
.pub-survey-card { background:#fff; border-radius:12px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.08); border-left:4px solid #1a56db; }
.pub-job-card { background:#fff; border-radius:12px; padding:20px 24px; box-shadow:0 1px 3px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; transition:all .2s; }
.pub-job-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
.pub-input { width:100%; padding:10px 14px; border:1.5px solid #e2e8f0; border-radius:8px; font-size:14px; box-sizing:border-box; transition:border .15s; outline:none; }
.pub-input:focus { border-color:#1a56db; }
.pub-label { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.pub-form-group { margin-bottom:16px; }
.pub-alert { padding:14px 16px; border-radius:10px; font-size:14px; margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.pub-alert-success { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.pub-alert-error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.pub-alert-warning { background:#fffbeb; color:#92400e; border:1px solid #fde68a; }

/* ===== JOB FLYER CARDS ===== */
.jfc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:24px; align-items:start; }
.jfc { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 3px 16px rgba(0,0,0,.10); display:flex; flex-direction:column; transition:transform .2s,box-shadow .2s; }
.jfc:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,.16); }
.jfc-hdr { background:linear-gradient(90deg,#7c3000 0%,#b45309 45%,#d97706 75%,#b45309 100%); padding:10px 14px; display:flex; align-items:center; gap:8px; }
.jfc-hdr-text { color:#fff; font-size:13px; font-weight:800; flex:1; text-align:center; line-height:1.3; }
.jfc-img-wrap { position:relative; height:220px; overflow:hidden; background:linear-gradient(160deg,#fef3c7,#fde68a,#fbbf24); display:flex; align-items:center; justify-content:center; }
.jfc-img-wrap img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.jfc-img-icon { font-size:72px; color:#d97706; opacity:.28; position:relative; z-index:1; }
.jfc-badge { position:absolute; top:10px; right:10px; background:linear-gradient(135deg,#92400e,#d97706); color:#fff; border-radius:7px; padding:5px 10px; text-align:center; line-height:1.5; z-index:2; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.jfc-badge .bl { font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; opacity:.85; }
.jfc-badge .bv { font-size:12px; font-weight:800; }
.jfc-sep { height:4px; background:linear-gradient(90deg,#7c3000,#d97706,#7c3000); }
.jfc-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; gap:8px; min-height:160px; }
.jfc-title { font-size:16px; font-weight:800; color:#0f172a; line-height:1.3; }
.jfc-project { font-size:12px; color:#64748b; line-height:1.5; }
.jfc-tags { display:flex; gap:5px; flex-wrap:wrap; }
.jfc-tag { font-size:11px; font-weight:600; padding:3px 8px; border-radius:5px; background:#fef3c7; color:#92400e; border:1px solid #fde68a; display:flex; align-items:center; gap:3px; }
.jfc-desc { font-size:12px; color:#475569; line-height:1.6; flex:1; }
.jfc-foot { padding:12px 16px; border-top:1px solid #fef3c7; display:flex; justify-content:center; }
.jfc-apply { display:flex; align-items:center; justify-content:center; gap:7px; background:linear-gradient(90deg,#92400e,#b45309); color:#fff; border:none; border-radius:8px; padding:10px 28px; font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; transition:opacity .15s; width:100%; }
.jfc-apply:hover { opacity:.88; color:#fff; }

/* ===== BLOCK EDITOR — ADMIN ============================================= */
.blk-topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; padding:16px 20px; background:#fff; border-radius:12px; box-shadow:0 1px 6px rgba(0,0,0,.07); }
.blk-editor-layout { display:grid; grid-template-columns:1fr 300px; gap:20px; align-items:start; }
@media(max-width:900px) { .blk-editor-layout { grid-template-columns:1fr; } }
.blk-canvas { display:flex; flex-direction:column; gap:10px; }
.blk-empty { background:#fff; border:2px dashed #e2e8f0; border-radius:16px; padding:56px 24px; text-align:center; color:#94a3b8; font-size:15px; font-weight:600; }
.blk-empty i { font-size:44px; display:block; margin-bottom:12px; }

.blk-item { background:#fff; border-radius:12px; border:1.5px solid #e2e8f0; overflow:hidden; transition:box-shadow .15s; }
.blk-item:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); }
.blk-item-active { border-color:#1a56db; box-shadow:0 0 0 3px rgba(26,86,219,.1); }
.blk-item-header { display:flex; align-items:center; gap:10px; padding:12px 14px; flex-wrap:wrap; }
.blk-drag-handle { cursor:grab; color:#94a3b8; font-size:18px; flex-shrink:0; padding:2px 4px; border-radius:4px; }
.blk-drag-handle:hover { color:#475569; background:#f1f5f9; }
.blk-drag-handle:active { cursor:grabbing; }
.blk-ghost { opacity:.35; background:#eff6ff; border:2px dashed #1a56db; }
.blk-chosen { box-shadow:0 8px 32px rgba(0,0,0,.15); }
.blk-summary { font-size:13px; color:#64748b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.blk-edit-body { padding:16px; border-top:1px solid #f1f5f9; background:#f8fafc; }
.blk-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:600px) { .blk-form-grid { grid-template-columns:1fr; } }
.blk-full { grid-column:1/-1; }

.blk-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; flex-shrink:0; }
.blk-blue   { background:#eff6ff; color:#1d4ed8; }
.blk-gray   { background:#f1f5f9; color:#475569; }
.blk-purple { background:#f5f3ff; color:#7c3aed; }
.blk-green  { background:#f0fdf4; color:#15803d; }
.blk-amber  { background:#fffbeb; color:#b45309; }
.blk-red    { background:#fff1f2; color:#be123c; }

.blk-sidebar { background:#fff; border-radius:12px; border:1.5px solid #e2e8f0; padding:20px; position:sticky; top:80px; }
.blk-sidebar-title { font-size:14px; font-weight:700; color:#0f172a; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.blk-add-btn { width:100%; display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:8px; border:1px solid #e2e8f0; background:#fff; cursor:pointer; margin-bottom:6px; transition:background .12s; font-size:13px; appearance:none; -webkit-appearance:none; text-align:left; }
.blk-add-btn:hover { background:#f8fafc; border-color:#1a56db; }

/* ===== PUBLIC BLOCK RENDERING =========================================== */
.pub-block-hero { padding:clamp(40px,8vw,80px) clamp(16px,5vw,48px); display:flex; justify-content:center; border-radius:16px; margin-bottom:28px; }
.pub-block-text { font-size:15px; color:#334155; line-height:1.85; margin-bottom:28px; white-space:pre-wrap; }
.pub-block-h3 { font-size:20px; font-weight:700; color:#0f172a; margin:0 0 10px; }
.pub-block-body { font-size:14px; color:#475569; line-height:1.8; margin:0; white-space:pre-wrap; }

.pub-block-imgtext { display:grid; grid-template-columns:1fr 1fr; gap:clamp(16px,4vw,40px); align-items:center; margin-bottom:28px; }
.pub-block-imgtext-rev { direction:rtl; }
.pub-imgtext-img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; direction:ltr; }
.pub-imgtext-content { direction:ltr; }
@media(max-width:640px) { .pub-block-imgtext { grid-template-columns:1fr; } .pub-block-imgtext-rev { direction:ltr; } }

.pub-block-gallery { display:grid; grid-template-columns:repeat(var(--gc,3),1fr); gap:10px; margin-bottom:28px; }
@media(max-width:640px) { .pub-block-gallery { grid-template-columns:repeat(2,1fr); } }
.pub-gallery-item { border-radius:10px; overflow:hidden; aspect-ratio:1; background:#f1f5f9; }
.pub-gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .2s; }
.pub-gallery-item:hover img { transform:scale(1.04); }

.pub-block-cards { display:grid; grid-template-columns:repeat(var(--cc,3),1fr); gap:16px; margin-bottom:28px; }
@media(max-width:768px) { .pub-block-cards { grid-template-columns:repeat(2,1fr); } }
@media(max-width:440px) { .pub-block-cards { grid-template-columns:1fr; } }
.pub-card-item { background:#fff; border-radius:14px; padding:24px 20px; text-align:center; border:1px solid #f1f5f9; box-shadow:0 2px 10px rgba(0,0,0,.06); transition:transform .15s,box-shadow .15s; }
.pub-card-item:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.1); }
.pub-card-item-title { font-size:15px; font-weight:700; color:#0f172a; margin-bottom:8px; }
.pub-card-item-body { font-size:13px; color:#64748b; line-height:1.6; }

.pub-block-video { margin-bottom:28px; }
.pub-video-wrap { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:12px; }
.pub-video-wrap iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }
.pub-video-caption { text-align:center; font-size:13px; color:#64748b; margin-top:8px; }

.pub-block-cta { margin-bottom:28px; padding:8px 0; }

/* ===== HOMEPAGE SECTIONS REDESIGN ======================================= */
.pub-section-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
@media(max-width:480px) { .pub-section-cards { grid-template-columns:repeat(2,1fr); } }
.pub-section-card-link { text-decoration:none; }
.pub-section-card { border-radius:14px; padding:20px 16px; text-align:center; cursor:pointer; transition:transform .15s,box-shadow .15s; border:1px solid rgba(255,255,255,.15); }
.pub-section-card:hover { transform:translateY(-4px); box-shadow:0 10px 28px rgba(0,0,0,.12); }
.pub-section-card-icon { font-size:30px; margin-bottom:10px; }
.pub-section-card-label { font-size:12px; font-weight:700; line-height:1.3; }

/* ===== MOBILE GLOBAL FIXES ============================================== */
@media(max-width:768px) {
  .pub-header-inner { flex-wrap:wrap; gap:8px; padding:0 16px; height:auto; padding-top:10px; padding-bottom:10px; }
  .pub-nav { flex-wrap:wrap; gap:4px; justify-content:flex-end; }
  .pub-nav-link { font-size:12px; padding:5px 8px; }
  .pub-main { padding:20px 16px; }
  .pub-hero { padding:32px 20px; }
  .pub-footer-inner { flex-direction:column; gap:16px; text-align:center; padding:24px 16px; }
  .pub-footer-links { justify-content:center; flex-wrap:wrap; }
}
@media(max-width:480px) {
  .pub-subnav-link { font-size:11px; padding:6px 10px; }
  .jfc-grid { grid-template-columns:1fr; }
}

/* ===== REDESIGN 2026 — HOMEPAGE ========================================= */

/* Stats row */
.pub-stat-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:32px; }
.pub-stat-card { background:#fff; border-radius:14px; padding:20px 22px; box-shadow:0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.04); display:flex; align-items:center; gap:14px; text-decoration:none; color:inherit; transition:transform .15s,box-shadow .15s; }
.pub-stat-card:hover { transform:translateY(-2px); box-shadow:0 4px 20px rgba(0,0,0,.12); }
.pub-stat-card-icon { width:50px; height:50px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.pub-stat-card-icon.blue { background:#eff6ff; color:#1a56db; }
.pub-stat-card-icon.green { background:#f0fdf4; color:#10b981; }
.pub-stat-card-icon.amber { background:#fffbeb; color:#b45309; }
.pub-stat-card-value { font-size:30px; font-weight:800; color:#0f172a; line-height:1; }
.pub-stat-card-label { font-size:12px; color:#64748b; margin-top:3px; font-weight:500; }

/* Section cards with description */
.pub-section-cards-v2 { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:12px; }
@media(max-width:540px) { .pub-section-cards-v2 { grid-template-columns:repeat(2,1fr); } }
.pub-section-card-v2 { border-radius:14px; padding:20px 16px 18px; text-align:center; cursor:pointer; transition:transform .15s,box-shadow .15s; text-decoration:none; display:block; border:1px solid rgba(0,0,0,.06); }
.pub-section-card-v2:hover { transform:translateY(-4px); box-shadow:0 10px 28px rgba(0,0,0,.12); }
.pub-section-card-v2-icon { font-size:28px; margin-bottom:8px; }
.pub-section-card-v2-label { font-size:13px; font-weight:700; line-height:1.3; margin-bottom:3px; }
.pub-section-card-v2-sub { font-size:11px; opacity:.65; line-height:1.3; }

/* Featured news (hero card) */
.pub-news-featured { display:grid; grid-template-columns:3fr 2fr; border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.08),0 4px 20px rgba(0,0,0,.06); text-decoration:none; color:inherit; margin-bottom:16px; transition:transform .15s,box-shadow .15s; min-height:240px; }
.pub-news-featured:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(0,0,0,.12); }
.pub-news-featured-img { overflow:hidden; background:linear-gradient(135deg,#1e3a5f,#1a56db); position:relative; }
.pub-news-featured-img img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.pub-news-featured:hover .pub-news-featured-img img { transform:scale(1.03); }
.pub-news-featured-body { padding:24px 28px; display:flex; flex-direction:column; }
.pub-news-featured-headline { font-size:19px; font-weight:800; color:#0f172a; line-height:1.3; margin:10px 0 10px; }
.pub-news-featured-excerpt { font-size:13px; color:#475569; line-height:1.7; flex:1; }
.pub-news-featured-read { font-size:13px; font-weight:700; color:#1a56db; margin-top:16px; display:inline-block; }

/* Small news row */
.pub-news-sm-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.pub-news-sm { background:#fff; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.07); overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:transform .15s,box-shadow .15s; }
.pub-news-sm:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,.1); }
.pub-news-sm-img { height:140px; overflow:hidden; background:linear-gradient(135deg,#1e3a5f,#1a56db); flex-shrink:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.25); font-size:40px; }
.pub-news-sm-img img { width:100%; height:100%; object-fit:cover; }
.pub-news-sm-body { padding:12px 14px; flex:1; display:flex; flex-direction:column; }
.pub-news-sm-headline { font-size:13px; font-weight:700; color:#0f172a; line-height:1.4; margin-bottom:8px; flex:1; }
.pub-news-sm-meta { font-size:11px; color:#94a3b8; }

/* Compact job list */
.pub-job-list { display:flex; flex-direction:column; gap:10px; }
.pub-job-list-item { background:#fff; border-radius:12px; padding:14px 18px; box-shadow:0 1px 3px rgba(0,0,0,.07); display:flex; align-items:center; gap:14px; }
.pub-job-list-icon { width:42px; height:42px; border-radius:10px; background:#fffbeb; display:flex; align-items:center; justify-content:center; font-size:18px; color:#b45309; flex-shrink:0; }
.pub-job-list-info { flex:1; min-width:0; }
.pub-job-list-title { font-size:14px; font-weight:700; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pub-job-list-meta { font-size:12px; color:#64748b; margin-top:2px; display:flex; gap:10px; flex-wrap:wrap; }
.pub-job-list-apply { background:#1a56db; color:#fff; padding:7px 16px; border-radius:8px; font-size:12px; font-weight:700; white-space:nowrap; text-decoration:none; flex-shrink:0; transition:background .15s; }
.pub-job-list-apply:hover { background:#1e40af; color:#fff; }
.pub-refer-banner { background:linear-gradient(90deg,#fff7ed,#fef3c7); border:1px solid #fde68a; border-radius:12px; padding:12px 18px; display:flex; align-items:center; gap:12px; margin-top:12px; }
.pub-refer-banner-icon { font-size:20px; color:#b45309; flex-shrink:0; }
.pub-refer-banner-text { flex:1; font-size:13px; font-weight:500; color:#92400e; }
.pub-refer-banner a { color:#b45309; font-weight:700; text-decoration:none; }

/* ===== REDESIGN 2026 — ARTICLE LIST ===================================== */
.pub-art-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.pub-art-search { position:relative; min-width:200px; }
.pub-art-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:14px; }
.pub-art-search input { width:100%; padding:9px 12px 9px 34px; border:1.5px solid #e2e8f0; border-radius:10px; font-size:13px; outline:none; transition:border .15s; background:#fff; }
.pub-art-search input:focus { border-color:#1a56db; }

/* Featured article */
.pub-art-featured { display:grid; grid-template-columns:3fr 2fr; border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.08),0 4px 20px rgba(0,0,0,.06); text-decoration:none; color:inherit; margin-bottom:28px; transition:transform .15s,box-shadow .15s; min-height:280px; }
.pub-art-featured:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(0,0,0,.12); }
.pub-art-featured-img { overflow:hidden; background:linear-gradient(135deg,#1e3a5f,#1a56db); position:relative; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.2); font-size:80px; }
.pub-art-featured-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pub-art-featured-body { padding:32px; display:flex; flex-direction:column; }
.pub-art-featured-title { font-size:22px; font-weight:800; color:#0f172a; line-height:1.3; margin:10px 0 14px; }
.pub-art-featured-excerpt { font-size:14px; color:#475569; line-height:1.8; flex:1; }
.pub-art-featured-meta { margin-top:20px; display:flex; align-items:center; justify-content:space-between; }
.pub-art-featured-read { font-size:13px; font-weight:700; color:#1a56db; }

/* Article grid */
.pub-art-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.pub-art-card { background:#fff; border-radius:14px; box-shadow:0 1px 3px rgba(0,0,0,.08); overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:transform .15s,box-shadow .15s; }
.pub-art-card:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(0,0,0,.12); }
.pub-art-card-img { height:185px; overflow:hidden; background:linear-gradient(135deg,#1e3a5f,#1a56db); flex-shrink:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.2); font-size:48px; position:relative; }
.pub-art-card-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.pub-art-card:hover .pub-art-card-img img { transform:scale(1.04); }
.pub-art-card-body { padding:16px 18px 18px; flex:1; display:flex; flex-direction:column; }
.pub-art-card-title { font-size:14px; font-weight:700; color:#0f172a; line-height:1.4; margin:8px 0 8px; flex:1; }
.pub-art-card-meta { display:flex; align-items:center; justify-content:space-between; font-size:11px; color:#94a3b8; margin-top:6px; }
.pub-art-card-read { font-size:12px; font-weight:700; color:#1a56db; }

/* Load more */
.pub-loadmore { text-align:center; margin-top:28px; }
.pub-loadmore-btn { background:#fff; border:1.5px solid #e2e8f0; border-radius:10px; padding:10px 28px; font-size:13px; font-weight:600; color:#475569; cursor:pointer; transition:all .15s; }
.pub-loadmore-btn:hover { border-color:#1a56db; color:#1a56db; }

/* Empty state */
.pub-empty-state { text-align:center; padding:60px 20px; color:#94a3b8; }
.pub-empty-state i { font-size:56px; display:block; margin-bottom:16px; opacity:.4; }
.pub-empty-state-title { font-size:16px; font-weight:600; color:#475569; margin-bottom:6px; }
.pub-empty-state-sub { font-size:13px; }

/* ===== REDESIGN 2026 — ARTICLE DETAIL =================================== */
.pub-detail-cover { position:relative; height:clamp(200px,32vw,380px); overflow:hidden; border-radius:0 0 20px 20px; margin:-32px -24px 0; }
.pub-detail-cover img { width:100%; height:100%; object-fit:cover; }
.pub-detail-cover-no-img { background:linear-gradient(135deg,#0f172a 0%,#1a56db 100%); }
.pub-detail-cover-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(15,23,42,.88) 0%,rgba(15,23,42,.45) 50%,rgba(15,23,42,.05) 100%); }
.pub-detail-cover-content { position:absolute; bottom:0; left:0; right:0; padding:clamp(16px,4vw,36px); }
.pub-detail-cover-title { font-size:clamp(20px,3.5vw,34px); font-weight:800; color:#fff; line-height:1.2; margin:10px 0 0; }

/* Two-column detail layout */
.pub-detail-layout { display:grid; grid-template-columns:1fr 260px; gap:32px; margin-top:32px; align-items:start; }
.pub-detail-content { min-width:0; font-size:16px; line-height:1.85; color:#334155; }
.pub-detail-sidebar { position:sticky; top:80px; }
.pub-detail-meta-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.07); margin-bottom:16px; }
.pub-detail-meta-label { font-size:10px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.07em; margin-bottom:4px; }
.pub-detail-meta-value { font-size:13px; color:#334155; margin-bottom:14px; line-height:1.5; }
.pub-detail-meta-value:last-child { margin-bottom:0; }
.pub-detail-meta-tags { display:flex; gap:5px; flex-wrap:wrap; }
.pub-detail-meta-tag { font-size:11px; font-weight:600; padding:3px 10px; border-radius:10px; background:#eff6ff; color:#1d4ed8; }

/* Block: quote/callout */
.pub-block-quote { border-left:4px solid; padding:16px 20px; border-radius:0 12px 12px 0; margin-bottom:28px; }
.pub-block-quote.blue { border-color:#3b82f6; background:#eff6ff; }
.pub-block-quote.green { border-color:#10b981; background:#f0fdf4; }
.pub-block-quote.amber { border-color:#f59e0b; background:#fffbeb; }
.pub-block-quote.red { border-color:#ef4444; background:#fef2f2; }
.pub-block-quote-content { font-size:15px; line-height:1.8; color:#1e293b; white-space:pre-wrap; }

/* Related articles */
.pub-related { margin-top:48px; padding-top:28px; border-top:1px solid #f1f5f9; }
.pub-related-title { font-size:17px; font-weight:700; color:#0f172a; margin:0 0 18px; }
.pub-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.pub-related-card { background:#fff; border-radius:12px; overflow:hidden; text-decoration:none; color:inherit; display:flex; gap:12px; padding:12px; box-shadow:0 1px 3px rgba(0,0,0,.07); transition:box-shadow .15s; align-items:flex-start; }
.pub-related-card:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.pub-related-img { width:68px; height:68px; border-radius:8px; object-fit:cover; flex-shrink:0; background:#e2e8f0; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:22px; overflow:hidden; }
.pub-related-img img { width:100%; height:100%; object-fit:cover; }
.pub-related-title-text { font-size:12px; font-weight:600; color:#0f172a; line-height:1.4; }
.pub-related-date { font-size:11px; color:#94a3b8; margin-top:4px; }

/* Gallery lightbox */
.pub-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:9999; display:flex; align-items:center; justify-content:center; padding:24px; }
.pub-lightbox img { max-width:100%; max-height:calc(100vh - 80px); object-fit:contain; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.4); }
.pub-lightbox-close { position:absolute; top:16px; right:16px; background:rgba(255,255,255,.12); border:none; color:#fff; font-size:20px; width:42px; height:42px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.pub-lightbox-close:hover { background:rgba(255,255,255,.25); }
.pub-gallery-item { cursor:zoom-in; transition:opacity .15s; }
.pub-gallery-item:hover { opacity:.9; }

/* Lazy video */
.pub-video-lazy { position:relative; cursor:pointer; border-radius:12px; overflow:hidden; margin-bottom:28px; }
.pub-video-lazy-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; background:#1e3a5f; }
.pub-video-lazy-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.28); transition:background .15s; }
.pub-video-lazy:hover .pub-video-lazy-overlay { background:rgba(0,0,0,.45); }
.pub-video-lazy-play { width:64px; height:64px; background:rgba(255,255,255,.92); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; color:#0f172a; padding-left:4px; }
.pub-video-caption { text-align:center; font-size:13px; color:#64748b; margin-top:8px; }

/* ===== REDESIGN 2026 — BLOCK EDITOR ===================================== */
.blk-canvas-full { max-width:820px; margin:0 auto; }

/* Insert zone */
.blk-insert-zone { display:flex; align-items:center; gap:8px; padding:4px 0; opacity:0; transition:opacity .2s; min-height:24px; }
.blk-insert-zone:hover, .blk-insert-zone.blk-insert-active { opacity:1; }
.blk-canvas-full:hover .blk-insert-zone { opacity:.4; }
.blk-canvas-full:hover .blk-insert-zone:hover { opacity:1; }
.blk-insert-btn { flex:1; height:24px; background:transparent; border:1.5px dashed #cbd5e1; border-radius:8px; font-size:12px; color:#94a3b8; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; transition:all .15s; }
.blk-insert-btn:hover { border-color:#1a56db; color:#1a56db; background:#f0f7ff; }
.blk-insert-btn-end { height:38px; border-radius:10px; font-size:13px; font-weight:600; margin-top:8px; }

/* Type picker */
.blk-type-picker { background:#fff; border:1.5px solid #e2e8f0; border-radius:12px; padding:12px 14px; display:flex; flex-wrap:wrap; gap:8px; margin:4px 0; box-shadow:0 4px 20px rgba(0,0,0,.1); align-items:center; }
.blk-type-btn { display:flex; align-items:center; gap:7px; padding:7px 13px; border-radius:8px; border:1px solid #e2e8f0; background:#f8fafc; cursor:pointer; font-size:12.5px; color:#374151; font-weight:500; transition:all .12s; white-space:nowrap; }
.blk-type-btn:hover { background:#eff6ff; border-color:#1a56db; color:#1a56db; }
.blk-type-picker-close { margin-left:auto; background:none; border:none; color:#94a3b8; font-size:18px; cursor:pointer; padding:4px; border-radius:6px; display:flex; align-items:center; }
.blk-type-picker-close:hover { color:#0f172a; background:#f1f5f9; }

/* Gallery thumbnails in editor */
.blk-gallery-thumbs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.blk-gallery-thumb { position:relative; width:72px; height:72px; border-radius:8px; overflow:hidden; border:2px solid #e2e8f0; }
.blk-gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.blk-gallery-thumb-del { position:absolute; top:2px; right:2px; background:rgba(239,68,68,.85); color:#fff; border:none; border-radius:4px; width:18px; height:18px; font-size:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }

/* Quote color swatches */
.blk-color-swatch { width:34px; height:34px; border-radius:8px; border:3px solid transparent; cursor:pointer; transition:border-color .1s; }
.blk-color-swatch.active { border-color:#0f172a !important; }

/* ── Image+Text multi-column layout ─────────────────────────────────────── */
.pub-imgtext-cols { display:grid; gap:20px; align-items:start; }
.pub-imgtext-cols-1 { grid-template-columns:1fr; }
.pub-imgtext-cols-2 { grid-template-columns:1fr 1fr; }
.pub-imgtext-cols-3 { grid-template-columns:1fr 1fr 1fr; }
.pub-imgtext-col { font-size:15px; color:#334155; line-height:1.75; }

/* ── Public filter buttons ──────────────────────────────────────────────── */
.pub-filter-btn { padding:7px 16px; border-radius:8px; border:1.5px solid #e2e8f0; background:#fff; color:#64748b; font-size:13px; font-weight:600; cursor:pointer; transition:all .15s; }
.pub-filter-btn:hover { border-color:#1a56db; color:#1a56db; }
.pub-filter-btn.active { background:#1a56db; color:#fff; border-color:#1a56db; }

/* ── Extra badge colors ──────────────────────────────────────────────────── */
.pub-badge-red   { background:#fef2f2; color:#dc2626; }
.pub-badge-green { background:#f0fdf4; color:#16a34a; }
.pub-badge-gray  { background:#f1f5f9; color:#64748b; }

/* ── İK Hizmetleri public section ───────────────────────────────────────── */
.pub-hr-services { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-bottom:40px; }
.pub-hr-service-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:22px 16px; border-radius:14px; background:#fff; border:1.5px solid #e2e8f0; text-decoration:none; color:#0f172a; transition:transform .15s,box-shadow .15s,border-color .15s; }
.pub-hr-service-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.08); border-color:#1a56db; }
.pub-hr-service-card-icon { font-size:32px; margin-bottom:10px; }
.pub-hr-service-card-label { font-size:14px; font-weight:700; margin-bottom:4px; }
.pub-hr-service-card-sub { font-size:12px; color:#64748b; line-height:1.4; }

/* ── Public document list ────────────────────────────────────────────────── */
.pub-doc-list { display:flex; flex-direction:column; gap:10px; margin-bottom:32px; }
.pub-doc-item { display:flex; align-items:center; gap:16px; padding:16px 20px; background:#fff; border:1px solid #e2e8f0; border-radius:12px; }
.pub-doc-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.pub-doc-icon.red   { background:#fef2f2; color:#dc2626; }
.pub-doc-icon.blue  { background:#eff6ff; color:#1d4ed8; }
.pub-doc-icon.green { background:#f0fdf4; color:#16a34a; }
.pub-doc-icon.amber { background:#fffbeb; color:#b45309; }
.pub-doc-info { flex:1; min-width:0; }
.pub-doc-name { font-size:15px; font-weight:700; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pub-doc-desc { font-size:12px; color:#64748b; margin-top:2px; }
.pub-doc-meta { display:flex; gap:8px; margin-top:6px; flex-wrap:wrap; align-items:center; }

/* Responsive */
@media(max-width:900px) {
  .pub-detail-layout { grid-template-columns:1fr; }
  .pub-detail-sidebar { position:static; }
  .pub-art-grid { grid-template-columns:repeat(2,1fr); }
  .pub-news-sm-row { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px) {
  .pub-news-featured { grid-template-columns:1fr; min-height:auto; }
  .pub-news-featured-img { height:180px; }
  .pub-art-featured { grid-template-columns:1fr; min-height:auto; }
  .pub-art-featured-img { height:200px; }
  .pub-detail-cover { margin:-20px -16px 0; border-radius:0; }
  .pub-related-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:480px) {
  .pub-stat-cards { grid-template-columns:1fr 1fr; gap:10px; }
  .pub-stat-card { padding:14px 14px; gap:10px; }
  .pub-stat-card-value { font-size:24px; }
  .pub-art-grid { grid-template-columns:1fr; }
  .pub-news-sm-row { grid-template-columns:1fr; }
  .pub-related-grid { grid-template-columns:1fr; }
  .pub-imgtext-cols-2, .pub-imgtext-cols-3 { grid-template-columns:1fr; }
  .pub-hr-services { grid-template-columns:repeat(2,1fr); }
}

/* ── Block editor — language tab switcher ────────────────────────────────── */
.blk-lang-tabs { display:flex; gap:3px; }
.blk-lang-tab {
    padding:3px 10px; border-radius:6px; border:1px solid #e2e8f0;
    background:#fff; color:#64748b; font-size:11px; font-weight:700; cursor:pointer;
    transition:all .15s;
}
.blk-lang-tab.active { background:#1a56db; color:#fff; border-color:#1a56db; }
.blk-lang-tab:hover:not(.active) { background:#f1f5f9; }

/* ── Block editor — rich text toolbar ────────────────────────────────────── */
.blk-rte-toolbar {
    display:flex; gap:3px; padding:5px 8px; background:#f8fafc;
    border:1px solid #e2e8f0; border-bottom:none; border-radius:8px 8px 0 0;
    flex-wrap:wrap; align-items:center;
}
.blk-rte-separator { width:1px; height:18px; background:#e2e8f0; margin:0 2px; }
.blk-rte-btn {
    min-width:28px; height:28px; border-radius:5px; border:1px solid transparent;
    background:transparent; color:#374151; font-size:12px; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center; padding:0 5px;
    transition:all .15s; line-height:1;
}
.blk-rte-btn:hover { background:#eff6ff; border-color:#bfdbfe; color:#1a56db; }
.blk-rte-area { border-radius:0 0 8px 8px !important; border-top:none !important; font-family:monospace !important; font-size:13px !important; }

/* ── Divider block variants ──────────────────────────────────────────────── */
.pub-block-divider-line    { border:none; border-top:2px solid #e2e8f0; margin:32px 0; }
.pub-block-divider-thick   { border:none; border-top:5px solid #cbd5e1; margin:32px 0; border-radius:2px; }
.pub-block-divider-dashed  { border:none; border-top:2px dashed #94a3b8; margin:32px 0; }
.pub-block-divider-dotted  { border:none; border-top:2px dotted #94a3b8; margin:32px 0; }
.pub-block-divider-gradient { border:none; height:3px; margin:32px 0; background:linear-gradient(90deg,transparent,#1a56db 30%,#7c3aed 70%,transparent); border-radius:2px; }

/* ── Text block font variants ────────────────────────────────────────────── */
.pub-block-text[data-font="garamond"],
.pub-block-text[data-font="garamond"] * { font-family: Garamond, 'EB Garamond', Georgia, serif; }
.pub-block-text[data-font="calibri"],
.pub-block-text[data-font="calibri"]  * { font-family: Calibri, 'Gill Sans MT', 'Gill Sans', Verdana, sans-serif; }
.pub-block-text[data-font="times"],
.pub-block-text[data-font="times"]    * { font-family: 'Times New Roman', Times, serif; }
.pub-block-text[data-font="arial"],
.pub-block-text[data-font="arial"]    * { font-family: Arial, Helvetica, sans-serif; }
.pub-block-text[data-font="aptos"],
.pub-block-text[data-font="aptos"]    * { font-family: Aptos, 'Segoe UI', system-ui, sans-serif; }
