@import "./theme.css";

/* --- Careers Section --- */ 
.careers-hero {
    height: 100vh;
    padding: 50px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items to the top for better spacing */
    gap: 40px;
    flex-wrap: wrap;
    background-image: url("../img/careers.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.careers-hero .container {
    height: 100vh;
    width: 100%; 
    max-width: var(--max-container);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 120px 0;
}

.careers-hero .careers-content {
    flex: 2;
    min-width: 300px;
    /* Ensure content doesn't shrink too much */
}
.careers-hero .hero h1.brand-style-1  {
    font-size: 65px;
    font-weight: 300;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 76px;
}

.careers-hero h1.brand-style-1  {
    font-size: 55px;
    font-weight: 300;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 76px;
}

.careers-hero h1.brand-style-1 span {
    color: var(--primary-color);
}

.careers-hero p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
}

.careers-hero .hero-actions {
    display: flex;
    gap: 20px;
}

/* --- Opportunities Container --- */
.opportunities{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
}
.opportunities .opportunities-container {
    width: 100%;
    max-width: var(--max-container);
}

/* --- 3. Header --- */
.opportunities .main-heading {
    text-align: center;
    font-size: 55px;
    font-weight: 300;
    margin-bottom: 40px;
}

.opportunities .main-heading span {
    color: var(--primary-color);
    font-weight: 300;
}

/* --- 4. Job Listings --- */
/* .opportunities .job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.opportunities .job-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunities .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
}

.opportunities .job-details h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.opportunities .job-details p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

.opportunities .job-button {
    display: inline-block;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.opportunities .job-button:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    border-color: var(--dark-blue);
} */

/**********************************/
.opportunities .opportunities-container {
    width: 100%;
    max-width: var(--max-container);
} 

.opportunities .job-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opportunities .job-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunities .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
}

.opportunities .job-info h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.opportunities .job-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.opportunities .open-modal-btn {
    display: inline-block;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    line-height: 2;
    cursor: pointer;
    background: var(--white);
    white-space: nowrap; /* Prevents button text from wrapping */
    transition: all 0.3s ease;
}

.opportunities .open-modal-btn:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    border-color: var(--dark-blue);
}

.opportunities .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.opportunities .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    padding: 2.5rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: var(--max-container);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.opportunities .modal-overlay.active,
.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.opportunities .modal.active {
    transform: translate(-50%, -50%) scale(1);
}

.opportunities .close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.opportunities .close-button:hover {
    color: var(--text-dark);
}

.opportunities .modal-header h2 {
    font-size: 55px;
    line-height: 76px;
    font-weight: 300;
    margin: 0;
    color: var(--primary-blue);
}
.opportunities .modal-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}
.opportunities .modal-header p {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
}

.opportunities .modal-body {
    margin-top: 0rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    line-height: 1.7;
}

.opportunities .modal-body h4 {
    font-size: 18px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.opportunities .modal-body ul {
    padding-left: 20px;
    margin: 0;
}

.opportunities .modal-body li {
    margin-bottom: 0.5rem;
}
.opportunities .modal-job-meta{
    color: var(--primary-color);
}

/* --- NEW STYLES --- */
.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.apply-btn {
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.apply-btn:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}