/* ===========================================
   Careers Page Specific Styles
   SwentaSolutions - Modern Professional Design
   =========================================== */

/* ===============================
   CUSTOM BOOTSTRAP REPLACEMENTS
   =============================== */

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* Responsive Grid */
@media (max-width: 991.98px) {
    .col-lg-4, .col-lg-6, .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility Classes */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-3 { margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center !important; }
.h-100 { height: 100% !important; }
.align-items-center { align-items: center !important; }

/* Form Controls - Black & White Theme */
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #f8f9fa;
    background-color: #1a1a1a;
    background-image: none;
    border: 1px solid #404040;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    color: #f8f9fa;
    background-color: #1a1a1a;
    border-color: #666;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e9ecef;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #adb5bd;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: #1a1a1a;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #404040;
    appearance: none;
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: #666;
    border-color: #666;
}

.form-check-label {
    color: #1A2740 !important;
    font-weight: 500;
}

/* Button Styles - Professional Standards */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-gray-900, #2d3748);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    font-size: var(--text-sm, 0.875rem);
    border-radius: var(--radius-lg, 0.5rem);
    transition: all var(--transition-base, 0.25s) ease;
    min-height: 44px; /* Professional touch target */
}

/* Mobile touch target improvements */
@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
    }
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1A2740;
    border-color: #1A2740;
    color: #fff;
}

.btn-primary:hover {
    background-color: #A8E6A3;
    border-color: #A8E6A3;
    color: #1A2740;
}

.btn-secondary {
    background-color: #A3D1F6;
    border-color: #A3D1F6;
    color: #1A2740;
}

.btn-secondary:hover {
    background-color: #A8E6A3;
    border-color: #A8E6A3;
    color: #1A2740;
}

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

.btn-outline-primary:hover {
    color: #1A2740;
    background-color: rgba(255,255,255,0.85);
    border-color: #fff;
}

.btn-light {
    color: #1A2740;
    background-color: #A3D1F6;
    border-color: #A3D1F6;
}

.btn-light:hover {
    background-color: #A8E6A3;
    border-color: #A8E6A3;
    color: #1A2740;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
    background-color: transparent;
}

.btn-outline-light:hover {
    color: #1A2740;
    background-color: rgba(255,255,255,0.85);
    border-color: #fff;
}

.btn-lg {
    padding: var(--space-4, 1rem) var(--space-8, 2rem);
    font-size: var(--text-base, 1rem);
    border-radius: var(--radius-lg, 0.5rem);
    min-height: 48px; /* Larger touch target for large buttons */
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #1A2740 !important;
    opacity: 1 !important;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235.896l.64.79L8 8.311l7.124-6.625.641.79L8.64 9.1l7.125 6.625-.641.79L8 9.89.875 16.515.235 15.725 7.36 9.1.235.896z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
}

.btn-close:hover {
    color: #1A2740 !important;
    text-decoration: none;
    opacity: 0.75;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 20px;
    background: #fff;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #404040;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    color: #1A2740;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #404040;
    border-bottom-right-radius: calc(0.5rem - 1px);
    border-bottom-left-radius: calc(0.5rem - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.modal-lg {
    max-width: 800px;
}

/* ===============================
   ORIGINAL CAREERS PAGE STYLES
   =============================== */

/* Careers Page Body */
.careers-page {
    background-color: #ffffff;
}

/* ===============================
   Hero Section Styles
   =============================== */
.careers-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

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

.hero-content {
    color: white;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ===============================
   Section Styling
   =============================== */
.section-padding {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ===============================
   Company Culture Section
   =============================== */
.company-culture {
    background: #fff;
}

.culture-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #404040;
    transition: all 0.3s ease;
    height: 100%;
    color: #e9ecef;
}

.culture-card:hover {
    border-color: #A8E6A3;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(168, 230, 163, 0.15);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.culture-card:hover .culture-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #A3D1F6 0%, #A8E6A3 100%);
}

.culture-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 15px;
}

.culture-card p {
    color: #adb5bd;
    line-height: 1.6;
}

/* ===============================
   Benefits Section
   =============================== */
.benefits {
    background: #fff;
    color: #e9ecef;
}

.benefits-content {
    padding-right: 40px;
}

.benefits-list {
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 15px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #A8E6A3;
    box-shadow: 0 10px 30px rgba(168, 230, 163, 0.1);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A2740;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 20px;
}

.benefit-content h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 8px;
}

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

.benefits-visual {
    position: relative;
}

.benefits-visual img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefits-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.benefits-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #A8E6A3;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===============================
   Job Positions Section
   =============================== */
.open-positions {
    background: #fff;
}

.job-filters {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #404040;
    color: #e9ecef;
}

.job-listings {
    margin-top: 40px;
}

.job-card {
    background: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    color: #e9ecef;
}

.job-card:hover {
    border-color: #A8E6A3;
    box-shadow: 0 15px 40px rgba(168, 230, 163, 0.1);
    transform: translateY(-5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 10px;
}

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

.job-department {
    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--text-xs, 0.875rem); /* Professional minimum */
    font-weight: 600;
    text-transform: uppercase;
}

.job-location {
    color: #666;
    font-size: var(--text-sm, 0.875rem);
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-type {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--text-xs, 0.875rem); /* Professional minimum */
    font-weight: 600;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.job-summary p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    background: #2a2a2a;
    color: #e9ecef;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: var(--text-xs, 0.875rem); /* Professional minimum */
    font-weight: 500;
    border: 1px solid #404040;
}

/* ===============================
   Application Modal Styles
   =============================== */
.application-form .form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.application-form .form-control,
.application-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: var(--text-sm, 0.875rem);
    transition: border-color 0.3s ease;
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: #A8E6A3;
    box-shadow: 0 0 0 0.2rem rgba(168, 230, 163, 0.25);
}

.application-form .form-text {
    color: #666;
    font-size: var(--text-xs, 0.875rem); /* Professional minimum */
}

.form-check-input:checked {
    background-color: #666;
    border-color: #666;
}

/* ===============================
   CTA Section
   =============================== */
/* .cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* CTA Section */
.cta {

    background: linear-gradient(135deg, #A8E6A3 0%, #A3D1F6 100%); 
    color: #1A2740;
    text-align: center;
    padding: 120px 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-outline {
    background: none;
    color: #1A2740;
    border: 2px solid rgba(179, 229, 186, 0.3);
}

.cta .btn-outline:hover {
    background: rgba(179, 229, 186, 0.1);
    border-color: #1A2740;
}


/* ===============================
   Filter Animation
   =============================== */
.job-item {
    transition: all 0.3s ease;
}

.job-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.job-item.show {
    opacity: 1;
    transform: scale(1);
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 1200px) {
    .benefits-content {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .careers-hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .careers-hero .hero-background {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
        background-size: cover;
        background-position: center center;
        object-fit: cover;
    }
    
    .careers-hero .hero-content {
        padding-top: 20vh;
        text-align: center !important;
    }
    
    .careers-hero .hero-tag {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: max-content !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .job-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .culture-card,
    .job-card {
        padding: 25px 20px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-right: 15px;
    }
    
    .job-filters {
        padding: 20px;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .hero-actions {
        margin-bottom: 30px;
    }
    
    .hero-actions .btn {
        width: auto; /* Changed from 100% to auto to prevent elongation */
        max-width: 280px; /* Set reasonable max width */
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
}

/* ===============================
   Animation Classes
   =============================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* ===============================
   Job Card Hover Effects
   =============================== */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.job-card:hover::before {
    opacity: 1;
}

/* ===============================
   Loading States
   =============================== */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===============================
   Success States
   =============================== */
.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    border-radius: 15px;
    padding: 20px;
}

.alert-error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: none;
    color: white;
    border-radius: 15px;
    padding: 20px;
}

/* ===============================
   Custom Scrollbar
   =============================== */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #A8E6A3;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #A3D1F6;
}