/* flexibleStaffing.css */

/* Hero Section */
.hero-section {
    background: #F4F8FF;
    height: 900px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content.reverse {
    flex-direction: row-reverse;
}

.hero-image img {
    max-width: 550px;
    mask-image:linear-gradient(to bottom, rgba(70, 70, 70, 70) 77%, transparent 94%);
    z-index: 0;
    height: 80%;
    margin-bottom: 85px;
}

.hero-image {
    z-index: 0;
    width: 900px;
}

.hero-text {
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    color: #0D2C54;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 3rem;
    color: #333333;
    margin-bottom: 1rem;
    font-weight: 150;
}

.hero-text p {
    font-size: 2rem;
    color: #4A4A4A;
    max-width: 480px;
    line-height: 1.5;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 67px;
    left: -61px;
    width: 900px;
    height: 900px;
    background: url('../images/Orange Curve Shape copy.svg') no-repeat center center;
    background-size: contain;
}

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

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

.block-inner.reverse {
    flex-direction: row-reverse;
    padding-right: 350px;
    padding-left: 100px;
}

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

.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: 2;
}

/* Enhanced Responsive Styles */
@media (max-width: 1250px) {
    /* Hero section adjustments */
    .hero-section {
        height: auto;
        min-height: 300px;
        padding: 30px 0;
    }

    .hero-img img {
        padding-top: 0;
        margin-bottom: 60px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        height: auto;
        padding: 20px;
    }

    .hero-text {
        padding-top: 80px;
        width: 100%;
        max-width: 100%;
    }

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

    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

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

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

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

    .block-inner.reverse {
        padding: 0 20px;
    }

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

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

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

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

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

/* Extra small devices (phones) */
@media (max-width: 480px) {

    .hero-image img {
        max-width: 450px;
    }

    .hero-section {
        min-height: 250px;
    }

    .hero-text {
        padding: 10px 15px 200px;
    }

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

    .hero-text h2 {
        font-size: 1.3rem;
    }

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

    .content-block {
        padding: 1.5rem 0;
    }

    .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;
    }
}

@media (max-width: 420px) {

    .hero-image img {
        max-width: 400px;
        margin-top: 0;
    }
    
}

@media (max-width: 360px) {

    .hero-image img {
        max-width: 375px;
        margin-top: 0;
    }
}

