/* career.css */
/* CSRI Careers Page Styles with Crimson Theme */

/* Base styles */
.debug-info {
            background: #f8f9fa;
            border-left: 4px solid #007bff;
            padding: 10px 15px;
            margin: 10px 0;
            font-family: monospace;
            font-size: 12px;
            white-space: pre-wrap;
            display: none; /* Hide debug messages by default */
        }
        
        .success-message {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 12px 15px;
            margin: 10px 0;
            border-radius: 4px;
            font-weight: bold;
        }
        
        .error-message {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 12px 15px;
            margin: 10px 0;
            border-radius: 4px;
            font-weight: bold;
        }
.csri-careers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Success and Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Hero section */
.csri-careers-hero {
    margin-bottom: 40px;
    position: relative;
}

.csri-hero-overlay {
      position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: crimson;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 100px;
    height: 100px;
}

.csri-hero-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.csri-hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Job listings */
.csri-job-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.csri-job-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #dc143c;
}

.csri-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.15);
}

.csri-job-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.csri-job-meta {
    margin-bottom: 20px;
    flex-grow: 1;
}

.csri-job-tag {
    display: inline-block;
    background: #ffe6ea;
    color: #a50e2b;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.csri-apply-btn {
    display: inline-block;
    background: #dc143c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.csri-apply-btn:hover {
    background: #b01030;
    transform: translateY(-2px);
}

/* Modal styles */
.csri-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.csri-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.csri-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.csri-modal-overlay.active .csri-modal {
    transform: translateY(0);
}

.csri-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #dc143c;
    color: white;
    border-radius: 8px 8px 0 0;
}

.csri-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.csri-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.2s ease;
    line-height: 1;
}

.csri-modal-close:hover {
    color: #ffe6ea;
}

.csri-modal-body {
    padding: 25px;
}

.csri-form-group {
    margin-bottom: 20px;
}

.csri-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.csri-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.csri-form-input:focus {
    border-color: #dc143c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
}

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

.csri-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.csri-file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.csri-file-input-btn {
    display: block;
    padding: 10px 15px;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
    color: #666;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
}

.csri-file-input-btn:hover {
    background: #f0f0f0;
    border-color: #dc143c;
}

.csri-file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.csri-form-submit {
    background: #dc143c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.csri-form-submit:hover {
    background: #b01030;
}

.csri-form-row {
    display: flex;
    gap: 15px;
}

.csri-form-row .csri-form-group {
    flex: 1;
}

/* Section header */
.csri-section-header {
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
}

.csri-section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.csri-section-divider {
    width: 80px;
    height: 4px;
    background: #dc143c;
    margin: 0 auto;
    border-radius: 2px;
}

/* Loading spinner */
.csri-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.csri-loading.active {
    display: block;
}

.csri-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc143c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .csri-job-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .csri-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .csri-hero-title {
        color: white;
        font-size: 2rem;
    }
    
    .csri-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .csri-careers-container {
        padding: 15px;
    }
    
    .csri-job-card {
        padding: 20px;
    }
    
    .csri-modal-body {
        padding: 20px;
    }
    
    .csri-modal-header {
        padding: 15px 20px;
    }
}