/* ============================================
   SarkariChakri24 - Design System
   Bangladesh Government Job Portal
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors — Royal Blue */
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-900: #1e3a8a;

    /* Accent — Crimson Red */
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --accent-light: #ef4444;

    /* Danger — Same as accent for consistency */
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-light: #f87171;

    /* Warning — Golden Amber */
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --warning-light: #fbbf24;

    /* Info — Soft Blue */
    --info: #3b82f6;
    --info-dark: #2563eb;
    --info-light: #60a5fa;

    /* Success — Fresh Green */
    --success: #22c55e;
    --success-dark: #16a34a;
    --success-light: #4ade80;

    /* Neutral / Background */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #1e293b;
    --bg-darker: #0f172a;
    --bg-nav: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-input: #f8fafc;
    --bg-hover: #eff6ff;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --bg-glass-light: rgba(255, 255, 255, 0.92);
    --bg-primary: #ffffff;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    --text-on-primary: #ffffff;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #334155;
    --border-focus: var(--primary);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 24px rgba(30, 64, 175, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-bn: 'Noto Sans Bengali', sans-serif;

    /* Sizing */
    --navbar-height: 70px;
    --sidebar-width: 260px;
    --container-max: 1280px;

    /* Gradients — Royal Blue + Red */
    --gradient-primary: linear-gradient(135deg, #1e40af, #3b82f6);
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #f0f4ff 100%);
    --gradient-accent: linear-gradient(135deg, #dc2626, #ef4444);
    --gradient-card: linear-gradient(145deg, #ffffff, #f8fafc);
    --gradient-dark: linear-gradient(180deg, #1e293b, #0f172a);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: #f0f4ff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--primary-dark);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title .title-bn {
    font-family: var(--font-bn);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: #1e3a5f;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: none;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}
.top-bar-left a {
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-bar-left a:hover {
    color: #fff;
}
.top-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}
.top-bar-right a {
    color: rgba(255,255,255,0.75);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}
.top-bar-right a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text .logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.logo-text .logo-tagline {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-50);
}
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-50);
    font-weight: 600;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-200);
}
.nav-user-avatar:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 8px;
    display: none;
    z-index: 1001;
    border: 1px solid var(--border);
    animation: fadeInDown 0.2s ease;
}
.nav-user-dropdown.show {
    display: block;
}
.nav-user-dropdown .dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.nav-user-dropdown .dropdown-header strong {
    display: block;
    font-size: 0.9rem;
}
.nav-user-dropdown .dropdown-header small {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
.nav-user-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}
.nav-user-dropdown a.text-danger {
    color: var(--danger);
}
.nav-user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}
.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    color: #fff;
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: var(--danger-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.card:hover::before {
    opacity: 1;
}

.card-glass {
    background: var(--bg-glass-light);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-group label .required {
    color: var(--danger);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background: #fff;
}
.form-control::placeholder {
    color: var(--text-muted);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-primary { background: var(--primary-100); color: var(--primary-dark); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0e7ff; color: #3730a3; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-dark { background: #1e293b; color: #f1f5f9; }

/* ============================================
   Alerts / Flash Messages
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: fadeInDown 0.3s ease;
    border-left: 4px solid;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: var(--accent);
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--danger);
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: var(--warning);
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: var(--info);
}
.alert .close-alert {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
}
.alert .close-alert:hover {
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,64,175,0.06), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220,38,38,0.04), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}
.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.15);
    border-radius: var(--radius-full);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.15;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero .hero-subtitle-bn {
    font-family: var(--font-bn);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.25s both;
}

/* Hero Search */
.hero-search {
    max-width: 750px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.search-box {
    display: flex;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,64,175,0.1), var(--shadow-lg);
}
.search-box input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
}
.search-box input::placeholder {
    color: var(--text-muted);
}
.search-box select {
    padding: 16px;
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    border-radius: var(--radius);
    cursor: pointer;
    outline: none;
    min-width: 160px;
}
.search-box select option {
    background: var(--bg-card);
    color: var(--text-primary);
}
.search-box .btn-search {
    padding: 16px 30px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-primary);
    white-space: nowrap;
}
.search-box .btn-search:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Stats Counter
   ============================================ */
.stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -40px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.stat-item {
    text-align: center;
    padding: 28px 20px;
    position: relative;
    transition: var(--transition);
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--border);
}
.stat-item:hover {
    background: var(--primary-50);
}
.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}
.stat-item:nth-child(1) i { color: var(--primary); }
.stat-item:nth-child(2) i { color: var(--accent); }
.stat-item:nth-child(3) i { color: var(--info); }
.stat-item:nth-child(4) i { color: var(--warning); }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* ============================================
   Category Grid
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}
.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-200);
    color: inherit;
}
.category-card:hover::before {
    height: 100%;
}
.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.category-card:nth-child(12n+1) .category-icon { background: #e0f2fe; color: #0284c7; }
.category-card:nth-child(12n+2) .category-icon { background: #d1fae5; color: #059669; }
.category-card:nth-child(12n+3) .category-icon { background: #fce7f3; color: #db2777; }
.category-card:nth-child(12n+4) .category-icon { background: #fef3c7; color: #d97706; }
.category-card:nth-child(12n+5) .category-icon { background: #ede9fe; color: #7c3aed; }
.category-card:nth-child(12n+6) .category-icon { background: #fce4ec; color: #e91e63; }
.category-card:nth-child(12n+7) .category-icon { background: #e0f7fa; color: #00838f; }
.category-card:nth-child(12n+8) .category-icon { background: #e8f5e9; color: #2e7d32; }
.category-card:nth-child(12n+9) .category-icon { background: #fff3e0; color: #ef6c00; }
.category-card:nth-child(12n+10) .category-icon { background: #e8eaf6; color: #3949ab; }
.category-card:nth-child(12n+11) .category-icon { background: #f3e5f5; color: #8e24aa; }
.category-card:nth-child(12n+12) .category-icon { background: #efebe9; color: #6d4c41; }

.category-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.category-info .cat-name-bn {
    font-family: var(--font-bn);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.category-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-50);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* ============================================
   Job Cards
   ============================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.job-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-200);
}
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.job-card .job-org-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.job-card .featured-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.job-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
}
.job-card h3 a {
    color: var(--text-primary);
}
.job-card h3 a:hover {
    color: var(--primary);
}
.job-card .job-org {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.job-meta span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-meta i {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.job-card-footer .deadline {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-card-footer .deadline.urgent {
    color: var(--danger);
    font-weight: 600;
}

/* Job List Style */
.job-list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    transition: var(--transition);
}
.job-list-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
    transform: translateX(4px);
}
.job-list-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.job-list-info {
    flex: 1;
}
.job-list-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.job-list-info h4 a {
    color: var(--text-primary);
}
.job-list-info h4 a:hover {
    color: var(--primary);
}
.job-list-info .job-list-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.job-list-info .job-list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.job-list-deadline {
    text-align: right;
    flex-shrink: 0;
}
.job-list-deadline .days-left {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}
.job-list-deadline .days-left.urgent {
    color: var(--danger);
}
.job-list-deadline small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   Job Detail Page
   ============================================ */
.job-detail-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3b82f6 100%);
    padding: 50px 0 60px;
    color: #fff;
}
.job-detail-hero h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
}
.job-detail-hero .org-name {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.job-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.job-detail-content {
    padding: 40px 0;
    background: #ffffff;
}
.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}
.job-detail-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}
.job-detail-main h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-100);
    color: var(--text-primary);
}
.job-detail-main p,
.job-detail-main ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.job-detail-main ul {
    list-style: disc;
    padding-left: 20px;
}
.job-detail-sidebar .card {
    margin-bottom: 20px;
}
.job-info-table {
    width: 100%;
}
.job-info-table tr {
    border-bottom: 1px solid var(--border-light);
}
.job-info-table td {
    padding: 12px 0;
    font-size: 0.9rem;
}
.job-info-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 45%;
}
.job-info-table td:last-child {
    color: var(--text-secondary);
}

/* ============================================
   Notice Board
   ============================================ */
.notice-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.notice-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.notice-card.pinned {
    border-left-color: var(--warning);
    background: #fffdf5;
}
.notice-card.urgent {
    border-left-color: var(--danger);
}
.notice-card .notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.notice-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.notice-card h3 a {
    color: var(--text-primary);
}
.notice-card h3 a:hover {
    color: var(--primary);
}
.notice-card .notice-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.notice-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Auth Forms
   ============================================ */
.auth-page {
    min-height: calc(100vh - var(--navbar-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f4ff 100%);
}
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.auth-card h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 6px;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Role selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.role-option {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.role-option:hover {
    border-color: var(--primary-200);
}
.role-option.selected {
    border-color: var(--primary);
    background: var(--primary-50);
}
.role-option i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
    color: var(--primary);
}
.role-option h4 {
    font-size: 0.9rem;
    font-weight: 600;
}
.role-option p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-page {
    padding: 40px 0;
}
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
.profile-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    align-self: start;
}
.profile-sidebar .card {
    text-align: center;
    padding: 28px;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.4rem;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    border: 4px solid var(--primary-100);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-nav {
    margin-top: 20px;
}
.profile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.profile-nav a:hover,
.profile-nav a.active {
    background: var(--primary-50);
    color: var(--primary);
}

/* ============================================
   Tables
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.data-table th {
    background: var(--bg-dark);
    color: #fff;
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.data-table tr:hover td {
    background: var(--bg-hover);
}
.data-table .actions {
    display: flex;
    gap: 6px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}
.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-dots {
    padding: 0 6px;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1e293b;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}
.footer h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
}
.footer-links a {
    display: block;
    padding: 6px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.80rem;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}
.footer-links a i {
    margin-right: 8px;
    width: 16px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Form Validation Highlight
   ============================================ */
.field-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Upload Preview */
.upload-preview {
    transition: var(--transition);
    animation: fadeIn 0.3s ease;
}

/* Warning Light Background */
.warning-light { background: #fffbeb; }

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ============================================
   Scroll-to-top
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top:hover {
    transform: translateY(-3px);
}
.scroll-top.visible {
    display: flex;
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    font-size: 1.2rem;
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.modal-close:hover {
    background: var(--danger);
    color: #fff;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: fadeInDown 0.3s ease;
    border-left: 4px solid;
}
.toast-success { border-color: var(--accent); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--primary); }

/* ============================================
   Responsive Design
   ============================================ */

/* --- Large Tablets / Small Laptops (≤1024px) --- */
@media (max-width: 1024px) {
    .job-detail-grid {
        grid-template-columns: 1fr;
    }
    .job-detail-sidebar {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
    }
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .hero h1 {
        font-size: 2.6rem;
    }
}

/* --- Tablets (≤992px) --- */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .category-card {
        padding: 20px 18px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-search {
        max-width: 100%;
    }
    .search-box {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    .search-box select {
        min-width: auto;
    }
    .search-box .btn-search {
        justify-content: center;
    }
    .section {
        padding: 60px 0;
    }
    .stats-bar {
        margin-top: -30px;
    }
    .notice-card .notice-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .navbar .container {
        height: 60px;
    }
    
    /* Mobile navigation: links hidden by default, shown inside hamburger */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .nav-links.open {
        display: flex;
        animation: fadeInDown 0.25s ease;
    }
    .nav-links a {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius);
        color: var(--text-primary);
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--primary-50);
        color: var(--primary);
    }
    .nav-links a.active::after {
        display: none;
    }
    
    /* Auth buttons: hide on mobile — JS clones them into the open menu */
    .nav-auth {
        display: none !important;
    }
    .mobile-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 50px 0 45px;
        min-height: auto;
    }
    .hero h1 {
        font-size: 1.85rem;
    }
    .hero .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero .hero-subtitle-bn {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    /* Stats */
    .stats-bar {
        margin-top: -25px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        border-radius: var(--radius-lg);
    }
    .stat-item {
        padding: 20px 14px;
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-item i {
        font-size: 1.2rem;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .category-card {
        padding: 18px 16px;
    }
    .category-icon {
        width: 46px;
        height: 46px;
    }

    /* Jobs */
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .job-card {
        padding: 20px;
    }

    /* Pinned Notices Ticker */
    .notice-ticker {
        font-size: 0.82rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer {
        padding: 40px 0 0;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Auth */
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }
    .auth-page {
        padding: 40px 16px;
    }
    .role-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Section spacing */
    .section { padding: 45px 0; }
    .section-title h2 { font-size: 1.5rem; }
    .section-title p { font-size: 0.92rem; }

    /* Job detail */
    .job-detail-hero {
        padding: 30px 0 40px;
    }
    .job-detail-hero h1 {
        font-size: 1.5rem;
    }
    .job-detail-main {
        padding: 24px 18px;
    }
    .job-detail-meta {
        gap: 12px;
    }
    .job-detail-meta span {
        font-size: 0.82rem;
    }

    /* Profile */
    .profile-page {
        padding: 24px 0;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    /* Tables: horizontal scroll wrapper */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Touch friendly: bigger tap targets */
    .btn {
        min-height: 44px;
    }
    .btn-sm {
        min-height: 38px;
        padding: 8px 16px;
    }
    .page-link {
        width: 42px;
        height: 42px;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Scroll to top positioning */
    .scroll-top {
        bottom: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    /* Modal */
    .modal {
        width: 95%;
        padding: 24px 18px;
        max-height: 90vh;
    }

    /* Container padding */
    .container {
        padding: 0 16px;
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .hero .hero-subtitle { font-size: 0.88rem; }
    .hero .hero-subtitle-bn { font-size: 0.82rem; }
    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }
    .hero {
        padding: 40px 0 35px;
    }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item {
        padding: 16px 10px;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Job list: stack vertically */
    .job-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }
    .job-list-deadline {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .job-list-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .job-list-info h4 {
        font-size: 0.9rem;
    }
    .job-list-info .job-list-meta {
        gap: 8px;
        font-size: 0.78rem;
    }

    /* Job card footer stack */
    .job-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .job-card-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.3rem;
    }
    .section-title p {
        font-size: 0.85rem;
    }
    .section { padding: 36px 0; }

    /* Auth card */
    .auth-card {
        padding: 24px 16px;
    }
    .auth-card h1 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    .footer h4 {
        font-size: 0.9rem;
    }

    /* Notice card */
    .notice-card {
        padding: 18px 14px;
    }
    .notice-card h3 {
        font-size: 0.95rem;
    }
    .notice-card .notice-meta {
        flex-direction: column;
        gap: 4px;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Logo text shrink */
    .logo-text .logo-name {
        font-size: 1.1rem;
    }
    .logo-text .logo-tagline {
        font-size: 0.62rem;
    }
}

/* --- Very Small Screens (≤360px) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item::after {
        display: none !important;
    }
    .logo-text .logo-tagline {
        display: none;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar, .top-bar, .footer, .scroll-top,
    .hero-search, .nav-auth, .mobile-toggle,
    .admin-sidebar, .admin-sidebar-toggle,
    .toast-container {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    .hero {
        background: none !important;
        padding: 20px 0;
        min-height: auto;
        color: #000;
    }
    .hero h1 {
        color: #000;
        font-size: 18pt;
    }
    .card, .job-card, .notice-card, .job-list-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
}
