@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&amp;display=swap');

:root {
    /* Wuxia Theme: Black, Gold, Orange */
    --primary-bg: #0a0a0a;
    /* Pure Black */
    --accent-blue: #3b82f6;
    /* Keep for standard links if needed */
    --accent-red: #dc2626;
    /* Deep Red */
    --accent-magenta: #f97316;
    /* REPLACED PINK WITH ORANGE */
    --accent-gold: #fbbf24;
    /* Bright Gold */

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: url('../images/_cur108.html'), auto;
}

a,
button,
.btn,
.nav-link,
.feature-card {
    cursor: url('../images/_cur108.html'), pointer;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.9);
    /* Darker Header */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    /* Subtle Gold border */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    /* Gold Gradient Text */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-magenta);
    /* Orange Underline */
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 15px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--accent-gold);
}

.btn-register {
    background: linear-gradient(45deg, #f59e0b, #ea580c);
    /* Gold to Orange */
    color: #fff;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
    background: linear-gradient(45deg, #fbbf24, #f97316);
}

/* =========================================
   Layout Reset (No Sidebar)
   ========================================= */
.layout-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* =========================================
   Footer
   ========================================= */
/* =========================================
   Footer (Compact & Enhanced)
   ========================================= */
.site-footer {
    background: linear-gradient(to bottom, #050505, #000);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    padding: 30px 0 15px 0;
    margin-top: 0;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 90%;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.social-link:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--accent-magenta);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 13px;
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-menu {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }
}

/* =========================================
   Utility Classes
   ========================================= */
.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================
   Dropdown Navigation
   ========================================= */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    padding-left: 25px;
    /* Slide effect */
}

/* =========================================
   Job Section Overlays
   ========================================= */
.job-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #050505 90%);
    z-index: 5;
    pointer-events: none;
}