/* Import color variables */
:root {
    --primary-color: #008B8B;  /* Teal color from header */
    --secondary-color: #4B0082;  /* Deep purple */
    --accent-color: #FFA500;  /* Orange */
    --text-color: #333333;
    --light-gray: #F5F7FA;
    --white: #ffffff;
    
    /* Quick link colors */
    --purple-btn: #800080;  /* Assessment Purple */
    --green-btn: #4CAF50;   /* Service Areas Green */
    --yellow-btn: #FFD700;  /* Referrals Yellow */
    --orange-btn: #FF6347;  /* Caregivers Orange */

    /* Service card colors */
    --service-purple: #9B59B6;  /* Purple for Skilled Nursing */
    --service-green: #2ECC71;   /* Green for Speech Therapy */
    --service-yellow: #F1C40F;  /* Yellow for Occupational */
    --service-red: #E74C3C;     /* Red for Physical Therapy */
}

/* Careers Hero Section */
.careers-hero {
    background: linear-gradient(135deg, rgba(0,139,139,0.95), rgba(75,0,130,0.95)),
                url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 150px;
    position: relative;
    text-align: center;
}

.careers-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.careers-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.careers-hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.benefits h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.benefits h3 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-item:hover i {
    animation: floatIcon 2s ease-in-out infinite;
}

.benefit-item h4 {
    color: var(--text-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Current Openings Section */
.openings {
    padding: 80px 0;
    background-color: var(--white);
}

.openings h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.openings h3 {
    color: var(--secondary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.opening-item {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.opening-item:hover {
    transform: translateY(-5px);
}

.opening-item h4 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.opening-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.opening-item ul li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.opening-item ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.apply-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apply-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Application Process Section */
.application-process {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.application-process h2 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.application-process h3 {
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.application-process p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
    line-height: 1.6;
}

.application-process a {
    color: var(--primary-color);
    text-decoration: none;
}

.application-process a:hover {
    text-decoration: underline;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step h4 {
    color: var(--text-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.step p {
    color: #666;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Staggered animations */
.benefit-item:nth-child(1) { animation-delay: 0.2s; }
.benefit-item:nth-child(2) { animation-delay: 0.4s; }
.benefit-item:nth-child(3) { animation-delay: 0.6s; }
.benefit-item:nth-child(4) { animation-delay: 0.8s; }

.opening-item:nth-child(1) { animation-delay: 0.2s; }
.opening-item:nth-child(2) { animation-delay: 0.4s; }
.opening-item:nth-child(3) { animation-delay: 0.6s; }
.opening-item:nth-child(4) { animation-delay: 0.8s; }

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .careers-hero h1 {
        font-size: 2.5em;
    }

    .careers-hero p {
        font-size: 1.2em;
    }

    .benefits-grid,
    .openings-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .benefit-item,
    .opening-item,
    .step {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .careers-hero h1 {
        font-size: 2em;
    }

    .careers-hero p {
        font-size: 1em;
    }

    .benefits h3,
    .openings h3,
    .application-process h3 {
        font-size: 2em;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .benefit-item,
    .opening-item,
    .step {
        animation: none !important;
        transform: none !important;
    }
    
    .benefit-item:hover,
    .opening-item:hover,
    .step:hover {
        transform: none !important;
    }
    
    .benefit-item i:hover {
        animation: none !important;
    }
} 

/* Color variations for benefit items */
.benefit-item:nth-child(1) {
    border-top: 4px solid var(--purple-btn);
}
.benefit-item:nth-child(1) i {
    color: var(--purple-btn);
}

.benefit-item:nth-child(2) {
    border-top: 4px solid var(--green-btn);
}
.benefit-item:nth-child(2) i {
    color: var(--green-btn);
}

.benefit-item:nth-child(3) {
    border-top: 4px solid var(--yellow-btn);
}
.benefit-item:nth-child(3) i {
    color: var(--yellow-btn);
}

.benefit-item:nth-child(4) {
    border-top: 4px solid var(--orange-btn);
}
.benefit-item:nth-child(4) i {
    color: var(--orange-btn);
}

/* Color variations for opening items */
.opening-item:nth-child(1) {
    border-left: 4px solid var(--purple-btn);
}
.opening-item:nth-child(1) h4 {
    color: var(--purple-btn);
}
.opening-item:nth-child(1) .apply-button {
    background: var(--purple-btn);
}
.opening-item:nth-child(1) .apply-button:hover {
    background: var(--secondary-color);
}

.opening-item:nth-child(2) {
    border-left: 4px solid var(--green-btn);
}
.opening-item:nth-child(2) h4 {
    color: var(--green-btn);
}
.opening-item:nth-child(2) .apply-button {
    background: var(--green-btn);
}
.opening-item:nth-child(2) .apply-button:hover {
    background: var(--secondary-color);
}

.opening-item:nth-child(3) {
    border-left: 4px solid var(--yellow-btn);
}
.opening-item:nth-child(3) h4 {
    color: var(--yellow-btn);
}
.opening-item:nth-child(3) .apply-button {
    background: var(--yellow-btn);
}
.opening-item:nth-child(3) .apply-button:hover {
    background: var(--secondary-color);
}

.opening-item:nth-child(4) {
    border-left: 4px solid var(--orange-btn);
}
.opening-item:nth-child(4) h4 {
    color: var(--orange-btn);
}
.opening-item:nth-child(4) .apply-button {
    background: var(--orange-btn);
}
.opening-item:nth-child(4) .apply-button:hover {
    background: var(--secondary-color);
}

/* Color variations for process steps */
.step:nth-child(1) .step-number {
    background: var(--purple-btn);
}

.step:nth-child(2) .step-number {
    background: var(--green-btn);
}

.step:nth-child(3) .step-number {
    background: var(--yellow-btn);
}

.step:nth-child(4) .step-number {
    background: var(--orange-btn);
}

/* Update bullet points colors */
.opening-item:nth-child(1) ul li:before {
    color: var(--purple-btn);
}

.opening-item:nth-child(2) ul li:before {
    color: var(--green-btn);
}

.opening-item:nth-child(3) ul li:before {
    color: var(--yellow-btn);
}

.opening-item:nth-child(4) ul li:before {
    color: var(--orange-btn);
} 