/* ==========================================
   TRUST GTC - Careers Page Styles
   ========================================== */

/* ==========================================
   CAREERS HERO SECTION
   ========================================== */
.careers-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.careers-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1920');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.careers-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 68, 112, 0.85) 0%, rgba(45, 50, 84, 0.9) 100%);
    z-index: 1;
}

.careers-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 80px 0;
}

.careers-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.careers-hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.95;
}

.careers-hero-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 700px;
}

.careers-hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================
   JOB OPENINGS SECTION
   ========================================== */
.job-openings-section {
    padding: 80px 0;
    background: var(--white);
}

.job-filters {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ==========================================
   JOB CARDS
   ========================================== */
.job-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.job-card-header {
    margin-bottom: 20px;
}

.job-card-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.job-card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.job-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.job-status-badge.status-open {
    background: var(--secondary-color);
    color: var(--white);
}

.job-status-badge.status-closed {
    background: #999;
    color: var(--white);
}

.job-posted-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-posted-date i {
    color: var(--secondary-color);
    font-size: 14px;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.job-meta-item i {
    color: var(--secondary-color);
    font-size: 16px;
}

.job-card-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-card-footer {
    margin-top: auto;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.job-tag {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.job-tag.department {
    background: var(--primary-color);
    color: var(--white);
}

.job-tag.type {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-view-details {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-details:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 68, 112, 0.3);
}

.btn-view-details.btn-disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-view-details.btn-disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.job-closed {
    opacity: 0.85;
}

.job-closed .job-card-title {
    color: var(--text-gray);
}

/* ==========================================
   NO JOBS MESSAGE
   ========================================== */
.no-jobs-message {
    padding: 60px 20px;
    text-align: center;
}

.no-jobs-icon {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-jobs-message h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.no-jobs-message p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ==========================================
   JOB DETAILS MODAL
   ========================================== */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    border-bottom: none;
    padding: 25px 30px;
    border-radius: 8px 8px 0 0;
}

.modal-header .modal-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.modal-body {
    padding: 30px;
}

.job-details-content h4 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.job-details-content h4:first-child {
    margin-top: 0;
}

.job-details-content .job-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.job-details-content .job-detail-item:last-child {
    border-bottom: none;
}

.job-details-content .job-detail-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.job-details-content .job-detail-value {
    color: var(--text-gray);
}

.job-details-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.job-details-content ul li {
    color: var(--text-gray);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.job-details-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.job-details-content .job-career-email-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--bg-light, #f8fafc);
    border-left: 4px solid var(--primary-color, #0d9488);
    border-radius: 6px;
    color: var(--text-gray, #475569);
    font-size: 15px;
    line-height: 1.6;
}

.job-details-content .job-career-email-note a {
    color: var(--primary-color, #0d9488);
    font-weight: 600;
    text-decoration: none;
}

.job-details-content .job-career-email-note a:hover {
    text-decoration: underline;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
}

.modal-footer .btn-secondary {
    background: var(--text-gray);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
}

.modal-footer .btn-secondary:hover {
    background: var(--text-color);
}

/* ==========================================
   APPLY FORM SECTION
   ========================================== */
.apply-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.career-application-form {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.form-group .required {
    color: #e74c3c;
}

.career-application-form .form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.career-application-form .form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.career-application-form .form-control.error {
    border-color: #e74c3c;
}

.career-application-form .form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Choose File button - visible green style */
.career-application-form input[type="file"]::file-selector-button,
.career-application-form input[type="file"]::-webkit-file-upload-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.career-application-form input[type="file"]::file-selector-button:hover,
.career-application-form input[type="file"]::-webkit-file-upload-button:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}

.form-messages {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-messages.show {
    display: block;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-messages p {
    margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 991px) {
    .careers-hero-title {
        font-size: 38px;
    }
    
    .careers-hero-subtitle {
        font-size: 20px;
    }
    
    .career-application-form {
        padding: 35px 25px;
    }
}

@media (max-width: 767px) {
    .careers-hero {
        min-height: 400px;
    }
    
    .careers-hero-content {
        padding: 60px 0;
    }
    
    .careers-hero-title {
        font-size: 28px;
    }
    
    .careers-hero-subtitle {
        font-size: 18px;
    }
    
    .careers-hero-text {
        font-size: 15px;
    }
    
    .careers-hero-btns {
        flex-direction: column;
    }
    
    .careers-hero-btns .btn {
        width: 100%;
    }
    
    .job-filters {
        padding: 20px;
    }
    
    .job-card {
        padding: 25px 20px;
    }
    
    .job-card-title {
        font-size: 20px;
    }
    
    .career-application-form {
        padding: 30px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
}

/* ==========================================
   CAREERS PAGE – Section effects & transitions (no content change)
   ========================================== */

/* Hero: slide up + fade */
.careers-reveal-hero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.careers-reveal-hero.careers-visible {
    opacity: 1;
    transform: translateY(0);
}
.careers-hero-btns .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.careers-hero-btns .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Job Openings header: slide up */
.careers-reveal-openings {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.careers-reveal-openings.careers-visible {
    opacity: 1;
    transform: translateY(0);
}
.section-subtitle {
    transition: transform 0.3s ease;
}
.job-openings-section .section-header:hover .section-subtitle {
    transform: translateY(-2px);
}

/* Filters: fade in + slide up */
.careers-reveal-filters {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out 0.15s, transform 0.6s ease-out 0.15s;
}
.careers-reveal-filters.careers-visible {
    opacity: 1;
    transform: translateY(0);
}
.job-filters {
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.job-filters:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.filter-select {
    transition: all 0.3s ease;
}
.filter-select:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Job cards: fade up (stagger via JS) */
.careers-reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.careers-reveal-card.careers-visible {
    opacity: 1;
    transform: translateY(0);
}
.job-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.job-card:hover {
    border-top-color: var(--primary-color);
}

/* Apply form section: scale in */
.careers-reveal-form {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.careers-reveal-form.careers-visible {
    opacity: 1;
    transform: scale(1);
}
.apply-form-section .section-header:hover .section-subtitle {
    transform: translateY(-2px);
}
.career-application-form .form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.career-application-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.career-application-form .btn-main {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.career-application-form .btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

/* No jobs message */
#noJobsMessage.careers-reveal-card {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Modal open/close transition (Bootstrap .fade enhanced) */
#jobDetailsModal .modal-dialog {
    transition: transform 0.3s ease-out;
}
#jobDetailsModal.show .modal-dialog {
    transform: scale(1);
}
#jobDetailsModal .modal-content {
    transition: box-shadow 0.3s ease;
}
#jobDetailsModal .modal-content:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}
