/* Global Styles */
:root {
    --primary-blue: #004185;
    --primary-red: #C30019;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo .aa-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .thin {
    font-weight: 300;
    color: var(--dark-grey);
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    font-weight: 500;
    color: var(--dark-grey);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-blue);
}

.btn-nav {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #a00015;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Use the generated image here. Assuming it will be saved as american_airlines_remote_hero.png */
    background: url('american_airlines_remote_hero.png') no-repeat center center/cover;
    margin-top: 70px;
    /* Offset for fixed header */
}

/* Fallback if image fails or for overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 65, 133, 0.85), rgba(0, 65, 133, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
    margin-left: 0;
    /* Align left */
}

.badgex {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a00015;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-block {
    display: block;
    width: 100%;
}

.limited-offer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Trust Bar */
.trust-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    color: #555;
    font-size: 0.9rem;
}

.trust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.trust-item i {
    color: #f39c12;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Jobs Section */
.jobs-section {
    padding: 80px 0;
    background-color: var(--white);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    background: var(--white);
}

.job-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.job-card.featured {
    border: 2px solid var(--primary-blue);
    transform: scale(1.02);
}

.badge-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-header h3 {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.tag {
    font-size: 0.75rem;
    background: #eef2f6;
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.job-salary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.job-perks {
    margin-bottom: 25px;
}

.job-perks li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.job-perks i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quote-icon {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--primary-blue);
}

.user-info span {
    font-size: 0.8rem;
    color: #777;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Apply Section */
.apply-section {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.apply-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.apply-info {
    flex: 1;
    min-width: 300px;
}

.apply-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.steps {
    margin-top: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.step-num {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.step-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.apply-form-container {
    flex: 1;
    min-width: 350px;
    /* Slightly wider */
    background: var(--white);
    color: var(--dark-grey);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.apply-form-container h3 {
    margin-bottom: 25px;
    color: var(--primary-blue);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
}

.footer-brand h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #ddd;
    margin: 0 10px;
}

/* Notifications */
.notification-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
    border-left: 4px solid var(--primary-red);
}

.notification-popup.show {
    transform: translateY(0);
}

.notif-icon {
    font-size: 1.5rem;
    color: #2ecc71;
}

.notif-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-grey);
    margin-bottom: 2px;
}

.notif-text {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 2px;
}

.notif-time {
    font-size: 0.7rem;
    color: #999;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .trust-container {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav {
        display: none;
        /* Simplify for very small screens or use hamburger menu if needed. Keeping it simple as per instructions "make it easy" */
    }

    .header-container {
        justify-content: center;
        /* Center logo on mobile */
    }

    .job-card.featured {
        transform: none;
    }

    .apply-wrapper {
        flex-direction: column;
    }

    .notification-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}