/* General Reset */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #1f2f45;
    line-height: 1.6;
    overflow-x: hidden;
}
.hero {
    display: flex;
    align-items: center;
    min-height: 340px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #f9d084, #fbd493);
}

.hero-image {
    margin-bottom: -1px;
}

.hero-container{
    width: 144%;
    height: 900px;
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, #f9b24a, #ffcf99); /* Add gradient */
    right: 0; /* Align to the right */
    z-index: 0; /* Ensure it appears behind the text */
}

.hero-text {
    flex: 1;
    max-width: 500px;
    z-index: 2; /* Ensure it appears above the background */
    position: relative; /* Position relative to the hero section */
    color: #0F3664;
    padding-top: 150px; /* Add padding to expand the container */
    padding-left: 80px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-image img {
    max-width: 191%;
    position: relative;
    left: -155%;
    max-height: 900px;
}

.hero-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 100;
}

.client {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #0f2c54;
}

.case-study {
    margin-top: 0.5rem;
    background: #fdc971;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* Content Blocks */
.content-block {
    padding: 4rem;
}

.page-content {
    overflow: hidden;
    overflow-x: hidden;
}

.block-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 100px;
    margin-left: 100px;
}

.block-inner.reverse {
    flex-direction: row-reverse;
}

.img-wrapper img {
    max-width: 350px;
    max-height: 350px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-wrapper {
    max-width: 500px;
    color: #0D2C54;
    margin-left: 100px;
}

.text-wrapper h3 {
    font-size: 1.5rem;
    color: #0D2C54;
    margin-bottom: 1rem;
    font-weight: 150;
}

.text-wrapper p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5;
}

.elite-candidate-pool .img-wrapper {
    position: relative;
    z-index: 1; /* Ensure it appears above the background */
}

.elite-candidate-pool .text-wrapper{
    margin-right: 500px;
}

.elite-candidate-pool .img-wrapper::after {
    content: '';
    position: absolute;
    top: -320px;
    left: -202px;
    width: 950px;
    height: 950px;
    background: url('../images/Orange Curve Shape 2.svg') no-repeat center center;
    background-size: contain;
    z-index: -1;
    transform: scaleX(-1);
    overflow: hidden;
}

@media (max-width: 1540px) {
    .elite-candidate-pool .text-wrapper{
        margin-left: 0;
        margin-right: 200px;
    }
}

@media (max-width: 1350px) {
    .hero-image img {
        left: -115%;
    }
}

@media (max-width: 800px) {
    /* Hero section adjustments */
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-container {
        width: 100%;
        height: auto;
        border-radius: 0;
        background: linear-gradient(to bottom, #f9b24a, #ffcf99);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .hero-text {
        max-width: 100%;
        padding: 40px 20px;
        text-align: center;
        margin: 0 auto 230px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Content blocks adjustments */
    .content-block {
        padding: 2.5rem 0;
    }

    .block-inner {
        flex-direction: column !important;
        text-align: center;
        margin: 0;
        padding: 0 20px;
        gap: 1.5rem;
    }

    .img-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .img-wrapper img {
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }

    .text-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
    }

    .text-wrapper h3 {
        text-align: center;
    }

    .text-wrapper p {
        text-align: center;
    }

    /* Fix for the elite candidate pool section */
    .elite-candidate-pool .text-wrapper {
        margin-right: 0;
    }

    /* Hide the decorative background shape on mobile */
    .elite-candidate-pool .img-wrapper::after {
        display: none;
    }

    /* Remove extra padding that can cause horizontal scrolling */
    .style-background {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .content-block {
        padding: 1.5rem 0;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .text-wrapper h3 {
        font-size: 1.3rem;
    }

    .text-wrapper p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .img-wrapper img {
        max-width: 240px;
    }

    /* Add some breathing room between sections */
    .content-block + .content-block {
        margin-top: 10px;
    }
}

/* Large tablets and below */
@media (max-width: 1250px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: 300px;
    }

    .hero-container {
        width: 100%;
        height: auto;
        border-radius: 0;
        background: linear-gradient(to bottom, #f9b24a, #ffcf99);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .hero-text {
        padding: 80px 20px 0 20px;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }

    .hero-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 350px;
        left: 0;
        display: block;
        margin: 250px 0 0 auto;
        height: auto;
    }

    /* Content blocks */
    .content-block {
        padding: 2.5rem 0;
    }

    .block-inner {
        flex-direction: column !important;
        text-align: center;
        margin: 0;
        padding: 0 20px;
        gap: 1.5rem;
    }

    .img-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .img-wrapper img {
        max-width: 280px;
        height: auto;
        margin: 0 auto;
    }

    .text-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
    }

    .text-wrapper h3 {
        text-align: center;
        font-size: 1.4rem;
    }

    .text-wrapper p {
        text-align: center;
        line-height: 1.6;
    }

    /* Elite candidate pool section fix */
    .elite-candidate-pool .text-wrapper {
        margin-right: 0;
    }
    .elite-candidate-pool .img-wrapper::after {
        display: none;
    }
}

/* Tablets and small screens */
@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .hero-container {
        width: 100%;
        height: auto;
        border-radius: 0;
        background: linear-gradient(to bottom, #f9b24a, #ffcf99);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .hero-image img {
        max-width: 260px;
        left: 0;
        display: block;
        height: auto;
        margin: 210px 0 0 auto;
    }

    .hero-text {
        max-width: 100%;
        padding: 40px 20px;
        text-align: center;
        margin: 0 auto 230px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Content blocks */
    .content-block {
        padding: 2.5rem 0;
    }

    .block-inner {
        flex-direction: column !important;
        text-align: center;
        margin: 0;
        padding: 0 20px;
        gap: 1.5rem;
    }

    .img-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .img-wrapper img {
        max-width: 240px;
        height: auto;
        margin: 0 auto;
    }

    .text-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
    }

    .text-wrapper h3 {
        text-align: center;
    }

    .text-wrapper p {
        text-align: center;
    }

    /* Elite candidate pool section fix */
    .elite-candidate-pool .text-wrapper {
        margin-right: 0;
    }

    /* Hide the decorative background shape on mobile */
    .elite-candidate-pool .img-wrapper::after {
        display: none;
    }

    /* Remove extra padding that can cause horizontal scrolling */
    .style-background {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .content-block {
        padding: 1.5rem 0;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .text-wrapper h3 {
        font-size: 1.3rem;
    }

    .text-wrapper p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .img-wrapper img {
        max-width: 200px;
    }

    /* Add some breathing room between sections */
    .content-block + .content-block {
        margin-top: 10px;
    }

    .hero-image img {
        margin: 250px 0 0 auto;
    }
}

@media (max-width: 375px) {
    .hero-image img {
        margin: 268px 0 0 auto;
    }
}