/* Careers Page - Light Theme (Matches About Us Page) */

/* Inline Text Links */
.inline-text-link {
    color: var(--neural-purple, #3c1361);
    text-decoration: underline;
    text-decoration-color: rgba(60, 19, 97, 0.3);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.inline-text-link:hover {
    text-decoration-color: rgba(217, 119, 6, 0.8);
    color: var(--neural-orange, #d97706);
}

body {
    background: var(--neutral-warm, #FAF9F7);
    color: #111827;
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    -moz-osx-font-smoothing: grayscale;
}

main {
    background: var(--neutral-warm, #FAF9F7);
}

/* Gradient Text */
.neural-gradient-text {
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Orange highlight text */
.neural-text-orange {
    color: var(--neural-orange, #d97706);
}

/* Hero Section - Light Theme */
.careers-hero {
    padding-top: calc(var(--header-height, 90px) + 4rem);
    padding-bottom: 5rem;
    background: #FFFFFF;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.careers-hero .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

.careers-hero .hero-content {
    display: block;
}

.careers-hero .hero-content--two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
}

.careers-hero .hero-text-content {
    max-width: 720px;
}

/* Partner Slideshow */
.hero-partners-slideshow {
    background: #FAFAFA;
    border: 1px solid rgba(60, 19, 97, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
}

.partners-slideshow-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neural-purple, #3c1361);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 1rem 0;
    text-align: center;
}

.partners-slides-container {
    position: relative;
    min-height: 280px;
}

.partners-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.partners-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide-category {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neural-orange, #d97706);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.partners-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.partner-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid rgba(60, 19, 97, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-grid-item:hover {
    background: #FFFFFF;
    border-color: rgba(60, 19, 97, 0.25);
    box-shadow: 0 4px 12px -4px rgba(60, 19, 97, 0.15);
    transform: translateY(-2px);
}

.partner-grid-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.partner-grid-item:hover .partner-grid-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-grid-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    transition: color 0.3s ease;
}

.partner-grid-item:hover .partner-grid-name {
    color: var(--neural-purple, #3c1361);
}

/* Slide Indicators */
.partners-slide-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(60, 19, 97, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slide-indicator:hover {
    background: rgba(60, 19, 97, 0.4);
}

.slide-indicator.active {
    background: var(--neural-purple, #3c1361);
    width: 24px;
    border-radius: 4px;
}

.careers-hero .hero-label {
    font-family: var(--font-primary);
    color: var(--np-purple, #3c1361);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-md, 1rem);
}

.careers-hero .hero-heading {
    font-family: var(--font-primary);
    color: var(--text-primary, #111827);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-extra-light, 200);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 2.5rem 0;
}

.careers-hero .hero-tagline {
    font-family: var(--font-primary);
    color: var(--np-orange, #EA580C);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium, 500);
    margin-bottom: var(--space-md, 1rem);
}

.careers-hero .hero-description {
    font-family: var(--font-primary);
    color: var(--text-secondary, #6B7280);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: var(--font-weight-light, 300);
    margin: 0 0 1.75rem 0;
}

.careers-hero .hero-description:last-child {
    margin-bottom: 0;
}

/* Values Section */
.values-section {
    background: var(--neutral-warm, #FAF9F7);
    padding: 6rem 0;
}

.values-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.value-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(60, 19, 97, 0.15);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.value-description {
    font-size: 1rem;
    font-weight: 300;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* How We Work Section */
.how-we-work-section {
    background: #FFFFFF;
    padding: 6rem 0;
}

.how-we-work-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.work-card {
    padding: 0;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.work-description {
    font-size: 1rem;
    font-weight: 300;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* Application Section */
.application-section {
    background: var(--neutral-warm, #FAF9F7);
    padding: 6rem 0;
}

.application-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 300;
    color: #111827;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    margin-top: 0.875rem;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Application Form */
.application-form {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field--full {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea {
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #FFFFFF;
    color: #111827;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--neural-purple, #3c1361);
    box-shadow: 0 0 0 3px rgba(60, 19, 97, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
}

.form-textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), #5a2d82);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.form-submit:hover {
    background: linear-gradient(135deg, #4a1d71, var(--neural-purple, #3c1361));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 19, 97, 0.3);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit.loading {
    position: relative;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 1rem;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Form Message */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    background: rgba(116, 238, 221, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Q&A Grid Section */
.qa-grid-section {
    background: #FFFFFF;
    padding: 6rem 0;
}

.qa-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.qa-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    align-items: start;
}

.qa-row:first-of-type {
    padding-top: 2rem;
}

.qa-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qa-question {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #111827;
    line-height: 1.3;
}

.qa-answer {
    font-size: 1.125rem;
    font-weight: 300;
    color: #374151;
    line-height: 1.7;
}

/* Mobile & Touch Optimizations */
@media (max-width: 768px) {
    .careers-hero {
        min-height: auto;
        padding-top: calc(var(--header-height, 70px) + 2rem);
        padding-bottom: 3rem;
    }

    .careers-hero::before {
        display: none;
    }

    .careers-hero .container {
        padding: 0 var(--space-lg, 1.5rem);
    }

    .careers-hero .hero-heading {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1.5rem;
    }

    .careers-hero .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .careers-hero .hero-tagline {
        font-size: 1rem;
    }

    .careers-hero .hero-label {
        font-size: 0.6875rem;
    }

    .careers-hero .hero-content--two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-partners-slideshow {
        max-width: 360px;
        margin: 0 auto;
    }

    .partners-slides-container {
        min-height: 260px;
    }

    .partner-grid-logo {
        width: 36px;
        height: 36px;
    }

    .partner-grid-item {
        padding: 0.875rem 0.5rem;
    }

    .partner-grid-name {
        font-size: 0.7rem;
    }

    .values-section {
        padding: 4rem 0;
    }

    .values-container {
        padding: 0 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .value-title {
        font-size: 1.125rem;
    }

    .value-description {
        font-size: 0.95rem;
    }

    .how-we-work-section {
        padding: 4rem 0;
    }

    .how-we-work-container {
        padding: 0 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-title {
        font-size: 1.125rem;
    }

    .work-description {
        font-size: 0.95rem;
    }

    .application-section {
        padding: 4rem 0;
    }

    .application-container {
        padding: 0 1.5rem;
    }

    .application-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-submit {
        width: 100%;
    }

    .qa-grid-section {
        padding: 4rem 0;
    }

    .qa-grid-container {
        padding: 0 1.5rem;
    }

    .qa-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }

    .qa-question {
        font-size: 1.125rem;
    }

    .qa-answer {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-title::after {
        width: 40px;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Tablet - Stack slideshow below text */
@media (max-width: 1024px) {
    .careers-hero .hero-content--two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-partners-slideshow {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .careers-hero {
        padding-top: calc(var(--header-height, 70px) + 1.5rem);
    }

    .careers-hero .hero-heading {
        font-size: 1.625rem;
    }

    .application-form {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.35rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    .form-submit:hover,
    .value-card:hover,
    .partner-grid-item:hover {
        transform: none;
    }

    .partners-slide {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Print styles */
@media print {
    .careers-hero,
    .values-section,
    .how-we-work-section,
    .application-section,
    .qa-grid-section {
        background: white !important;
        padding: 2rem 0;
    }

    .application-form,
    .value-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
