/*
Theme Name: HireDesk
Theme URI: https://example.com/hiredesk
Author: HireDesk Team
Description: A minimal, modern, tech-styled job portal theme with complete lead management system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: hiredesk

HireDesk - Modern Job Portal Theme
Inspired by Tambo.co minimalism + LinkedIn trustworthiness
*/

/* ==========================================================================
   DESIGN SYSTEM - CSS Variables
   ========================================================================== */

:root {
    /* ─────────────────────────────────────────────────────────────────────
       COLOR SYSTEM - Strict Palette
       ───────────────────────────────────────────────────────────────────── */

    /* Primary Blue (LinkedIn-inspired trust tones) */
    --hd-primary: #0A66C2;
    --hd-primary-light: #E6F0FA;
    --hd-primary-dark: #084C92;
    --hd-primary-hover: #0857A6;

    /* Neutral / Grayscale */
    --hd-white: #FFFFFF;
    --hd-gray-50: #F5F7FA;
    --hd-gray-100: #E4E7EB;
    --hd-gray-200: #D1D5DB;
    --hd-gray-300: #B5B9C2;
    --hd-gray-400: #9CA3AF;
    --hd-gray-500: #6B7280;
    --hd-gray-600: #4B5563;
    --hd-gray-700: #374151;
    --hd-gray-800: #2E3135;
    --hd-gray-900: #1F2937;

    /* Accent Colors (use sparingly) */
    --hd-green: #60A5FA;
    --hd-green-light: #E6F0FA;
    --hd-yellow: #FFC247;
    --hd-yellow-light: #FFF8E6;
    --hd-orange: #FF8A3D;
    --hd-orange-light: #FFF3EB;
    --hd-red: #DC3545;
    --hd-red-light: #FDECEA;

    /* ─────────────────────────────────────────────────────────────────────
       TYPOGRAPHY SYSTEM
       ───────────────────────────────────────────────────────────────────── */

    /* Fonts */
    --hd-font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hd-font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --hd-text-xs: 0.75rem;
    /* 12px */
    --hd-text-sm: 0.875rem;
    /* 14px */
    --hd-text-base: 1rem;
    /* 16px */
    --hd-text-lg: 1.125rem;
    /* 18px */
    --hd-text-xl: 1.25rem;
    /* 20px */
    --hd-text-2xl: 1.5rem;
    /* 24px */
    --hd-text-3xl: 1.875rem;
    /* 30px */
    --hd-text-4xl: 2.25rem;
    /* 36px */
    --hd-text-5xl: 3rem;
    /* 48px */
    --hd-text-6xl: 4rem;
    /* 64px */

    /* Line Heights */
    --hd-leading-tight: 1.15;
    --hd-leading-snug: 1.25;
    --hd-leading-normal: 1.4;
    --hd-leading-relaxed: 1.5;

    /* Letter Spacing */
    --hd-tracking-tight: -0.025em;
    --hd-tracking-normal: 0;
    --hd-tracking-wide: 0.025em;

    /* ─────────────────────────────────────────────────────────────────────
       SPACING SYSTEM (4pt / 8pt Grid)
       ───────────────────────────────────────────────────────────────────── */

    --hd-space-1: 0.25rem;
    /* 4px */
    --hd-space-2: 0.5rem;
    /* 8px */
    --hd-space-3: 0.75rem;
    /* 12px */
    --hd-space-4: 1rem;
    /* 16px */
    --hd-space-5: 1.25rem;
    /* 20px */
    --hd-space-6: 1.5rem;
    /* 24px */
    --hd-space-8: 2rem;
    /* 32px */
    --hd-space-10: 2.5rem;
    /* 40px */
    --hd-space-12: 3rem;
    /* 48px */
    --hd-space-16: 4rem;
    /* 64px */
    --hd-space-20: 5rem;
    /* 80px */
    --hd-space-24: 6rem;
    /* 96px */
    --hd-space-32: 8rem;
    /* 128px */

    /* ─────────────────────────────────────────────────────────────────────
       UI TOKENS
       ───────────────────────────────────────────────────────────────────── */

    /* Border Radius */
    --hd-radius-sm: 6px;
    --hd-radius-md: 8px;
    --hd-radius-lg: 10px;
    --hd-radius-xl: 10px;
    --hd-radius-2xl: 10px;
    --hd-radius-full: 9999px;

    /* Shadows (Tambo-inspired soft shadows) */
    --hd-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --hd-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --hd-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --hd-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --hd-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.05);
    --hd-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    --hd-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --hd-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --hd-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --hd-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --hd-transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --hd-container-max: 1200px;
    --hd-container-padding: 1.5rem;

    /* Semantic Colors */
    --hd-bg-primary: var(--hd-white);
    --hd-bg-secondary: var(--hd-gray-50);
    --hd-bg-tertiary: var(--hd-gray-100);
    --hd-text-primary: var(--hd-gray-900);
    --hd-text-secondary: var(--hd-gray-600);
    --hd-text-muted: var(--hd-gray-500);
    --hd-border: var(--hd-gray-100);
    --hd-border-strong: var(--hd-gray-200);
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--hd-font-body);
    font-size: var(--hd-text-base);
    font-weight: 400;
    line-height: var(--hd-leading-normal);
    color: var(--hd-text-primary);
    background-color: var(--hd-bg-primary);
}

/* Headings - Inter, tight tracking, confident weight */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--hd-font-heading);
    font-weight: 700;
    line-height: var(--hd-leading-tight);
    letter-spacing: var(--hd-tracking-tight);
    color: var(--hd-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, var(--hd-text-6xl));
    font-weight: 600;
}

h2 {
    font-size: clamp(1.875rem, 4vw, var(--hd-text-5xl));
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, var(--hd-text-3xl));
    font-weight: 500;
}

h4 {
    font-size: var(--hd-text-xl);
    font-weight: 500;
}

h5 {
    font-size: var(--hd-text-lg);
    font-weight: 500;
}

h6 {
    font-size: var(--hd-text-base);
    font-weight: 500;
}

p {
    margin-bottom: var(--hd-space-4);
    color: var(--hd-text-secondary);
    line-height: var(--hd-leading-relaxed);
}

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

a:hover {
    color: var(--hd-primary-dark);
}

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

strong {
    font-weight: 600;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.hd-container {
    width: 100%;
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 var(--hd-container-padding);
}

.hd-section {
    padding: var(--hd-space-20) 0;
}

.hd-section-lg {
    padding: var(--hd-space-24) 0;
}

.hd-section-header {
    text-align: center;
    margin-bottom: var(--hd-space-12);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hd-section-header h2 {
    margin-bottom: var(--hd-space-4);
}

.hd-section-header p {
    font-size: var(--hd-text-lg);
    color: var(--hd-text-secondary);
    margin: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hd-space-2);
    padding: 0.75rem 1.5rem;
    font-family: var(--hd-font-body);
    font-size: var(--hd-text-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--hd-radius-lg);
    cursor: pointer;
    transition: all var(--hd-transition-base);
    white-space: nowrap;
}

.hd-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--hd-primary-light);
}

/* Primary Button */
.hd-btn-primary {
    background-color: var(--hd-primary);
    color: var(--hd-white);
    box-shadow: var(--hd-shadow-sm);
}

.hd-btn-primary:hover {
    background-color: var(--hd-primary-dark);
    color: var(--hd-white);
    transform: translateY(-1px);
    box-shadow: var(--hd-shadow-md);
}

.hd-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.hd-btn-secondary {
    background-color: var(--hd-white);
    color: var(--hd-primary);
    border: 1px solid var(--hd-primary);
}

.hd-btn-secondary:hover {
    background-color: var(--hd-primary-light);
    color: var(--hd-primary);
}

/* Outline Button */
.hd-btn-outline {
    background-color: transparent;
    color: var(--hd-text-primary);
    border: 1px solid var(--hd-border-strong);
}

.hd-btn-outline:hover {
    background-color: var(--hd-gray-50);
    border-color: var(--hd-gray-300);
    color: var(--hd-text-primary);
}

/* Success/CTA Button */
.hd-btn-success {
    background-color: var(--hd-green);
    color: var(--hd-white);
}

.hd-btn-success:hover {
    background-color: #229A3E;
    color: var(--hd-white);
    transform: translateY(-1px);
}

/* Button Sizes */
.hd-btn-lg {
    padding: 1rem 2rem;
    font-size: var(--hd-text-lg);
    border-radius: var(--hd-radius-xl);
}

.hd-btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--hd-text-sm);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.hd-form-group {
    margin-bottom: var(--hd-space-5);
}

.hd-form-label {
    display: block;
    margin-bottom: var(--hd-space-2);
    font-size: var(--hd-text-sm);
    font-weight: 500;
    color: var(--hd-text-primary);
}

.hd-form-input,
.hd-form-textarea,
.hd-form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--hd-font-body);
    font-size: var(--hd-text-base);
    color: var(--hd-text-primary);
    background-color: var(--hd-white);
    border: 1px solid var(--hd-border-strong);
    border-radius: var(--hd-radius-md);
    transition: all var(--hd-transition-fast);
}

.hd-form-input:hover,
.hd-form-textarea:hover,
.hd-form-select:hover {
    border-color: var(--hd-gray-300);
}

.hd-form-input:focus,
.hd-form-textarea:focus,
.hd-form-select:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 3px var(--hd-primary-light);
}

.hd-form-input::placeholder,
.hd-form-textarea::placeholder {
    color: var(--hd-gray-400);
}

.hd-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--hd-leading-relaxed);
}

/* File Upload */
.hd-form-file {
    padding: var(--hd-space-6);
    text-align: center;
    border: 2px dashed var(--hd-border-strong);
    border-radius: var(--hd-radius-lg);
    background-color: var(--hd-gray-50);
    cursor: pointer;
    transition: all var(--hd-transition-fast);
}

.hd-form-file:hover {
    border-color: var(--hd-primary);
    background-color: var(--hd-primary-light);
}

.hd-form-file input {
    display: none;
}

.hd-form-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hd-space-2);
    color: var(--hd-text-secondary);
    font-size: var(--hd-text-sm);
}

.hd-form-file-label svg {
    width: 32px;
    height: 32px;
    color: var(--hd-primary);
}

/* Error State */
.hd-form-error {
    color: var(--hd-red);
    font-size: var(--hd-text-sm);
    margin-top: var(--hd-space-1);
}

.hd-form-input.error {
    border-color: var(--hd-red);
}

/* ==========================================================================
   CARDS (Tambo-inspired minimal cards)
   ========================================================================== */

.hd-card {
    background-color: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-6);
    box-shadow: var(--hd-shadow-card);
    transition: all var(--hd-transition-base);
}

.hd-card:hover {
    border-color: var(--hd-border-strong);
    box-shadow: var(--hd-shadow-card-hover);
    transform: translateY(-4px);
}

/* ==========================================================================
   HEADER / NAVIGATION (Clean, minimal Tambo-style)
   ========================================================================== */

.hd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hd-border);
}

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

.hd-logo {
    display: flex;
    align-items: center;
    gap: var(--hd-space-3);
    font-family: var(--hd-font-heading);
    font-size: var(--hd-text-xl);
    font-weight: 700;
    color: var(--hd-text-primary);
    letter-spacing: var(--hd-tracking-tight);
}

.hd-logo:hover {
    color: var(--hd-text-primary);
}

.hd-logo-icon {
    width: 36px;
    height: 36px;
    background-color: var(--hd-primary);
    border-radius: var(--hd-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--hd-white);
}

.hd-nav {
    display: flex;
    align-items: center;
    gap: var(--hd-space-8);
}

.hd-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--hd-space-8);
    list-style: none;
}

.hd-nav-link {
    font-size: var(--hd-text-sm);
    font-weight: 500;
    color: var(--hd-text-secondary);
    transition: color var(--hd-transition-fast);
    padding: var(--hd-space-2) 0;
    position: relative;
}

.hd-nav-link:hover,
.hd-nav-link.active {
    color: var(--hd-text-primary);
}

.hd-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--hd-primary);
    border-radius: 1px;
}

.hd-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--hd-space-4);
}

.hd-theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--hd-border-strong);
    border-radius: var(--hd-radius-md);
    cursor: pointer;
    transition: all var(--hd-transition-fast);
    color: var(--hd-text-secondary);
}

.hd-theme-toggle:hover {
    background-color: var(--hd-gray-50);
    color: var(--hd-text-primary);
}

.hd-theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.hd-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.hd-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--hd-text-primary);
    border-radius: 2px;
    transition: all var(--hd-transition-fast);
}

@media (max-width: 768px) {
    .hd-nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--hd-white);
        border-bottom: 1px solid var(--hd-border);
        flex-direction: column;
        padding: var(--hd-space-6);
        gap: var(--hd-space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--hd-transition-base);
    }

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

    .hd-mobile-toggle {
        display: flex;
    }

    .hd-nav-actions .hd-btn {
        display: none;
    }

    /* Mobile CTA - show only in mobile menu */
    .hd-nav-mobile-cta {
        display: block;
        margin-top: var(--hd-space-4);
        padding-top: var(--hd-space-4);
        border-top: 1px solid var(--hd-border);
    }
}

/* Mobile CTA Button - hidden on desktop */
.hd-nav-mobile-cta {
    display: none;
}

/* ==========================================================================
   HERO SECTION (Tambo-inspired with grid background)
   ========================================================================== */

.hd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background-color: var(--hd-white);
    background-image:
        linear-gradient(to right, rgba(128, 128, 128, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.04) 1px, transparent 1px);
    background-size: 14px 24px;
    overflow: hidden;
}

/* Blurred gradient orb - brand blue */
.hd-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: var(--hd-primary);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* Secondary accent orb */
.hd-hero::after {
    content: '';
    position: absolute;
    right: 10%;
    bottom: 20%;
    width: 300px;
    height: 300px;
    background: #60A5FA;
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hd-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--hd-space-16) var(--hd-container-padding);
}

.hd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--hd-space-2);
    padding: 0.5rem 1rem;
    background-color: var(--hd-primary-light);
    border-radius: var(--hd-radius-full);
    color: var(--hd-primary);
    font-size: var(--hd-text-sm);
    font-weight: 500;
    margin-bottom: var(--hd-space-6);
}

.hd-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hd-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hd-hero h1 {
    margin-bottom: var(--hd-space-6);
    color: var(--hd-text-primary);
}

.hd-hero h1 .highlight {
    background: linear-gradient(to right, var(--hd-primary), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hd-hero-subtitle {
    font-size: var(--hd-text-xl);
    color: var(--hd-text-secondary);
    margin-bottom: var(--hd-space-10);
    line-height: var(--hd-leading-relaxed);
}

/* Hero Search Form */
.hd-hero-search-wrapper {
    max-width: 640px;
    margin: 0 auto var(--hd-space-12);
    position: relative;
    z-index: 10;
}

.hd-hero-search {
    display: flex;
    gap: var(--hd-space-3);
    padding: var(--hd-space-2);
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-lg);
}

.hd-search-input-wrap {
    flex: 1;
    position: relative;
}

.hd-hero-search .hd-search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    font-size: var(--hd-text-base);
    color: var(--hd-text-primary);
}

.hd-hero-search .hd-search-input:focus {
    outline: none;
}

.hd-hero-search .hd-search-input::placeholder {
    color: var(--hd-gray-400);
}

/* Search Suggestions Dropdown */
.hd-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    right: -8px;
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    box-shadow: var(--hd-shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.hd-search-suggestions.active {
    display: block;
}

.hd-search-suggestion {
    display: flex;
    align-items: center;
    gap: var(--hd-space-3);
    padding: var(--hd-space-3) var(--hd-space-4);
    cursor: pointer;
    transition: background var(--hd-transition-fast);
    border-bottom: 1px solid var(--hd-border);
}

.hd-search-suggestion:last-child {
    border-bottom: none;
}

.hd-search-suggestion:hover,
.hd-search-suggestion.active {
    background: var(--hd-gray-50);
}

.hd-search-suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--hd-radius-md);
    background: var(--hd-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-primary);
    font-size: var(--hd-text-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.hd-search-suggestion-content {
    flex: 1;
    min-width: 0;
}

.hd-search-suggestion-title {
    font-weight: 500;
    color: var(--hd-text-primary);
    font-size: var(--hd-text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-search-suggestion-meta {
    font-size: var(--hd-text-xs);
    color: var(--hd-text-muted);
}

/* Hero Stats */
.hd-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--hd-space-12);
}

.hd-hero-stat {
    text-align: center;
}

.hd-hero-stat-value {
    font-family: var(--hd-font-heading);
    font-size: var(--hd-text-4xl);
    font-weight: 700;
    color: var(--hd-text-primary);
    letter-spacing: var(--hd-tracking-tight);
}

.hd-hero-stat-label {
    font-size: var(--hd-text-sm);
    color: var(--hd-text-muted);
    margin-top: var(--hd-space-1);
}

@media (max-width: 640px) {
    .hd-hero-search {
        flex-direction: column;
        padding: var(--hd-space-3);
    }

    .hd-hero-stats {
        flex-wrap: wrap;
        gap: var(--hd-space-6);
    }
}

/* ==========================================================================
   LOGO CAROUSEL (Trusted By)
   ========================================================================== */

.hd-logos-section {
    padding: var(--hd-space-12) 0;
    background: var(--hd-white);
    border-top: 1px solid var(--hd-border);
    border-bottom: 1px solid var(--hd-border);
}

.hd-logos-title {
    text-align: center;
    font-size: var(--hd-text-sm);
    color: var(--hd-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--hd-tracking-wide);
    margin-bottom: var(--hd-space-8);
    font-weight: 500;
}

.hd-logos-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hd-logos-track {
    display: flex;
    gap: var(--hd-space-10);
    width: max-content;
    animation: logoScroll 25s linear infinite;
}

.hd-logos-track:hover {
    animation-play-state: paused;
}

.hd-logo-item {
    flex-shrink: 0;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-gray-400);
    transition: color var(--hd-transition-fast);
}

.hd-logo-item:hover {
    color: var(--hd-text-primary);
}

.hd-logo-item svg {
    width: 100%;
    height: 100%;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   JOB CARDS (Premium, minimal design)
   ========================================================================== */

.hd-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--hd-space-6);
    margin-bottom: var(--hd-space-12);
}

.hd-job-card {
    position: relative;
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-6);
    box-shadow: var(--hd-shadow-card);
    transition: all var(--hd-transition-base);
}

.hd-job-card:hover {
    border-color: var(--hd-border-strong);
    box-shadow: var(--hd-shadow-card-hover);
    transform: translateY(-4px);
}

.hd-job-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--hd-space-4);
    margin-bottom: var(--hd-space-4);
}

.hd-job-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--hd-radius-lg);
    background: var(--hd-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--hd-border);
}

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

.hd-job-logo-placeholder {
    font-family: var(--hd-font-heading);
    font-size: var(--hd-text-xl);
    font-weight: 700;
    color: var(--hd-primary);
}

.hd-job-info {
    flex: 1;
    min-width: 0;
}

.hd-job-company {
    font-size: var(--hd-text-sm);
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-1);
}

.hd-job-title {
    font-size: var(--hd-text-lg);
    font-weight: 600;
    color: var(--hd-text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-job-title a {
    color: inherit;
}

.hd-job-title a:hover {
    color: var(--hd-primary);
}

/* Job Tags (Pill-shaped) */
.hd-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hd-space-2);
    margin-bottom: var(--hd-space-4);
}

.hd-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 0.75rem;
    font-size: var(--hd-text-xs);
    font-weight: 500;
    background: var(--hd-gray-50);
    color: var(--hd-text-secondary);
    border-radius: var(--hd-radius-full);
    border: 1px solid var(--hd-border);
}

.hd-job-tag svg {
    width: 12px;
    height: 12px;
}

.hd-job-tag-primary {
    background: var(--hd-primary-light);
    color: var(--hd-primary);
    border-color: transparent;
}

.hd-job-tag-success {
    background: var(--hd-green-light);
    color: var(--hd-green);
    border-color: transparent;
}

.hd-job-description {
    font-size: var(--hd-text-sm);
    color: var(--hd-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--hd-space-4);
    line-height: var(--hd-leading-relaxed);
}

.hd-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--hd-space-4);
    border-top: 1px solid var(--hd-border);
}

.hd-job-salary {
    font-family: var(--hd-font-heading);
    font-weight: 600;
    color: var(--hd-green);
}

.hd-job-date {
    font-size: var(--hd-text-xs);
    color: var(--hd-text-muted);
}

/* ==========================================================================
   JOB FILTERS
   ========================================================================== */

.hd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hd-space-4);
    padding: var(--hd-space-6);
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    margin-bottom: var(--hd-space-8);
    box-shadow: var(--hd-shadow-sm);
}

.hd-filter-group {
    flex: 1;
    min-width: 180px;
}

.hd-filter-label {
    display: block;
    font-size: var(--hd-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--hd-tracking-wide);
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-2);
}

.hd-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--hd-text-sm);
    background: var(--hd-gray-50);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    color: var(--hd-text-primary);
    cursor: pointer;
    transition: all var(--hd-transition-fast);
}

.hd-filter-select:hover {
    border-color: var(--hd-gray-300);
}

.hd-filter-select:focus {
    outline: none;
    border-color: var(--hd-primary);
    background: var(--hd-white);
}

/* ==========================================================================
   SINGLE JOB PAGE
   ========================================================================== */


.hd-job-header-single {
    background: linear-gradient(180deg, var(--hd-gray-50) 0%, var(--hd-white) 100%);
    padding-top: var(--hd-space-24);
}

.hd-job-header-content {
    display: flex;
    align-items: flex-start;
    gap: var(--hd-space-6);
}

.hd-job-header-content .hd-job-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--hd-radius-xl);
}

.hd-job-header-info {
    flex: 1;
}

.hd-job-header-info .hd-job-company {
    font-size: var(--hd-text-base);
    color: var(--hd-text-secondary);
    margin-bottom: var(--hd-space-2);
}

.hd-job-header-info .hd-job-title {
    font-size: var(--hd-text-4xl);
    margin-bottom: var(--hd-space-4);
}

/* Job Content Grid */
.hd-job-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--hd-space-8);
    padding: var(--hd-space-8) 0 var(--hd-space-16);
}

.hd-job-main {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-8);
}

.hd-job-section {
    margin-bottom: var(--hd-space-8);
}

.hd-job-section:last-child {
    margin-bottom: 0;
}

.hd-job-section h3 {
    font-size: var(--hd-text-xl);
    margin-bottom: var(--hd-space-4);
    color: var(--hd-text-primary);
}

.hd-job-section ul {
    list-style: none;
}

.hd-job-section li {
    position: relative;
    padding-left: var(--hd-space-6);
    margin-bottom: var(--hd-space-3);
    color: var(--hd-text-secondary);
    line-height: var(--hd-leading-relaxed);
}

.hd-job-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--hd-primary);
    border-radius: 50%;
}

/* Job Sidebar */
.hd-job-sidebar {
    position: sticky;
    top: calc(72px + var(--hd-space-6));
}

.hd-job-apply-card {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-6);
    margin-bottom: var(--hd-space-6);
    box-shadow: var(--hd-shadow-card);
}

.hd-job-apply-card h4 {
    margin-bottom: var(--hd-space-3);
}

.hd-job-apply-card .hd-btn {
    width: 100%;
    margin-top: var(--hd-space-4);
}

.hd-job-details-card {
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-6);
}

.hd-job-detail-item {
    display: flex;
    align-items: center;
    gap: var(--hd-space-4);
    padding: var(--hd-space-4) 0;
    border-bottom: 1px solid var(--hd-border);
}

.hd-job-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hd-job-detail-item:first-child {
    padding-top: 0;
}

.hd-job-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-gray-50);
    border-radius: var(--hd-radius-md);
    color: var(--hd-primary);
}

.hd-job-detail-icon svg {
    width: 18px;
    height: 18px;
}

.hd-job-detail-label {
    font-size: var(--hd-text-xs);
    color: var(--hd-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--hd-tracking-wide);
}

.hd-job-detail-value {
    font-weight: 600;
    color: var(--hd-text-primary);
}

@media (max-width: 992px) {
    .hd-job-content {
        grid-template-columns: 1fr;
    }

    .hd-job-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .hd-job-header-content {
        flex-direction: column;
        text-align: center;
    }

    .hd-job-header-content .hd-job-logo {
        margin: 0 auto;
    }

    .hd-job-header-info .hd-job-meta {
        justify-content: center;
    }
}

/* ==========================================================================
   MODAL (Refined, soft glassmorphism)
   ========================================================================== */

.hd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hd-space-6);
    opacity: 0;
    visibility: hidden;
    transition: all var(--hd-transition-slow);
}

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

.hd-modal {
    width: 100%;
    max-width: 720px;
    max-height: 95vh;
    background: var(--hd-white);
    border-radius: var(--hd-radius-2xl);
    box-shadow: var(--hd-shadow-xl);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all var(--hd-transition-slow);
}

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

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

.hd-modal-header h3 {
    font-size: var(--hd-text-xl);
    margin: 0;
}

.hd-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-gray-50);
    border: none;
    border-radius: var(--hd-radius-md);
    cursor: pointer;
    transition: all var(--hd-transition-fast);
    color: var(--hd-text-secondary);
}

.hd-modal-close:hover {
    background: var(--hd-red-light);
    color: var(--hd-red);
}

.hd-modal-close svg {
    width: 18px;
    height: 18px;
}

.hd-modal-body {
    padding: var(--hd-space-5) var(--hd-space-6);
    max-height: calc(95vh - 120px);
    overflow-y: auto;
}

.hd-modal-footer {
    display: flex;
    gap: var(--hd-space-3);
    justify-content: flex-end;
    padding: var(--hd-space-6);
    border-top: 1px solid var(--hd-border);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.hd-features {
    background: var(--hd-gray-50);
}

.hd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--hd-space-6);
}

.hd-feature-card {
    text-align: center;
    padding: var(--hd-space-8);
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-xl);
    transition: all var(--hd-transition-base);
}

.hd-feature-card:hover {
    border-color: var(--hd-border-strong);
    box-shadow: var(--hd-shadow-card-hover);
    transform: translateY(-4px);
}

.hd-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--hd-space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-primary-light);
    border-radius: var(--hd-radius-lg);
    color: var(--hd-primary);
}

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

.hd-feature-card h4 {
    margin-bottom: var(--hd-space-3);
    font-size: var(--hd-text-lg);
}

.hd-feature-card p {
    margin: 0;
    font-size: var(--hd-text-sm);
    color: var(--hd-text-secondary);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.hd-cta {
    background-image: linear-gradient(180deg, var(--hd-primary) 0%, var(--hd-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hd-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(30%, -30%);
    pointer-events: none;
}

.hd-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.hd-cta h2 {
    color: var(--hd-white);
    margin-bottom: var(--hd-space-4);
}

.hd-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--hd-space-8);
}

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

.hd-cta .hd-btn:hover {
    background: var(--hd-gray-50);
    color: var(--hd-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.hd-footer {
    background: var(--hd-gray-900);
    color: var(--hd-gray-300);
    padding: var(--hd-space-16) 0 var(--hd-space-8);
}

.hd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--hd-space-10);
    margin-bottom: var(--hd-space-10);
}

.hd-footer-brand p {
    margin-top: var(--hd-space-4);
    color: var(--hd-gray-400);
    font-size: var(--hd-text-sm);
    line-height: var(--hd-leading-relaxed);
}

.hd-footer h5 {
    color: var(--hd-white);
    font-size: var(--hd-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--hd-tracking-wide);
    margin-bottom: var(--hd-space-5);
}

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

.hd-footer-links li {
    margin-bottom: var(--hd-space-3);
}

.hd-footer-links a {
    color: var(--hd-gray-400);
    font-size: var(--hd-text-sm);
    transition: color var(--hd-transition-fast);
}

.hd-footer-links a:hover {
    color: var(--hd-white);
}

.hd-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--hd-space-8);
    border-top: 1px solid var(--hd-gray-800);
}

.hd-footer-bottom p {
    color: var(--hd-gray-500);
    margin: 0;
    font-size: var(--hd-text-sm);
}

.hd-footer-social {
    display: flex;
    gap: var(--hd-space-3);
}

.hd-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-gray-800);
    border-radius: var(--hd-radius-md);
    color: var(--hd-gray-400);
    transition: all var(--hd-transition-fast);
}

.hd-footer-social a:hover {
    background: var(--hd-primary);
    color: var(--hd-white);
}

.hd-footer-social svg {
    width: 16px;
    height: 16px;
}

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

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

    .hd-footer-bottom {
        flex-direction: column;
        gap: var(--hd-space-4);
        text-align: center;
    }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.hd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hd-space-2);
    margin-top: var(--hd-space-10);
}

.hd-pagination a,
.hd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--hd-space-3);
    font-size: var(--hd-text-sm);
    font-weight: 500;
    color: var(--hd-text-secondary);
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    transition: all var(--hd-transition-fast);
}

.hd-pagination a:hover {
    border-color: var(--hd-primary);
    color: var(--hd-primary);
}

.hd-pagination .current {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
    color: var(--hd-white);
}

/* ==========================================================================
   LOADING & ANIMATIONS
   ========================================================================== */

.hd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hd-space-12);
}

.hd-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--hd-border);
    border-top-color: var(--hd-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.hd-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.hd-toast-container {
    position: fixed;
    bottom: var(--hd-space-6);
    right: var(--hd-space-6);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--hd-space-3);
}

.hd-toast {
    display: flex;
    align-items: center;
    gap: var(--hd-space-3);
    padding: var(--hd-space-4) var(--hd-space-5);
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    box-shadow: var(--hd-shadow-lg);
    font-size: var(--hd-text-sm);
    animation: slideIn 0.3s ease forwards;
}

.hd-toast-success {
    border-left: 4px solid var(--hd-green);
}

.hd-toast-error {
    border-left: 4px solid var(--hd-red);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Spacing */
.hd-mt-0 {
    margin-top: 0;
}

.hd-mt-4 {
    margin-top: var(--hd-space-4);
}

.hd-mt-6 {
    margin-top: var(--hd-space-6);
}

.hd-mt-8 {
    margin-top: var(--hd-space-8);
}

.hd-mb-0 {
    margin-bottom: 0;
}

.hd-mb-4 {
    margin-bottom: var(--hd-space-4);
}

.hd-mb-6 {
    margin-bottom: var(--hd-space-6);
}

.hd-mb-8 {
    margin-bottom: var(--hd-space-8);
}

.hd-pt-0 {
    padding-top: 0;
}

.hd-pt-4 {
    padding-top: var(--hd-space-4);
}

.hd-pb-0 {
    padding-bottom: 0;
}

.hd-pb-4 {
    padding-bottom: var(--hd-space-4);
}

/* Text */
.hd-text-center {
    text-align: center;
}

.hd-text-left {
    text-align: left;
}

.hd-text-right {
    text-align: right;
}

.hd-text-primary {
    color: var(--hd-text-primary);
}

.hd-text-secondary {
    color: var(--hd-text-secondary);
}

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

.hd-text-blue {
    color: var(--hd-primary);
}

.hd-text-green {
    color: var(--hd-green);
}

/* Flex */
.hd-flex {
    display: flex;
}

.hd-flex-col {
    flex-direction: column;
}

.hd-items-center {
    align-items: center;
}

.hd-justify-center {
    justify-content: center;
}

.hd-justify-between {
    justify-content: space-between;
}

.hd-gap-2 {
    gap: var(--hd-space-2);
}

.hd-gap-4 {
    gap: var(--hd-space-4);
}

.hd-gap-6 {
    gap: var(--hd-space-6);
}

/* Grid */
.hd-grid {
    display: grid;
}

.hd-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hd-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hd-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Display */
.hd-hidden {
    display: none;
}

.hd-block {
    display: block;
}

/* Background */
.hd-bg-white {
    background-color: var(--hd-white);
}

.hd-bg-gray {
    background-color: var(--hd-gray-50);
}

.hd-bg-primary-light {
    background-color: var(--hd-primary-light);
}

/* Border */
.hd-rounded-lg {
    border-radius: var(--hd-radius-lg);
}

.hd-rounded-xl {
    border-radius: var(--hd-radius-xl);
}

.hd-rounded-full {
    border-radius: var(--hd-radius-full);
}

/* Width */
.hd-w-full {
    width: 100%;
}

.hd-max-w-md {
    max-width: 448px;
}

.hd-max-w-lg {
    max-width: 512px;
}

.hd-max-w-xl {
    max-width: 576px;
}

/* No Results */
.hd-no-results {
    text-align: center;
    padding: var(--hd-space-12);
    color: var(--hd-text-secondary);
}