/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #03301B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Job Cards Section */
.job-postings-section {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.job-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-left: 4px solid #03301B;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.job-title {
    color: #EAC68C;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-employer {
    color: #03301B;
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.job-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    align-items: start;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-label {
    color: #666;
    font-weight: 500;
    flex: 1;
}

.detail-value {
    color: #03301B;
    font-weight: 600;
    text-align: left;
    flex: 1;
    white-space: normal;
   
}

.vacancy-footer {
    background: #f8fafc;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #03301B;
}

/* Experience Items */
.experience-item {
    display: block;
    position: relative;
    padding-left: 1rem;
}

.experience-item:not(:last-child) {
    margin-bottom: 0.25rem;
}

.experience-item:before {
    content: "•";
    color: #EAC68C;
    position: absolute;
    left: 0;
}

@media (min-width: 768px) {
    .experience-item {
        display: inline-block;
        margin-right: 0.75rem;
        padding-left: 0;
    }
    .experience-item:before {
        display: none;
    }
    .experience-item:not(:last-child):after {
        content: "|";
        color: #ccc;
        margin-left: 0.75rem;
    }
}

/* Modal Styles */
.job-modal {
    font-family: 'Montserrat';
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8fafc;
}

.modal-section h3 {
    color: #03301B;
    border-bottom: 2px solid #EAC68C;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* List Styles */
.list-section {
    margin: 1rem 0;
}

.list-section h4 {
    color: #03301B;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.list-section ul {
    padding-left: 1.5rem;
    margin: 0;
}

.list-section li {
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.5;
    position: relative;
}

.list-section li:before {
    content: "•";
    color: #EAC68C;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-track {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .modal-section {
        padding: 1rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .list-section li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .job-postings-section {
        padding: 2rem 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .job-details {
        grid-template-columns: 1fr;
    }
    
    .vacancy-footer {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .experience-item {
        display: block;
        margin-right: 0;
    }
    
    .experience-item:after {
        content: none !important;
    }
}
.modal-apply {
    background: linear-gradient(180deg, rgb(6.000000117346644, 88.00000235438347, 49.00000087916851) 0%, rgb(3.000000058673322, 48.000000938773155, 27.000000290572643) 100%);
    background-color: transparent;
    padding: 0.85rem 3rem;
    font-size: 1rem;
    font-weight: 400;
    background-color: #03301b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-contact {
    background: none;
    border: 1px solid #cccccc;
    color: #000;
    padding: 0.85rem 3rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}
