/* --- Global Styles with New Color Palette (V3) --- */
body {
    /* CHANGED: Switched to the light mint background */
    background-color: #DDF4E7; 
    font-family: sans-serif;
    /* CHANGED: Switched to dark text for readability on the light background */
    color: #124170;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

/* MODIFIED: Button styles are reversed for the new light theme */
.primary {
    /* A deep blue button now stands out as primary */
    background-color: #124170; 
    color: #FFFFFF; /* Light mint text for contrast */
    font-weight: bold;
    cursor: pointer;
}

.secondary {
    /* An outline button works well as a secondary action */
    background-color: transparent;
    color: #124170; 
    border: 1px solid #124170; 
}

/* --- Header --- */
header {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* CHANGED: Header background is now light mint */
    background-color: #DDF4E7;
    transition: top 0.4s ease-in-out;
}

header.is-hidden {
    top: -150px;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1350px;
    /* CHANGED: Border color switched to a subtle dark version */
    border-bottom: 1px solid rgba(18, 65, 112, 0.2); 
    padding-bottom: 20px;
}

nav .logo {
    width: 110px;
    object-fit: contain;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: auto;
    margin-top: 5px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav .buttons {
    display: flex;
    gap: 10px;
}

/* --- Main Content --- */
main {
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    padding-top: 100px;
}

section {
    padding: 60px 0;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    /* CHANGED: Border and background updated for the light theme */
    border: 1px solid rgba(18, 65, 112, 0.3);
    background-color: rgba(38, 102, 127, 0.1);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 4rem);
    line-height: 1.1;
    max-width: 900px;
    margin: 0 0 24px 0;
}

.hero p {
    font-size: 1.2rem;
    /* CHANGED: Using a slightly softer dark color for the paragraph text */
    color: #26667F;
    max-width: 600px;
    margin: 0 0 32px 0;
}

.hero .primary {
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
}

.hero-images {
    display: flex;
    /* flex-wrap has been removed to force everything onto one line */
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 100px;
    max-width: 1350px;
}

.hero-images img {
    /* This rule is now forced to do all the work */
    /* It will shrink as much as needed to fit */
    flex-shrink: 1;

    width: 100%; /* Helps with initial sizing */

    /* IMPORTANT: Add a minimum width to prevent them from disappearing */
    min-width: 50px; 
    height: 50px;
    
    object-fit: contain;
}

.hero-images img[alt="Diana Health"] {
    filter: drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.5));
}

.heading-serif-italic {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Promo Section --- */
.promo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    /* This section remains dark blue for contrast */
    background-color: #124170;
    margin-top: 60px;
}

.promo-pill {
    font-size: 0.9rem;
    margin-bottom: 16px;
    /* CHANGED: Text color is now light for the dark background */
    color: #DDF4E7;
}

.promo-pill .blue-dot {
    color: #67C090; /* Vibrant Green accent */
    font-size: 1.2rem;
    margin-right: 4px;
}

.promo-section h2 {
    font-size: 3.5rem;
    margin: 0 0 24px 0;
    /* CHANGED: Text color is now light for the dark background */
    color: #FFFFFF;
}

.promo-section p {
    font-size: 1.1rem;
    /* CHANGED: Text color is now light for the dark background */
    color: rgba(221, 244, 231, 0.8);
    margin-bottom: 32px;
}

/* MODIFIED: This button is on a dark background, so it needs the "light" primary style */
.promo-section .primary {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: #DDF4E7;
    color: #124170;
}

/* --- Benefits Section (Largely Unchanged) --- */
/* This section's styling is self-contained with image overlays, so it still works well. */
.benefits {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 600px;
    max-width: 1350px;
    padding: 0;
    justify-self: center;
}

.benefit-card {
    position: relative;
    flex: 1;
    padding: 10px 30px;
    border-radius: 20px;
    color: white;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.benefit-card.is-active {
    flex: 2;
}

.benefit-card:nth-child(1) {
    background-image: url('https://img1.wsimg.com/isteam/ip/5ca26dca-1a3f-4e7c-9947-f385a235bc51/adventhealth-final-print_logo_removed-min.jpg.webp/:/cr=t:0%25,l:0%25,w:100%25,h:100%25');
}
.benefit-card:nth-child(2) {
    background-image: url('../assets/images/recruiters_friendly4.jpg');
}

.benefit-card h2 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: #124170 1px 1px 0px;
}

.benefit-card h3 {
    text-shadow: #124170 1px 1px 0px;
    -webkit-text-stroke: 1px black; 
}

.benefit-card p {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-size: 1.1rem;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    color: white;
    text-shadow: #124170 1px 1px 0px;
}

.benefit-card.is-active p {
    opacity: 1;
}

.arrow-icon {
    position: absolute;
    bottom: 30px;
    left: 30px;
    border: 1px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, color 0.3s ease;
}

.benefit-card.is-active .arrow-icon {
    left: calc(100% - 80px);
    background-color: white;
    color: black;
}

/* --- Recruiters Section --- */
.recruiters-section {
    /* CHANGED: Background updated to the requested deep blue */
    background: #124170;
    color: #FFFFFF; /* White text for contrast */
    padding: 120px 0;
    overflow: hidden;
}

.recruiter-heading {
    text-align: center;
    margin-bottom: 60px;
    justify-items: center;
}

.recruiter-heading .promo-pill {
    /* MODIFIED: Using a lighter text color to be visible */
    color: rgba(221, 244, 231, 0.8);
}

.recruiter-heading h2 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.recruiter-heading p {
    /* MODIFIED: Using a lighter text color to be visible */
    color: rgba(221, 244, 231, 0.8);
    margin-bottom: 32px;
}
/* This secondary button is on a dark background, so it needs a light border/text */
.recruiters-section .secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255);
    border-radius: 20px;
}

.recruiters-section .secondary:hover {
    background-color: #FFFFFF;
    color: #124170;
}

/* --- Carousel (Largely Unchanged) --- */
.carousel-container {
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-item {
    flex: 0 0 500px;
    height: 550px;
    margin: 0 5px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    transform: scale(0.70);
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item p {
    color: #FFFFFF;
}

.carousel-item.is-active {
    transform: scale(1);
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.is-active .item-overlay {
    opacity: 1;
}

.item-overlay h3 { margin: 0 0 8px 0; }
.item-overlay p { margin: 0; line-height: 1.4; }

.progress-border {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
}
.progress-border rect {
    fill: transparent; stroke: #FFFFFF; stroke-width: 4px;
    stroke-dasharray: 2084; stroke-dashoffset: 2084;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-item.is-active .progress-border rect {
    stroke-dashoffset: 0;
}

/* --- Recruiter Features Grid (Largely Unchanged) --- */
.recruiter-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1350px;
    margin: 120px auto 0;
    padding: 0 20px;
}

.grid-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.grid-card h4 {
    font-size: 1.5rem; color: #FFFFFF; margin: 0 0 8px 0;
}

.grid-card p {
    font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; margin: 0;
}

.grid-card img {
    width: 100%; border-radius: 8px; margin-top: 16px; object-fit: cover;
}
.grid-column-stack {
    display: flex; flex-direction: column; gap: 15px;
}
.card-image-bottom { margin-top: auto; }
.grid-card-full { flex-direction: column; }
.card-text-content-full { width: 100%; }
.card-image-wrapper-full { width: 100%; margin-top: 16px; }

@media (min-width: 768px) {
    .recruiter-grid-layout { grid-template-columns: repeat(2, 1fr); }
    .grid-card-full {
        grid-column: span 2; flex-direction: row; align-items: center;
        justify-content: space-between; padding: 24px;
    }
    .card-text-content-full { 
        max-width: 50%; 
        height: 100%; 
        display: flex;
        flex-direction: column;
        justify-content: end !important;
    }
    .card-image-wrapper-full { max-width: 49%; margin-top: 0; }
    .card-image-wrapper-full img { max-height: 500px; object-fit: cover; }
}

.card-text-content img {
    height: 100%;
}

.grid-card-short img{
    height: 200px;
}

.grid-card-full img{
    height: 400px;
}

.card-text-content {
    height: 80%;
}

/* --- Customer Stories --- */
.customer-stories {
    max-width: 1000px;
    margin: 120px auto;
    padding: 0 20px;
    /* CHANGED: Now uses the main light background */
    background-color: #DDF4E7;
}

.stories-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px;
}
.stories-header h2 { font-size: 2.5rem; margin: 0; }
.stories-header .secondary {
    /* MODIFIED: This secondary button now uses the dark outline style */
    border-color: #124170;
    border-radius: 20px; 
    background-color: transparent; 
    font-weight: bold;
    color: #124170;
}

.stories-accordion { display: flex; flex-direction: column; gap: 16px; }

/* The story items themselves remain dark for contrast, using colors from the palette */
.story-item {
    background-color: #124170;
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.story-header {
    display: flex; align-items: center; padding: 24px; cursor: pointer; gap: 20px;
}
.story-title {
    display: flex; align-items: center; gap: 12px; font-weight: bold; flex: 1;
    /* MODIFIED: Ensure text is light */
    color: #FFFFFF;
}
.story-title img { width: 24px; height: 24px; filter: invert(1); }
.story-summary { flex: 2; color: rgba(255, 255, 255, 0.8); text-align: left; margin: 0; }
.story-toggle { font-size: 2rem; font-weight: 300; color: #fff; transition: transform 0.3s ease; }

.story-content {
    padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out;
}
.story-quote { display: flex; align-items: flex-end; gap: 40px; padding-bottom: 32px; }
.story-portrait {
    width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
    opacity: 0; transform: scale(0.8);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.story-item.is-active .story-portrait { opacity: 1; transform: scale(1); }
.quote-wrapper { flex-grow: 1; }
blockquote { font-family: "Georgia", "Times New Roman", serif; font-size: 1.75rem; line-height: 1.4; margin: 0 0 24px 0; color: #FFFFFF; }
cite { font-style: normal; font-weight: bold; color: rgba(255, 255, 255, 0.8); }

.story-quote img {
    justify-self: self-start;
    align-self: self-start;
}
.story-item.is-active {
    /* MODIFIED: Uses the muted teal for the active state, which is in the palette */
    background-color: #26667F;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
}
.story-item.is-active .story-content { max-height: 500px; }
.story-item.is-active .story-summary { display: none; }
.story-item.is-active .story-toggle { transform: rotate(45deg); }

.story-progress-bar {
    position: relative; height: 4px; width: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px; margin-bottom: 8px;
}
.progress-filler {
    position: absolute; top: 0; left: 0; height: 100%; width: 100%;
    background-color: #fff; transform: scaleX(0); transform-origin: left;
}
.story-item.is-active .progress-filler { animation: fillProgress 7s linear forwards; }
@keyframes fillProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- For Companies Sticky Scroll --- */
.for-companies { position: relative; height: 300vh; justify-content: center; }
.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    /* --- FIXED --- */
    max-width: 1350px; /* It can't get bigger than this */
    width: 100%;       /* But it can shrink */
    padding: 0 2rem;   /* Add some side padding */
    box-sizing: border-box; /* Ensures padding is included in the width */
    /* --- END FIX --- */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    justify-self: center;
}
.left-pane, .right-pane {
    position: relative; height: 100%; display: flex;
    align-items: center; justify-content: center;
}
.text-card { position: absolute; opacity: 0; transition: opacity 0.6s ease-in-out; width: 100%; }
.image-card {
    position: absolute; width: 90%; max-width: 500px; height: 400px; border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(18, 65, 112, 0.25);
    overflow: hidden; background-color: #124170;
    opacity: 0; transform: scale(0.95);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.text-card.is-active, .image-card.is-active { opacity: 1; transform: scale(1); }
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.progress-bars { display: flex; gap: 8px; height: 4px; width: 150px; margin: 1.5rem 0; }
/* MODIFIED: Progress bar colors updated for the light theme */
.progress-bar { flex-grow: 1; background-color: rgba(18, 65, 112, 0.2); border-radius: 2px; position: relative; overflow: hidden; }
.progress-bar .filler {
    position: absolute; top: 0; left: 0; height: 100%; width: 100%;
    background-color: #124170; transform-origin: left; transform: scaleX(0);
}
h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
/* MODIFIED: Text color updated */
p { font-size: 1.1rem; color: #26667F; max-width: 450px; }
.stat { font-size: 5rem; font-weight: 600; margin-top: 2rem; }
.stat-label { font-size: 1.1rem; color: #26667F; }

/* --- CTA Section (Largely Unchanged) --- */
/* This section already uses a gradient of the new palette colors, which looks great! */
.cta {
    max-width: 1250px; margin: 120px auto; padding: 100px 50px 250px 50px;
    border-radius: 24px; text-align: center; position: relative; overflow: hidden;
    background-image:
        linear-gradient(to bottom, #DDF4E7 30%, rgba(255, 255, 255, 0)),
        url('../assets/images/beach.webp');
    background-size: cover; background-position: center;
}
.cta h2 {
    font-family: "Georgia", "Times New Roman", serif; font-size: 3rem; font-weight: 400; margin: 0 0 16px 0;
    /* MODIFIED: Ensure text is white */
    color: #124170;
}
.cta p {
    max-width: 450px; margin: 0 auto 32px; font-size: 1.1rem; line-height: 1.6; color: #124170;
}
/* MODIFIED: This button is on a dark background, so it needs the "light" primary style */
.cta .primary {
    padding: 16px 32px; border-radius: 30px; font-size: 1rem; font-weight: bold;
    background-color: #124170;
    color: #DDF4E7;
}


/* --- Footer (Largely Unchanged) --- */
/* The dark footer provides a nice, solid end to the page. */
footer {
    /* CHANGED: Background updated to light mint as requested */
    background-color: #DDF4E7; 
    padding: 80px 50px 40px; 
    margin-top: 60px;
    /* CHANGED: Text color switched to dark for readability */
    color: #26667F; 
    font-size: 0.9rem;
}

.footer-content { max-width: 1350px; margin: 0 auto; }
.footer-links {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(18, 65, 112, 0.2);
}
.footer-logo {
    display: flex; align-items: start; gap: 8px; font-weight: bold; color: #124170;;
}
.footer-logo img { width: 100px; height: 100px; object-fit: contain; margin-top: -20px;}
.footer-links h4 { color: #124170; font-weight: bold; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }

.legal { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; }
.legal ul { display: flex; gap: 24px; }

/* --- Mobile Styles --- */
/* No changes needed here, the existing logic for reordering cards still works perfectly. */
@media screen and (max-width: 992px) {
    .promo-section {
        margin-bottom: 30px;
    }

    .for-companies {
        height: auto;
        padding: 60px 30px;
    }

    .sticky-container {
        position: static;
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        max-width: 100%;
        gap: 0;
    }

    .left-pane, .right-pane {
        display: contents;
    }

    .image-card[data-content="1"] { order: 1; }
    .text-card[data-content="1"]   { order: 2; }
    .image-card[data-content="2"] { order: 3; }
    .text-card[data-content="2"]   { order: 4; }
    .image-card[data-content="3"] { order: 5; }
    .text-card[data-content="3"]   { order: 6; }
    .image-card[data-content="4"] { order: 7; }
    .text-card[data-content="4"]   { order: 8; }

    .text-card, .image-card {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        width: 100%;
        max-width: 500px;
        margin-left: 0;
        margin-right: auto;
    }

    .text-card {
        text-align: left;
        margin-bottom: 60px;
    }
    
    .image-card {
        margin-bottom: 24px;
    }
    
    .text-card[data-content="4"] {
        margin-bottom: 0;
    }

    .progress-bars {
        display: none;
    }

    .benefits {
        flex-direction: column; /* Stack cards vertically */
        justify-content: space-between;
        align-content: space-between;
        height: 800px;
        gap: 20px;
        padding: 0px;
        box-sizing: border-box; 
        width: 100%;
        max-width: 400px;
    }

    .benefit-card,
    .benefit-card.is-active {
        flex: 1;
        display: flex; 
        flex-direction: column; 
        justify-content: space-between;
        align-content: space-between;
    }

    .benefit-card p {
        position: static;
        opacity: 1;
        max-width: 90%;
        transition: none;
        bottom: 0px;
        left: auto;
    }

    .arrow-icon {
        /* 1. Make the arrow visible */
        display: flex;

        /* 2. Position it like the 'active' desktop state */
        position: absolute;
        bottom: 30px;
        left: calc(100% - 80px); /* Pushes it to the far right */
        transition: none;

        /* 3. Apply 'active' styles adapted for the new theme */
        background-color: #FFFFFF;
        color: #124170;
        border: 1px solid #124170;
    }

    /* 2. Hide all images starting from the 4th one */
    .hero-images img:nth-child(n+4) {
        display: none;
    }

    .stories-header {
        flex-direction: column;
        align-items: start;
        gap: 30px;
    }

    .quote-wrapper blockquote {
        font-size: 20px;
    }

    .story-quote {
        flex-direction: column;
        align-items: start;
        font-size: 14px;
    }

    .cta h2 {
        font-size: 35px;
    }

    .cta {
        padding: 20px 25px 160px 25px;
        align-items: start;
        max-width: 350px;
    }

    .carousel-container {
        max-width: 300px;
        margin: 0 auto;
        position: relative;
    }

    .carousel-track {
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .carousel-item {
        flex: 0 0 200px;
        height: 250px;
        margin: 0 5px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        box-sizing: border-box;
        transform: scale(0.70);
        opacity: 0.5;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .carousel-item p {
        color: #FFFFFF;
    }

    .carousel-item.is-active {
        transform: scale(1);
        opacity: 1;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* --- START: Navigation & Mobile Menu Styles --- */

/* Hide mobile-only buttons on desktop */
.hamburger-menu,
.close-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* On desktop, this wrapper just helps group the links and buttons */
.nav-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: visible;
}

/* Prevent body scrolling when the mobile menu is open */
body.no-scroll,
html.no-scroll {
    overflow: hidden;
}


/* --- START: Mobile Styles for Navbar --- */
@media screen and (max-width: 992px) {
    nav {
        padding: 0px 20px 20px 15px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        /* Give it a z-index to stay on top of the menu */
        position: relative;
        z-index: 2001;
    }


    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #124170;
        border-radius: 3px;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    .hamburger-menu.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Transform the wrapper into the dropdown menu */
    .nav-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        /* Position it below the header (adjust 90px if your header height is different) */
        top: 60px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 120px); /* Fill the rest of the screen */
        
        /* Change background to match the navbar */
        background-color: #DDF4E7; 
        
        padding: 0px 70px 40px 30px;
        box-sizing: border-box;
        z-index: 2000;
        
        /* Animate it by scaling down from the top for a dropdown effect */
        transform-origin: top;
        transform: scaleY(0);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* This class will be toggled by JS to show/hide the menu */
    .nav-content-wrapper.is-open {
        transform: scaleY(1);
        padding: 0px 30px 40px 30px;
    }

    /* Restyle the nav links for the vertical, left-aligned layout */
    .nav-content-wrapper ul {
        flex-direction: column;
        /* Align items to the start (left) */
        align-items: flex-start; 
        width: 100%;
        gap: 0; /* Remove gap, use padding/border on items instead */
    }

    .nav-content-wrapper li {
        width: 100%;
        border-bottom: 1px solid rgba(18, 65, 112, 0.1);
    }
    
    .nav-content-wrapper li a {
        /* Make text dark to be readable on the light background */
        color: #124170;
        font-size: 1.2rem;
        font-weight: 500;
        display: block; /* Make the whole area clickable */
        padding: 20px 0;
    }

    /* Restyle the buttons to be in a row at the bottom */
    .nav-content-wrapper .buttons {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
    
    .nav-content-wrapper .buttons button {
        /* Let buttons share the space */
        flex: 1;
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Ensure buttons use the correct style for a light background */
    .nav-content-wrapper .primary {
        background-color: #124170;
        color: #DDF4E7;
    }

    .nav-content-wrapper .secondary {
        background-color: transparent;
        color: #124170;
        border: 1px solid #124170;
    }

    main {
        padding-top: 20px;
    }
}

@media screen and (max-width: 992px) {
    footer {
        /* Adjust padding for a better mobile feel */
        padding: 60px 30px;
    }

    .footer-logo {
        position: absolute;
        margin-top: -60px;
    }

    /* 2. Create the new grid layout for the main links */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 40px 20px;
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Target the 4th div ('Use cases') and make it span the full width */
    .footer-links div:nth-child(4) {
        grid-column: 1 / -1; /* Span from the first to the last column line */
    }

    /* 3. Restructure the entire bottom (legal) section */
    .legal {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap onto new lines */
        justify-content: space-between;
        align-items: center;
        margin-top: 40px;
        padding-top: 20px;
        /* This creates the first horizontal rule */
        border-top: 1px solid rgba(18, 65, 112, 0.2);
    }

    /* 4. Use 'order' to visually rearrange the copyright, social, and policy links */
    .legal .copyright {
        order: 1; /* First item */
    }
    
    .legal .legal-social {
        order: 2; /* Second item */
    }

    .legal .legal-links {
        order: 3; /* Third item */
        width: 100%; /* Make it take the full width to force it onto a new line */
        margin-top: 20px;
        padding-top: 20px;
        /* This creates the second horizontal rule */
        border-top: 1px solid rgba(18, 65, 112, 0.2);
    }

    /* Align the final "Terms of use" / "Privacy policy" links */
    .legal .legal-links ul {
        justify-content: flex-start; /* Align to the left */
        gap: 30px;
    }

    .hero h1 {
        font-size: 42px;
        max-width: 80%;
    }

    .hero p {
        max-width: 70%;
    }

    .hero-pill {
        gap: 0px;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 38px; /* Slightly smaller than the 42px for medium screens */
        max-width: 90%;
    }

    .promo-section h2,
    .recruiter-heading h2 {
        font-size: 2.5rem; /* Make these headings smaller */
    }

    .cta {
        /* Make the CTA smaller on mobile */
        max-width: 100%;
        padding: 60px 25px;
    }
}

/* For very small phones */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 32px; /* Even smaller for the smallest devices */
    }

    .hero-pill {
        /* Make the text smaller to prevent wrapping */
        font-size: 0.8rem;
    }

    .carousel-item {
        /* Your carousel items might be too wide for a 375px screen */
        flex: 0 0 180px;
        height: 220px;
    }

    .carousel-container {
        max-width: 280px;
    }
}

/* Caret (arrow) styling */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.has-dropdown {
    position: relative;
    cursor: pointer;
}

.has-dropdown.is-open > a .caret {
    transform: rotate(180deg);
}

/* ADD THIS RULE for the dropdown menu */
.has-dropdown.is-open > .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 65, 112, 0.1);
    min-width: 200px;
    z-index: 1001;
    padding: 8px 0;
    list-style: none;
    margin-top: 10px; /* Space between nav link and dropdown */
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #124170;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(221, 244, 231, 0.5); /* Light mint hover effect */
}


/* --- START: Mobile Styles for Dropdown (Accordion) --- */
@media screen and (max-width: 992px) {
    /* Reset desktop dropdown styles */
    .dropdown-menu {
        display: block; /* Make it part of the layout flow */
        position: static;
        background-color: transparent;
        box-shadow: none;
        min-width: 100%;
        margin-top: 0;
        padding: 0;
        /* Hide with max-height for transition */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .has-dropdown.is-open > .dropdown-menu {
        max-height: 300px; /* Animate open */
    }

    /* Indent submenu items */
    .dropdown-menu li a {
        padding-left: 20px;
        font-size: 1rem;
        font-weight: 400;
        color: #26667F; /* Use softer text color for submenu */
    }

    /* Point caret down on mobile */
    .caret {
         transform: rotate(0deg); /* Reset from desktop hover */
    }
    
    .has-dropdown > a .caret {
        position: absolute;
        right: 0;
        top: 28px;
        transform: rotate(-90deg); /* Points right */
    }

    .has-dropdown.is-open > a .caret {
        transform: rotate(90deg); /* Points down */
    }
    
    .has-dropdown > a {
        position: relative; /* Needed to position the caret */
    }
}

@media screen and (max-width: 468px) {
    .image-card {
        height: 200px;
    }

    .sticky-container {
        padding: 0px;
    }

    .item-overlay h3 { 
        font-size: 1rem;
    }
    .item-overlay p { 
        font-size: 0.75rem; 
    }

    .card-text-content img {
        height: auto;
    }
}

@media screen and (max-width: 992px) {
    .hero-images {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 20px;
        /* We can remove the top margin on mobile for better spacing */
        margin-top: 60px; 
    }
  /* 1. Remove the old conflicting rule for mobile images */
  .hero-images img {
    flex: none; /* This undoes the old flex rule */
    max-width: none;
  }
  
  /* 2. Remove the rule that hides the extra images */
  .hero-images img:nth-child(n+4) {
      display: block !important;
  }

  /* 3. Style the new slider slots */
  .hero-image-slot {
    position: relative;
    overflow: hidden;
    height: 50px;
    flex: 1 1 120px;
    max-width: 150px;
  }

  /* 4. Style the images inside the slots for the animation */
  .hero-image-slot img {
    /* THIS IS THE KEY FIX: Force the image to be a block element */
    display: block !important; 
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;

    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  }

  .hero-image-slot img.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-image-slot img.is-exiting {
    opacity: 0;
    transform: translateY(100%);
  }

  .grid-card-full img{
    height: auto;
  }
}

.legal-social img {
    width: 20px;
    height: 20px;
}