/* ============================================= */
/* HOTELX JOBS PORTAL - BLACK / WHITE / GOLD THEME */
/* Modern, Clean, Luxury Feel - Ready for 2025    */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #eee;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: #C9A227; /* Gold */
    margin-bottom: 1rem;
}

a {
    color: #C9A227;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

button, input[type="submit"], .btn {
    font-family: inherit;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Primary Buttons - Gold */
.btn-primary, button[type="submit"], input[type="submit"] {
    background: #C9A227;
    color: #000;
}

.btn-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

/* Secondary - Outline */
.btn-secondary {
    background: transparent;
    border: 2px solid #C9A227 !important;
    color: #C9A227;
}

.btn-secondary:hover {
    background: #C9A227;
    color: #000;
}

/* Header & Nav */
header {
    background: #000;
    padding: 1rem 5%;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C9A227;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: #ccc;
    font-weight: 500;
}

nav ul li a:hover {
    color: #C9A227;
}

.menu-toggle {
    display: none;
    font-size: 1.2rem;
    color: #C9A227;
    cursor: pointer;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Cards */
.card {
    background: #111;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #C9A227;
}

/* Forms */
form {
    background: #111;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #222;
    max-width: 800px;
    margin: 2rem auto;
}

label {
    display: block;
    margin: 1.2rem 0 0.5rem;
    color: #C9A227;
    font-weight: 600;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #C9A227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Grid for Job Listings */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pos-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.4s ease;
}

.pos-card:hover {
    border-color: #C9A227;
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(201, 162, 39, 0.15);
}

.pos-card h3 {
    background: #C9A227;
    color: #000;
    padding: 1.2rem;
    margin: 0;
    font-size: 1.4rem;
}

.pos-card .content {
    padding: 1.5rem;
}

.pos-card ul {
    margin: 1rem 0;
    padding-left: 1.3rem;
}

.pos-card ul li {
    margin: 0.4rem 0;
    color: #ddd;
}

.pos-card .btn-apply {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: #C9A227;
    color: #000;
    border-radius: 6px;
    font-weight: bold;
}

.pos-card .btn-login {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: transparent;
    color: #C9A227;
    border: 2px solid #C9A227;
    border-radius: 6px;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #C9A227;
    color: #000;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #222;
}

tr:hover {
    background: #1a1a1a;
}

/* Footer */
footer {
    background: #000;
    color: #999;
    text-align: center;
    padding: 3rem 5%;
    margin-top: 4rem;
    border-top: 1px solid #222;
}

footer a {
    color: #C9A227;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 1rem 5%;
        display: none;
        border-top: 1px solid #222;
    }
    nav ul.show { display: flex; }
    
    header { flex-direction: column; gap: 1rem; }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    form, .card { padding: 1.5rem; }
}

/* MOBILE HEADER – LOGO CENTERED + TEXT BELOW */
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        text-align: center;
        padding: 1rem 0;
    }
    header .logo {
        flex-direction: column;
        gap: 8px;
    }
    header .logo img {
        margin: 0 auto;
    }
    header nav {
        margin-top: 1rem;
    }
    header nav ul {
        flex-direction: column;
        gap: 12px;
    }
    header nav ul li {
        margin: 0;
    }
}
/* FIX OVERLAPPING BUTTONS ON MOBILE */
@media (max-width: 600px) {
    .actions a,
    .btn-primary, .btn-secondary {
        display: block !important;
        width: 90% !important;
        margin: 12px auto !important;
        text-align: center;
    }
    /* Specifically for password reset success page */
    .card a {
        display: block;
        margin: 15px auto;
        width: 80%;
    }
}