/* Careers Page Specific Styles */

.careers-hero {
    position: relative;
    height: 250px;
    background-image: url('./assets/images/carrerbanner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 85px;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.careers-hero .container {
    position: relative;
    z-index: 2;

    /* ADDED: left & right spacing */
    padding: 0 40px;
}

.careers-hero h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.careers-hero p {
    font-size: 1.2rem;
    max-width: 500px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Job Roles Section */
.job-roles {
    padding: 80px 40px;
    /* UPDATED */
    background-color: #F6F9F2;
}

.job-roles .section-title {
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 2.5rem;
}

.job-roles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.excel-upload-container .btn-outline {
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
}

.excel-upload-container .btn-outline i {
    font-size: 1.1rem;
}

.accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 24px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #fcfcfc;
}

.accordion-header h3 {
    color: #1d8f85;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.accordion-icon {
    width: 35px;
    height: 35px;
    background: #eef9f8;
    color: #1d8f85;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
    background: #1d8f85;
    color: #fff;
    transform: rotate(180deg);
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    padding-top: 15px;
    padding-bottom: 25px;
}


/* Ported Premium Styles from vacancies.php */
.job-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 24px rgba(0, 123, 138, 0.08);
    border: 1px solid rgba(0, 123, 138, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    transition: box-shadow 0.25s;
    text-align: left;
}

.job-card:hover {
    box-shadow: 0 6px 40px rgba(0, 123, 138, 0.14);
}

.job-card-header {
    padding: 28px 35px;
    border-bottom: 1px solid rgba(0, 123, 138, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.job-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.job-icon.senior {
    background: linear-gradient(135deg, #007B8A, #00bcd4);
}

.job-icon.care {
    background: linear-gradient(135deg, #c9a84c, #e8b86d);
}

.job-icon.care1 {
    background: linear-gradient(135deg, #1d8f85, #4cc7bc);
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.meta-pill {
    background: #eef9f8;
    color: #007B8A;
    border-radius: 50px;
    padding: 4px 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Internal Accordion Override */
.job-card .accordion {
    max-width: 100%;
}

.job-card .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 123, 138, 0.08);
    border-radius: 0;
    margin-bottom: 0;
}

.job-card .accordion-item:last-child {
    border-bottom: none;
}

.job-card .accordion-header {
    padding: 20px 35px;
}

.job-card .accordion-item.active .accordion-header {
    background-color: #f8fcfb;
}

.job-card .accordion-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.job-card .accordion-content {
    padding: 0 35px;
}

.job-card .accordion-item.active .accordion-content {
    max-height: 2000px;
    padding-top: 15px;
    padding-bottom: 25px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-box {
    background: #eef9f8;
    border-radius: 12px;
    padding: 15px;
}

.info-box .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #007B8A;
    margin-bottom: 5px;
}

.info-box .value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Field Labels & Values */
.field-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #007B8A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.field-value {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.styled-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007B8A;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Apply Bar */
.apply-bar {
    background: linear-gradient(135deg, #005f6b, #007B8A);
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.apply-bar strong {
    color: #fff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.apply-bar p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.apply-bar .btn-yellow {
    background: #fff;
    color: #007B8A;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
}

.apply-bar .btn-yellow:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .job-card-header {
        flex-direction: column;
        padding: 25px;
    }

    .apply-bar {
        padding: 25px;
        text-align: center;
        justify-content: center;
    }
}

/* Perks & Benefits */
.perks {
    padding: 100px 40px;
    /* UPDATED */
    background-color: #fff;
}

.perks-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 40px;
    font-weight: 400;
}

.perks-header .section-title {
    flex: 1;
    font-size: 3.5rem;
    margin: 0;
}

.perks-header p {
    flex: 1;
    font-size: 1.4rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
    max-width: 500px;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.perk-item {
    text-align: left;
}

.perk-item svg {
    width: 65px;
    height: 65px;
    padding: 16px;
    color: #1d8f85;
    background: #eef9f8;
    border-radius: 18px;
    margin-bottom: 25px;
    display: block;
    transition: all 0.3s ease;
}

.perk-item:hover svg {
    background: #1d8f85;
    color: #fff;
    transform: translateY(-4px);
}

.perk-item h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.perk-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Upload CV Section */
.upload-cv {
    padding: 100px 40px;
    /* UPDATED */
    background-color: #EBF7F6;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.upload-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.upload-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.get-in-touch {
    display: inline-block;
    color: #1d8f85;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.upload-text img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-form {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fdfdfd;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.upload-box .file-upload {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: #fdfdfd;
}

.file-upload i {
    font-size: 1.5rem;
    color: #1d8f85;
    margin-bottom: 5px;
}

.file-upload span {
    font-size: 0.8rem;
    color: #666;
}

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

.upload-form .btn {
    width: 20%;
    padding: 15px;
    margin: 10px auto 0;
    display: block;
}




/* Responsive */
@media (max-width: 1024px) {
    .perks-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .perks-header p {
        text-align: center;
    }

    .perks-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .upload-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 950px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 98vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    font-weight: 300;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    flex: 1;
    overflow-y: auto;
    /* Fallback for very small heights */
}

.modal-image-side {
    position: relative;
    overflow: hidden;
}

.modal-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-side .image-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #fff;
    z-index: 2;
}

.modal-image-side::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.modal-image-side h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.modal-image-side p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
    color: #fff;
}

.modal-form-side {
    background-color: #EBF7F6;
    padding: clamp(20px, 5%, 40px) clamp(20px, 8%, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-form-side h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 600;
}

.modal-form-side .form-group {
    margin-bottom: 18px;
}

.modal-form-side label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.modal-form-side input,
.modal-form-side select,
.modal-form-side textarea {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.modal-form-side textarea {
    height: 80px;
    resize: none;
}

.modal-form-side input:focus,
.modal-form-side textarea:focus {
    border-color: #1d8f85;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 143, 133, 0.1);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-country {
    width: 80px !important;
}

.modal-file-upload {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-file-upload:hover {
    border-color: #1d8f85;
    background: #f9f9f9;
}

.modal-file-upload .file-info {
    font-weight: 500;
    color: #666;
}

.modal-file-upload .plus-icon {
    width: 32px;
    height: 32px;
    background: #4cc7bc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.modal-file-upload.has-file .plus-icon {
    background: #1d8f85;
}

.form-submit-container {
    text-align: center;
    margin-top: 10px;
}

.form-submit-container .btn {
    width: 100%;
    max-width: 250px;
    padding: 12px;
    font-size: 1rem;
    border-radius: 50px;
}

/* Responsive Modal */
@media (max-width: 1200px) {
    .modal-content {
        max-width: 850px;
    }

    .modal-image-side h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image-side {
        display: none;
    }

    .modal-form-side {
        padding: 40px 30px;
    }

    .modal-content {
        max-width: 600px;
    }
}

@media (max-height: 700px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-form-side {
        padding: 20px 40px;
    }

    .modal-form-side h2 {
        margin-bottom: 15px;
    }

    .modal-form-side .form-group {
        margin-bottom: 12px;
    }
}

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

    .job-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .perks-header .section-title {
        font-size: 2.5rem;
    }

    .job-roles,
    .perks,
    .upload-cv,
    .careers-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}