/* ============================================================
   HIND MANPOWER - JOBS PAGE CSS
   ============================================================ */

/* ========== GLOBAL FIX ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
    background-attachment: fixed;
    /* Fallback color in case image is missing */
    background-color: #0A0E17; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,14,23,0.95) 40%, rgba(10,14,23,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   HERO TOP BUTTONS (Top-Right Corner)
   ============================================================ */

.hero-top-buttons {
    position: absolute;
    top: 40px;
    right: 60px;
    display: flex;
    gap: 1.2rem;
    z-index: 10;
    flex-wrap: wrap;
}

/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: white;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    color: var(--accent-gold);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
    background: rgba(10, 14, 23, 0.65);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.9rem 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ========== SECTIONS GAP ========== */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    width: 100%;
}

/* ============================================================
   FILTERS
   ============================================================ */

.filters {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.filter-input {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.5rem;
    color: var(--text-primary);
    min-width: 200px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.filter-input::placeholder {
    color: var(--text-secondary);
}

.filter-input option {
    background: var(--bg-secondary);
}

/* Reset button specific style */
.btn-secondary {
    border-color: var(--text-secondary) !important;
    color: var(--text-secondary) !important;
}
.btn-secondary:hover {
    background: var(--text-secondary) !important;
    color: var(--bg-primary) !important;
}

/* ============================================================
   JOBS GRID
   ============================================================ */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
    word-wrap: break-word; /* Prevents long text overflow */
}

.job-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    border-left-width: 8px;
    box-shadow: var(--shadow-glow);
}

.job-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.job-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    word-wrap: break-word;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.job-meta i {
    color: var(--accent-gold);
    width: 20px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.job-salary {
    font-weight: 500;
    color: var(--accent-gold);
}

.btn-apply {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-size: 1.2rem;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    max-width: 550px;
    width: 90%;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-luxury);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    color: white;
}

/* Helper class for modal description */
.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Helper class for margin top */
.mt-3 {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.form-control {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.form-control[type="file"] {
    padding: 0.5rem;
}

.btn-submit {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--accent-gold);
}

.btn-submit:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.status-shortlisted {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196f3;
    color: #2196f3;
}

.status-interview {
    background: rgba(156, 39, 176, 0.15);
    border: 1px solid #9c27b0;
    color: #9c27b0;
}

.status-selected {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
}

/* ============================================================
   CTA
   ============================================================ */

.cta-section {
    background: linear-gradient(145deg, #0a1128, #1e293b);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem); /* Auto-fit padding */
    text-align: center;
    border: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
    word-wrap: break-word;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 100%;
    width: 100%;
    margin: 0 auto 2rem;
    word-wrap: break-word;
    white-space: normal !important;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 1px solid var(--accent-gold);
    max-width: 100%;
    word-wrap: break-word;
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* ============================================================
   FOOTER FIX
   ============================================================ */

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo-link img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .filter-group {
        flex-direction: column;
    }

    .filter-input {
        width: 100%;
    }

    .hero-top-buttons {
        top: 30px;
        right: 30px;
        gap: 0.8rem;
    }

    .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Mobile scroll fix */
        min-height: 80vh;
        padding: 4rem 0;
        align-items: flex-end; /* Text ko neeche push karega */
    }

    /* Mobile par buttons ko flow me le aayein (top-right se hata kar) */
    .hero-top-buttons {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 2rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap; 
    }
    
    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem; /* Mobile padding adjustment */
    }
}