/* ===========================================
   ROR Job Board - Professional Design
   Clean, minimal, effective
   =========================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-dark: #4338ca;
    --text: #111827;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8f9fc;
    --border: #e5e7eb;
    --success: #059669;
    --error: #dc2626;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.dashboard-title,
.page-title,
.hero-title,
.hero-title-lg,
.section-title,
.card-title,
.job-title,
.job-header-title,
.job-section-title,
.cta-title,
.cta-title-lg,
.sidebar-title,
.table-title,
.empty-state-title,
.modal-title,
.featured-job-title,
.contact-card-title,
.logo-title,
.stat-card-value,
.admin-action-title {
    font-family: var(--font-heading);
}

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

a:hover {
    text-decoration: underline;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   Header / Navigation
   =========================================== */
.header {
    background: var(--bg);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text);
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: transparent;
    text-decoration: none;
}

.nav-link.active {
    color: var(--text);
    background: transparent;
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

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

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.user-btn:hover {
    background: var(--bg-alt);
}

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

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s;
    z-index: 50;
}

.user-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-name {
    font-weight: 600;
    font-size: 14px;
}

.dropdown-role {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.dropdown-item.danger {
    color: var(--error);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Notification Bell */
.notification-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
}

.notification-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
        transform: scale(1);
    }
}

/* ===== Mobile Drawer (styles only – layout handled in header.php inline CSS) ===== */

.mobile-menu-section {
    padding: 8px 0;
}

.mobile-menu-section-title {
    padding: 12px 20px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ck-mobile-drawer .mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: 52px;
}

.ck-mobile-drawer .mobile-link:hover,
.ck-mobile-drawer .mobile-link:active {
    background: #f3f4f6;
    color: #4f46e5;
}

.ck-mobile-drawer .mobile-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ck-mobile-drawer .mobile-link:hover svg,
.ck-mobile-drawer .mobile-link:active svg {
    color: #4f46e5;
}

.ck-mobile-drawer .mobile-link.active {
    background: rgba(79, 70, 229, 0.06);
    color: #4f46e5;
}

.ck-mobile-drawer .mobile-link.active svg {
    color: #4f46e5;
}

.ck-mobile-drawer .mobile-link.danger {
    color: #dc2626;
}

.ck-mobile-drawer .mobile-link.danger svg {
    color: #dc2626;
}

.ck-mobile-drawer .mobile-link .badge {
    margin-left: auto;
    background: #4f46e5;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px;
}

.mobile-menu-user {
    padding: 16px 20px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-avatar {
    width: 44px;
    height: 44px;
    background: #4f46e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-menu-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.mobile-menu-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-menu-user-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-user-role {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.mobile-menu-cta {
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 200;
        background: rgba(255, 255, 255, 0.97);
    }
    .header-inner {
        height: 64px;
        gap: 12px;
    }
    .logo {
        min-width: 0;
        gap: 8px;
    }
    .logo img {
        height: 30px;
    }
    .logo-text {
        min-width: 0;
    }
    .logo-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    .logo-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }
    .nav-links, .nav-actions {
        display: none;
    }
    .ck-hamburger {
        display: flex;
    }
    .mobile-menu-user {
        padding: 14px 16px;
    }
    .ck-mobile-drawer .mobile-link {
        padding: 13px 16px;
        gap: 10px;
        font-size: 14px;
    }
    .ck-mobile-drawer .mobile-link svg {
        width: 19px;
        height: 19px;
    }
    .mobile-menu-section-title {
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-divider {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: #ffffff;
    color: var(--text);
    padding: 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 8px;
    width: auto;
}

.footer-brand-name {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.footer-logo-text {
    margin: 0 0 10px 0;
}

.footer .logo-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.footer .logo-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 32px 0 24px;
    }
    .footer-brand {
        grid-column: span 2;
        text-align: left;
        padding-bottom: 4px;
    }
    .footer-brand img {
        margin: 0 0 8px;
    }
    .footer-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .footer-links li {
        margin-bottom: 6px;
    }
    .footer-links a {
        display: inline-block;
        padding: 6px 0;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        padding: 16px 0;
    }
    .footer-bottom div {
        display: flex;
        gap: 16px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .footer-bottom div a {
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0 20px;
        text-align: left;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer .logo-title {
        font-size: 16px;
    }
    .footer-links {
        display: grid;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
    }
    .logo-title {
        max-width: 150px;
        font-size: 12px;
    }
    .logo-subtitle {
        font-size: 9px;
    }
    .footer-grid {
        gap: 16px;
        text-align: left;
        padding: 24px 0 16px;
    }
    .footer-desc {
        font-size: 13px;
    }
    .footer-links {
        display: grid;
        gap: 2px;
    }
    .footer-links li {
        margin-bottom: 0;
    }
    .footer-bottom {
        padding-top: 14px;
    }
    .footer-bottom p {
        font-size: 12px;
    }
}

/* ===========================================
   Hero / Search
   =========================================== */
.hero {
    background: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    min-width: 160px;
}

.search-btn {
    padding: 12px 24px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-select {
        width: 100%;
    }
}

/* ===========================================
   Stats Bar
   =========================================== */
.stats-bar {
    background: var(--text);
    padding: 20px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 30px;
    }
    .stat-number {
        font-size: 24px;
    }
}

/* ===========================================
   Job Cards
   =========================================== */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
}

.section-link {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.job-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: block;
}

.job-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.job-department {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 12px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-muted);
}

.tag-featured {
    background: #fef3c7;
    color: #92400e;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ===========================================
   Job Detail
   =========================================== */
.job-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding: 32px 0;
}

.job-content {
    background: var(--bg);
}

.job-header {
    margin-bottom: 24px;
}

.job-header-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-header-dept {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.job-section {
    margin-bottom: 32px;
}

.job-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.job-section-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.job-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar-item {
    margin-bottom: 16px;
}

.sidebar-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sidebar-value {
    font-weight: 500;
}

.apply-btn {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .job-detail {
        grid-template-columns: 1fr;
    }
    .job-sidebar {
        position: static;
        order: -1;
    }
}

/* ===========================================
   Forms
   =========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================================
   Cards / Panels
   =========================================== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

a.card:hover,
.card.interactive:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===========================================
   Alerts
   =========================================== */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ===========================================
   Utilities
   =========================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

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

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    padding: 48px 0;
    background: var(--bg-alt);
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

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

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

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

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

/* Contact Info Card */
.contact-card {
    background: var(--primary);
    color: white;
    border-radius: 16px;
    padding: 24px;
}

.contact-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: var(--text);
    color: white;
    padding: 64px 0;
    text-align: center;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    color: #9ca3af;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   Enhanced Home Page Styles
   =========================================== */

/* Hero Enhanced */
.hero-enhanced {
    position: relative;
    padding: 100px 0 80px;
    background: url('../images/job-hero.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary);
    opacity: 0.03;
    transform: skewX(-12deg) translateX(20%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-title-lg {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle-lg {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Search Box Enhanced */
.search-box-enhanced {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 8px;
    max-width: 800px;
    margin: 0 auto;
    gap: 8px;
}

.search-input-wrapper {
    flex: 2;
    position: relative;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-input-lg {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    font-size: 15px;
    background: transparent;
    color: var(--text);
    border-radius: 8px;
}

.search-input-lg::placeholder {
    color: var(--text-muted);
}

.search-input-lg:focus {
    outline: none;
}

.search-select-lg {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-alt);
    color: var(--text);
    cursor: pointer;
    min-width: 160px;
}

.search-select-lg:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box-enhanced .btn {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .search-box-enhanced {
        flex-direction: column;
    }

    .search-select-lg {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* Hero Tags */
.hero-tags {
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-tags span {
    margin-right: 12px;
}

.hero-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    margin: 4px;
    transition: all 0.15s;
}

.hero-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* Stats Enhanced */
.stats-enhanced {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .stats-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

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

/* How It Works Section */
.how-it-works {
    padding: 70px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
}

.step-item {
    text-align: center;
    flex: 1;
    max-width: 220px;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--border));
    margin-top: 72px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .steps-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .step-item {
        flex: 0 0 calc(50% - 12px);
        max-width: none;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 480px) {
    .how-it-works {
        padding: 50px 0;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        flex: none;
        width: 100%;
        max-width: 280px;
    }
}

/* Section Badge */
.section-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Featured Jobs Grid */
.featured-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .featured-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.featured-job-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.featured-job-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
    text-decoration: none;
}

.featured-job-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
}

.featured-job-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding-right: 80px;
}

.featured-job-dept {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.featured-job-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.featured-job-salary {
    margin-bottom: 12px;
}

.salary-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--success);
}

.salary-not-specified {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.job-list-salary {
    margin-top: 8px;
}

.featured-job-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.job-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.job-list-main {
    flex: 1;
}

.job-list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.job-list-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.job-list-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-list-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-list-deadline {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .job-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .job-list-action {
        width: 100%;
        justify-content: space-between;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-alt);
    border-radius: 12px;
    transition: all 0.2s;
}

.feature-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Department Grid */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.dept-card {
    display: block;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.dept-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
}

.dept-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.dept-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.dept-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    line-height: 1.5;
}

.dept-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* CTA Enhanced */
.cta-enhanced {
    padding: 84px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    border-top: 1px solid #1f2937;
    text-align: center;
}

.cta-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
}

.cta-title-lg {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cta-text-lg {
    font-size: 17px;
    color: #cbd5e1;
    margin-bottom: 28px;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #0f172a;
}

.btn-outline-white:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* ===========================================
   Homepage Readability Polish
   =========================================== */
.hero-enhanced {
    padding: 108px 0 88px;
}

.hero-content {
    max-width: 980px;
}

.hero-title-lg {
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: #111827;
    text-shadow: none;
}

.hero-subtitle-lg {
    max-width: 760px;
    font-size: 19px;
    color: #1f2937;
    margin-bottom: 34px;
    text-shadow: none;
}

.search-box-enhanced {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-input-wrapper,
.search-select-lg {
    background: #f8fafc;
}

.search-input-lg,
.search-select-lg {
    font-size: 15px;
}

.hero-tags {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: #111827;
}

.how-it-works {
    background: #f8fafc;
    border: none;
    padding: 76px 0;
}

.steps-grid {
    gap: 14px;
}

.step-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 18px 22px;
}

.step-desc {
    color: #475569;
}

.step-connector {
    width: 28px;
    margin-top: 120px;
}

.featured-job-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-job-desc {
    flex: 1;
}

.featured-job-link {
    margin-top: auto;
}

.home-latest-section {
    background: #f8fafc;
}

.jobs-list {
    gap: 14px;
}

.job-list-item {
    border-radius: 12px;
    border: 1px solid #dbe3ee;
}

.job-list-action {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.home-intro {
    margin-bottom: 36px;
}

.home-intro-text {
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
    color: #475569;
}

.feature-card {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.feature-icon {
    margin: 0 0 18px 0;
}

.feature-text {
    color: #475569;
}

.home-dept-section {
    position: relative;
    background: #111827;
    color: white;
    overflow: hidden;
}

.home-dept-section::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: url('../images/departments.webp') center/cover no-repeat;
    filter: blur(6px);
    transform: scale(1.04);
    opacity: 0.55;
    z-index: 0;
}

.home-dept-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    z-index: 0;
}

.home-dept-section > .container {
    position: relative;
    z-index: 1;
}

.home-dept-header {
    margin-bottom: 32px;
}

.home-dept-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.home-dept-title {
    color: white;
}

.dept-card {
    min-height: 190px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

.dept-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.dept-count {
    font-size: 30px;
    color: var(--primary);
}

.dept-name {
    color: #111827;
}

.dept-desc {
    color: #475569;
}

.dept-link {
    color: var(--primary);
}

.cta-enhanced {
    padding: 88px 0;
}

.cta-content {
    max-width: 760px;
}

@media (max-width: 768px) {
    .hero-subtitle-lg {
        font-size: 16px;
        line-height: 1.65;
    }

    .step-item {
        max-width: 520px;
    }

    .job-list-action {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-enhanced {
        padding: 44px 0 38px;
    }

    .hero-title-lg {
        letter-spacing: -0.01em;
    }

    .step-item {
        padding: 20px 16px;
    }

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

    .feature-icon {
        margin: 0 auto 16px;
    }
}

/* Button sizes */
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Section header improvements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* ===========================================
   Micro Interactions & States
   =========================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Global transitions */
a, button, input, select, textarea, .card, .job-card, .tag, .nav-link {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 0.15s;
    transition-timing-function: ease-out;
}

/* Focus visible states - keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Button active states */
.btn:active {
    transform: scale(0.98);
}

.btn-primary:active {
    background: #1e40af;
}

.btn-secondary:active {
    background: #e5e7eb;
}

/* Button disabled state */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form input states */
.form-input,
.form-textarea,
.form-select {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: #d1d5db;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Input error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--error);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Job card hover lift */
.job-card {
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
    transform: translateY(-2px);
}

/* Card hover effect */
.card {
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Sidebar card subtle hover */
.sidebar-card {
    transition: box-shadow 0.2s;
}

.sidebar-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tag hover */
.tag {
    cursor: default;
}

a.tag,
button.tag {
    cursor: pointer;
}

a.tag:hover,
button.tag:hover {
    background: #e5e7eb;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* User menu hover */
.user-btn {
    transition: background 0.15s, border-color 0.15s;
}

.user-btn:hover {
    border-color: #d1d5db;
}

/* Notification badge pulse */
.notification-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dropdown smooth reveal */
.dropdown {
    transform-origin: top right;
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* Alert animations */
.alert {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert dismiss animation */
.alert.fade-out {
    animation: fadeOutUp 0.3s ease-out forwards;
}

@keyframes fadeOutUp {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Legacy mobile-nav-link (kept for backwards compatibility) */

/* Search box focus state */
.search-box {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Stats counter animation (requires JS to trigger) */
.stat-number {
    transition: transform 0.3s ease-out;
}

.stat-number.animate {
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll state */
.header {
    transition: box-shadow 0.2s;
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Footer link hover */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.2s ease-out;
}

.footer-links a:hover::after {
    width: 100%;
}

/* CTA button glow */
.cta .btn-primary {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.cta .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Contact card item hover */
.contact-item {
    transition: transform 0.15s;
}

.contact-item:hover {
    transform: translateX(4px);
}

/* Page load fade in */
main {
    animation: fadeIn 0.3s ease-out;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu divider */
.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.mobile-nav-link.primary {
    color: var(--primary);
    font-weight: 500;
}

.mobile-nav-link.danger {
    color: var(--error);
}

/* Chevron rotation in dropdowns */
.chevron {
    transition: transform 0.2s;
}

.user-menu:hover .chevron {
    transform: rotate(180deg);
}

/* ===========================================
   Admin / Dashboard Styles
   =========================================== */

/* Dashboard Layout */
.dashboard {
    padding: 32px 0;
}

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    color: var(--primary);
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.stat-card-change {
    font-size: 13px;
    margin-top: 8px;
}

.stat-card-change.positive {
    color: var(--success);
}

.stat-card-change.negative {
    color: var(--error);
}

/* Data Tables */
.table-wrapper {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

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

.table-title {
    font-size: 16px;
    font-weight: 600;
}

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

.table th,
.table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-alt);
}

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

.table tr:hover td {
    background: var(--bg-alt);
}

.table td {
    font-size: 14px;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
}

.badge-warning {
    background: #fffbeb;
    color: #92400e;
}

.badge-error {
    background: #fef2f2;
    color: #991b1b;
}

.badge-info {
    background: #eff6ff;
    color: #1e40af;
}

.badge-gray {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.badge-green {
    background: #ecfdf5;
    color: #065f46;
}

.badge-yellow {
    background: #fffbeb;
    color: #92400e;
}

/* Action Buttons in Tables */
.table-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-alt);
    color: var(--text);
    border-color: #d1d5db;
}

.btn-icon.danger:hover {
    background: #fef2f2;
    color: var(--error);
    border-color: #fecaca;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Responsive Tables for Mobile */
.table-scroll-container {
    position: relative;
}

.table-scroll-hint {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, var(--bg) 30%);
    padding: 8px 8px 8px 24px;
    pointer-events: none;
    z-index: 1;
}

.table-scroll-hint svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    .table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .table-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }

    .table-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

    .table-scroll-hint {
        display: block;
    }

    .table-scroll-container.scrolled .table-scroll-hint {
        display: none;
    }

    .table {
        min-width: 650px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .table-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Allow action buttons to wrap */
    .table-actions {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .table-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .table {
        min-width: 550px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .table th {
        font-size: 11px;
    }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 4px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--text);
}

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

/* Admin Sidebar Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    min-height: calc(100vh - 180px);
}

.admin-sidebar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.admin-nav-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-top: 16px;
}

.admin-nav-title:first-child {
    margin-top: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-nav-link:hover {
    color: var(--text);
    background: var(--bg-alt);
    text-decoration: none;
}

.admin-nav-link.active {
    color: var(--primary);
    background: #eff6ff;
}

.admin-nav-link svg {
    width: 18px;
    height: 18px;
}

.admin-content {
    min-width: 0;
}

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

    .admin-sidebar {
        position: static;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 56px 24px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.04));
    border-radius: 20px;
    padding: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--text-muted);
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-muted);
}

.file-upload-text strong {
    color: var(--primary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Application Status Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50%;
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-content {
    padding-left: 8px;
}

.timeline-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Notifications List */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.notification-item:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Action Cards */
.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.04));
    color: var(--primary);
}

.quick-action-icon svg {
    width: 20px;
    height: 20px;
}

/* Checkbox & Radio */
.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input,
.radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--text);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

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

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

.avatar-xxl {
    width: 120px;
    height: 120px;
    font-size: 40px;
}

/* Avatar Image */
img.avatar,
.avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

img.avatar.avatar-sm,
.avatar-image.avatar-sm {
    width: 32px;
    height: 32px;
}

img.avatar.avatar-lg,
.avatar-image.avatar-lg {
    width: 56px;
    height: 56px;
}

img.avatar.avatar-xl,
.avatar-image.avatar-xl {
    width: 80px;
    height: 80px;
}

img.avatar.avatar-xxl,
.avatar-image.avatar-xxl {
    width: 120px;
    height: 120px;
}

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.current-avatar {
    flex-shrink: 0;
}

.avatar-upload-controls {
    flex: 1;
}

@media (max-width: 600px) {
    .profile-picture-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar-upload-controls {
        width: 100%;
    }
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Width utilities */
.w-full { width: 100%; }
.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }

/* ===========================================
   Mobile Optimizations for Public Pages
   =========================================== */

/* Container mobile padding */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero-enhanced {
        padding: 60px 0 50px;
    }

    .hero-title-lg {
        font-size: clamp(28px, 8vw, 48px);
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .hero-subtitle-lg {
        font-size: 16px;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .hero-badge {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .hero-bg {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-enhanced {
        padding: 40px 0 36px;
    }

    .hero-title-lg {
        font-size: 26px;
    }

    .hero-subtitle-lg {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Search Box Mobile */
@media (max-width: 768px) {
    .search-box-enhanced {
        flex-direction: column;
        padding: 12px;
        border-radius: 12px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input-lg {
        padding: 14px 14px 14px 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .search-input-wrapper .search-icon {
        left: 14px;
    }

    .search-select-lg {
        width: 100%;
        min-width: unset;
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-left: none;
        border-top: none;
    }

    .search-box-enhanced .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Hero Tags Mobile */
@media (max-width: 768px) {
    .hero-tags {
        margin-top: 24px;
        font-size: 13px;
    }

    .hero-tags span {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .hero-tags a {
        padding: 5px 10px;
        font-size: 13px;
        margin: 3px;
    }
}

@media (max-width: 480px) {
    .hero-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero-tags span {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }
}


/* Section Headers Mobile */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .section-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 18px;
    }
}

/* Featured Jobs Mobile */
@media (max-width: 768px) {
    .featured-jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-job-card {
        padding: 20px;
    }

    .featured-job-title {
        font-size: 18px;
        padding-right: 70px;
    }

    .featured-job-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .featured-job-desc {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .featured-job-dept {
        font-size: 13px;
    }
}

/* Job List Mobile */
@media (max-width: 768px) {
    .jobs-list {
        gap: 10px;
    }

    .job-list-item {
        padding: 16px;
        border-radius: 14px;
    }

    .job-list-title {
        font-size: 15px;
    }

    .job-list-info {
        gap: 8px 12px;
        font-size: 13px;
    }

    .job-list-deadline {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .job-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .job-list-action {
        width: 100%;
        justify-content: space-between;
    }

    .job-list-action .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Features Grid Mobile */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .feature-icon svg {
        width: 26px;
        height: 26px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 16px;
    }

    .feature-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .feature-card > div {
        flex: 1;
    }

    .feature-title {
        margin-bottom: 4px;
    }
}

/* Department Grid Mobile */
@media (max-width: 768px) {
    .dept-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dept-card {
        padding: 20px;
    }

    .dept-count {
        font-size: 26px;
    }

    .dept-name {
        font-size: 16px;
    }

    .dept-desc {
        font-size: 13px;
        display: none; /* Hide on smaller screens for cleaner look */
    }

    .dept-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dept-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dept-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }

    .dept-count {
        font-size: 24px;
        margin-bottom: 0;
        min-width: 50px;
    }

    .dept-name {
        flex: 1;
        margin-bottom: 0;
    }

    .dept-link {
        margin-left: auto;
    }
}

/* CTA Section Mobile */
@media (max-width: 768px) {
    .cta-enhanced {
        padding: 60px 0;
    }

    .cta-title-lg {
        font-size: clamp(24px, 6vw, 36px);
    }

    .cta-text-lg {
        font-size: 16px;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-enhanced {
        padding: 48px 0;
    }

    .cta-title-lg {
        font-size: 22px;
        padding: 0 8px;
    }

    .cta-text-lg {
        font-size: 15px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Jobs Page Specific Mobile */
@media (max-width: 900px) {
    /* Jobs page two-column layout override */
    .section > .container > div[style*="grid-template-columns: 1fr 320px"] {
        grid-template-columns: 1fr !important;
    }

    .section > .container > div > div[style*="sticky"] {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .section > .container > div > div[style*="sticky"] {
        grid-template-columns: 1fr !important;
    }
}

/* Search and Filter Section Mobile (Jobs Page) */
@media (max-width: 768px) {
    .section[style*="padding: 40px 0"] {
        padding: 24px 0 !important;
    }

    /* Search row */
    div[style*="display: flex; gap: 12px; margin-bottom: 16px"] {
        flex-direction: column !important;
    }

    /* Filters row */
    div[style*="display: flex; gap: 12px; flex-wrap: wrap"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    div[style*="display: flex; gap: 12px; flex-wrap: wrap"] > span {
        margin-bottom: 4px;
    }

    div[style*="display: flex; gap: 12px; flex-wrap: wrap"] select {
        width: 100% !important;
        min-width: unset !important;
    }
}

/* Page Header Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 32px 0;
    }

    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 0;
    }

    .page-title {
        font-size: 22px;
    }
}

/* Job Detail Page Mobile */
@media (max-width: 768px) {
    .job-detail {
        padding: 24px 0;
        gap: 24px;
    }

    .job-header-title {
        font-size: 22px;
    }

    .job-header-dept {
        font-size: 15px;
    }

    .job-section {
        margin-bottom: 24px;
    }

    .job-section-title {
        font-size: 16px;
    }

    .sidebar-card {
        padding: 20px;
    }
}

/* Breadcrumb Mobile */
@media (max-width: 640px) {
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }
}

/* Cards Mobile */
@media (max-width: 640px) {
    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 16px;
    }
}

/* Tags Mobile */
@media (max-width: 640px) {
    .tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    .job-meta {
        gap: 6px;
    }
}

/* Buttons Mobile */
@media (max-width: 640px) {
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Alert Mobile */
@media (max-width: 640px) {
    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* Filter Bar Mobile */
@media (max-width: 640px) {
    .filter-bar {
        padding: 16px;
    }

    .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* ===========================================
   AUTH PAGES MOBILE OPTIMIZATION
   =========================================== */

/* Auth Container */
.auth-container {
    max-width: 480px;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Auth Hero Section */
.auth-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: #f8f9fb;
}

/* Auth Brand/Logo */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Auth Form Elements */
.auth-input {
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #111827;
}

.auth-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-input-code {
    padding: 18px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 0.4em;
    font-weight: 600;
    border-radius: 16px;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    min-height: 54px;
    background: #4f46e5;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: #4338ca;
}

/* Auth Divider */
.auth-divider {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

/* Auth Footer Actions */
.auth-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.auth-action-btn {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background-color 0.2s;
}

.auth-action-btn:hover {
    background-color: #f3f4f6;
}

.auth-link {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background-color 0.2s, color 0.2s;
}

.auth-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

/* Auth Success Icon */
.auth-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Auth Info Message */
.auth-info {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Remember Me Checkbox */
.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
}

/* Auth Social / Secondary Buttons */
.auth-secondary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.auth-secondary-btn:hover {
    border-color: #4f46e5;
    background: #f8f7ff;
}

/* Auth or-divider */
.auth-or-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.auth-or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.auth-or-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== AUTH MOBILE BREAKPOINTS ========== */

/* Tablet - 768px */
@media (max-width: 768px) {
    .auth-hero {
        padding: 40px 0;
    }

    .auth-container {
        padding: 0 16px;
    }

    .auth-card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-brand {
        margin-bottom: 24px;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .auth-hero {
        padding: 24px 0;
        align-items: flex-start;
        padding-top: 60px;
    }

    .auth-container {
        padding: 0 16px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .auth-brand {
        margin-bottom: 20px;
    }

    .auth-logo {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .auth-input {
        padding: 12px 18px;
    }

    .auth-input-code {
        padding: 16px;
        font-size: 24px;
        letter-spacing: 0.3em;
    }

    .auth-btn {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 50px;
    }

    .auth-divider {
        margin-top: 20px;
        padding-top: 20px;
    }

    .auth-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .auth-action-btn,
    .auth-link {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .auth-footer {
        margin-top: 20px;
    }

    .auth-info {
        font-size: 0.8rem;
    }

    .auth-success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .auth-success-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Small Mobile - 360px */
@media (max-width: 360px) {
    .auth-hero {
        padding-top: 40px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .auth-input-code {
        font-size: 20px;
        letter-spacing: 0.25em;
        padding: 14px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .auth-actions {
        gap: 8px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-hero {
        min-height: auto;
        padding: 20px 0;
    }

    .auth-brand {
        margin-bottom: 16px;
    }

    .auth-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .auth-title {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .auth-card {
        padding: 20px;
    }

    .auth-divider {
        margin-top: 16px;
        padding-top: 16px;
    }

    .auth-footer {
        margin-top: 16px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .auth-hero {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .auth-input,
    .auth-input-code {
        font-size: 16px;
    }
}

/* ============================================
   Department Management Pages
   ============================================ */

/* Index Page Layout */
.dept-container {
    max-width: 1000px;
}

.dept-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.dept-form-card {
    position: sticky;
    top: 80px;
}

/* Mobile Card View (hidden on desktop) */
.dept-cards-mobile {
    display: none;
}

/* Desktop Table View (shown by default) */
.dept-table-desktop {
    display: block;
}

/* Department Card Styles (Admin) */
.dept-cards-mobile .dept-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.dept-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dept-card-info {
    flex: 1;
    min-width: 0;
}

.dept-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}

.dept-card-code {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dept-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

.dept-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.dept-card-head svg {
    flex-shrink: 0;
}

/* Edit Page Styles */
.dept-edit-container {
    max-width: 600px;
}

.dept-back-link {
    margin-bottom: 16px;
}

.dept-back-link a {
    font-size: 14px;
}

.dept-edit-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
}

.dept-delete-card {
    margin-top: 32px;
    background: #fef2f2;
    border-color: #fecaca;
}

.dept-delete-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #991b1b;
}

.dept-delete-warning {
    font-size: 14px;
    margin-bottom: 16px;
    color: #dc2626;
}

/* Department Pages Mobile Responsive */
@media (max-width: 768px) {
    .dept-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dept-form-card {
        position: static;
    }

    .dept-form-section {
        order: 2;
    }

    .dept-list-section {
        order: 1;
    }

    /* Show cards, hide table on mobile */
    .dept-cards-mobile {
        display: block;
    }

    .dept-table-desktop {
        display: none;
    }

    .dept-edit-container {
        max-width: 100%;
    }

    .dept-edit-actions {
        flex-direction: column;
    }

    .dept-edit-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dept-delete-card {
        margin-top: 24px;
    }

    .dept-delete-title {
        font-size: 16px;
    }

    .dept-delete-warning {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dept-cards-mobile .dept-card {
        padding: 14px;
    }

    .dept-card-name {
        font-size: 14px;
    }

    .dept-card-desc,
    .dept-card-head {
        font-size: 12px;
    }
}

/* ============================================
   Admin Pages - Common Styles
   ============================================ */

/* Common Admin Styles */
.admin-back-link {
    margin-bottom: 16px;
}

.admin-back-link a {
    font-size: 14px;
}

.admin-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

/* Admin Dashboard */
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.admin-action-card {
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.admin-action-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.admin-action-desc {
    font-size: 14px;
    margin: 0;
    color: var(--text-muted);
}

/* Admin Dashboard - Recent Users */
.admin-users-mobile {
    display: none;
}

.admin-users-desktop {
    display: block;
}

.admin-user-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.admin-user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.admin-user-card-name {
    font-weight: 600;
    color: var(--text);
}

.admin-user-card-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.admin-user-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Admin Filters */
.admin-filters-card {
    margin-bottom: 24px;
    padding: 20px;
}

.admin-filters-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-filter-search {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.admin-filter-item {
    min-width: 140px;
    margin-bottom: 0;
}

.admin-filter-checkbox {
    margin-bottom: 0;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    font-size: 14px;
}

.admin-filter-buttons {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
}

/* Admin Users List Mobile */
.admin-users-list-mobile {
    display: none;
}

.admin-users-list-desktop {
    display: block;
}

.admin-user-list-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.admin-user-list-card.pending {
    background: #fffbeb;
    border-color: var(--warning);
}

.admin-user-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.admin-user-list-avatar span {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.admin-user-list-info {
    flex: 1;
    min-width: 0;
}

.admin-user-list-name {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-list-email {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-user-list-dept {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-user-list-pending {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--warning);
}

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
}

/* Admin User Edit Page */
.admin-user-edit-container {
    max-width: 600px;
}

.admin-user-profile-card {
    margin-bottom: 24px;
}

.admin-user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.admin-user-profile-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.admin-user-profile-info {
    flex: 1;
    min-width: 0;
}

.admin-user-profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text);
}

.admin-user-profile-email {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-user-profile-badges {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Admin Pending Approval */
.admin-pending-card {
    background: #fffbeb;
    border: 2px solid var(--warning);
    margin-bottom: 24px;
}

.admin-pending-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.admin-pending-icon {
    flex-shrink: 0;
    background: var(--warning);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-pending-details {
    flex: 1;
    min-width: 0;
}

.admin-pending-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.admin-pending-desc {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.admin-pending-info-box {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.admin-pending-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-pending-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.admin-pending-value {
    font-weight: 600;
    color: var(--text);
}

.admin-pending-requested {
    color: var(--warning);
}

.admin-pending-dept-request {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-pending-note {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.admin-pending-actions {
    display: flex;
    gap: 12px;
}

.admin-pending-actions form {
    flex: 1;
}

.admin-pending-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Admin Form Actions */
.admin-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

/* Admin Delete User Card */
.admin-delete-user-card {
    margin-top: 32px;
    border: 2px solid var(--error);
}

.admin-delete-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--error);
    margin: 0 0 8px 0;
}

.admin-delete-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.admin-delete-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-delete-warning strong {
    color: #856404;
}

.admin-delete-warning span {
    color: #856404;
}

/* Skills Management Page */
.skills-container {
    max-width: 1000px;
}

.skills-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.skills-form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-form-card {
    position: sticky;
    top: 80px;
}

.skills-form-card:first-child {
    position: static;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.skills-category-card {
    margin-bottom: 16px;
}

.skills-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skills-category-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.skills-category-count {
    font-size: 13px;
    color: var(--text-muted);
}

.skills-list {
    margin: -8px;
}

.skills-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

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

.skills-item-info {
    flex: 1;
    min-width: 0;
}

.skills-item-name {
    font-weight: 500;
    color: var(--text);
}

.skills-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.skills-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.skills-delete-btn {
    color: var(--error);
}

/* Skills Edit Page */
.skills-edit-container {
    max-width: 600px;
}

.skills-edit-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
}

.skills-delete-card {
    margin-top: 32px;
    background: #fef2f2;
    border-color: #fecaca;
}

.skills-delete-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #991b1b;
}

.skills-delete-warning {
    font-size: 14px;
    margin-bottom: 16px;
    color: #dc2626;
}

/* ============================================
   Admin Pages - Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Admin Dashboard */
    .admin-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-action-title {
        font-size: 14px;
    }

    .admin-action-desc {
        font-size: 13px;
    }

    .admin-users-mobile {
        display: block;
    }

    .admin-users-desktop {
        display: none;
    }

    /* Admin Filters */
    .admin-filters-card {
        padding: 16px;
    }

    .admin-filters-grid {
        flex-direction: column;
        gap: 12px;
    }

    .admin-filter-search,
    .admin-filter-item {
        width: 100%;
        min-width: 100%;
    }

    .admin-filter-buttons {
        width: 100%;
    }

    .admin-filter-buttons .btn {
        flex: 1;
    }

    /* Admin Users List */
    .admin-users-list-mobile {
        display: block;
    }

    .admin-users-list-desktop {
        display: none;
    }

    /* Admin User Edit */
    .admin-user-edit-container {
        max-width: 100%;
    }

    .admin-user-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-user-profile-avatar {
        width: 64px;
        height: 64px;
    }

    .admin-user-profile-avatar-placeholder {
        font-size: 24px;
    }

    .admin-user-profile-name {
        font-size: 20px;
    }

    .admin-user-profile-badges {
        justify-content: center;
    }

    /* Admin Pending */
    .admin-pending-content {
        flex-direction: column;
    }

    .admin-pending-icon {
        width: 40px;
        height: 40px;
    }

    .admin-pending-icon svg {
        width: 20px;
        height: 20px;
    }

    .admin-pending-roles {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-pending-actions {
        flex-direction: column;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
    }

    .admin-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-delete-title {
        font-size: 16px;
    }

    /* Skills Layout */
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-form-section {
        order: 2;
    }

    .skills-list-section {
        order: 1;
    }

    .skills-form-card {
        position: static;
    }

    .skills-edit-container {
        max-width: 100%;
    }

    .skills-edit-actions {
        flex-direction: column;
    }

    .skills-edit-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .skills-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .skills-item-actions {
        width: 100%;
    }

    .skills-item-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-user-list-card {
        padding: 14px;
    }

    .admin-user-list-avatar {
        width: 36px;
        height: 36px;
    }

    .admin-user-list-avatar span {
        font-size: 14px;
    }

    .admin-user-list-name {
        font-size: 14px;
    }

    .admin-user-list-email {
        font-size: 12px;
    }

    .admin-pending-title {
        font-size: 16px;
    }

    .admin-pending-desc {
        font-size: 14px;
    }

    .skills-category-title {
        font-size: 15px;
    }

    .skills-item-name {
        font-size: 14px;
    }

    .skills-item-desc {
        font-size: 12px;
    }
}

/* ============================================
   Applications Pages
   ============================================ */

/* Applications List */
.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.app-card-info {
    flex: 1;
    min-width: 0;
}

.app-card-title-row {
    margin-bottom: 6px;
}

.app-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.app-card-title:hover {
    color: var(--primary);
}

.app-card-title-removed {
    color: var(--text-muted);
}

.app-card-status {
    margin-bottom: 6px;
}

.app-card-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.app-card-btn {
    flex-shrink: 0;
}

.app-card-interview {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Application Detail Page */
.app-detail-container {
    max-width: 1000px;
}

.app-status-banner {
    background: var(--bg-alt);
}

.app-status-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.app-status-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.app-status-badge-wrapper {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.app-status-badge {
    font-size: 16px;
    padding: 6px 12px;
}

.app-status-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.app-withdraw-btn {
    color: var(--error);
}

.app-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.app-job-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.app-job-info {
    flex: 1;
    min-width: 0;
}

.app-job-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.app-job-title:hover {
    color: var(--primary);
}

.app-job-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.app-cover-letter {
    line-height: 1.7;
}

.app-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 8px;
    gap: 12px;
}

.app-document-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.app-document-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-document-link {
    flex-shrink: 0;
}

.app-interview-card {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.app-interview-title {
    color: #1e40af;
}

.app-interview-date {
    font-size: 18px;
    font-weight: 500;
    color: #1e40af;
}

.app-interview-time {
    color: #1e40af;
}

.app-timeline-card {
    position: sticky;
    top: 80px;
}

.app-timeline-id {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.app-timeline-id .text-muted {
    font-size: 13px;
}

/* ============================================
   Recruiter Pages
   ============================================ */

/* Recruiter Header */
.recruiter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

/* Recruiter Jobs Mobile */
.recruiter-jobs-mobile {
    display: none;
}

.recruiter-jobs-desktop {
    display: block;
}

.recruiter-job-card {
    margin-bottom: 16px;
}

.recruiter-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.recruiter-job-info {
    flex: 1;
    min-width: 0;
}

.recruiter-job-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.recruiter-job-title:hover {
    color: var(--primary);
}

.recruiter-job-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.recruiter-job-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.recruiter-job-actions {
    display: flex;
    gap: 8px;
}

/* Recruiter Applications */
.recruiter-app-card {
    margin-bottom: 16px;
}

.recruiter-app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.recruiter-app-user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.recruiter-app-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.recruiter-app-avatar-placeholder {
    background: var(--text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.recruiter-app-info {
    flex: 1;
    min-width: 0;
}

.recruiter-app-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.recruiter-app-name a {
    color: var(--text);
    text-decoration: none;
}

.recruiter-app-name a:hover {
    color: var(--primary);
}

.recruiter-app-email {
    font-size: 14px;
    color: var(--text-muted);
    margin: 2px 0 8px 0;
}

.recruiter-app-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recruiter-app-date {
    font-size: 12px;
    color: var(--text-muted);
}

.recruiter-app-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.recruiter-app-cover {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.recruiter-app-cover p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.recruiter-app-status-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.recruiter-app-status-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recruiter-app-select {
    width: auto;
    padding: 6px 12px;
    font-size: 14px;
}

/* ============================================
   HR Dashboard
   ============================================ */

.hr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hr-pipeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.hr-pipeline-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hr-pipeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.hr-pipeline-label span {
    font-size: 14px;
}

.hr-pipeline-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hr-pipeline-count {
    font-weight: 600;
}

.hr-pipeline-percent {
    font-size: 12px;
    color: var(--text-muted);
}

.hr-hire-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

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

.hr-hire-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hr-hire-avatar-placeholder {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.hr-hire-info {
    flex: 1;
    min-width: 0;
}

.hr-hire-name {
    font-weight: 500;
}

.hr-hire-job {
    font-size: 13px;
    color: var(--text-muted);
}

.hr-hire-date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* HR Department Cards */
.hr-dept-cards-mobile {
    display: none;
}

.hr-dept-table-desktop {
    display: block;
}

.hr-dept-card {
    display: block;
    padding: 14px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
}

.hr-dept-name {
    font-weight: 500;
    margin-bottom: 8px;
}

.hr-dept-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.hr-dept-hired {
    color: var(--success);
}

/* ============================================
   Pages Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Applications */
    .app-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .app-card-btn {
        width: 100%;
        text-align: center;
    }

    .app-detail-layout {
        grid-template-columns: 1fr;
    }

    .app-detail-sidebar {
        order: -1;
    }

    .app-timeline-card {
        position: static;
    }

    .app-status-content {
        flex-direction: column;
    }

    .app-job-details {
        flex-direction: column;
    }

    .app-job-btn {
        width: 100%;
        text-align: center;
    }

    /* Recruiter */
    .recruiter-header {
        flex-direction: column;
        gap: 12px;
    }

    .recruiter-header-btn {
        width: 100%;
        text-align: center;
    }

    .recruiter-jobs-mobile {
        display: block;
    }

    .recruiter-jobs-desktop {
        display: none;
    }

    .recruiter-job-actions .btn {
        flex: 1;
    }

    .recruiter-app-header {
        flex-direction: column;
    }

    .recruiter-app-actions {
        width: 100%;
    }

    .recruiter-app-actions .btn {
        flex: 1;
    }

    .recruiter-app-status-controls {
        flex-direction: column;
        width: 100%;
    }

    .recruiter-app-select {
        width: 100%;
    }

    .recruiter-app-status-controls .btn {
        width: 100%;
    }

    /* HR */
    .hr-grid {
        grid-template-columns: 1fr;
    }

    .hr-dept-cards-mobile {
        display: block;
    }

    .hr-dept-table-desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .app-card-title {
        font-size: 16px;
    }

    .app-card-meta {
        font-size: 13px;
    }

    .app-status-badge {
        font-size: 14px;
        padding: 4px 10px;
    }

    .recruiter-job-title {
        font-size: 15px;
    }

    .recruiter-app-avatar {
        width: 40px;
        height: 40px;
    }

    .recruiter-app-name {
        font-size: 15px;
    }

    .hr-pipeline-label span {
        font-size: 13px;
    }

    .hr-hire-avatar {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   Public Profile Page
   ============================================ */

.profile-public-container {
    max-width: 900px;
}

.profile-public-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-public-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-public-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.profile-public-info {
    flex: 1;
    min-width: 0;
}

.profile-public-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text);
}

.profile-public-dept {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-public-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.profile-public-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-public-full {
    grid-column: span 2;
}

.profile-public-bio {
    line-height: 1.7;
}

.profile-public-skills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Profile Experience Items */
.profile-exp-item {
    border-left: 3px solid var(--border);
    padding-left: 16px;
    margin-bottom: 16px;
}

.profile-exp-item:last-child {
    margin-bottom: 0;
}

.profile-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-exp-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-exp-position {
    font-size: 16px;
}

.profile-exp-duration {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-exp-company {
    color: var(--primary);
    font-size: 14px;
    margin-top: 4px;
}

.profile-exp-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-exp-dates {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-exp-desc {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Profile Member Info */
.profile-member-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-member-label {
    font-size: 13px;
}

/* Profile Page Mobile */
@media (max-width: 768px) {
    .profile-public-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-public-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-public-avatar-placeholder {
        font-size: 28px;
    }

    .profile-public-name {
        font-size: 20px;
    }

    .profile-public-badges {
        justify-content: center;
    }

    .profile-public-grid {
        grid-template-columns: 1fr;
    }

    .profile-public-full {
        grid-column: span 1;
    }

    .profile-member-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .profile-public-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-public-avatar-placeholder {
        font-size: 24px;
    }

    .profile-public-name {
        font-size: 18px;
    }

    .profile-exp-position {
        font-size: 15px;
    }

    .profile-exp-company,
    .profile-exp-dates,
    .profile-exp-duration {
        font-size: 12px;
    }
}
