.job-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.job-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.job-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.job-content {
    position: relative;
    z-index: 2;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.badge-active {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.badge-inactive {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.job-description {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #495057;
}

/* job description formatting */
.description-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Style for bold text (asterisk wrapped content) */
.description-content strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2em;
    display: block;
    margin: 20px 0 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Style for bullet points */
.description-content .bullet-point {
    margin-left: 25px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.description-content .bullet-point:hover {
    transform: translateX(5px);
    color: #2c3e50;
}

.description-content .bullet-point::before {
    content: '❖';
    position: absolute;
    left: -15px;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

/* Style links */
.description-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.description-content a:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Email styling */
.description-content .email-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin: 15px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.description-content .email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

/* Truncation and expansion */
.description-content.truncated {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.description-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.expand-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.job-meta {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.meta-content h6 {
    margin: 0;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    margin: 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

.action-buttons {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.btn-apply {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-size: 1rem;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-size: 1rem;
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #495057;
    text-decoration: none;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #667eea;
    text-decoration: none;
    transform: translateX(-5px);
}

.job-posting-id {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-modern {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-header {
        padding: 1.5rem;
    }

    .job-description {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .job-meta {
        padding: 1rem;
    }

    .meta-item {
        flex-direction: column;
        text-align: center;
    }

    .meta-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .status-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .action-buttons {
        padding: 1rem;
    }

    .btn-apply,
    .btn-secondary-custom {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar-custom,
    .footer,
    .action-buttons,
    .back-link {
        display: none !important;
    }

    .job-header,
    .job-description,
    .job-meta {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    body {
        background: white !important;
        padding-top: 0 !important;
    }
}