/* Import main mobile fixes */
@import url('mobile-fix.css');

/* Careers Page Styles */

/* Culture Section */
.culture-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Jobs Section */
.jobs-section {
    padding: 80px 0;
    background: white;
}

.job-search {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}



.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2c5aa0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-title h3 {
    color: #2c5aa0;
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.job-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-salary {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-meta span {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-urgent {
    color: #dc3545 !important;
    font-weight: 600;
}

.job-description-container {
    margin-bottom: 20px;
}

.job-description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #2c5aa0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #4a90e2;
}

.job-skills {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.job-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.apply-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.save-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.save-btn.saved {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Application Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.application-modal {
    max-width: 600px;
    width: 90%;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-header {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    padding: 30px;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.application-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-application-btn {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-application-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* Hidden jobs for filtering */
.job-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .search-container {
        max-width: 100%;
        margin: 0 15px;
    }
    
    .search-input {
        padding: 12px 20px 12px 40px;
        font-size: 0.9rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .job-skills {
        gap: 5px;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .application-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px) !important;
    }
    
    .modal-content {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .application-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .job-actions {
        flex-direction: column;
    }
    
    .save-btn {
        width: 100%;
        height: 45px;
    }
    
    .application-modal {
        margin: 5px;
        max-width: calc(100% - 10px);
        width: calc(100% - 10px) !important;
    }
    
    .modal-content {
        margin: 5px !important;
        width: calc(100% - 10px) !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Training Videos Section - Careers Page */
.training-videos-careers {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.training-videos-careers .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.training-videos-careers .section-header h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: 700;
}

.training-videos-careers .section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.training-videos-careers .training-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.training-videos-careers .training-video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.training-videos-careers .training-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}

.training-videos-careers .video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.training-videos-careers .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-videos-careers .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-videos-careers .play-overlay:hover {
    background: #ff6b35;
    transform: translate(-50%, -50%) scale(1.1);
}

.training-videos-careers .play-overlay i {
    color: white;
    font-size: 20px;
}

.training-videos-careers .video-info {
    padding: 20px;
}

.training-videos-careers .video-info h3 {
    font-size: 1.2rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    font-weight: 600;
}

.training-videos-careers .video-info p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.training-videos-careers .no-training-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.training-videos-careers .no-training-videos i {
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 20px;
}

.training-videos-careers .no-training-videos h3 {
    font-size: 1.3rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.training-videos-careers .training-cta {
    text-align: center;
}

.training-videos-careers .btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #ff6b35);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.training-videos-careers .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    background: linear-gradient(135deg, #1e4080, #e55a2b);
}

/* Video Modal Styles for Careers */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 70%;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal .close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

.video-modal .video-container {
    width: 100%;
    height: 100%;
}

.video-modal .video-container iframe {
    width: 100%;
    height: 100%;
}

/* Mobile Responsive for Training Videos */
@media (max-width: 768px) {
    .training-videos-careers .training-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .training-videos-careers .section-header h2 {
        font-size: 2rem;
    }
    
    .video-modal .modal-content {
        width: 95%;
        height: 60%;
    }
}