/* Reuse variables from homepage */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #0077b3;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --control-bg: rgba(0, 51, 102, 0.9);
    --focus-color: #ff9900;
}

/* Reuse base styles from homepage */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    transition: top 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Header and Nav styles */
header {
    padding: 1rem;
    background: var(--secondary-color);
    position: relative;
    z-index: 100;
}

.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    width: 250px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    max-width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0 0.5rem;
    position: relative;
}

#search {
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    width: 280px;
    transition: all 0.3s ease;
    max-width: 100%;
}

#search::placeholder {
    color: rgba(255, 255, 255, 0.95);
}

#search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover, .search-button:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.search-button:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.search-button {
    background: #ffffff;
    color: #003366;
}

.search-button:hover, .search-button:focus {
    background: #f0f0f0;
    color: #0056b3;
}

nav {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 90;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    justify-content: center;
    transition: transform 0.3s ease;
}

nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a:focus {
    color: var(--primary-color);
}

nav a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Careers Hero Section */
.careers-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover, .cta-button:focus {
    background: #002244;
    transform: translateY(-2px);
    outline: none;
    border-color: white;
}

.cta-button:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.hero-illustration {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 300px;
}

.illustration-group {
    position: relative;
    height: 100%;
    width: 100%;
}

.person {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.person1 {
    top: 20%;
    left: 10%;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    animation-delay: 0s;
}

.person2 {
    top: 40%;
    left: 40%;
    background: linear-gradient(45deg, #a1c4fd, #c2e9fb);
    animation-delay: 1s;
}

.person3 {
    top: 10%;
    left: 70%;
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    animation-delay: 2s;
}

.pathway {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 600;
}

.section-heading::after {
    content: '';
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Jobs Section */
.jobs-section {
    padding: 5rem 0;
    background: var(--light-bg);
    border-radius: 10px;
    margin: 4rem 0;
}

.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.job-header h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.full-time {
    background: rgba(0, 150, 0, 0.1);
    color: #006600;
}

.tag.remote {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.tag.hybrid {
    background: rgba(255, 193, 7, 0.1);
    color: #b28704;
}

.job-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.detail i {
    color: var(--accent-color);
}

.job-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.job-actions {
    display: flex;
    gap: 1rem;
}

.job-details-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-details-btn:hover, .job-details-btn:focus {
    background: rgba(0, 118, 179, 0.1);
    outline: none;
}

.apply-btn {
    padding: 0.6rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.apply-btn:hover, .apply-btn:focus {
    background: #0088cc;
    outline: none;
    border-color: white;
}

.apply-btn:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Process Section */
.process-section {
    padding: 4rem 0;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
}

.testimonial-content {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 10px;
    padding: 4rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cta-content {
    flex: 1;
    min-width: 300px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.cta-subtext {
    margin-top: 1.5rem;
    opacity: 0.8;
}

.cta-subtext a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cta-illustration {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 200px;
}

.illustration-handshake {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

footer a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    padding-left: 15px;
}

footer a:hover::before {
    opacity: 1;
    left: 0;
}

footer a:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .careers-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .careers-hero {
        padding: 3rem 1.5rem;
    }
    
    .jobs-container {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .cta-section {
        padding: 2rem;
    }
}