/*
* Careers Page Styles
* Following established theme patterns with ultra-compact spacing
*/

/* ===== Global Careers Styles ===== */
.careers-hero,
.careers-jobs,
.careers-benefits,
.careers-process {
    padding: 15px 0; /* Ultra-compact spacing following established pattern */
    position: relative;
    overflow: hidden;
}

/* ===== Hero Section ===== */
.careers-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 400px; /* Compact height */
    display: flex;
    align-items: center;
}

.careers-hero-content {
    padding-right: 30px;
    animation: fadeInLeft 1s ease-out;
}

.careers-hero-subtitle {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px; /* Ultra-compact spacing */
    position: relative;
    display: inline-block;
}

.careers-hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Reduced spacing */
    left: 0;
    width: 50px;
    height: 2px;
    background: #e74c3c;
}

.careers-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px; /* Ultra-compact spacing */
    line-height: 1.2;
}

.careers-hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 15px; /* Ultra-compact spacing */
    line-height: 1.6;
}

.careers-hero-actions {
    display: flex;
    gap: 10px; /* Compact gap */
    flex-wrap: wrap;
}

.careers-hero-image {
    text-align: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.careers-hero-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #dee2e6);
    border-radius: 20px;
    padding: 40px 20px; /* Compact padding */
    text-align: center;
    color: #6c757d;
}

.careers-hero-placeholder .placeholder-content i {
    color: #e74c3c;
    margin-bottom: 10px; /* Compact spacing */
}

.careers-hero-placeholder h3 {
    color: #2c3e50;
    margin-bottom: 5px; /* Ultra-compact */
}

/* ===== Jobs Section ===== */
.careers-jobs {
    background: #ffffff;
}

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

.job-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px; /* Ultra-compact spacing */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.job-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.job-item:hover::before {
    transform: scaleY(1);
}

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

.job-header {
    padding: 20px 25px 15px; /* Compact padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f8f9fa;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px; /* Ultra-compact */
}

.job-department {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px; /* Ultra-compact */
}

.job-type {
    background: #e74c3c;
    color: #ffffff;
    padding: 2px 8px; /* Compact padding */
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.job-location i {
    margin-right: 3px; /* Compact spacing */
}

.job-description {
    padding: 0 25px 15px; /* Compact padding */
    color: #6c757d;
    line-height: 1.6;
}

.job-actions {
    padding: 15px 25px; /* Compact padding */
    display: flex;
    gap: 8px; /* Compact gap */
    flex-wrap: wrap;
}

.job-details {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.job-details-content {
    padding: 15px 25px; /* Compact padding */
}

.job-details-content h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px; /* Ultra-compact */
    margin-top: 12px; /* Compact top margin */
}

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

.job-details-content ul {
    margin-bottom: 8px; /* Ultra-compact */
    padding-left: 15px; /* Compact indent */
}

.job-details-content li {
    margin-bottom: 3px; /* Ultra-compact */
    color: #6c757d;
}

/* ===== Benefits Section ===== */
.careers-benefits {
    background: #f8f9fa;
}

.benefit-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px; /* Compact padding */
    text-align: center;
    margin-bottom: 15px; /* Ultra-compact spacing */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px; /* Compact size */
    height: 60px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px; /* Compact spacing */
}

.benefit-icon i {
    color: #ffffff;
    font-size: 24px;
}

.benefit-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px; /* Ultra-compact */
}

.benefit-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Process Section ===== */
.careers-process {
    background: #ffffff;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px; /* Adjusted for compact design */
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px; /* Compact spacing */
    padding-left: 70px; /* Compact left padding */
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px; /* Compact size */
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
}

.step-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px; /* Compact padding */
    flex: 1;
    margin-left: 15px; /* Compact margin */
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px; /* Ultra-compact */
}

.step-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.careers-cta {
    padding: 15px 40px; /* Match about-cta ultra-compact */
    background: linear-gradient(90deg, #ffeeee, transparent); /* Match about-cta gradient */
    border-radius: 20px; /* Match about-cta */
    color: #484848; /* Match about-cta */
    text-align: center;
    position: relative;
    overflow: hidden; /* Match about-cta */
    animation: fadeInUp 0.8s ease-out 0.6s both; /* Match about-cta animation */
    margin: 20px auto; /* Compact margin */
    max-width: 1200px;
}

/* Add gradient overlay to match about-cta styling */
.careers-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), transparent);
}

.careers-cta-content {
    position: relative;
    z-index: 2;
}

.careers-cta-content h2 {
    font-size: 2rem; /* Match about-cta h2 size */
    font-weight: 700;
    margin-bottom: 8px; /* Match about-cta h2 spacing */
    color: #484848; /* Match about-cta text color */
}

.careers-cta-content p {
    font-size: 18px; /* Match about-cta p font size */
    margin-bottom: 15px; /* Match about-cta p spacing */
    opacity: 0.9; /* Match about-cta opacity */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 10px; /* Compact gap */
    flex-wrap: wrap;
}

/* Match about-cta button z-index */
.careers-cta .btn {
    position: relative;
    z-index: 2;
}

/* ===== Application Modal ===== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px; /* Compact padding */
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px; /* Compact padding */
}

.form-group {
    margin-bottom: 12px; /* Compact spacing */
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px; /* Ultra-compact */
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 8px 12px; /* Compact padding */
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* ===== Section Titles ===== */
.section-title {
    margin-bottom: 15px; /* Ultra-compact spacing */
    animation: fadeInUp 0.8s ease-out;
}

.section-title h6 {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px; /* Ultra-compact */
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px; /* Ultra-compact */
}

.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 8px 18px; /* Compact padding matching established pattern */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #ffffff;
    border-color: #e74c3c;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-outline-primary:hover {
    background: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-light {
    background: #ec1c24; /* Match established button color */
    color: #fff;
    border: none;
    font-size: 1.1rem;
    border-radius: 5px;
}

.btn-light:hover {
    background: #d1161d; /* Match established hover color */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #e74c3c;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ===== Animation Classes ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .careers-hero,
    .careers-jobs,
    .careers-benefits,
    .careers-process {
        padding: 12px 0; /* Ultra-compact tablet spacing */
    }
    
    .careers-cta {
        padding: 12px 25px; /* Match about-cta tablet spacing */
    }
    
    .careers-hero {
        min-height: auto;
        text-align: center;
    }
    
    .careers-hero-content {
        padding-right: 0;
        margin-bottom: 25px; /* Compact margin */
    }
    
    .careers-hero-title {
        font-size: 2.2rem;
    }
    
    .careers-cta-content h2 {
        font-size: 1.6rem; /* Match about-cta tablet sizing */
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .careers-hero-actions {
        justify-content: center;
    }
    
    .job-header {
        flex-direction: column;
        gap: 8px; /* Compact gap */
    }
    
    .job-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }
    
    .process-timeline::before {
        left: 15px;
    }
    
    .process-step {
        padding-left: 50px; /* Compact mobile padding */
    }
    
    .step-number {
        width: 40px; /* Compact mobile size */
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content {
        margin-left: 10px; /* Compact mobile margin */
    }
}

@media (max-width: 576px) {
    .careers-hero,
    .careers-jobs,
    .careers-benefits,
    .careers-process {
        padding: 8px 0; /* Ultra-compact mobile spacing */
    }
    
    .careers-cta {
        padding: 8px 20px; /* Match about-cta mobile spacing */
    }
    
    .careers-hero-title {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .careers-cta-content h2 {
        font-size: 1.4rem; /* Match about-cta mobile h2 */
        margin-bottom: 4px; /* Match about-cta mobile spacing */
    }
    
    .careers-cta-content p {
        margin-bottom: 8px; /* Match about-cta mobile spacing */
    }
    
    .job-header {
        padding: 15px 20px 10px; /* Compact mobile padding */
    }
    
    .job-description,
    .job-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .job-details-content {
        padding: 12px 20px; /* Compact mobile padding */
    }
    
    .benefit-card {
        padding: 15px; /* Compact mobile padding */
    }
    
    .benefit-icon {
        width: 50px; /* Compact mobile size */
        height: 50px;
        margin-bottom: 8px; /* Ultra-compact */
    }
    
    .benefit-icon i {
        font-size: 20px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px; /* Compact mobile modal padding */
    }
}

/* ===== Print Styles ===== */
@media print {
    .careers-hero,
    .careers-jobs,
    .careers-benefits,
    .careers-process,
    .careers-cta {
        padding: 10px 0; /* Minimal print spacing */
        page-break-inside: avoid;
    }
    
    .careers-hero-actions,
    .job-actions,
    .cta-actions,
    .benefit-card:hover,
    .job-item:hover,
    .process-step:hover {
        display: none !important;
    }
    
    .job-item,
    .benefit-card,
    .step-content {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 10px; /* Compact print spacing */
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    .job-item,
    .benefit-card,
    .step-content,
    .careers-cta {
        border: 2px solid #000;
    }
    
    .process-timeline::before {
        background: #000;
    }
    
    .step-number,
    .benefit-icon {
        background: #000;
        border: 2px solid #fff;
    }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .job-item:hover,
    .benefit-card:hover,
    .btn:hover {
        transform: none;
    }
}