/* =========================================
   PREMIUM LUXURY THEME - MASTER CSS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #080808; 
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased; 
    line-height: 1.6;
}

h1, h2, h3, .luxury-title {
    font-family: 'Playfair Display', serif; 
    color: #D4AF37; 
    font-weight: 400;
    letter-spacing: 1px;
}

/* =========================================
   HEADER & NAVIGATION BAR
========================================= */
header {
    background-color: #0a0a0a;
    padding: 1rem 5%;
    border-bottom: 1px solid #222;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Playfair Display', 'Kanit', sans-serif;
}

.logo span {
    color: #D4AF37;
}

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

.nav-links li {
    position: relative; 
}

.nav-links li a {
    text-decoration: none;
    color: #aaa;
    font-weight: 300;
    transition: all 0.3s ease;
    white-space: nowrap; 
}

.nav-links li a:hover {
    color: #D4AF37;
}

/* =========================================
   DROPDOWN MENU
========================================= */
.dropdown-content {
    display: none; 
    position: absolute;
    top: 150%; 
    left: 0;
    background-color: #0a0a0a;
    min-width: 260px; 
    box-shadow: 0px 10px 20px rgba(0,0,0,0.8);
    border: 1px solid #222;
    border-top: 2px solid #D4AF37; 
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
}

.dropdown-content a {
    color: #888;
    padding: 12px 20px;
    display: block; 
    font-size: 0.95rem;
    white-space: nowrap; 
    border-bottom: 1px solid #111;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #111;
    color: #D4AF37;
    padding-left: 25px; 
}

.dropdown:hover .dropdown-content {
    display: block;
    top: 100%; 
}

/* =========================================
   BUTTONS (ปุ่มต่างๆ)
========================================= */
/* ปุ่มลงประกาศงาน */
.btn-post {
    background: linear-gradient(135deg, #D4AF37, #AA8222);
    color: #000 !important; 
    padding: 10px 25px !important;
    border-radius: 4px;
    font-weight: 500 !important;
    white-space: nowrap; 
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-post:hover {
    background: linear-gradient(135deg, #F3D270, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ปุ่มเข้าสู่ระบบ (กรอบทองเด่นๆ) */
.btn-login {
    display: inline-block;
    padding: 10px 24px !important;
    background: rgba(212, 175, 55, 0.05); 
    color: #D4AF37 !important; 
    border: 2px solid #D4AF37 !important; 
    border-radius: 6px; 
    font-weight: 500 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); 
}

.btn-login:hover {
    background: #D4AF37; 
    color: #050505 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6); 
}

/* =========================================
   FORMS & CARDS
========================================= */
.luxury-form-box {
    background: #111;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 40px auto;
}

.input-group label { color: #ccc; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #D4AF37;
    border-radius: 4px;
    transition: 0.3s;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.job-card, .resume-card {
    background: #111;
    border: 1px solid #222;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.job-card:hover, .resume-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.08); 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* =========================================
   FOOTER 
========================================= */
.site-footer {
    width: 100%;
    background-color: #050505; 
    border-top: 1px solid #222;
    padding: 40px 20px;
    margin-top: auto; 
    text-align: center !important; 
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 15px; 
}

.footer-content p { color: #666; font-size: 0.9rem; margin: 0; }

.socials a {
    color: #D4AF37; 
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* =========================================
   RESPONSIVE & MOBILE MENU (รองรับมือถือ)
========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; 
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #D4AF37; 
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        height: 100vh;
        width: 80%; 
        max-width: 350px;
        background-color: #050505; 
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
        border-left: 1px solid #222;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; margin-bottom: 20px; }
    .nav-links li a { display: block; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid #111; }

    .dropdown-content {
        position: static;
        display: none;
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content { display: block; }
    .dropdown-content a { font-size: 0.95rem; padding: 8px 0; border-bottom: none; color: #888; }

    /* ปรับปุ่มในมือถือให้ขยายเต็มหน้าจอ */
    .btn-post, .btn-login {
        text-align: center;
        width: 100%;
        margin-top: 10px;
        display: block; /* บังคับให้เป็น block ในมือถือ */
    }

    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}