/* --- Restrict white text on dark/gradient backgrounds to home page only --- */
body.home [class*="bg-"],
body.home [style*="background: linear-gradient"],
body.home [style*="background: #1a365d"],
body.home [style*="background: #153e75"],
body.home [style*="background: #2a4a7f"],
body.home [style*="background: #722f37"],
body.home [style*="background: #b8860b"],
body.home [style*="background: var(--accent)"],
body.home [style*="background: var(--accent-600)"],
body.home [style*="background: var(--gradient-cool)"],
body.home [style*="background: var(--gradient-royal)"],
body.home [style*="background: var(--primary)"],
body.home [style*="background: var(--primary-dark)"],
body.home [style*="background: var(--secondary)"],
body.home .main-hero,
body.home .main-hero *,
body.home .bg-dark,
body.home .bg-navy,
body.home .bg-blue,
body.home .bg-gradient,
body.home .bg-accent,
body.home .bg-primary,
body.home .bg-secondary {
    color: #fff !important;
}

body.home [class*="bg-"] a,
body.home [class*="bg-"] h1,
body.home [class*="bg-"] h2,
body.home [class*="bg-"] h3,
body.home [class*="bg-"] h4,
body.home [class*="bg-"] h5,
body.home [class*="bg-"] h6,
body.home [class*="bg-"] p,
body.home [class*="bg-"] span,
body.home [class*="bg-"] strong,
body.home [class*="bg-"] b,
body.home [class*="bg-"] li,
body.home [class*="bg-"] label,
body.home [class*="bg-"] .stat,
body.home [class*="bg-"] .subtitle,
body.home [class*="bg-"] .desc,
body.home [class*="bg-"] .lead,
body.home [class*="bg-"] .highlight,
body.home [class*="bg-"] .search-box,
body.home [class*="bg-"] .search-box * {
    color: #fff !important;
}
/* --- Force white text on dark backgrounds for readability --- */
.notes-header,
.topic-header,
.hero,
[style*="background: linear-gradient(135deg, #61dafb 0%, #282c34 100%)"],
[style*="background: #1a365d"],
[style*="background: #153e75"],
[style*="background: #2a4a7f"],
[style*="background: var(--accent)"],
[style*="background: var(--accent-600)"],
[style*="background: var(--gradient-cool)"],
[style*="background: var(--gradient-royal)"],
.bg-dark,
.bg-navy,
.bg-blue,
.bg-gradient,
.bg-accent,
.bg-primary,
.bg-secondary {
    color: #fff !important;
}

.notes-header h1,
.notes-header p,
.topic-header h2,
.hero h1,
.hero p {
    color: #fff !important;
}
/* ========================================
   NAUKRIFORSURE - VICTORIAN ERA DESIGN
   Elegant Job Portal Interface v3.0
   ======================================== */

/* ==================== VICTORIAN DESIGN TOKENS ==================== */
:root {
    /* Primary Colors - Royal Burgundy & Gold */
    --primary-50: #fdf2f4;
    --primary-100: #fce4e8;
    --primary-200: #facdd5;
    --primary-300: #f5a3b5;
    --primary-400: #ed6b8a;
    --primary: #722f37;
    --primary-600: #5c252c;
    --primary-700: #4a1e23;
    --primary-800: #3d191d;
    --primary-900: #2d1215;
    --primary-dark: #5c252c;
    --primary-light: #8b4049;
    --primary-lighter: #a85d66;
    
    /* Secondary - Victorian Gold */
    --secondary-50: #fefce8;
    --secondary-100: #fef9c3;
    --secondary-200: #fef08a;
    --secondary-300: #fde047;
    --secondary-400: #d4af37;
    --secondary: #b8860b;
    --secondary-600: #996515;
    --secondary-700: #7a4f1a;
    --secondary-light: #d4af37;
    
    /* Accent - Victorian Navy & Forest */
    --accent-50: #f0f4f8;
    --accent-100: #d9e2ec;
    --accent-200: #bcccdc;
    --accent-300: #9fb3c8;
    --accent-400: #829ab1;
    --accent: #1a365d;
    --accent-600: #153e75;
    --accent-light: #2a4a7f;
    
    /* Victorian Forest Green */
    --forest: #1a3d2e;
    --forest-light: #2d5a45;
    
    /* Neutrals - Cream & Sepia Scale */
    --neutral-50: #faf8f5;
    --neutral-100: #f5f0e8;
    --neutral-200: #ebe4d8;
    --neutral-300: #d9cfc0;
    --neutral-400: #b8a890;
    --neutral-500: #8b7355;
    --neutral-600: #6b5a45;
    --neutral-700: #4a3f30;
    --neutral-800: #2d261d;
    --neutral-900: #1a1612;
    --neutral-950: #0d0b09;
    
    /* Legacy Support - Victorian Palette */
    --dark: #222;
    --dark-light: #444;
    --gray-900: #2d261d;
    --gray-800: #4a3f30;
    --gray: #8b7355;
    --gray-light: #b8a890;
    --gray-200: #ebe4d8;
    --light: #f5f0e8;
    --lighter: #faf8f5;
    --white: #fffef9;
    --cream: #faf7f0;
    --parchment: #f4eed8;
    
    /* Victorian Gradients */
    --gradient: linear-gradient(135deg, #722f37 0%, #b8860b 50%, #1a365d 100%);
    --gradient-primary: linear-gradient(135deg, #722f37 0%, #5c252c 100%);
    --gradient-aurora: linear-gradient(135deg, #722f37 0%, #8b4049 35%, #b8860b 65%, #d4af37 100%);
    --gradient-warm: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #996515 100%);
    --gradient-cool: linear-gradient(135deg, #1a365d 0%, #2a4a7f 50%, #1a3d2e 100%);
    --gradient-success: linear-gradient(135deg, #1a3d2e 0%, #2d5a45 100%);
    --gradient-royal: linear-gradient(135deg, #722f37 0%, #b8860b 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(114, 47, 55, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(184, 134, 11, 0.06) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(26, 54, 93, 0.06) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(26, 61, 46, 0.05) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, rgba(184, 134, 11, 0.08) 0px, transparent 50%);
    
    /* Victorian Shadows - Elegant Depth */
    --shadow-xs: 0 1px 2px 0 rgba(26, 22, 18, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(26, 22, 18, 0.1), 0 1px 2px -1px rgba(26, 22, 18, 0.1);
    --shadow: 0 4px 6px -1px rgba(26, 22, 18, 0.1), 0 2px 4px -2px rgba(26, 22, 18, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(26, 22, 18, 0.1), 0 4px 6px -4px rgba(26, 22, 18, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(26, 22, 18, 0.1), 0 8px 10px -6px rgba(26, 22, 18, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(26, 22, 18, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(26, 22, 18, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(26, 22, 18, 0.05);
    --shadow-glow: 0 0 60px -15px rgba(184, 134, 11, 0.4);
    --shadow-primary: 0 20px 40px -12px rgba(114, 47, 55, 0.35);
    --shadow-primary-sm: 0 10px 20px -8px rgba(114, 47, 55, 0.3);
    --shadow-float: 0 22px 70px 4px rgba(26, 22, 18, 0.1);
    --shadow-card: 0 0 0 1px rgba(26, 22, 18, 0.05), 0 2px 4px rgba(26, 22, 18, 0.08), 0 12px 24px rgba(26, 22, 18, 0.08);
    --shadow-card-hover: 0 0 0 1px rgba(184, 134, 11, 0.2), 0 4px 8px rgba(26, 22, 18, 0.1), 0 24px 48px rgba(26, 22, 18, 0.15);
    --shadow-ornate: 0 4px 20px rgba(114, 47, 55, 0.15), 0 0 0 3px rgba(184, 134, 11, 0.1);
    
    /* Victorian Border Radius - More Angular/Classic */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 20px;
    --radius-full: 9999px;
    
    /* Victorian Border Styles */
    --border-ornate: 2px solid var(--secondary);
    --border-elegant: 1px solid rgba(184, 134, 11, 0.3);
    --border-subtle: 1px solid rgba(26, 22, 18, 0.1);
    
    /* Transitions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 150ms var(--ease-out);
    --transition: 300ms var(--ease-in-out);
    --transition-slow: 500ms var(--ease-in-out);
    --transition-bounce: 500ms var(--ease-bounce);
    
    /* Victorian Typography */
    --font-sans: 'Playfair Display', 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, serif;
    --font-accent: 'Cinzel', 'Playfair Display SC', serif;
}

/* ==================== CSS RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Notes Page Heading/Section Spacing Fixes --- */
.notes-header {
    padding: 36px 0 !important;
}
.notes-header h1 {
    margin-bottom: 4px !important;
    font-size: 2.1rem !important;
}
.notes-content {
    padding: 28px !important;
}
.topic-header {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}
.topic-header h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0 !important;
}
.topic-content h3 {
    margin: 18px 0 8px !important;
    font-size: 1.08rem !important;
}
.topic-section {
    margin-bottom: 32px !important;
    scroll-margin-top: 80px !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background: var(--light);
    color: #222;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Selection Styling */
::selection {
    background: rgba(184, 134, 11, 0.3);
    color: var(--primary);
}

::-moz-selection {
    background: rgba(184, 134, 11, 0.3);
    color: var(--primary);
}

/* Victorian Ornate Scrollbar */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: var(--parchment);
    border-radius: 0;
    border-left: 1px solid var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0;
    border: 3px solid var(--parchment);
    border-left: 2px solid var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
}

/* ==================== VICTORIAN ORNAMENTAL ELEMENTS ==================== */
/* Ornate Divider */
.ornate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.ornate-divider::before,
.ornate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.ornate-divider-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    margin: 0 20px;
}

/* Victorian Flourish */
.flourish {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.flourish::before {
    content: '?';
    font-size: 2rem;
    color: var(--secondary);
    display: block;
    opacity: 0.7;
}

/* Decorative Corner Ornaments */
.ornate-corners {
    position: relative;
}

.ornate-corners::before,
.ornate-corners::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--secondary);
    border-style: solid;
    opacity: 0.5;
    transition: opacity var(--transition), transform var(--transition);
}

.ornate-corners::before {
    top: -5px;
    left: -5px;
    border-width: 2px 0 0 2px;
}

.ornate-corners::after {
    bottom: -5px;
    right: -5px;
    border-width: 0 2px 2px 0;
}

.ornate-corners:hover::before,
.ornate-corners:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Victorian Drop Cap */
.drop-cap::first-letter {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    line-height: 0.8;
    padding: 8px 12px 0 0;
    color: var(--primary);
    font-weight: 700;
}

/* Elegant Underline Animation */
.elegant-underline {
    position: relative;
    display: inline-block;
}

.elegant-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-royal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.elegant-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Victorian Quote Style */
.victorian-quote {
    position: relative;
    padding: 30px 40px;
    background: var(--parchment);
    border-left: 4px solid var(--secondary);
    font-style: italic;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    color: var(--gray-800);
    margin: 30px 0;
}

.victorian-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

/* Shimmer Effect for Premium Elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        var(--secondary) 0%, 
        var(--secondary-light) 25%, 
        #fff8dc 50%, 
        var(--secondary-light) 75%, 
        var(--secondary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Victorian Badge Enhancement */
.badge-victorian {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--cream);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.badge-victorian::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Enhanced Card Hover Glow */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-royal);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.card-glow:hover::before {
    opacity: 0.4;
}

/* Victorian Ribbon */
.ribbon {
    position: absolute;
    top: 15px;
    right: -8px;
    background: var(--gradient-royal);
    color: var(--cream);
    padding: 6px 20px 6px 15px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(114, 47, 55, 0.3);
}

.ribbon::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    border: 4px solid transparent;
    border-top-color: var(--primary-dark);
    border-right-color: var(--primary-dark);
}

/* Victorian Section Title Styling */
.section-title-victorian {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-victorian h2 {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title-victorian h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-royal);
    margin: 15px auto 0;
}

.section-title-victorian p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--parchment);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text - Victorian Gold Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Victorian Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #722f37, #b8860b, #1a365d, #1a3d2e);
    background-size: 400% 400%;
    animation: gradient-wave 15s ease infinite;
}

@keyframes gradient-wave {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
}

/* Victorian Glassmorphism Effect */
.glass {
    background: rgba(250, 247, 240, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.glass-dark {
    background: rgba(26, 22, 18, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

/* ==================== VICTORIAN BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    isolation: isolate;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    white-space: nowrap;
}

/* Victorian Ornate Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

.btn-primary {
    background: var(--gradient-royal);
    color: var(--white);
    box-shadow: var(--shadow-primary-sm), inset 0 1px 0 rgba(255,255,255,0.1);
    background-size: 200% 200%;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-primary), 0 0 20px rgba(184, 134, 11, 0.3);
    background-position: 100% 50%;
    border-color: var(--secondary-light);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-royal);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-outline:hover {
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-sm);
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-white {
    background: var(--cream);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--secondary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.8);
    color: var(--secondary-light);
}

.btn-outline-white:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
    border-color: var(--secondary);
}

/* ==================== VICTORIAN NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .navbar {
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 16px 0;
    transition: all var(--transition);
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px double var(--secondary);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250, 247, 240, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transition: opacity var(--transition);
    border-bottom: 3px double transparent;
}

.navbar.scrolled::before {
    opacity: 1;
    border-bottom-color: var(--secondary);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container,
.navbar > .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    transition: transform var(--transition);
    color: var(--dark);
    text-decoration: none;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    flex-shrink: 0;
}

.logo span {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 2rem;
    animation: logo-bounce 3s ease-in-out infinite;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-5deg); }
    75% { transform: translateY(4px) rotate(5deg); }
}

.logo .highlight {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background: var(--parchment);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--secondary);
}

.dropdown-menu a::after {
    display: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-800);
    transition: all var(--transition);
    position: relative;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(184, 134, 11, 0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(184, 134, 11, 0.12);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 24px);
    height: 2px;
    background: var(--gradient-royal);
    border-radius: 0;
    transition: transform var(--transition);
    transform-origin: center;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.hamburger,
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius);
    transition: background var(--transition);
    z-index: 10;
    background: none;
    border: none;
}

.menu-btn {
    font-size: 1.5rem;
    color: var(--dark);
}

.hamburger:hover,
.menu-btn:hover {
    background: var(--light);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu header - hidden on desktop */
.mobile-menu-header {
    display: none;
}

/* ==================== VICTORIAN HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        var(--cream) 0%, 
        var(--parchment) 30%,
        var(--neutral-100) 60%,
        var(--cream) 100%
    );
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    animation: mesh-float 20s ease-in-out infinite;
    /* Victorian ornate pattern overlay */
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@keyframes mesh-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-pulse 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.2) translate(-5%, 5%); opacity: 0.8; }
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23722f37' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    border: 2px solid var(--secondary);
    animation: slideInLeft 0.6s ease-out;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badge span {
    font-size: 1.3rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
    animation: slideInUp 0.6s ease-out 0.1s both;
    letter-spacing: -0.02em;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    text-shadow: 2px 2px 4px rgba(114, 47, 55, 0.1);
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.8;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

/* Victorian Search Box */
.search-box {
    display: flex;
    gap: 12px;
    background: var(--cream);
    padding: 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    margin-bottom: 48px;
    animation: slideInUp 0.6s ease-out 0.3s both;
    border: 2px solid rgba(184, 134, 11, 0.3);
    position: relative;
}

.search-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-royal);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.search-box:focus-within::before {
    opacity: 0.15;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--parchment);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.search-field:focus-within {
    background: var(--cream);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

.search-field i {
    color: var(--gray);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.search-field:focus-within i {
    color: var(--secondary);
}

.search-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: Georgia, serif;
    outline: none;
    color: var(--dark);
}

.search-field input::placeholder {
    color: var(--gray-light);
    font-style: italic;
}

.btn-search {
    background: var(--gradient-royal);
    color: var(--cream);
    padding: 16px 32px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    box-shadow: var(--shadow-primary-sm);
    border: 2px solid var(--secondary);
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: 1px;
}

.btn-search:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-primary);
}

/* Victorian Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.stat:last-child::after {
    display: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Hero Floating Cards */
.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
}

.floating-card {
    position: absolute;
    background: var(--cream);
    padding: 18px 28px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(184, 134, 11, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: 2px solid rgba(184, 134, 11, 0.3);
    animation: float 6s ease-in-out infinite;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.floating-card i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-royal);
    border-radius: var(--radius-xs);
    color: var(--cream);
    font-size: 1.2rem;
    border: 1px solid var(--secondary);
}

.card-1 {
    top: 15%;
    left: -5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: -5%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(2deg); }
    75% { transform: translateY(8px) rotate(-2deg); }
}

/* ==================== SECTIONS ==================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(184, 134, 11, 0.15));
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid rgba(184, 134, 11, 0.3);
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.section-header p {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'EB Garamond', Georgia, serif;
}

/* ==================== VICTORIAN CATEGORIES SECTION ==================== */
.categories-section {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
}

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

.category-card {
    background: var(--cream);
    padding: 40px 32px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid rgba(184, 134, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-royal);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: var(--gradient-royal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-primary-sm);
    border: 2px solid var(--secondary);
    position: relative;
}

.category-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
}

.job-count {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* ==================== FEATURED JOBS ==================== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.job-card {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 2px solid rgba(184, 134, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1rem;
    color: var(--secondary);
    opacity: 0.4;
}

.job-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-royal);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow), inset 0 0 30px rgba(184, 134, 11, 0.03);
    border-color: var(--secondary);
}

.job-card:hover::after {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light), var(--gray-200));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all var(--transition);
}

.job-card:hover .company-logo {
    background: var(--gradient);
    color: var(--white);
    transform: rotate(-5deg);
}

.job-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--dark);
    transition: color var(--transition);
}

.job-card:hover .job-info h3 {
    color: var(--primary);
}

.job-info .company {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.job-tag {
    background: var(--parchment);
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    color: var(--gray-800);
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid rgba(184, 134, 11, 0.15);
    font-family: Georgia, serif;
}

.job-tag.highlight {
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(184, 134, 11, 0.1));
    color: var(--primary);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.job-card:hover .job-tag {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.job-salary {
    font-weight: 700;
    color: var(--secondary);
}

.job-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 0.9rem;
}

.job-location i {
    color: var(--primary-light);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* ==================== WHY US SECTION ==================== */
.why-us {
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
    position: relative;
}

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

.feature-card {
    background: var(--cream);
    padding: 48px 36px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
    border: 2px solid rgba(184, 134, 11, 0.2);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    padding: 2px;
    background: var(--gradient-royal);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(184, 134, 11, 0.15);
    border-color: var(--secondary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(184, 134, 11, 0.15));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 2px solid rgba(184, 134, 11, 0.2);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-royal);
    transform: scale(1.1);
    border-color: var(--secondary);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: color var(--transition);
}

.feature-card:hover .feature-icon i {
    color: var(--cream);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: Georgia, serif;
}

/* ==================== VICTORIAN COMPANIES SECTION ==================== */
.companies-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.companies-slider .company-logo {
    width: auto;
    height: auto;
    background: none;
    opacity: 0.5;
    transition: all var(--transition);
    filter: grayscale(100%);
}

.companies-slider .company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

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

.testimonial-card {
    background: var(--cream);
    padding: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    border: 2px solid rgba(184, 134, 11, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 24px;
    right: 30px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--secondary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(184, 134, 11, 0.1);
    border-color: var(--secondary);
}

.testimonial-content {
    margin-bottom: 24px;
}

.stars {
    color: var(--secondary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.testimonial-content p {
    color: var(--gray-800);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--secondary);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 700;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ==================== VICTORIAN CTA SECTION ==================== */
.cta-section {
    background: var(--gradient-royal);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 4px double var(--secondary-light);
    border-bottom: 4px double var(--secondary-light);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    color: var(--cream);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    font-weight: 800;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: Georgia, serif;
}

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

/* ==================== VICTORIAN FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, var(--neutral-950) 100%);
    color: var(--cream);
    padding: 100px 0 24px;
    border-top: 4px double var(--secondary);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(184, 134, 11, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--gray-light);
    margin: 20px 0;
    line-height: 1.8;
    font-family: Georgia, serif;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(184, 134, 11, 0.15);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--gray-light);
    transition: all var(--transition);
    display: inline-block;
    font-family: Georgia, serif;
}

.footer-links a:hover {
    color: var(--secondary-light);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid rgba(184, 134, 11, 0.3);
    color: var(--gray-light);
    font-size: 0.9rem;
    font-family: Georgia, serif;
}

/* ==================== VICTORIAN JOBS PAGE ==================== */
.jobs-page {
    padding-top: 100px;
}

.jobs-header {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
    padding: 50px 0;
}

.jobs-header h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.jobs-count {
    color: var(--gray);
    font-weight: 500;
}

.jobs-filter-bar {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid var(--gray-200);
}

.filter-select {
    padding: 12px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--gray-800);
}

.filter-select:hover {
    border-color: var(--primary-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.job-list-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.job-list-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.job-list-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

.job-list-card:hover::before {
    transform: scaleY(1);
}

.job-list-info {
    display: flex;
    gap: 20px;
    flex: 1;
}

.job-list-details h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--dark);
    transition: color var(--transition);
}

.job-list-card:hover .job-list-details h3 {
    color: var(--primary);
}

.job-list-details .company {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.job-list-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.job-list-salary {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.job-list-date {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Victorian Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-family: Georgia, serif;
}

.breadcrumb a {
    color: var(--gray);
    transition: color var(--transition);
}

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

.breadcrumb span {
    color: var(--dark);
    font-weight: 500;
}

/* Victorian Page Header */
.page-header {
    background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
    padding: 70px 0 50px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px double var(--secondary);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    font-weight: 800;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.page-header p {
    color: var(--gray);
    font-size: 1.15rem;
    font-family: Georgia, serif;
}

/* ==================== VICTORIAN JOB DETAILS PAGE ==================== */
.job-details-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--cream);
}

.job-details-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.job-header {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(184, 134, 11, 0.2);
}

.job-title-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.job-title-section .company-name {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, serif;
}

.job-title-section .company-name i {
    font-size: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.job-meta span i {
    color: var(--primary);
    font-size: 1rem;
}

.job-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.job-description {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.job-description h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    margin-top: 28px;
}

.job-description h3:first-child {
    margin-top: 0;
}

.job-description p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.job-description ul {
    margin: 16px 0;
    padding-left: 24px;
}

.job-description ul li {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.job-description ul li::marker {
    color: var(--primary);
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.sidebar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-100);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card ul li {
    padding: 10px 0;
    color: var(--gray);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.sidebar-card ul li:last-child {
    border-bottom: none;
}

.sidebar-card ul li strong {
    color: var(--dark);
    font-weight: 600;
}

.sidebar-card.skills .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-card.skills .skill-tags span {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-200);
}

.apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-primary);
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary), 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.save-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

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

/* Job Page Footer */
.job-details-page + footer,
footer {
    background: var(--dark);
    color: var(--white);
    padding: 24px 0;
    text-align: center;
}

footer p {
    margin: 0;
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* Job Details Page Responsive */
@media (max-width: 968px) {
    .job-content {
        grid-template-columns: 1fr;
    }
    
    .job-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .job-header {
        padding: 28px;
    }
    
    .job-description {
        padding: 28px;
    }
    
    .job-meta {
        gap: 16px;
    }
    
    .job-meta span {
        font-size: 0.9rem;
    }
}

/* ==================== JOB DETAIL PAGE ==================== */
.job-detail-page {
    padding-top: 100px;
}

.job-detail-header {
    background: linear-gradient(180deg, var(--lighter) 0%, #e0e7ff 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.job-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.job-detail-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.job-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
}

.job-detail-info {
    display: flex;
    gap: 24px;
}

.job-detail-logo {
    width: 88px;
    height: 88px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}

.job-detail-text h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.job-detail-text .company-name {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-weight: 500;
}

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

.job-detail-actions {
    display: flex;
    gap: 12px;
}

.job-content {
    padding: 70px 0;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.job-description h2,
.job-description h3 {
    color: var(--dark);
    margin-bottom: 16px;
    margin-top: 36px;
    font-weight: 700;
}

.job-description h2:first-child {
    margin-top: 0;
}

.job-description ul {
    list-style: none;
    padding-left: 0;
    color: var(--gray-800);
}

.job-description li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
}

.job-description li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.job-description p {
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.8;
}

.job-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-lg);
}

.sidebar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light);
    font-weight: 700;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--light);
}

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

.sidebar-item span:first-child {
    color: var(--gray);
    font-weight: 500;
}

.sidebar-item span:last-child {
    font-weight: 600;
    color: var(--dark);
}

.apply-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
}

/* ==================== ABOUT PAGE ==================== */
.about-content {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.about-text p {
    color: var(--gray-800);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-image {
    background: var(--gradient);
    border-radius: var(--radius-2xl);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9rem;
    box-shadow: var(--shadow-2xl);
}

/* ==================== CONTACT PAGE ==================== */
.contact-content {
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-form {
    background: var(--cream);
    padding: 48px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(184, 134, 11, 0.2);
}

.contact-form h2 {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    color: var(--primary);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(184, 134, 11, 0.2);
    border-radius: var(--radius-xs);
    font-family: Georgia, serif;
    font-size: 1rem;
    transition: all var(--transition);
    background: var(--parchment);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--cream);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
    font-style: italic;
}

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

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    font-weight: 800;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.1), rgba(184, 134, 11, 0.15));
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(184, 134, 11, 0.2);
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-text h4 {
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-text p {
    color: var(--gray);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.pagination a:hover,
.pagination span.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* ==================== LOADING ANIMATION ==================== */
.loading {
    display: flex;
    justify-content: center;
    padding: 48px;
}

.loading::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== SHARE BUTTONS ==================== */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    margin-right: 8px;
}

.job-sidebar .share-buttons {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    justify-content: center;
}

.job-sidebar .share-buttons .share-btn {
    padding: 12px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-bounce);
    border: none;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #1da851);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5, #005a8d);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8ddb);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, var(--gray), var(--gray-800));
}

.share-btn.copy-link.copied {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

/* ==================== SAVE JOB BUTTON ==================== */
.save-btn {
    width: 100%;
    margin-top: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), #059669);
    transition: left var(--transition);
    z-index: -1;
}

.save-btn:hover::before {
    left: 0;
}

.save-btn.saved {
    background: linear-gradient(135deg, var(--secondary), #059669);
    border-color: var(--secondary);
    color: white;
}

.save-btn.saved i {
    font-weight: 900;
}

/* ==================== BADGES ==================== */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.job-card .new-badge,
.job-list-card .new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.job-card,
.job-list-card {
    position: relative;
}

.hot-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-left: 8px;
    text-transform: uppercase;
    animation: badge-pulse 2s ease-in-out infinite;
}

/* ==================== SAVED JOBS BANNER ==================== */
.saved-jobs-banner {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
    padding: 18px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.saved-jobs-banner a {
    background: white;
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.saved-jobs-banner a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 18px 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast i {
    font-size: 1.25rem;
}

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

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.categories-grid .category-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.categories-grid .category-card.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.categories-grid .category-card.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.categories-grid .category-card.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.categories-grid .category-card.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.categories-grid .category-card.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

.jobs-grid .job-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.jobs-grid .job-card.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.jobs-grid .job-card.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.jobs-grid .job-card.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.jobs-grid .job-card.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.jobs-grid .job-card.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* Navigation adjustments for medium screens */
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .nav-links {
        gap: 2px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-content-grid {
        grid-template-columns: 1fr;
    }
    
    .job-sidebar {
        position: static;
    }
}

/* MOBILE NAVIGATION - Trigger at 1100px for 7 nav items to prevent cramping */
@media (max-width: 1100px) {
    .nav-links {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 8px;
        z-index: 9998;
        overflow-y: auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        animation: mobileMenuSlide 0.35s ease-out forwards;
    }
    
    @keyframes mobileMenuSlide {
        from { 
            opacity: 0; 
            transform: translateY(-30px);
        }
        to { 
            opacity: 1; 
            transform: translateY(0);
        }
    }
    
    .nav-links li {
        width: 100%;
        list-style: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        padding: 18px 20px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--neutral-700) !important;
        background: transparent !important;
        transition: all 0.25s ease;
        text-decoration: none;
    }
    
    .nav-links a::after {
        display: none !important;
    }
    
    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.08) !important;
        color: var(--primary) !important;
        transform: translateX(8px);
    }
    
    .nav-links a.active {
        background: rgba(99, 102, 241, 0.1) !important;
        color: var(--primary) !important;
        font-weight: 600;
        border-left: 4px solid var(--primary);
    }
    
    .hamburger,
    .menu-btn {
        display: flex !important;
        z-index: 10001;
        position: relative;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 20px 0;
        margin-bottom: 10px;
        border-bottom: 2px solid rgba(99, 102, 241, 0.1) !important;
    }
    
    .mobile-menu-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--neutral-800);
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
    
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: none;
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
        font-size: 1.3rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-close:hover {
        background: var(--primary);
        color: white;
        transform: rotate(90deg);
    }
}

/* Layout adjustments for tablets and smaller */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    
    .stat::after {
        display: none;
    }
    
    .categories-grid,
    .jobs-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .job-list-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .job-list-actions {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .job-detail-top {
        flex-direction: column;
    }
    
    .job-detail-actions {
        width: 100%;
    }
    
    .job-detail-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .category-card,
    .feature-card {
        padding: 28px 24px;
    }
    
    .job-card {
        padding: 24px;
    }
    
    .job-detail-card {
        padding: 28px;
    }
    
    .contact-form {
        padding: 28px;
    }
}

/* ==================== VICTORIAN DARK MODE ==================== */
[data-theme="dark"] {
    --primary-50: #2d1215;
    --neutral-50: #1a1612;
    --neutral-100: #2d261d;
    --neutral-200: #4a3f30;
    --neutral-700: #ebe4d8;
    --neutral-800: #f5f0e8;
    --neutral-900: #faf8f5;
    --white: #1a1612;
    --light: #2d261d;
    --lighter: #2d261d;
    --dark: #faf8f5;
    --gray: #b8a890;
    --cream: #1a1612;
    --parchment: #2d261d;
}

[data-theme="dark"] body {
    background: #0d0a08;
    color: #ebe4d8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .navbar {
    background: rgba(26, 22, 18, 0.95);
    border-bottom: 3px double var(--secondary);
}

[data-theme="dark"] .job-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card {
    background: linear-gradient(145deg, rgba(45, 38, 29, 0.9), rgba(26, 22, 18, 0.95));
    border: 2px solid rgba(184, 134, 11, 0.2);
}

[data-theme="dark"] .job-list-card {
    background: rgba(45, 38, 29, 0.5);
    border: 2px solid rgba(184, 134, 11, 0.15);
}

[data-theme="dark"] .search-box {
    background: rgba(45, 38, 29, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .search-field input {
    color: #f5f0e8;
}

[data-theme="dark"] .footer {
    background: #0d0a08;
    border-top: 3px double var(--secondary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #faf8f5;
}

[data-theme="dark"] .job-tag {
    background: rgba(184, 134, 11, 0.2);
    color: #d4af37;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, 
        #0d0a08 0%, 
        #1a1612 30%,
        #2d261d 60%,
        #0d0a08 100%
    );
}

[data-theme="dark"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.06'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1a1612 0%, #2d261d 100%);
    border-bottom: 3px double var(--secondary);
}

[data-theme="dark"] .section-badge {
    background: rgba(184, 134, 11, 0.15);
    color: #d4af37;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .contact-form,
[data-theme="dark"] .job-detail-card {
    background: rgba(45, 38, 29, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.2);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(26, 22, 18, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
    color: #ebe4d8;
}

[data-theme="dark"] .glass {
    background: rgba(26, 22, 18, 0.85);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] ::selection {
    background: rgba(184, 134, 11, 0.4);
    color: #faf8f5;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1612;
    border-left: 1px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
    border: 3px solid #1a1612;
}

/* Victorian Dark mode toggle button */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--secondary);
    cursor: pointer;
    background: var(--gradient-royal);
    color: var(--secondary-light);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(184, 134, 11, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary), 0 0 30px rgba(184, 134, 11, 0.4);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

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

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --neutral-50: #0f172a;
        --neutral-100: #1e293b;
        --white: #0f172a;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary: #4338ca;
        --secondary: #047857;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .share-buttons,
    .cta-section,
    .btn,
    .scroll-to-top,
    .theme-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .job-detail-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==================== FOCUS STATES FOR ACCESSIBILITY ==================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--cream);
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    z-index: 10000;
    transition: top 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    border: 2px solid var(--secondary);
}

.skip-link:focus {
    top: 10px;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.animated {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==================== HOVER MICRO-INTERACTIONS ==================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Icon Rotation on Hover */
.icon-rotate:hover i {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* Text Highlight on Hover */
.text-highlight {
    position: relative;
    display: inline;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(184, 134, 11, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.text-highlight:hover::after {
    transform: scaleX(1);
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .share-buttons,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .job-card,
    .feature-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ==================== VICTORIAN PAGE TRANSITIONS ==================== */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==================== LOADING SKELETON ==================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--neutral-200) 25%,
        var(--neutral-100) 50%,
        var(--neutral-200) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-card {
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
}

/* ==================== VICTORIAN SELECTION ==================== */
::selection {
    background: rgba(184, 134, 11, 0.3);
    color: var(--primary);
}

::-moz-selection {
    background: rgba(184, 134, 11, 0.3);
    color: var(--primary);
}

/* ==================== ELEGANT SCROLLBAR (WEBKIT) ==================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 6px;
    border: 2px solid var(--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

::-webkit-scrollbar-corner {
    background: var(--neutral-100);
}

/* ==================== VICTORIAN GLOWING BUTTON ==================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* ==================== VICTORIAN DIVIDER LINES ==================== */
.divider-ornate {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
}

.divider-ornate::before,
.divider-ornate::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--secondary);
    margin: 0 20px;
}

.divider-ornate span {
    font-family: serif;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* ==================== VICTORIAN CARD SHIMMER ==================== */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer-slide 3s infinite;
    pointer-events: none;
}

@keyframes shimmer-slide {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* ==================== VICTORIAN UNDERLINE EFFECT ==================== */
.underline-victorian {
    position: relative;
    display: inline-block;
}

.underline-victorian::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.underline-victorian:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skeleton {
        animation: none;
    }
    
    .card-shimmer::after {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary: #4a1e23;
        --secondary: #7a4f1a;
    }
    
    .btn,
    .job-card,
    .feature-card {
        border-width: 2px;
    }
}

/* ==================== VICTORIAN EMBOSSED TEXT ==================== */
.text-embossed {
    color: var(--primary);
    text-shadow: 
        1px 1px 1px rgba(255, 255, 255, 0.8),
        -1px -1px 1px rgba(0, 0, 0, 0.1);
}

.text-engraved {
    color: var(--neutral-600);
    text-shadow: 
        1px 1px 0 rgba(255, 255, 255, 0.9),
        -1px -1px 0 rgba(0, 0, 0, 0.2);
}

/* ==================== VICTORIAN GRADIENT TEXT ==================== */
.text-gradient-victorian {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== ELEGANT INPUT FOCUS ==================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15), 0 2px 8px rgba(114, 47, 55, 0.1) !important;
}

/* ==================== VICTORIAN DECORATIVE BORDER ==================== */
.border-victorian {
    border: double 4px var(--secondary);
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.border-victorian::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

/* ==================== RESPONSIVE TYPOGRAPHY FINE-TUNING ==================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}
/* ==================== TEXT VISIBILITY FIXES ==================== */
/* Ensure all text is clearly visible against backgrounds */

/* Search Box Enhanced Styling */
.search-box {
    background: var(--white);
    border: 3px solid var(--secondary);
    box-shadow: 0 8px 32px rgba(114, 47, 55, 0.15), 0 0 0 1px rgba(184, 134, 11, 0.1);
}

.search-field {
    background: var(--neutral-50);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
}

.search-field:focus-within {
    background: var(--white);
    border-color: var(--secondary);
}

.search-field input {
    color: var(--dark);
    font-weight: 500;
}

.search-field input::placeholder {
    color: var(--neutral-500);
    font-weight: 400;
}

.search-field i {
    color: var(--primary);
    opacity: 0.7;
}

.search-field:focus-within i {
    color: var(--secondary);
    opacity: 1;
}

/* Global Text Visibility */
p, span, label, li {
    color: var(--neutral-700);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
}

/* Card Text Visibility */
.job-card p,
.feature-card p,
.category-card p,
.testimonial-card p {
    color: var(--neutral-600);
}

.job-card h3,
.feature-card h3,
.category-card h3 {
    color: var(--dark);
}

/* Form Elements Text Visibility */
input, textarea, select {
    color: var(--dark) !important;
    background: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: var(--neutral-500) !important;
    opacity: 1;
}

/* Panel and Section Text */
.panel, .section, .card {
    color: var(--dark);
}

.panel h2, .panel h3, .panel h4,
.section h2, .section h3, .section h4 {
    color: var(--dark);
}

.panel p, .section p {
    color: var(--neutral-700);
}

/* Badge and Tag Text */
.badge, .tag, .job-tag {
    font-weight: 600;
}

/* ==================== DARK MODE TEXT VISIBILITY FIXES ==================== */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] label,
[data-theme="dark"] li {
    color: var(--neutral-300);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f5f0e8;
}

[data-theme="dark"] .search-box {
    background: rgba(45, 38, 29, 0.95);
    border-color: var(--secondary);
}

[data-theme="dark"] .search-field {
    background: rgba(26, 22, 18, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .search-field input {
    color: #f5f0e8 !important;
}

[data-theme="dark"] .search-field input::placeholder {
    color: #b8a890 !important;
}

[data-theme="dark"] .search-field i {
    color: var(--secondary);
}

[data-theme="dark"] .job-card p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .category-card p {
    color: #d9cfc0;
}

[data-theme="dark"] .job-card h3,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .category-card h3 {
    color: #faf8f5;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    color: #f5f0e8 !important;
    background: rgba(26, 22, 18, 0.9) !important;
    border-color: rgba(184, 134, 11, 0.3) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #8b7355 !important;
}

[data-theme="dark"] .panel,
[data-theme="dark"] .section {
    background: rgba(45, 38, 29, 0.95);
    color: #ebe4d8;
}

[data-theme="dark"] .panel h2,
[data-theme="dark"] .panel h3,
[data-theme="dark"] .panel p {
    color: #ebe4d8;
}

/* ==================== RESUME SCREENER DARK MODE ==================== */
[data-theme="dark"] .screener-page {
    background: linear-gradient(180deg, #0d0a08 0%, #1a1612 100%);
}

[data-theme="dark"] .screener-hero {
    background: linear-gradient(135deg, #722f37 0%, #5c252c 50%, #b8860b 100%);
}

[data-theme="dark"] .panel {
    background: rgba(45, 38, 29, 0.95);
    border: 2px solid rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .panel-header {
    border-bottom-color: rgba(184, 134, 11, 0.2);
}

[data-theme="dark"] .panel-header h2 {
    color: #faf8f5;
}

[data-theme="dark"] .drop-zone {
    background: linear-gradient(135deg, rgba(26, 22, 18, 0.8) 0%, rgba(45, 38, 29, 0.9) 100%);
    border-color: rgba(184, 134, 11, 0.4);
}

[data-theme="dark"] .drop-zone h3 {
    color: #faf8f5;
}

[data-theme="dark"] .drop-zone p {
    color: #b8a890;
}

[data-theme="dark"] .drop-zone .format-badge {
    background: rgba(184, 134, 11, 0.2);
    color: #d4af37;
}

[data-theme="dark"] .jd-section label {
    color: #faf8f5;
}

[data-theme="dark"] .jd-section textarea {
    background: rgba(26, 22, 18, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
    color: #ebe4d8;
}

[data-theme="dark"] .jd-tips {
    background: rgba(184, 134, 11, 0.15);
    color: #d4af37;
}

[data-theme="dark"] .option-group label {
    color: #d9cfc0;
}

[data-theme="dark"] .option-group select {
    background: rgba(26, 22, 18, 0.8);
    color: #ebe4d8;
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .overall-score-section {
    background: linear-gradient(135deg, rgba(45, 38, 29, 0.9) 0%, rgba(26, 22, 18, 0.95) 100%);
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .score-ring .score-value {
    color: #faf8f5;
}

[data-theme="dark"] .score-ring .score-label {
    color: #b8a890;
}

[data-theme="dark"] .score-details h3 {
    color: #faf8f5;
}

[data-theme="dark"] .breakdown-item {
    background: rgba(26, 22, 18, 0.8);
}

[data-theme="dark"] .breakdown-item .item-label {
    color: #b8a890;
}

[data-theme="dark"] .breakdown-item .item-value {
    color: #faf8f5;
}

[data-theme="dark"] .tabs {
    background: rgba(26, 22, 18, 0.8);
}

[data-theme="dark"] .tab-btn {
    color: #b8a890;
}

[data-theme="dark"] .tab-btn:hover {
    color: #d9cfc0;
}

[data-theme="dark"] .tab-btn.active {
    background: rgba(114, 47, 55, 0.8);
    color: #faf8f5;
}

[data-theme="dark"] .section-header h3 {
    color: #faf8f5;
}

[data-theme="dark"] .issue-item {
    background: rgba(45, 38, 29, 0.8);
    border-color: rgba(184, 134, 11, 0.2);
    color: #ebe4d8;
}

[data-theme="dark"] .issue-item.error {
    background: rgba(114, 47, 55, 0.2);
    border-color: rgba(114, 47, 55, 0.4);
}

[data-theme="dark"] .issue-item.warning {
    background: rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.3);
}

[data-theme="dark"] .issue-item.success {
    background: rgba(26, 61, 46, 0.2);
    border-color: rgba(26, 61, 46, 0.4);
}

[data-theme="dark"] .issue-item.info {
    background: rgba(26, 54, 93, 0.2);
    border-color: rgba(26, 54, 93, 0.4);
}

[data-theme="dark"] .results-placeholder {
    color: #8b7355;
}

[data-theme="dark"] .results-placeholder h3 {
    color: #b8a890;
}

[data-theme="dark"] .results-placeholder .placeholder-icon {
    background: rgba(45, 38, 29, 0.8);
}

[data-theme="dark"] .results-placeholder .placeholder-icon i {
    color: #6b5a45;
}

[data-theme="dark"] .file-preview {
    background: linear-gradient(135deg, rgba(26, 61, 46, 0.3) 0%, rgba(45, 90, 68, 0.2) 100%);
    border-color: rgba(45, 90, 68, 0.4);
}

[data-theme="dark"] .file-preview .file-name {
    color: #faf8f5;
}

[data-theme="dark"] .file-preview .file-size {
    color: #b8a890;
}

[data-theme="dark"] .progress-bar {
    background: rgba(45, 38, 29, 0.8);
}

[data-theme="dark"] .progress-step .step-label {
    color: #8b7355;
}

[data-theme="dark"] .progress-step.active .step-label {
    color: #d4af37;
}

/* ==================== CONSISTENT PAGE BACKGROUNDS ==================== */
/* Ensure all pages respect the dark mode setting */
[data-theme="dark"] .page-content,
[data-theme="dark"] main,
[data-theme="dark"] .main-content {
    background: #0d0a08;
}

[data-theme="dark"] .container {
    color: #ebe4d8;
}

/* Page Header Dark Mode */
[data-theme="dark"] .page-header h1 {
    color: #faf8f5;
}

[data-theme="dark"] .page-header p,
[data-theme="dark"] .page-header .breadcrumb {
    color: #b8a890;
}

/* Footer Dark Mode Text */
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer span,
[data-theme="dark"] .footer a {
    color: #d9cfc0;
}

[data-theme="dark"] .footer h4 {
    color: #faf8f5;
}

/* Button Text Visibility */
.btn {
    font-weight: 600;
}

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

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

[data-theme="dark"] .btn-outline {
    color: var(--secondary-light);
    border-color: var(--secondary);
}

[data-theme="dark"] .btn-outline:hover {
    color: var(--cream);
    background: var(--primary);
}