.section-title {
    width: fit-content;
    margin: 0 auto;
    font-size: 2em;
}

.underlined {
    --_underline-gap: 0.5em;
    position: relative;
    margin-bottom: var(--_underline-gap);
}

.underlined::after {
    content: "";
    border-bottom: 3px solid var(--company-color3);

    position: absolute;
    bottom: calc(var(--_underline-gap) * -1);
    left: 25%;
    right: 25%;
}

/* SECTIONS */

section {
    font-size: 1rem;
    margin-bottom: 5em;
}

/* YOUR TRUSTED PARTNER FOR GLOBAL TRADE */

.trusted-partner {}

.trusted-partner-text {
    color: #626262;

    padding: 2.5rem calc(var(--main-padding) * 2);
    margin: auto;
    max-width: 70ch;
    text-align: center;
    text-align: start;
}

/* WE OFFER SERVICES IN THE FIELD */

.services {}

.services-wrapper {
    padding: var(--main-padding);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

.services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    width: 20%;
    padding-bottom: 20px;

    box-shadow: 4px 4px 6px var(--boxshadow-color);
    transition: transform 0.1s ease-out;
}

.services-card {
    position: relative;
}

.services-card:has(a:is(:hover, :focus)) {
    transform: scale(1.01);
}

.services-card::before {
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;
}

.services-card.packaging-3pl::before {
    background-image: url(../about_3pl_green.html);
}

.services-card.warehousing::before {
    background-image: url(../about_warehouse_green.html);
}

.services-card.import-and-export::before {
    background-image: url(../about_import_green.html);
}

.services-card.packaging-solutions::before {
    background-image: url(../about_packing_green.html);
}

.services-card:is(:hover, :focus)::after {
    opacity: 1;
    visibility: visible;
}

.services-card::after {
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    position: absolute;
    top: 0;
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-out;
}

.services-card.packaging-3pl::after {
    background-image: url(../about_3pl.html);
}

.services-card.warehousing::after {
    background-image: url(../about_warehouse.html);
}

.services-card.import-and-export::after {
    background-image: url(../about_import.html);
}

.services-card.packaging-solutions::after {
    background-image: url(../about_packing_all.html);
}

.services-card:is(:hover, :focus)>h3 {
    color: #626262;
}

.services-card>h3 {
    max-width: 90%;
    margin: 0.5em 20px;
    font-size: 1.75em;
    color: #757b81;
    font-family: var(--bold-font);
    text-align: center;
}

.services-card>a {
    max-width: 90%;
    margin: 0 20px;
    font-size: 1.25em;
    color: var(--company-color1);
    text-align: center;

    transition: color 0.1s ease-out;
}

.services-card>a:is(:hover, :focus) {
    color: var(--company-color3);
}

/* Certificates and Recognitions */

.certificates {
    padding: calc(var(--main-padding)* 2) var(--main-padding);
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.certificates-title {
    font-size: 1.75em;
    font-family: var(--bold-font);
    color: #626262;
    text-align: center;
}

.certificates-wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    flex: 1;
}

.certificates-wrapper>img {
    height: 100%;
    max-height: 5em;
    filter: grayscale(1);
    transition: filter 0.1s ease-out;
}

.certificates-wrapper>img:is(:hover, :focus) {
    filter: grayscale(0);
}

/* TESTIMONIALS */

.testimonials {
    position: relative;
    --_bg-line_pos: 10em;
}

.testimonials>.btn {
    padding: 0;

    position: absolute;
    top: var(--_bg-line_pos);
    z-index: -1;
}

.testimonials>hr {
    margin: 0;
    padding: 0;
    border: 2px solid #eaecf0;

    position: absolute;
    top: calc(var(--_bg-line_pos) + 1em - 2px);
    left: calc((var(--main-padding) / 2) + 3px);
    right: calc((var(--main-padding) / 2) + 3px);
    z-index: -1;
}

.testimonials>.prev {
    left: calc(var(--main-padding) / 2);
}

.testimonials>.next {
    right: calc(var(--main-padding) / 2);
}

.testimonials>.btn::before {
    content: "";
    display: block;
    height: 2em;
    aspect-ratio: 1 / 2;
}

.testimonials>.prev::before {
    background-image: url(../arrow-left.html);
}

.testimonials>.next::before {
    background-image: url(../arrow-right.html);
}

.testimonials-wrapper {
    margin: var(--main-padding) calc(var(--main-padding) * 2);
    display: flex;
    justify-content: space-between;
    gap: 4em;
    overflow: auto;
}

.testimonials-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.testimonials-container {
    width: 20%;
    min-width: 240px;
}

.testimonials-container.show {}

.testimonials-container::before {
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1 / 1;
    display: block;
    width: 10em;

    filter: grayscale(1);
    transition: filter 0.1s ease-out;
}

.testimonials-container.john::before {
    background-image: url(../about_testimonials_jhon.html);
}

.testimonials-container.leidy::before {
    background-image: url(../about_testimonials_leidy.html);
}

.testimonials-container.gabe::before {
    background-image: url(../about_testimonials_gabe.html);
}

.testimonials-container.august::before {
    background-image: url(../about_testimonials_august.html);
}

.testimonials-container:is(:hover, :focus)::before {
    filter: grayscale(0);
}

.testimonials-container>h3 {
    margin: 0.5em 0;
    font-size: 1.75em;
    font-family: var(--bold-font);
}

.testimonials-container>p {
    color: #626262;
    text-align: start;
    text-align-last: start;
}

/* Keep connected with GreenChem! */

.keep-connected {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.keep-connected-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem calc(var(--main-padding) * 2);
    flex: 1;
}

.keep-connected-text-wrapper>h2 {
    margin: 0.5em 0;
}

.keep-connected-text-wrapper>* {
    margin: 0;
}

.keep-connected-text {
    color: #626262;
    text-align: start;
}

.keep-connected-button {
    width: fit-content;
    font-size: 1.2em;
    color: black;
    border-bottom: 2px solid black;
    text-decoration: none;
    margin: 1em 0;
}

.keep-connected-button:is(:hover, :focus) {
    color: var(--company-color3);
    border-color: var(--company-color3);
}

.keep-connected-img-wrapper {
    position: relative;
    padding: 2.5rem calc(var(--main-padding) * 2);
}

.keep-connected-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left;
}

.keep-connected-img:is(.green) {
    display: block;
}

.keep-connected-img:not(.green) {
    display: none;
}

.keep-connected-img-wrapper:hover>:is(.green) {
    display: none;
}

.keep-connected-img-wrapper:hover>:not(.green) {
    display: block;
}

.keep-connected-img-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: clamp(-130px, -14vw, -55px);
    transform: translateX(-50%);

    background-image: url(../webp/web_youtube_shadow.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    aspect-ratio: 1735 / 302;
    width: 100%;
}

@media (width>=768px) {
    section {
        font-size: 1rem;
    }
}

@media (width>=1024px) {
    section {
        font-size: 1.1rem;
    }

    .banner-title>h1 {
        font-size: 1.5em;
    }

    .trusted-partner-text {
        column-count: 2;
        gap: 2em;
        max-width: 120ch;
    }

    .certificates {
        flex-direction: row;
    }

    .certificates-title {
        max-width: 15ch;
        text-align: start;
    }

    .keep-connected {
        flex-direction: row-reverse;
    }

    .keep-connected-text-wrapper {
        align-items: flex-start;
        max-width: 75ch;
        margin-right: auto;
    }

    .keep-connected-img-wrapper {
        width: 50%;
    }

    .keep-connected-img-wrapper::after {
        bottom: clamp(-150px, -8vw, -90px);
    }

    .keep-connected-button {
        align-self: end;
    }
}

@media (width>=1440px) {
    section {
        font-size: 1.2rem;
    }

    .banner-title>h1 {
        font-size: 1.7em;
    }

    .services-card {
        align-items: start;
        justify-content: unset;
    }

    .services-card>h3 {
        text-align: start;
    }

    .services-card>a {
        margin-left: auto;
        margin-top: auto;
    }
}