/* Career Page Styles */
.career-hero {
    background: #1e4b9a;
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    background-image: linear-gradient(135deg, #1e4b9a 0%, #0d2f6d 100%);
    margin-bottom: 40px;
}

.career-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.career-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    /* Reset display to block so details appear below */
    display: block;
}

.job-header {
    /* STRICT FLEXBOX LAYOUT FOR HEADER ONLY */
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: unset;
    width: 100%;
}

/* ... existing hover styles ... */

.job-right {
    /* Handled by Grid and Inline CSS */
    flex-shrink: 0 !important;
    /* Never shrink the button area */
    margin-left: 20px;
    white-space: nowrap;
}

/* ... existing detail/icon styles ... */

/* Responsive */
@media (max-width: 768px) {
    /* Grid handles main layout */

    .job-meta-detailed {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .job-left {
        padding-right: 0 !important;
        /* Reset padding on mobile */
    }
}

.job-left {
    flex: 1 !important;
    /* Take up all remaining space */
    min-width: 0 !important;
    /* Allow shrinking below content size */
    padding-right: 0;
}

.job-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1e4b9a;
    border-radius: 4px 0 0 4px;
}

.job-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta i {
    color: #1e4b9a;
}

.job-right .btn-apply {
    background: #1e4b9a;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.job-right .btn-apply:hover {
    background: #163a7a;
}

.job-details {
    width: 100%;
    margin-top: 25px;
    padding-top: 35px;
    /* Increased for better separation */
    border-top: 1px solid #eee;
    display: none;
    /* Hidden by default for simple list */
}

/* Accordion Toggle Style */
.toggle-trigger {
    cursor: pointer;
}

.detail-section {
    margin-bottom: 15px;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.detail-section ul {
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive - Only stack on actual mobile */
@media (max-width: 576px) {
    .job-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .job-right {
        width: 100%;
        text-align: right;
        margin-left: 0;
        margin-top: 15px;
    }

    .job-meta-detailed {
        flex-direction: column;
        gap: 5px;
    }
}

/* Badges */
.badge-status {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-open {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-closed {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.badge-urgent {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* Detailed Meta */
.job-meta-detailed {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.job-meta-detailed span {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-meta-detailed i {
    color: #1e4b9a;
}

/* Closed State */
.job-closed {
    opacity: 0.7;
    background: #fafafa;
    border-left: 4px solid #999;
    /* Override blue strip */
}

.job-closed .job-left::before {
    background: #999;
}

.btn-disabled {
    background: #ccc !important;
    cursor: not-allowed;
    color: #666 !important;
}

/* Utility to ensure spacing if mr-2 is missing from bootstrap scan */
.mr-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

/* Force specific spacing for detailed sections */
.detail-section h4 i,
.bg-light p i {
    margin-right: 15px;
    /* Increased from 8px to 15px */
    width: 24px;
    /* Increased width for better optical alignment */
    text-align: center;
    color: #1e4b9a;
    /* Ensure brand color */
}

.bg-light p {
    display: flex;
    /* Flexbox for better vertical alignment of icon and text */
    align-items: center;
}

.detail-section h4 {
    display: flex;
    align-items: center;
}