/* ===============================================
   Darwin Health - Careers Page Styles
   =============================================== */

/* Careers Hero Section */
.careers-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.careers-hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 36, 104, 0.3) 0%,
            rgba(19, 59, 158, 0.1) 50%,
            rgba(19, 59, 158, 0.2) 100%);
    z-index: 1;
}

/* Careers Navbar Styling */
.careers-navbar {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.careers-navbar .nav-links a.active {
    color: #F97316;
    font-weight: 600;
}

/* Careers Hero Content */
.careers-hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.careers-hero-container {
    max-width: 900px;
}

.careers-hero-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.15;
    margin: 0;
    color: #FFFFFF;
}

.careers-hero-heading em {
    font-style: italic;
    color: #FFFFFF;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .careers-hero-heading {
        font-size: 4.5rem;
    }
}

/* Mission Section */
.careers-mission-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.careers-mission-container {
    max-width: 1200px;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .mission-content {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0A2468;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.mission-heading em {
    font-style: italic;
    color: #F97316;
}

@media (min-width: 768px) {
    .mission-heading {
        font-size: 2.5rem;
    }
}

.mission-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-slate-600);
    margin: 0 0 20px 0;
}

.mission-cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A2468;
    margin: 24px 0 0 0;
}

/* Mission Images */
.mission-images {
    position: relative;
}

.mission-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mission-image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mission-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.mission-image-item.large {
    grid-column: span 2;
}

.mission-image-item.large img {
    height: 280px;
}

/* Our Team Section */
.careers-team-section {
    padding: 40px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.team-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #0A2468;
    margin: 0 0 16px 0;
}

.team-heading em {
    font-style: italic;
    color: #F97316;
}

.team-description {
    max-width: 700px;
    margin: 0 auto 32px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-slate-600);
}

.team-cta {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Benefits Section */
.careers-benefits-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.careers-benefits-section .container {
    max-width: 1400px;
    padding: 0 24px;
}

.benefits-card-wrapper {
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    border-radius: 24px;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.benefits-card-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(55, 195, 132, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    text-align: center;
}

.benefits-heading em {
    font-style: italic;
    color: #37C384;
}

.benefits-subheading {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 48px 0;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(55, 195, 132, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 195, 132, 0.15);
    border: 1px solid rgba(55, 195, 132, 0.3);
    border-radius: 50%;
    color: #37C384;
}

.benefit-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.benefit-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Current Openings Section */
.careers-openings-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.openings-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #0A2468;
    margin: 0 0 12px 0;
    text-align: center;
}

.openings-heading em {
    font-style: italic;
    color: #F97316;
}

.openings-subheading {
    font-size: 1.1rem;
    color: #475569;
    margin: 0 0 40px 0;
    text-align: center;
}

.job-listings {
    max-width: 800px;
    margin: 0 auto;
}

.job-category {
    border-bottom: 1px solid #E2E8F0;
}

.job-category:first-child {
    border-top: 1px solid #E2E8F0;
}

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.job-header:hover {
    background-color: #0A2468;
    padding-left: 24px;
}

.job-header:hover .job-title {
    color: #FFFFFF;
}

.job-header:hover .job-location {
    color: rgba(255, 255, 255, 0.8);
}

.job-header:hover .job-arrow {
    color: #F97316;
    transform: rotate(90deg);
}

.job-header.active {
    background-color: #0A2468;
    padding-left: 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.job-header.active .job-title {
    color: #FFFFFF;
}

.job-header.active .job-location {
    color: rgba(255, 255, 255, 0.8);
}

.job-header.active .job-arrow {
    transform: rotate(90deg);
    color: #F97316;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-slate-900);
    transition: color 0.2s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-location {
    font-size: 0.9rem;
    color: #64748B;
    transition: color 0.2s ease;
}

.job-arrow {
    color: var(--color-slate-600);
    transition: all 0.3s ease;
}

/* Job Details Accordion */
.job-details {
    display: none;
    padding: 0 40px 32px 40px;
    animation: fadeIn 0.3s ease;
}

.job-details.open {
    display: block;
}

.job-description p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.job-description ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.job-description li {
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.5;
}

.job-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0F172A;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-apply {
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 36, 104, 0.2);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 36, 104, 0.3);
}

.job-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-jd {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #0A2468;
    color: #0A2468;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 1rem;
}

.btn-jd:hover {
    background: rgba(10, 36, 104, 0.05);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .job-details {
        padding: 0 16px 24px 16px;
    }

    .job-location {
        display: none;
    }
}

/* CTA Section */
.careers-cta-section {
    padding: 40px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.careers-cta-section .container {
    max-width: 1400px;
    padding: 0 24px;
}

.cta-card-wrapper {
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    border-radius: 24px;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

.cta-card-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(55, 195, 132, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.careers-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.careers-cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 32px 0;
}

.careers-cta-heading em {
    font-style: italic;
    color: #37C384;
}

@media (min-width: 768px) {
    .careers-cta-heading {
        font-size: 3.5rem;
    }
}

.careers-cta-btn {
    background: #FFFFFF;
    color: #0A2468;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.careers-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: #F8FAFC;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .careers-hero-wrapper {
        min-height: 500px;
    }

    .careers-headline {
        font-size: 2.5rem;
    }

    .benefits-card-wrapper {
        padding: 40px 24px;
    }

    .cta-card-wrapper {
        padding: 40px 24px;
    }

    .careers-cta-heading {
        font-size: 2rem;
    }
}

/* Application Modal Styles */
.application-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 104, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.application-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.application-popup {
    background: #FFFFFF;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.application-modal-overlay.active .application-popup {
    transform: translateY(0);
}

.application-content {
    padding: 40px;
}

.application-header {
    margin-bottom: 32px;
    text-align: center;
}

.application-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(55, 195, 132, 0.1);
    color: #37C384;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 16px;
}

.application-job-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #0A2468;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.application-subtitle {
    color: #64748B;
    font-size: 1rem;
    margin: 0;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E293B;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0F172A;
    background: #F8FAFC;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #37C384;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(55, 195, 132, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.file-upload-wrapper {
    position: relative;
    cursor: pointer;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-trigger {
    border: 2px dashed #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F8FAFC;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-wrapper:hover .file-upload-trigger {
    border-color: #37C384;
    background: #FFFFFF;
}

.file-upload-trigger svg {
    color: #64748B;
}

.file-upload-trigger span {
    font-size: 0.9rem;
    color: #64748B;
}

.application-submit-btn {
    margin-top: 12px;
    background: linear-gradient(135deg, #0A2468 0%, #133B9E 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.application-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 36, 104, 0.2);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #F1F5F9;
    color: #0F172A;
}

/* additional responsive styles */
@media (max-width: 767px) {
    .careers-hero-wrapper {
        min-height: 50vh;
    }

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

    .careers-mission-section,
    .careers-team-section,
    .careers-benefits-section,
    .careers-openings-section {
        padding: 60px 0;
    }

    .mission-heading,
    .team-heading,
    .benefits-heading,
    .openings-heading {
        font-size: 2rem;
    }

    .careers-cta-section {
        padding: 60px 0;
    }

    .careers-cta-heading {
        font-size: 2rem;
    }
}