/* careers.css - Styles for careers.html */

/* --- Careers Hero Section --- */
.careers-hero-section {
    background-color: #1f2937;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .careers-hero-section {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
}

.careers-hero-grid {
    display: grid;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .careers-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .careers-hero-text {
        order: 1;
    }

    .careers-hero-animation {
        order: 2;
    }
}

.careers-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.careers-hero-subtitle {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.careers-hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.careers-hero-animation dotlottie-player {
    width: 100%;
    height: auto;
    max-height: 450px;
}

@media (min-width: 768px) {
    .careers-hero-title {
        font-size: 3rem;
    }

    .careers-hero-subtitle {
        font-size: 1.2rem;
    }
}

.careers-hero-section .btn {
    margin-top: 1rem;
}

/* --- Job Listings Section --- */
.job-listings-section {
    background-color: #111827;
    min-height: 50vh;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .job-listings-section {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

.job-listings-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .job-listings-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .job-listings-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Job Card Styling */
.job-listing {
    background-color: #1f2937;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.job-listing:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.job-listing .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.job-details p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.job-details svg {
    width: 16px;
    height: 16px;
    stroke: #6b7280;
}

.card-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Hidden Content (for cloning into modal) */
.job-detail-content {
    display: none;
}

/* Modal Styling */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-modal.visible {
    opacity: 1;
}

.modal-content {
    background-color: #1f2937;
    border-radius: 0.75rem;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #374151;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Modal Content Styles */
#modal-content-area h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#modal-content-area .jd-detail {
    color: #d1d5db;
    font-weight: 400;
}

#modal-content-area ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

#modal-content-area li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d1d5db;
}

#modal-content-area .apply-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

#modal-content-area .apply-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#modal-content-area .form-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
}

#modal-content-area .form-input,
#modal-content-area .form-textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    width: 100%;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #ffffff;
}

#modal-content-area input[type="file"].form-input {
    padding: 0.4rem;
    background-color: #4b5563;
}

#modal-content-area .form-textarea {
    min-height: 90px;
    resize: vertical;
}

#modal-content-area .submit-button {
    margin-top: 0.5rem;
}

#modal-content-area .job-detail-content {
    display: block;
}

/* --- Page Overlay Styling --- */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.visible {
    opacity: 1;
}

.overlay.hidden {
    display: none;
}

/* No Listings Message */
.no-listings {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #1f2937;
    border-radius: 0.5rem;
    color: #9ca3af;
    margin-top: 2rem;
}

.no-listings.hidden {
    display: none;
}