﻿/* Enhanced Careers Page Styles - Seamless Integration */

/* Intro Section */
.careers-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

    .careers-intro::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(0, 183, 155, 0.05) 0%, transparent 70%);
        border-radius: 50%;
    }

.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 183, 155, 0.1), rgba(0, 183, 155, 0.05));
    color: #00B79B;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 183, 155, 0.2);
    animation: fadeInUp 0.6s ease;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1E293B;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.section-subtitle {
    color: #64748B;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.section-description {
    color: #64748B;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(0, 183, 155, 0.08);
    position: relative;
    overflow: hidden;
}

    .benefit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #00B79B, #008B76);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .benefit-card:hover::before {
        transform: scaleX(1);
    }

    .benefit-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 183, 155, 0.15);
        border-color: rgba(0, 183, 155, 0.2);
    }

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 183, 155, 0.1), rgba(0, 183, 155, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #00B79B;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, #00B79B, #008B76);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(0, 183, 155, 0.2);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: #1E293B;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.benefit-card p {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Job Openings Section */
.job-openings {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Job Cards */
.job-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }

.job-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.job-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.job-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: #1E293B;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

    .tag svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .tag:hover {
        transform: translateY(-2px);
    }

.tag-type {
    background: rgba(0, 183, 155, 0.1);
    color: #00B79B;
    border: 1px solid rgba(0, 183, 155, 0.2);
}

.tag-location {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-specialty {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.job-content {
    padding: 2.5rem;
}

.job-section {
    margin-bottom: 2.5rem;
}

    .job-section:last-child {
        margin-bottom: 0;
    }

    .job-section h4 {
        font-size: 1.25rem;
        color: #1E293B;
        margin-bottom: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .job-section h4 svg {
            width: 20px;
            height: 20px;
            color: #00B79B;
        }

    .job-section p {
        color: #475569;
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 0;
    }

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .requirements-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 0.875rem;
        color: #475569;
        font-size: 1rem;
        line-height: 1.6;
        transition: all 0.2s ease;
    }

        .requirements-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #00B79B;
            font-weight: bold;
            font-size: 1.25rem;
            top: -2px;
        }

        .requirements-list li:hover {
            color: #1E293B;
            padding-left: 2.25rem;
        }

.job-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-apply, .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-apply {
    background: linear-gradient(135deg, #00B79B, #008B76);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 183, 155, 0.2);
}

    .btn-apply:hover {
        background: linear-gradient(135deg, #009B83, #007A68);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0, 183, 155, 0.3);
        color: #fff;
    }

.btn-share {
    background: rgba(0, 183, 155, 0.1);
    color: #00B79B;
    border: 2px solid rgba(0, 183, 155, 0.2);
}

    .btn-share:hover {
        background: #00B79B;
        color: #fff;
        transform: translateY(-2px);
    }

/* How to Apply Section */
.how-to-apply {
    padding: 100px 0;
    background: linear-gradient(135deg, #00B79B, #008B76);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .how-to-apply::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

.apply-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.apply-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.apply-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.apply-content > p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.apply-content a {
    color: #F6F2EC;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

    .apply-content a:hover {
        opacity: 0.8;
    }

.apply-requirements {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

    .apply-requirements h3 {
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 2rem;
        font-weight: 600;
    }

.apply-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

    .checklist-item svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        color: #fff;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        padding: 4px;
        margin-top: 2px;
    }

.apply-cta {
    margin-top: 2rem;
}

.btn-primary-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #F6F2EC8A;
    color: #00B79B;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

    .btn-primary-apply:hover {
        background: #026F5F;
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.25);
        color: #F6F2EC;
        border-color: rgba(246, 242, 236, 0.2);
    }

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

@media screen and (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .job-header {
        padding: 2rem;
    }

    .job-content {
        padding: 2rem;
    }

    .job-status-badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }
}

@media screen and (max-width: 768px) {
    .careers-intro,
    .job-openings {
        padding: 60px 0;
    }

    .how-to-apply {
        padding: 80px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1.5rem;
        padding-right: 80px; /* Space for status badge */
    }

    .job-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .tag {
        font-size: 0.8rem;
        width: fit-content;
    }

    .apply-content h2 {
        font-size: 2rem;
    }

    .apply-content > p {
        font-size: 1.1rem;
    }

    .job-actions {
        flex-direction: column;
    }

    .btn-apply,
    .btn-share {
        width: 100%;
        justify-content: center;
    }

    .apply-icon {
        width: 60px;
        height: 60px;
    }

        .apply-icon svg {
            width: 32px;
            height: 32px;
        }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .intro-content {
        margin-bottom: 40px;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
    }

    .job-header {
        padding: 1.5rem;
    }

    .job-content {
        padding: 1.5rem;
    }

    .job-title {
        font-size: 1.25rem;
    }

    .job-section h4 {
        font-size: 1.1rem;
    }

        .job-section h4 svg {
            width: 18px;
            height: 18px;
        }

    .job-section p,
    .requirements-list li {
        font-size: 0.95rem;
    }

    .apply-requirements {
        padding: 1.75rem;
    }

        .apply-requirements h3 {
            font-size: 1.25rem;
        }

    .checklist-item {
        font-size: 1rem;
    }

    .btn-primary-apply {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .job-status-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        border-radius: 0 20px 20px 0px;
    }

}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card,
.job-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

    .benefit-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .benefit-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .benefit-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .benefit-card:nth-child(4) {
        animation-delay: 0.25s;
    }

    .benefit-card:nth-child(5) {
        animation-delay: 0.3s;
    }

    .benefit-card:nth-child(6) {
        animation-delay: 0.35s;
    }

    .benefit-card:nth-child(7) {
        animation-delay: 0.4s;
    }

    .benefit-card:nth-child(8) {
        animation-delay: 0.45s;
    }

    .job-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .job-card:nth-child(2) {
        animation-delay: 0.3s;
    }

/* Print Styles */
@media print {
    .gen-hero-section,
    .apply-cta,
    .btn-share,
    .job-status-badge {
        display: none !important;
    }

    .job-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 2rem;
    }

    .benefits-grid {
        display: block;
    }

    .benefit-card {
        display: inline-block;
        width: 48%;
        margin: 1%;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .job-actions {
        border-top: none;
    }

    .how-to-apply {
        background: none;
        color: #1E293B;
    }

    .apply-content a {
        color: #00B79B;
    }

    .apply-requirements {
        background: #f8fafc;
        border: 1px solid #ddd;
    }

        .apply-requirements h3 {
            color: #1E293B;
        }

    .checklist-item {
        color: #475569;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.btn-apply:focus,
.btn-share:focus,
.btn-primary-apply:focus {
    outline: 3px solid #00B79B;
    outline-offset: 3px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .benefit-card,
    .job-card {
        border: 2px solid currentColor;
    }

    .tag {
        border-width: 2px;
    }
}
