/* Careers Page Styles */

/* Header Section */
.careers-header {
    position: relative;
    height: 300px;
    background-image: var(--careers-banner-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.careers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 43, 92, 0.8), rgba(0, 26, 56, 0.95));
    z-index: 1;
}

.careers-header .container {
    position: relative;
    z-index: 2;
}

.careers-header__title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.careers-header__divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
    position: relative;
}

.careers-header__divider::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.careers-header__subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Content Section */
.careers-content {
    padding: 60px 0;
}

/* Common Card Styles */
.careers-why__inner,
.careers-form__inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 43, 92, 0.1);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.careers-why__inner:hover,
.careers-form__inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 43, 92, 0.2);
}

.careers-card__header {
    text-align: center;
    margin-bottom: 30px;
}

.careers-card__icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    position: relative;
}

.careers-card__icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.careers-card__icon i {
    font-size: 28px;
    color: var(--white);
}

.careers-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.careers-card__divider {
    width: 50px;
    height: 2px;
    background: var(--secondary);
    margin: 0 auto 15px;
    position: relative;
}

.careers-card__divider::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.careers-card__subtitle {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Benefits Section */
.careers-benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.careers-benefit__icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.careers-benefit__icon i {
    font-size: 20px;
    color: var(--primary);
}

.careers-benefit__content {
    flex-grow: 1;
}

.careers-benefit__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.careers-benefit__text {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 0;
    opacity: 0.8;
}

/* Contact Information Section */
.careers-contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--secondary);
}

.careers-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.careers-contact-item i {
    font-size: 24px;
    color: var(--secondary);
    width: 40px;
    text-align: center;
}

.careers-contact-content h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.careers-contact-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    direction: ltr;
    text-align: right;
    display: block;
}

.careers-contact-content a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

/* Application Form */
.careers-form {
    height: 100%;
}

.careers-form__fields {
    margin-top: 30px;
}

/* Contact Form 7 Styling */
.careers-form .wpcf7 form {
    direction: rtl;
}

.careers-form .wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.careers-form .wpcf7 .required {
    color: #ff6b6b;
    margin-right: 3px;
}

.careers-form .wpcf7 input[type="text"],
.careers-form .wpcf7 input[type="email"],
.careers-form .wpcf7 input[type="tel"],
.careers-form .wpcf7 input[type="file"],
.careers-form .wpcf7 select,
.careers-form .wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 43, 92, 0.03);
    border: 1px solid rgba(0, 43, 92, 0.1);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.careers-form .wpcf7 input[type="text"]:focus,
.careers-form .wpcf7 input[type="email"]:focus,
.careers-form .wpcf7 input[type="tel"]:focus,
.careers-form .wpcf7 input[type="file"]:focus,
.careers-form .wpcf7 select:focus,
.careers-form .wpcf7 textarea:focus {
    background: rgba(0, 43, 92, 0.05);
    border-color: var(--primary);
    outline: none;
}

.careers-form .wpcf7 textarea {
    height: 150px;
    resize: vertical;
}

.careers-form .wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.careers-form .wpcf7 input[type="submit"]:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.careers-form .wpcf7 .ajax-loader {
    margin-right: 10px;
}

.careers-form .wpcf7 .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

.careers-form .wpcf7 .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.careers-form .wpcf7 .wpcf7-validation-errors,
.careers-form .wpcf7 .wpcf7-acceptance-missing {
    border: 1px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.careers-form .wpcf7 .wpcf7-mail-sent-ok {
    border: 1px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.careers-form__note {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 43, 92, 0.03);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.8;
}

.careers-form__note i {
    color: var(--secondary);
    margin-left: 5px;
}

/* FAQ Section */
.careers-faq {
    padding: 80px 0;
    background: rgba(0, 43, 92, 0.02);
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-heading__line {
    position: relative;
    width: 80px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
}

.section-heading__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item__header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.faq-item__header:hover {
    background: rgba(0, 43, 92, 0.02);
}

.faq-item.active .faq-item__header {
    border-left-color: var(--secondary);
    background: rgba(0, 43, 92, 0.02);
}

.faq-item__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.faq-item__icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.faq-item.active .faq-item__icon {
    background: var(--secondary);
    transform: rotate(45deg);
}

.faq-item__content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item.active .faq-item__content {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-item__content p {
    margin-bottom: 0;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.7;
}

/* Dynamic Styles for Contact Form 7 */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

/* File Upload Styling */
.wpcf7-form input[type="file"] {
    padding: 10px;
    background: rgba(0, 43, 92, 0.02);
}

/* Custom File Input Styles */
.custom-file-input {
    display: flex;
    align-items: center;
    background: rgba(0, 43, 92, 0.03);
    border: 1px solid rgba(0, 43, 92, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 20px;
}

.custom-file-input:hover {
    background: rgba(0, 43, 92, 0.05);
    border-color: var(--primary-light);
}

.custom-file-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.custom-file-button i {
    margin-left: 8px;
}

.custom-file-name {
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
    opacity: 0.7;
    flex-grow: 1;
}

.custom-file-input.has-file .custom-file-name {
    color: var(--primary);
    opacity: 1;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .careers-form {
        margin-top: 40px;
    }

    .careers-header {
        height: 250px;
    }

    .careers-header__title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .careers-header {
        height: 200px;
    }

    .careers-header__title {
        font-size: 30px;
    }

    .careers-header__subtitle {
        font-size: 16px;
    }

    .section-heading__title {
        font-size: 28px;
    }

    .careers-card__title {
        font-size: 22px;
    }

    .faq-item__title {
        font-size: 16px;
    }

    .careers-contact-info {
        margin-top: 25px;
        padding: 15px;
    }

    .careers-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .careers-header__title {
        font-size: 26px;
    }

    .careers-benefit {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .careers-benefit__icon {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .careers-why__inner,
    .careers-form__inner {
        padding: 20px;
    }

    .careers-faq {
        padding: 60px 0;
    }
}
