/* ======================================= */
/* 1. Global Setup & CSS Variables         */
/* ======================================= */
:root {
    --color-primary: #009fe3;
    --color-primary-dark: #0061a8;
    --color-text-default: #333;
    --color-text-light: #444;
    --color-background-white: #ffffff;
    --color-background-grey: #f5f5f5;

    /* Perk Colors from Screenshots */
    --perk-teal: #00bfa5;
    --perk-pink: #ec407a;
    --perk-blue: #29b6f6;
    --perk-green: #66bb6a;
    --perk-orange: #ffa726;
    --perk-red: #ef5350;
    --perk-navy: #283593;
    --perk-magenta: #d81b60;
    --perk-purple: #5e35b1;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
p {
    margin: 0;
    padding: 0;
}


.career-hero {
    display: flex;
    justify-content: space-between;
    /* Puts space between text and image */
    align-items: center;
    /* Vertically centers the text and image */
    background: linear-gradient(to right, #0061a8, #009fe3);
    padding: 0px 50px;
    /* Increased vertical padding for more space */
    color: white;
    gap: 40px;
    /* Ensures a minimum space between text and image */
}

.career-hero-content {
    flex-basis: 60%;
    /* Assigns 60% of the space to the text content */
    /* flex-grow: 1; */
}

.career-hero h1 {
    font-size: 65px;
    font-weight: 700;
    margin-bottom: 30px;
    /* Reduced margin for better spacing */
    line-height: 1.4;
    /* Improved line height for multi-line titles */
    width: 170%;
}

.career-hero p {
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
}

/* It's better to have a container for the image */
.career-hero-image {
    flex-basis: 35%;
    /* Assigns 35% of the space to the image */
    text-align: center;
    /* Centers the image if it's smaller than the container */
}

.career-hero-image img {
    max-width: 95%;
    /* Makes the image responsive */
    height: auto;
    /* Maintains the image's aspect ratio */
    display: block;
    /* Removes extra space below the image */
}







.why-work {
    padding: 50px 3%;
    text-align: center;
}

.why-work h2 {
    font-size: 50px;
    color: #2a9df4;
    margin-bottom: 40px;
}

.why-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
}

.card {
    background: #fff;
    padding: 25px 20px 60px 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    min-height: 230px;
}

.card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.card p {
    font-size: 20px;
    line-height: 1.4;
    color: #333;
}

.card img {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 90px;
}

/* Card background colors */
.yellow {
    background: #fff2cc;
}

.mint {
    background: #d1f2eb;
}

.lightblue {
    background: #cfeafd;
}

.green {
    background: #d4edda;
}

.pink {
    background: #fce4ec;
}

.peach {
    background: #ffe5cc;
}

/* ======================== Benefits Section ======================== */
.perks-section {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
}

.perks-inner {
    /* width: 100%; */
    /* max-width: 1440px; */
    padding: 0 40px;
    /* margin: 0 auto; */
}

.section-title {
    font-size: 60px;
    font-weight: 700;
    color: #3fa9f5;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 28px;
    text-align: center;
    color: #444;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.perk-box {
    width: 100%;
    border: 2px solid #0098da;
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    position: relative;
    gap: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* --- NEW: Alternating Background Colors --- */
.perk-box:nth-child(odd) {
    background-color: var(--color-background-grey);
}

.perk-box:nth-child(even) {
    background-color: var(--color-background-white);
}

/* --- END NEW --- */


.perk-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    gap: 30px;
}

.perk-content.reverse {
    flex-direction: row-reverse;
}

.perk-text {
    flex: 1;
    min-width: 0;
    /* allows it to shrink nicely */
}

.perk-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perk-img img {
    max-width: 30%;
    height: 20%;
    display: block;
}

/* --- NEW COLOR THEMING SYSTEM --- */
.perk-box.theme-teal {
    --perk-color: var(--perk-teal);
}

.perk-box.theme-pink {
    --perk-color: var(--perk-pink);
}

.perk-box.theme-blue {
    --perk-color: var(--perk-blue);
}

.perk-box.theme-green {
    --perk-color: var(--perk-green);
}

.perk-box.theme-orange {
    --perk-color: var(--perk-orange);
}

.perk-box.theme-red {
    --perk-color: var(--perk-red);
}

.perk-box.theme-navy {
    --perk-color: var(--perk-navy);
}

.perk-box.theme-magenta {
    --perk-color: var(--perk-magenta);
}

.perk-box.theme-purple {
    --perk-color: var(--perk-purple);
}

/* The colored side-bar, created with a pseudo-element */
.perk-box::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 8px;
    background-color: var(--perk-color, #ccc);
    /* Use theme color */
}

/* Positioning the bar left or right */
.perk-box.left-line::before {
    left: 0;
}

.perk-box.right-line::before {
    right: 0;
}

/* The title uses the same theme color */
.perk-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--perk-color, var(--color-text-default));
}

/* END NEW SYSTEM */

.perk-text p {
    font-size: 25px;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* ==================== Candidate Section ==================== */
.ideal-candidates {
    padding: 60px 3%;
    background-color: #fff;
}

.candidates-title {
    font-size: 50px;
    font-weight: 800;
    color: #3fa9f5;
    text-align: center;
    margin-bottom: 40px;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.candidate-card {
    background-color: #f5f5f5;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    text-align: center;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center all vertically as group */
    position: relative;
    overflow: hidden;
    min-height: 220px;
    /* enough to hold image and bottom text */
}

.candidate-card img {
    width: 120px;
    height: auto;
    margin-bottom: auto;
    /* Push text down */
}

.candidate-card p {
    font-size: 22px;
    color: #333;
    margin-top: 20px;
    /* Push to bottom */
    margin-bottom: 0px;
    /* small gap above bottom line */
}


.card-line {
    height: 10px;
    width: 100%;
    background-color: #0061a8;
    position: absolute;
    bottom: 0;
    left: 0;
}

.card-line.blue {
    background-color: #2196f3;
}

.card-line.yellow {
    background-color: #fbc02d;
}

.card-line.red {
    background-color: #e53935;
}

.card-line.green {
    background-color: #4caf50;
}

.cta {
    margin-top: 30px;
    margin-left: 3%;
    margin-right: 10px;
    background-color: #009fe3;
    color: #fff;
    padding: 40px 3%;
    text-align: center;
    width: 88%;
    border-radius: 15px;
}


.cta h3 {
    font-size: 60px;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 30px;
    background: #fff;
    color: #009fe3;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 26px;
}

/* === UPDATED BUTTON STYLES === */
.btn-current-openings {
    display: inline-flex;
    /* Use inline-flex to align text and icon */
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Space between text and icon */
    background-color: #ffffff;
    color: #009fe3;
    border: 4px solid #009fe3;
    padding: 8px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-current-openings img {
    height: 30px;
    /* Makes the icon size relative to the font size */
    width: 30px;
}

.btn-current-openings:hover {
    background-color: #e0e6ed;
    color: #008acf;
    /* border-color: #035b87f7;   */
}

/* === END UPDATED STYLES === */


/* ======================================================= */
/* ====== RESPONSIVE CODE                                ====== */
/* ======================================================= */

/* ==================== Responsive: Tablet (769px to 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .career-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    /* === Rules for reordering hero content === */
    .career-hero-content {
        display: contents;
    }

    .career-hero {
        gap: 0px;
    }

    .career-hero h1 {
        order: 1;
        font-size: 60px;
        width: 100%;
        margin-bottom: 0px;
    }

    .career-hero-image {
        order: 2;
        margin-top: 0px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .career-hero p {
        order: 3;
        font-size: 28px;
        margin-top: 25px;
    }

    .career-hero-image img {
        max-width: 50%;
    }

    .why-work-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 48px;
    }

    .section-subtitle {
        font-size: 30px;
    }

    .perks-inner {
        padding: 0 10px;
    }

    .perk-content,
    .perk-content.reverse {
        flex-direction: column;
        text-align: center;
    }

    /* === Rules for reordering perks content === */
    .perk-text {
        display: contents;
    }

    .perk-title {
        order: 1;
        font-size: 30px;
    }

    .perk-img {
        order: 2;
    }

    .perk-text p {
        order: 3;
        font-size: 30px;
        margin-top: 5px;
        /* Add space between image and text */
    }

    .perk-img img {
        max-width: 150px;
    }

    .candidate-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cta h3 {
        font-size: 42px;
    }

    .btn,
    .btn-current-openings {
        font-size: 20px;
    }

    .btn-current-openings img {
        height: 28px;
        width: 28px;
    }
}

@media (max-width: 768px) {
    .career-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        row-gap: 5px;
    }

    /* === Rules for reordering hero content === */
    .career-hero-content {
        display: contents;
    }

    .career-hero h1 {
        order: 1;
        font-size: 36px;
        width: 100%;
        margin-bottom: 2px;
    }

    .career-hero-image {
        order: 2;
        margin-top: 0px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .career-hero p {
        order: 3;
        font-size: 18px;
        margin-top: 2px;
    }

    .career-hero-image img {
        width: 300px;
    }

    .why-work {
        padding: 40px 20px;
    }

    .why-work h2 {
        font-size: 35px;
    }

    .why-work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px 15px 60px;
    }

    .card h3 {
        font-size: 22px;
    }

    .card p {
        font-size: 16px;
    }

    .perk-box {
        flex-direction: column;
        padding: 20px 15px;
    }

    .perk-content,
    .perk-content.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .perks-inner {
        padding: 0 10px;
    }

    /* === Rules for reordering perks content === */
    .perk-text {
        display: contents;
    }

    .perk-title {
        order: 1;
        font-size: 21px;
    }

    .perk-img {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .perk-text p {
        order: 3;
        font-size: 18px;
        margin-top: 5px;
        /* Add space between image and text */
    }

    .perk-img img {
        max-width: 130px;
    }

    .section-title {
        font-size: 35px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .ideal-candidates {
        padding: 30px 3%;
    }

    .candidate-grid {
        grid-template-columns: 1fr;
        /* This is the changed line */
        gap: 30px;
    }

    .candidates-title {
        font-size: 35px;
    }

    .candidate-card {
        padding: 30px 15px 50px;
    }

    .candidate-card img {
        width: 120px;
    }

    .candidate-card p {
        font-size: 22px;
    }

    .cta {
        width: 90%;
        padding: 15px 8px;
        margin: 0 auto;
    }

    .cta h3 {
        font-size: 30px;
    }

    .btn,
    .btn-current-openings {
        font-size: 18px;
        padding: 8px 8px;
    }

    .btn-current-openings img {
        height: 25px;
        width: 25px;
    }
}