﻿
/* Careers Hero Section - Matching Header Color */
.careers-hero {
    background: #418fde;
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

/* Filter Section */
.careers-filter {
    margin-bottom: 40px;
}

.filter-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    height: 45px;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #418fde;
        box-shadow: 0 0 0 3px rgba(65, 143, 222, 0.1);
        outline: none;
    }

/* Job Listings */
.careers-listings {
    padding-bottom: 60px;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-left: 4px solid transparent;
}

    .job-card:hover {
        box-shadow: 0 6px 24px rgba(65, 143, 222, 0.15);
        transform: translateY(-4px);
        border-left-color: #418fde;
    }

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.job-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    transition: color 0.2s;
}

    .job-title:hover {
        color: #418fde;
    }

.job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

    .job-meta-item i {
        color: #418fde;
    }

.job-description-preview {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.job-type-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    background: #418fde;
    color: white;
}

.btn-view-job {
    background: #418fde;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-view-job:hover {
        background: #3680ca;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(65, 143, 222, 0.4);
        color: white;
    }

.btn-primary {
    background: #418fde;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background: #3680ca;
        border-color: #3680ca;
        box-shadow: 0 4px 12px rgba(65, 143, 222, 0.3);
    }

.posted-date {
    font-size: 12px;
    color: #95a5a6;
}

/* Loading Spinner */
.spinning {
    animation: spin 1s linear infinite;
    color: #418fde;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Info */
.alert-info {
    background-color: #d9edf7;
    border-color: #418fde;
    color: #31708f;
}

/* Responsive */
@media (max-width: 768px) {
    .careers-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .filter-card {
        padding: 20px;
    }

    .job-card {
        padding: 20px;
    }

    .job-card-header {
        flex-direction: column;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-view-job {
        width: 100%;
        text-align: center;
    }
}


/* Job Details Hero - White Background with Blue Text */
.job-details-hero {
    background: white;
    padding: 80px 0 30px;
    margin-bottom: 40px;
    border-bottom: 3px solid #418fde;
}

/* Prominent Back Link */
.back-link-prominent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #418fde;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 10px 20px;
    background: #f0f7ff;
    border-radius: 25px;
    border: 2px solid #418fde;
    transition: all 0.3s;
    text-decoration: none;
}

    .back-link-prominent:hover {
        background: #418fde;
        color: white;
        text-decoration: none;
        transform: translateX(-5px);
        box-shadow: 0 4px 12px rgba(65, 143, 222, 0.3);
    }

    .back-link-prominent i {
        font-size: 14px;
    }

.job-details-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 16px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

    .meta-item i {
        color: #418fde;
    }

/* Content Section */
.job-details-content {
    padding-bottom: 60px;
    background: #f8f9fa;
}

.content-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.section-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #418fde;
}

.content-html {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

    .content-html h1, .content-html h2, .content-html h3 {
        margin-top: 25px;
        margin-bottom: 15px;
        color: #2c3e50;
        font-weight: 600;
    }

    .content-html ul, .content-html ol {
        margin-left: 25px;
        margin-bottom: 20px;
    }

    .content-html li {
        margin-bottom: 10px;
    }

    .content-html strong {
        color: #2c3e50;
        font-weight: 600;
    }

    .content-html p {
        margin-bottom: 15px;
    }

.salary-range {
    font-size: 22px;
    font-weight: 600;
    color: #27ae60;
}

/* Apply Sidebar */
.apply-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.apply-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.apply-description {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-apply {
    background: #418fde;
    color: white;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-apply:hover {
        background: #3680ca;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(65, 143, 222, 0.4);
        color: white;
    }

.job-info-list {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #555;
    font-size: 15px;
}

    .info-item strong {
        color: #2c3e50;
        font-weight: 600;
    }

/* Modal Styles - Fixed Header */
.modal-header {
    background: white;
    color: #2c3e50;
    border-radius: 6px 6px 0 0;
    padding: 25px 30px;
    border-bottom: 3px solid #418fde;
}

.modal-title {
    font-weight: 700;
    font-size: 24px;
    color: #418fde;
}

    .modal-title i {
        margin-right: 10px;
    }

.modal-header .close {
    color: #2c3e50;
    opacity: 0.6;
    text-shadow: none;
    font-size: 32px;
}

    .modal-header .close:hover {
        opacity: 1;
        color: #418fde;
    }

.modal-body {
    padding: 30px;
    background: #f8f9fa;
}

    .modal-body .form-group {
        margin-bottom: 20px;
    }

    .modal-body .form-control {
        border-radius: 6px;
        border: 1px solid #ddd;
        padding: 12px 15px;
        background: white;
    }

        .modal-body .form-control:focus {
            border-color: #418fde;
            box-shadow: 0 0 0 3px rgba(65, 143, 222, 0.1);
            outline: none;
        }

    .modal-body label {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        display: block;
    }

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: white;
}

    .modal-footer .btn-primary {
        background: #418fde;
        border: none;
        padding: 12px 30px;
        font-weight: 600;
    }

        .modal-footer .btn-primary:hover {
            background: #3680ca;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(65, 143, 222, 0.3);
        }

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

    .file-item-name i {
        color: #418fde;
    }

.file-item-remove {
    color: #e74c3c;
    cursor: pointer;
    transition: color 0.2s;
}

    .file-item-remove:hover {
        color: #c0392b;
    }

/* Help text */
.help-block {
    color: #6c757d;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Required asterisk */
.text-danger {
    color: #e74c3c;
}

/* Success icon color in bootbox */
.glyphicon-ok-circle {
    color: #27ae60 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .job-details-hero {
        padding: 30px 0 25px;
    }

    .back-link-prominent {
        font-size: 14px;
        padding: 8px 16px;
    }

    .job-details-title {
        font-size: 28px;
    }

    .job-details-meta {
        flex-direction: column;
        gap: 10px;
    }

    .content-card,
    .apply-card {
        padding: 25px;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 30px;
    }

    .section-title {
        font-size: 22px;
    }

    .modal-title {
        font-size: 20px;
    }
}

.iti {
    width: 100%;
}

.iti__flag-container {
    z-index: 1;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.valid {
    border-color: #27ae60;
}