/* ================= CAREERS SECTION - LUXURY REDESIGN ================= */

.careers-section {
    background: #07140f;
    padding: 100px 6%;
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif; /* Adjust to match your global font */
}

.careers-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Centered Premium Headers --- */
.careers-section .section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.careers-section .section-heading span {
    width: 60px;
    height: 2px;
    background: #d7a84f;
}

.careers-section .section-heading p {
    color: #d7a84f;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.careers-section h2 {
    text-align: center;
    color: #ffffff; /* Fixes the dark text issue */
    font-size: 42px;
    line-height: 1.2;
    font-weight: 900;
    margin: 0 auto 15px;
}

.careers-section h2 span {
    color: #d7a84f;
}

.careers-subtitle {
    text-align: center;
    color: #b7c8c0;
    font-size: 16px;
    margin: 0 auto 60px;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Dynamic Responsive Grid --- */
.jobs-grid {
    display: grid;
    /* auto-fit automatically handles responsiveness without needing tons of media queries */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* --- Glassmorphism Job Cards --- */
.job-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(215, 168, 79, 0.12);
    border-left: 4px solid #d7a84f;
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpCard 0.8s ease forwards;
}

/* Stagger the animations so they load one after another */
.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }

.job-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215, 168, 79, 0.5);
    background: rgba(215, 168, 79, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 15px rgba(215, 168, 79, 0.1);
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-info h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    transition: 0.3s ease;
}

.job-card:hover .job-info h3 {
    color: #d7a84f; /* Title turns gold on hover */
}

.job-meta {
    display: flex;
    gap: 15px;
    color: #8c9c96;
    font-size: 14px;
    align-items: center;
    font-weight: 500;
}

/* --- Luxury Apply Button --- */
.apply-btn {
    background: transparent;
    color: #d7a84f;
    border: 1px solid #d7a84f;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.4s ease;
    text-decoration: none;
    white-space: nowrap; /* Prevents button text from wrapping */
}

.apply-btn:hover {
    background: #d7a84f;
    color: #07140f;
    box-shadow: 0 8px 20px rgba(215, 168, 79, 0.25);
    transform: scale(1.05);
}

/* --- Animations --- */
@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .careers-section {
        padding: 80px 5%;
    }

    .careers-section h2 {
        font-size: 32px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 30px 25px;
    }

    .apply-btn {
        width: 100%;
        text-align: center;
    }

    /* Disable hover jump on touch devices for better UX */
    .job-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(215, 168, 79, 0.12);
        background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    }
}