body {
    background-color: #ffffff;
}

.quem-somos-hero {
    position: relative;
    background-image: url('../images/quem-somos/background-yamatec-page-2.png');
    background-size: cover;
    background-position: center bottom;
    /* Better alignment */
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 180px;
    /* Increased from 140px to push text further down */
    height: 800px;
    /* Reduced to 800px */
    /* Fixed height required */
    margin-bottom: 700px;
    /* Space reserved outside the section since video is absolute */
}

.qs-mobile-hero-img {
    display: none;
}

.qs-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    height: 100%;
    /* Take full height of hero to serve as anchor */
}

.qs-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #0D4291;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.qs-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 110%;
    color: #0D4291;
    max-width: 500px;
    margin-bottom: 0px;
}

/* Video Section */
.qs-video-wrapper {
    position: absolute;
    width: 100%;
    max-width: 1350px;
    /* Increased width significantly from 1280px */
    /* Video width */
    left: 50%;
    transform: translateX(-50%);
    top: 550px;
    /* Shifted UP from 720px to sit higher */
    /* Positions it nicely starting near the end of the hero height */
    border-radius: 24px;
    /* Slightly larger border radius for bigger box */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Softer shadow */
    aspect-ratio: 16 / 9;
    /* Ensure exact widescreen aspect ratio for iframe */
    background: #e0e0e0;
    /* Placeholder color before load */
    z-index: 3;
    /* Keep video above the overlap */
}

.qs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.qs-blue-box {
    background-color: #0D4291;
    color: white;
    border-radius: 20px;
    padding: 50px 80px;
    text-align: center;
    position: absolute;
    /* Exact manual placement over the flow */
    left: 50%;
    transform: translateX(-50%);
    top: 1180px;
    /* Shifted UP to stay under the higher/larger video */
    /* Shifted up by 40px to follow the video */
    /* Absolute positioning relative to the main block, directly below video */
    box-shadow: 0 15px 35px rgba(13, 66, 145, 0.2);
    width: 100%;
    max-width: 1100px;
    /* Blue box runs smaller than video */
    z-index: 4;
    /* On top of the video */
}

.qs-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 160%;
    font-weight: 400;
    opacity: 0.95;
}

.qs-text strong {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .quem-somos-hero {
        height: auto;
        margin-bottom: 0px;
        background-color: white;
        padding-top: 100px;
        text-align: center;
        background-image: url('../images/quem-somos/background-yamatec-page-2.png');
        background-position: top center;
        background-size: 150%;
        background-repeat: no-repeat;
        padding-bottom: 120px;
    }

    .qs-content br {
        display: none;
    }

    .qs-title {
        font-size: 32px;
        margin: 0 auto 40px auto;
    }

    .qs-label {
        font-size: 14px;
        display: block;
        margin: 0 auto 20px auto;
    }

    .qs-text {
        font-size: 15px;
        line-height: 150%;
    }

    .qs-video-wrapper {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        /* Bring back shadow for mobile */
        margin-top: 40px;
        /* Space from the title */
        margin-bottom: 70px;
    }

    .qs-mobile-hero-img {
        display: none;
        /* Hide this completely since we use the hero background now */
    }

    .qs-blue-box {
        padding: 40px 30px;
        margin-top: -30px;
        /* Overlap */
        margin-bottom: -50px;
        position: relative;
        z-index: 4;
        width: 100%;
        border-radius: 12px;
        left: 0;
        top: auto;
        transform: none;
        bottom: 0;
    }
}

.mission-values-section {
    padding-top: 300px;
    /* Increased significantly to push the section further down */
    padding-bottom: 80px;
    background-color: white;
}

.mv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.mv-text-content {
    flex: 1;
    max-width: 600px;
}

.mv-image {
    flex: 1;
    max-width: 550px;
}

.mv-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.mv-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.mv-icon {
    width: 40px;
    height: 40px;
    margin-top: 5px;
}

.mv-title-group {
    line-height: 40px;
    display: flex;
    flex-direction: column;
}

.mv-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 36px;
    color: #1560C6;
    line-height: title;
}

.mv-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #0D4291;
    line-height: title;
}

/* Mission Specifics */
.mv-highlight {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: #0D4291;
    line-height: 120%;
    margin-bottom: 20px;
}

.mv-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    color: #0949A0;
}

/* Values Specifics */
.mv-list {
    list-style: none;
    max-width: 530px;
    padding: 0;
}

.mv-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mv-list li img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.mv-list li span {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    line-height: 140%;
    color: #0949A0;
}

.mv-separator {
    height: 1px;
    background-color: rgba(13, 66, 145, 0.1);
    margin: 80px 0;
    width: 100%;
}

.box-icon-whatsapp {
    padding: 7px;
    background-color: #fff;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
    .mv-row {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }

    .qs-title {
        margin-bottom: 50px !important;
    }

    .mv-separator {
        margin-bottom: 40px;
    }

    .mv-subtitle {
        font-size: 24px;
        line-height: 120%;
    }

    .mv-header h2 {
        font-size: 28px;
        line-height: 120%;
    }

    .mv-highlight {
        font-size: 20px;
    }

    .mv-desc {
        font-size: 16px;
    }

    .mission-row,
    .values-row,
    .differentials-row,
    .presence-row {
        flex-direction: column;
    }

    .mv-text-content {
        order: 1;
        max-width: 100%;
    }

    .mv-image {
        order: 2;
        max-width: 100%;
    }

    .mission-values-section {
        padding-top: 100px;
        /* Reduced from 250px so the text comes higher up closer to the blue box/video */
    }

    .mv-list li span {
        font-size: 16px;
    }
}

/* Presence Section */
.presence-image-wrapper {
    position: relative;
    display: inline-block;
    /* Or block, but relative needs to be established */
}

.selo-img {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px !important;
    /* Override strict 100% if needed, but wait, .mv-image img is 100%. width here should be specific size */
    height: auto !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .selo-img {
        width: 80px !important;
        bottom: -20px;
        right: -10px;
    }

}

.qs-cta-section {
    padding-bottom: 0;
    margin-top: 60px;
}

.qs-cta-box {
    background-color: #0D4291;
    border-radius: 20px;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.qs-cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    color: white;
    margin: 0;
}

.qs-btn-whatsapp {
    background-color: #2F80ED;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.qs-btn-whatsapp:hover {
    background-color: #1A6FD6;
}

.qs-btn-whatsapp img {
    width: 20px;
    height: 20px;
}

.box-icon-whatsapp {
    padding: 7px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .qs-cta-box {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
        gap: 30px;
    }

    .qs-cta-title {
        font-size: 18px;
    }

    .qs-cta-title br {
        display: none;
    }

    .qs-btn-whatsapp {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        height: auto;
    }
}