:root {
    /* -----------------------------------------
     1. NEW DESIGN TOKENS
     ----------------------------------------- */
    /* Violet Palette (Primary) */
    --color-violet-50: #f5f3ff;
    --color-violet-100: #ede9fe;
    --color-violet-200: #ddd6fe;
    --color-violet-300: #c4b5fd;
    --color-violet-400: #a78bfa;
    --color-violet-500: #8b5cf6;
    --color-violet-600: #7c3aed;
    --color-violet-700: #6d28d9;
    --color-violet-800: #5b21b6;
    --color-violet-900: #4c1d95;

    /* Blue Palette (Secondary) */
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-200: #bfdbfe;
    --color-blue-300: #93c5fd;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;

    /* Slate Palette (Neutral) */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;

    /* Dark Theme Palette */
    --color-dark-bg: #1a2530;
    --color-dark-footer: #131b24;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-bg: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-bg: #fef3c7;
    --color-error: #ef4444;
    --color-error-bg: #fee2e2;

    /* Backgrounds & Surfaces */
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-primary: #7c3aed;
    --bg-primary-hover: #6d28d9;
    --bg-primary-active: #5b21b6;
    --bg-primary-subtle: #f5f3ff;
    --bg-primary-subtle-hover: #ede9fe;
    --bg-secondary: #3b82f6;
    --bg-secondary-hover: #2563eb;
    --bg-secondary-subtle: #eff6ff;

    /* Typography */
    --text-heading: #1e293b;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-placeholder: #94a3b8;
    --text-inverse: #ffffff;
    --text-primary: #7c3aed;
    --text-primary-hover: #6d28d9;
    --text-secondary: #3b82f6;
    --text-secondary-body: #1d4ed8;
    --text-secondary-muted: #60a5fa;

    /* Borders & Outlines */
    --border-subtle: #f1f5f9;
    --border-default: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-primary: #8b5cf6;
    --border-primary-subtle: #ddd6fe;
    --ring-primary: rgba(124, 58, 237, 0.3);
    --ring-secondary: rgba(59, 130, 246, 0.3);

    /* Shadows & Radius & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
    --shadow-primary-sm: 0 4px 10px rgba(124, 58, 237, 0.15);
    --shadow-primary-md: 0 10px 20px -5px rgba(124, 58, 237, 0.25);
    --shadow-primary-glow: 0 0 20px rgba(124, 58, 237, 0.4);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* -----------------------------------------
     2. BACKWARD COMPATIBILITY
     ----------------------------------------- */
    --primary: var(--bg-primary);
    /* #7c3aed */
    --primary-color: var(--bg-secondary);
    /* #3b82f6 */
    --primary-color-light: var(--bg-secondary-subtle);
    --primary-hover: var(--bg-primary-hover);
    --primary-soft: var(--bg-primary-subtle);
    --secondary-soft: var(--color-success-bg);
    --resume-blue: var(--color-blue-400);

    --primary-light: #cecece5e;
    /* ค่าเดิมที่ไม่มีใน Token ใหม่ */
    --primary-blue: var(--color-blue-600);
    --danger-red: var(--color-error);
    --salary-color: var(--color-blue-700);

    --text-main: var(--text-heading);
    --text-sub: var(--text-muted);
    --text-dark: var(--text-heading);
    --text-light: var(--text-placeholder);

    --bg-white: var(--bg-surface);
    --bg-page: var(--bg-app);
    --border-color: var(--border-default);
    --card-radius: 24px;
    /* คงค่าเดิมไว้เผื่อมีส่วนที่พึ่งพาค่า px เป๊ะๆ */

    --shadow: var(--shadow-md);
    --shadow-lg: var(--shadow-primary-md);

    --transition: var(--transition-normal);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: white;
    background-image: radial-gradient(rgba(148, 163, 184, 0.15) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    background-position: 0 0;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-main {
    overflow-x: hidden;
    width: 100%;
}

.bg-gradient-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(79, 70, 229, 0.03) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 40px;
}

/* =========================================
   2. NAVBAR COMPONENT (HEADER)
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    text-decoration: none;
}

.nav-logo-icon {
    width: 180px;
    border-radius: 8px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.nav-logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    text-decoration: none;
}

/* Desktop Hover/Active */
@media (min-width: 992px) {

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background-color: var(--primary-soft);
    }

    .nav-link-post {
        color: var(--primary) !important;
    }

    .nav-link-post:hover {
        color: var(--primary-hover) !important;
    }
}

/* Dropdowns (Desktop) */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--primary);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
    z-index: 100;
    list-style: none;
    margin-bottom: 0;
}

.dropdown-right {
    left: auto;
    right: 0;
}

.nav-dropdown-item {
    padding: 0.6rem 1.5rem;
    display: block;
    color: var(--text-sub);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-dropdown-item:hover {
    color: var(--primary);
    background: var(--bg-page);
    padding-left: 1.8rem;
}

.nav-item.dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background-color: var(--bg-page);
}

.badge-notif {
    position: absolute;
    top: -2px;
    right: 2px;
    background: var(--danger-red);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 50px;
    border: 2px solid white;
    line-height: 1;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 10px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

@keyframes fadeInDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   3. RESPONSIVE DESIGN (MOBILE/TABLET)
   ========================================= */
@media (max-width: 1400px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1005;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Sidebar Menu (Left Side) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem 2rem 1rem;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1010;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Header inside Sidebar */
    .mobile-sidebar-header {
        display: flex;
        align-items: center;
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-close-btn {
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--text-light);
        margin-right: 15px;
        cursor: pointer;
        transition: color 0.2s;
    }

    .mobile-close-btn:hover {
        color: var(--text-dark);
    }

    .mobile-sidebar-header .nav-logo {
        z-index: auto;
    }

    /* Mobile Menu Links */
    .nav-item {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 14px 16px;
        border-radius: 10px;
        justify-content: flex-start;
        margin-bottom: 4px;
        color: var(--text-dark);
        font-size: 1rem;
    }

    .mobile-icon {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
        margin-right: 14px;
        color: var(--text-main);
    }

    .nav-link-text {
        flex-grow: 1;
    }

    .nav-link.active {
        background: var(--primary-light);
        color: var(--primary);
        font-weight: 600;
    }

    .nav-link.active .mobile-icon {
        color: var(--primary);
    }

    .nav-link-post {
        color: #f59e0b !important;
        font-weight: 600;
    }

    .nav-link-post .mobile-icon {
        color: #f59e0b !important;
    }

    /* Dropdown inside left Sidebar */
    .nav-dropdown-menu,
    .nav-item.dropdown:hover .nav-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 10px 45px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item.dropdown.mobile-open .nav-dropdown-menu {
        display: block;
        animation: fadeInDownMenu 0.3s ease forwards;
    }

    .nav-item.dropdown.mobile-open .nav-link,
    .nav-item.dropdown.mobile-open .mobile-icon {
        color: var(--primary);
    }

    .nav-item.dropdown:hover .arrow-icon {
        transform: rotate(0deg) !important;
    }

    .nav-item.dropdown.mobile-open .arrow-icon {
        transform: rotate(180deg) !important;
    }

    .nav-dropdown-item {
        padding: 8px 16px;
        font-size: 0.95rem;
        color: var(--text-sub);
        border-radius: 8px;
    }

    .nav-dropdown-item:hover {
        background: var(--bg-page);
        color: var(--primary);
        padding-left: 20px;
    }

    .lang-dropdown-wrap {
        display: none;
    }

    .nav-actions .nav-item.dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .nav-actions .nav-item.dropdown>.nav-dropdown-menu {
        display: block !important;
        position: absolute;
        top: calc(100% + 15px);
        right: -10px;
        left: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;

        background: var(--bg-white) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        border-radius: 12px;
        z-index: 9999 !important;
        border: 1px solid var(--border-color);
        min-width: 260px !important;
        max-width: 90vw;
        padding: 0;
    }

    .nav-actions .nav-item.dropdown.mobile-dropdown-active .nav-dropdown-menu,
    .nav-actions .nav-item.dropdown.mobile-dropdown-active:hover .nav-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .nav-actions .nav-item.dropdown>.nav-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 25px;
        width: 12px;
        height: 12px;
        background: var(--bg-white);
        transform: rotate(45deg);
        border-left: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-actions .nav-item.dropdown.mobile-dropdown-active .nav-dropdown-menu::before {
        opacity: 1;
        visibility: visible;
    }

    /* ลดขนาดปุ่ม Login / Register บนมือถือ */
    .nav-actions a[href="login.php"] {
        font-size: 0.85rem !important;
    }

    .nav-actions a[href="register_seeker.php"] {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.75rem !important;
        line-height: 1.2 !important;
    }

    .nav-actions .gap-2 {
        gap: 0.5rem !important;
    }

    .guest-actions-wrap a {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.site-hero {
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    position: relative;
    text-align: center;
}

.hero-content {
    width: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-headline {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--text-heading);
    line-height: 1.2;
}

.highlight-gradient {
    color: var(--primary);
}

.highlight-primary {
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 1rem auto 0;
    border: 0;
    font-weight: 200;
}

.hero-search-module {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 3rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-icon {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 1.3rem;
}

.search-field {
    width: 100%;
    background-color: transparent;
    padding: 0.5rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    color: var(--text-main);
}

.search-submit-btn {
    display: none;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    border-radius: 3rem;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background-color: var(--bg-primary-hover);
    box-shadow: var(--shadow-primary-md);
}

.hero-quick-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.quick-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.quick-tag {
    background: var(--primary-color-light);
    color: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.quick-tag:hover {
    background-color: var(--bg-secondary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.action-intro {
    margin-top: 1rem;
}

.action-heading {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.action-subheading {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 28rem;
    margin: 0 auto;
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.action-button-wrapper {
    position: relative;
    width: fit-content;
}

.btn-primary-action {
    background-color: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary-action:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-glow)
}

.btn-outline-action {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: end;
}

.btn-outline-action:hover {
    color: var(--text-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-glow)
}

.badge-floating {
    position: absolute;
    top: -12px;
    right: 10px;
    background: #ffffff;
    color: var(--danger-red);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.1);
    z-index: 10;
    pointer-events: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-visuals {
    width: 100%;
    max-width: 500px;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.visual-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 45vh;
}

.float-anim-1 {
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (min-width: 576px) {
    .search-submit-btn {
        display: block;
    }
}

@media (min-width: 992px) {
    .site-hero {
        flex-direction: row;
        text-align: left;
        padding: 6rem 2rem 4rem;
        gap: 3rem;
        min-height: 75vh;
    }

    .hero-content {
        width: 55%;
        align-items: flex-start;
    }

    .hero-description,
    .action-subheading {
        margin-left: 0;
        margin-right: auto;
    }

    .hero-description {
        border-left: 3px solid var(--text-secondary-muted);
        padding-left: 1rem;
    }

    .hero-search-module {
        width: 75%;
        max-width: 100%;
    }

    .hero-quick-actions {
        align-items: flex-start;
    }

    .quick-tags-list {
        justify-content: flex-start;
    }

    .action-buttons-group {
        flex-direction: row;
        width: auto;
        max-width: none;
    }

    .btn-primary-action,
    .btn-outline-action {
        width: auto;
        min-width: 200px;
        padding: 1.1rem 2rem;
    }

    .badge-floating {
        right: -10px;
    }

    .hero-visuals {
        width: 45%;
        margin-top: 0;
        max-width: none;
        justify-content: flex-end;
    }

    .visual-image {
        max-height: 700px;
    }
}

/* =========================================
   HERO ADDITIONS: Floating Badges
   ========================================= */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 20;
}

.badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.badge-text strong {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 800;
}

.badge-text span {
    font-size: 0.95rem;
    color: var(--text-sub);
    font-weight: 500;
}

.badge-top-right {
    top: 80%;
}

.badge-bottom-left {
    bottom: 60%;
    left: -5%;
}

.float-anim-2 {
    animation: heroFloat 7s ease-in-out infinite reverse;
}

.float-anim-3 {
    animation: heroFloat 9s ease-in-out infinite 1s;
}

@media (max-width: 1200px) {
    .floating-badge {
        padding: 12px 18px;
        gap: 12px;
        border-radius: 16px;
    }

    .badge-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .badge-text strong {
        font-size: 1.15rem;
    }

    .badge-text span {
        font-size: 0.85rem;
    }

    .badge-top-right {
        top: 15%;
        right: -2%;
    }

    .badge-bottom-left {
        bottom: 20%;
        left: -2%;
    }
}

@media (max-width: 768px) {
    .floating-badge {
        display: none !important;
    }
}


/* =========================================
   4. SECTION LAYOUTS & HIERARCHY
   ========================================= */
.section-block {
    /* padding: 3rem 0; */
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .section-block {
        /* padding: 3rem 0; */
    }
}

.bg-white {
    background-color: #ffffff !important;
}


.bg-primary-soft {
    background-color: var(--color-violet-100) !important;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.bg-light-soft {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
}

.discovery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    width: 100%;
}

.discovery-container-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px;
    width: 100%;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.text-sub {
    color: var(--text-sub);
    font-size: 1rem;
}

.elevated-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
}

/* =========================================
   5. TOP COMPANIES (Marquee)
   ========================================= */
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-header {
    text-align: center;
    margin-bottom: 40px;
}

.marquee-header h3 {
    font-weight: 700;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-horizontal 65s linear infinite;
    padding: 10px 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.company-card-vertical {
    width: 220px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-card-vertical:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.12);
}

.v-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: block;
}

.v-location {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 15px;
    display: block;
}

.v-count {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-soft);
    padding: 6px 16px;
    border-radius: 50px;
}

/* =========================================
   6. WELFARE & POPULAR AREAS (Bento Grid)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    padding: 30px;
    transition: var(--transition);
    border-radius: 24px;
}

.span-12 {
    grid-column: span 12;
}


@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.location-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.location-list-container::-webkit-scrollbar {
    width: 5px;
}

.location-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.location-list-container::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.loc-item {
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid transparent;
}

.loc-item:last-child {
    border-bottom: none;
}

.loc-item:hover {
    background-color: #f8faff;
    padding-left: 1.75rem;
    color: #2563eb;
}

.loc-item.active {
    background-color: #eff6ff;
    border-left-color: #2563eb;
    color: #1e40af;
}

#real-map {
    height: 100%;
    min-height: 400px;
    width: 100%;
    z-index: 1;
}

.job-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    #real-map {
        min-height: 300px;
    }

    .loc-item {
        border-left: none;
    }

    .loc-item.active {
        border-bottom: 2px solid #2563eb;
    }
}

/* =========================================
   7. ADVANCED SEARCH & FILTER (Job Board)
   ========================================= */
.job-search-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.search-main-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-input-group:focus-within {
    border-color: var(--primary);
}

.search-input-group input {
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    background: transparent;
    color: var(--text-main);
}

.btn-search-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-search-submit:hover {
    background-color: var(--primary-hover);
}

.btn-filter-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 50px;
    padding: 0 28px;
    height: 58px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.filter-badge.active {
    display: flex;
}

.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 32px;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #e6f7f4;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 201, 167, 0.2);
}

.btn-remove-pill {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    padding: 0;
}

.filter-panel {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    display: none;
    border: 1px solid #f0f0f0;
    position: absolute;
    left: 15px;
    right: 15px;
    z-index: 1000;
}

.filter-panel.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
}

.filter-item select {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-page);
    font-size: 14px;
    outline: none;
    color: var(--text-main);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .search-main-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel {
        top: 130px;
    }
}

/* =========================================
   8. JOB CARDS & GRID
   ========================================= */
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .jobs-grid.grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.empty-state-text {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.job-item {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.job-card-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 100%;
}

.job-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    height: 100%;
    overflow: visible;
}

/* --- ส่วนของป้าย Hot Job --- */
.hot_job {
    position: absolute;
    top: -16px;
    right: 20px;
    background-color: #e60000 !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(230, 0, 0, 0.25);
    z-index: 99;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.hot_job::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 !important;
    border-style: solid !important;
    border-color: #e60000 transparent transparent transparent !important;
    display: block;
    width: 0;
    height: 0;
}

.job-card-wrapper:hover .job-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.job-card-wrapper:active .job-card {
    transform: scale(0.98);
    transition: 0.1s;
}

/* --- Card Header --- */
.card-header-ui {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.company-logo-ui {
    width: 48px;
    height: 48px;
    background: var(--bg-page);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.company-logo-ui i {
    font-size: 1.5rem;
}

.header-content-ui {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name-ui {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    margin-bottom: 2px;
}

.location-info-ui {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.job-title-container {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.job-title-ui {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.badge-ui {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-sub);
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* --- Info List --- */
.info-list-ui {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.info-row-ui {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
}

.info-label-ui {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.info-value-ui {
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.salary-row-ui .info-value-ui {
    color: var(--salary-color);
    font-size: 1.05rem;
    font-weight: 600;
}

/* --- Card Footer --- */
.card-footer-ui {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.logo-icon img {
    height: 50px;
    width: auto;
}

.time-stamp-ui {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.btn-details-ui {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.job-card-wrapper:hover .btn-details-ui {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================================
   9. PAGINATION
   ========================================= */
.pagination-wrapper {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.pagination-container-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    width: 100%;
}

.pagination-list-ui {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item-ui {
    display: flex;
    align-items: center;
}

.page-link-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: transparent;
}

.page-link-ui.active-ui {
    background-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.page-link-ui:hover:not(.active-ui) {
    background-color: var(--bg-page);
    color: var(--primary-blue);
    border-color: var(--border-color);
}

.nav-arrow-ui {
    color: var(--text-light);
    font-size: 1rem;
}

.nav-arrow-ui:hover {
    color: var(--primary-blue);
    background-color: var(--bg-page);
}

.page-item-ui.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.page-info-text-ui {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

.page-info-text-ui span {
    font-weight: 700;
    color: var(--text-light);
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--primary);
}

.text-sub {
    color: var(--text-sub);
}

/* =========================================
   10. CUSTOM FOOTER & COOKIE BANNER
   ========================================= */
.site-footer {
    background-color: var(--color-violet-100);
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    padding: 4rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.2fr 1fr 1.5fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.logo-text-footer {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 1.5rem 0;
}

.footer-brand-desc strong {
    color: var(--text-dark);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-socials a {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-hover);
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #000;
}

.mt-sp {
    margin-top: 2.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links li a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-tag {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 201, 167, 0.2);
}

.footer-policy-bar {
    background-color: var(--primary);
    padding: 1rem 1.5rem;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-policy-bar a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: opacity 0.3s;
}

.footer-policy-bar a:hover {
    opacity: 0.8;
}

.footer-policy-bar .divider {
    opacity: 0.6;
}

.footer-copyright {
    background-color: #1a1a1a;
    padding: 1.2rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-copyright p {
    margin: 0;
}

.cookie-banner-custom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem 1.5rem;

    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    gap: 1.5rem;
}

.cookie-content {
    flex: 1 1 auto;
}

.cookie-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.cookie-icon {
    margin-right: 8px;
    color: #4f46e5;
}

.cookie-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-details {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #495057;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.cookie-list>div {
    margin-bottom: 0.5rem;
}

.cookie-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-outline {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-cookie-accept {
    background-color: #4f46e5;
    color: #fff;
}

.btn-cookie-accept:hover {
    background-color: #4338ca;
}

.btn-cookie-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-cookie-outline:hover {
    background-color: #f8f9fa;
    color: #212529;
}

@media (max-width: 768px) {
    .cookie-banner-custom {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        border-radius: 16px;
        padding: 1.2rem;
    }

    .cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-cookie-accept,
    .btn-cookie-outline {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
}

/* =========================================
   11. BROWSE JOBS LAYOUT & FILTERS
   ========================================= */
.browse-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;

}

.browse-controls-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-type-filters::-webkit-scrollbar {
    display: none;
}

.type-filter-link {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.type-filter-link:hover {
    color: var(--primary);
}

.type-filter-link.active {
    background-color: var(--primary);
    color: var(--bg-white);
}

.compact-search-row {
    margin-bottom: 50px;
    height: 48px;
}

.compact-search-row .search-input-group {
    border: 1px solid var(--border-color);
    box-shadow: none !important;
    padding: 4px 4px 4px 20px;
    height: 100%;
}

.compact-search-row .btn-search-submit {
    background-color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.compact-search-row .btn-filter-trigger {
    border: 1px solid var(--border-color);
    box-shadow: none !important;
    height: 48px;
    padding: 20px 20px;
    border-radius: 50px;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
}

.compact-search-row .filter-badge {
    background-color: #f97316;
    border-color: var(--bg-white);
    top: -6px;
    right: -6px;
}

.flat-filter-pill {
    background-color: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flat-filter-pill .btn-remove-pill {
    background-color: var(--text-light);
    color: var(--bg-white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* --- Filter Panel Base & Mobile (Bottom Sheet) --- */
.filter-panel {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    position: absolute;
    top: calc(100% + 10px) !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

.filter-panel.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.show {
    display: block;
    opacity: 1;
}

body.filter-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .filter-panel {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px 15px 30px 15px;
        margin-top: 0;
        animation: slideUp 0.3s ease-out;
    }

    .filter-actions {
        position: sticky;
        bottom: -30px;
        background: var(--bg-white);
        padding-bottom: 30px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .compact-search-row .btn-filter-trigger {
        padding: 20px 20px;
    }

    .compact-search-row .btn-filter-trigger span {
        display: none;
    }

    .info-row-ui {
        grid-template-columns: 80px 1fr;
    }

    .job-title-ui {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .browse-controls-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .browse-search-wrapper {
        max-width: 450px;
        width: 100%;
    }

    .filter-panel {
        left: auto !important;
        right: 0 !important;
        width: 700px !important;
    }

    .compact-search-row {
        margin-bottom: 0;
    }
}

/* =========================================
   11. CANDIDATE BOARD (MINIMAL SYNC)
   ========================================= */

.candidate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .candidate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .candidate-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .candidate-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.candidate-item .info-row-ui {
    grid-template-columns: 85px 1fr;
    margin-bottom: 4px;
}

.candidate-item .job-title-container {
    min-height: 40px;
    display: flex;
}

.candidate-item .company-logo-ui {
    background-color: var(--primary-soft);
}

.candidate-item .btn-details-ui {
    border-color: var(--border-color);
    color: var(--primary-blue);
}

.candidate-item .job-card-wrapper:hover .btn-details-ui {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =========================================
   12. RECRUITER INFOGRAPHIC SECTION
   ========================================= */
.recruiter-feature-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .recruiter-feature-layout {
        flex-direction: row;
        gap: 5rem;
        align-items: flex-end
    }
}

.recruiter-visual {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-bg-shape {
    position: absolute;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-soft), #e0e7ff);
    border-radius: 50%;
    z-index: 0;
    filter: blur(50px);
}

.main-visual-img {
    max-width: 100%;
    height: auto;
    max-height: 630px;
    object-fit: contain;
}

.badge-recruiter {
    top: 50%;
    right: -5%;
}

@media (max-width: 992px) {
    .badge-recruiter {
        display: none;
    }
}

@media (min-width: 992px) {
    .recruiter-content {
        flex: 1;
        width: 100%;
        padding: 0;

    }

    .recruiter-content {
        padding: 3rem 0;
    }

}

.recruiter-content {
    flex: 1;
    width: 100%;
    padding-bottom: 3rem;
}


.infographic-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
}

.info-step-item {
    display: flex;
    gap: 1.25rem;
}

.step-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    z-index: 2;
    background-color: var(--bg-white);
}

.step-line {
    width: 2px;
    flex-grow: 1;
    background-color: var(--color-violet-300);
    min-height: 25px;
    margin: 4px 0;
}

.info-step-item:last-child .step-line {
    display: none;
}

.step-details {
    padding-bottom: 2rem;
    padding-top: 5px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   KYC ALERT NOTIFICATION - REFINED
   ========================================= */
.kyc-status-card {
    background: #ffffff;
    border: 1px solid var(--color-error-bg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    overflow: hidden;
    position: relative;
}


.kyc-card-body {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kyc-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* เอฟเฟกต์วงกลมกะพริบเบาๆ รอบไอคอน */
.kyc-icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background-color: var(--color-error);
    opacity: 0.2;
    animation: kyc-pulse 2s infinite;
    z-index: 0;
}

@keyframes kyc-pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.kyc-text-content {
    flex-grow: 1;
}

.kyc-text-content h4 {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.15rem;
}

.kyc-text-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-kyc-prime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-error);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-kyc-prime:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
    color: white;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .kyc-card-body {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .kyc-action-area {
        width: 100%;
    }

    .btn-kyc-prime {
        width: 100%;
        justify-content: center;
    }
}