/*  hero section styles start */
.hero_section {
    background-color: var(--black);
    width: 100%;
    color: var(--white);
    margin-top: 3.75rem;
    padding-bottom: 2rem;
}
.hero_section_img {
    padding: 3rem 0;
    max-width: 400px;
    margin: auto;
}

.hero_section_img div:first-child::after {
    position: absolute;
    content: "";
    height: 3px;
    width: var(--dynamic-width, 33.333%);
    transition: width 0.5s ease-in;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
}
.hero_section_img div:first-child {
    position: relative;
    height: 160px;
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #1f0a00;
    background-image: url(https://res.cloudinary.com/deklnqsqn/image/upload/v1731573725/top-1_c2v8f5.png);
}
.hero_section_img div:nth-child(2) {
    background-color: white;
    color: black;
    line-height: 1.8rem;
    font-size: 1rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    height: 6rem;
}
.rotating-text span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 1rem;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.rotating-text span.visible {
    opacity: 1;
}
.hero_section_text {
    max-width: 400px;
    margin: 0 auto;
}
.hero_section_text > h1 > br {
    display: none;
}
.hero_section_text > h1 {
    font-size: 1.5rem;
    line-height: 40px;
    font-weight: normal;
}
.hero_section_text > p {
    padding-top: 1.1rem;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6rem;
}
.hero-cta-button {
    padding-top: 2rem;
}
.hero-cta-button a {
    background-color: var(--primary);
    text-decoration: none;
    color: white;
    font-size: 0.875rem;
    display: block;
    text-align: center;
    padding: 1rem 3rem;
}
a.esg-view-more:hover span {
    transform: translateX(4px);
    transition: all linear 0.3s;
}
a.esg-view-more span {
    transform: translateX(0);
    transition: all linear 0.3s;

}
a.esg-view-more {
    text-decoration: none;
    color: var(--primary);
}
/* no name section */
.no-name__section {
    background-color: #f8f8f9;
    padding: 2.5rem 0;
}

.no-name__section > .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.no-name__section > .container div:first-child {
    max-width: 440px;
    max-height: 400px;
    margin: 0 auto;
}

.no-name__section > .container div:first-child img {
    aspect-ratio: 1/1;
    width: 100%;
}

.no-name__section > .container div:nth-child(2) p,
.no-name__section > .container div:nth-child(2) a {
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7rem;
    text-decoration: none;
    color: black;
}

.no-name__section > .container div:nth-child(2) a {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all ease-in 0.2s;
}
.no-name__section > .container div:nth-child(2) a:hover {
    color: var(--primary);
}
.no-name__section > .container div:nth-child(2) a svg {
    transition: all ease-in 0.2s;
}
.no-name__section > .container div:nth-child(2) a:hover svg {
    transform: translateX(3px);
    transition: all ease-in 0.2s;
}

/* commitment to quality section */
.commitment-to-quality__section {
    background-color: black;
    padding: 2.5rem 0;
}
.commitment-to-quality__section > div {
    display: flex;
    flex-direction: column;
}
.commitment-to-quality__section > div {
    color: white;
}
.commitment-to-quality__section > div div:first-child h2 {
    font-weight: 400;
    font-size: 1.5rem;
}
.commitment-to-quality__section > div div:first-child ul {
    padding: 1rem 0;
    list-style-position: inside;
    font-size: 0.85rem;
    font-weight: 300;
}
.commitment-to-quality__section > div div:first-child ul li {
    line-height: 1.45rem;
}
.commitment-to-quality__section > div div:first-child ul li:nth-child(2) {
    padding-top: 0.85rem;
}
.commitment-to-quality__section > div div:nth-child(2) {
    margin: 2.5rem auto;
    max-width: 440px;
}
.commitment-to-quality__section > div div:nth-child(2) img {
    aspect-ratio: 1/1;
    width: 100%;
}

/* business category section */
.business_category-wrapper {
    padding: 3rem 0;
    margin-top: 2rem;
}

.business_category-wrapper > h2 {
    font-weight: 400;
    font-size: 1.5rem;
    text-align: center;
    color: var(--header);
}

.business_category-filters {
    display: flex;
    align-items: center;
    justify-items: center;
    max-width: 650px;
    margin: 0 auto;
    height: 40px;
    border: 0.85px solid #d0d0d0;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.business_category-filters > select {
    padding: 0 0.3rem;
    outline: none;
}

.business_category-filters > select,
.business_category-filters > input,
.business_category-filters > label {
    height: 100%;
    border: none;
}

.business_category-filters > select {
    padding: 0 0.3rem;
    outline: none;
}

.business_category-filters > input {
    background: transparent;
    outline: none;
    flex: 1;
    padding: 0 10px;
}

.business_category-filters > label {
    background-color: var(--primary);
    color: var(--white);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* comprehensive solutions */
.comprehensive-solutions__section:nth-of-type(odd) {
    background-color: #eff3f2;
}
.comprehensive-solutions__section > .containers div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comprehensive-solutions__section:nth-of-type(odd)
    > .containers
    div:nth-child(2),
.comprehensive-solutions__section:nth-of-type(even)
    > .containers
    div:nth-child(2) {
    padding: 1.5rem 1rem;
}
.comprehensive-solutions__section:nth-of-type(even) {
    background-color: black !important;
    color: white !important;
}
.comprehensive-solutions__section:nth-of-type(even) p {
    color: white !important;
}

.comprehensive-solutions__section:nth-of-type(even)
    > .containers
    div:nth-child(2)
    ul
    li
    a {
    color: white;
}

.comprehensive-solutions__section > .containers div:nth-child(2) h2 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
    font-weight: 400;
}

.comprehensive-solutions__section > .containers div:nth-child(2) p {
    padding-bottom: 2rem;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7rem;
    text-decoration: none;
    color: black;
}

.comprehensive-solutions__section > .containers div:nth-child(2) p + hr {
    width: 50%;
}

.comprehensive-solutions__section > .containers div:nth-child(2) a {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all ease-in 0.2s;
}

.comprehensive-solutions__section > .containers div:nth-child(2) ul {
    padding-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    list-style-type: none;
    font-size: 0.875rem;
}
.comprehensive-solutions__section > .containers div:nth-child(2) ul li {
    padding: 0.5rem 1.313rem;
    border: 1px solid #d0d0d0;
    transition: all linear 0.3s;
}
.comprehensive-solutions__section > .containers div:nth-child(2) ul li:hover {
    background-color: var(--primary);
    transition: all linear 0.3s;
}
.comprehensive-solutions__section > .containers div:nth-child(2) ul li a {
    color: #28241f;
    position: relative;
    text-decoration: none;
}
.comprehensive-solutions__section > .containers div:nth-child(2) ul li:hover a {
    transform: translateX(-10px);
    transition: all linear 0.3s;
}
.comprehensive-solutions__section
    > .containers
    div:nth-child(2)
    ul
    li
    a::after {
    position: absolute;
    content: ">";
    color: white;
    opacity: 0;
    right: 0;
}
.comprehensive-solutions__section
    > .containers
    div:nth-child(2)
    ul
    li:hover
    a::after {
    transform: translateX(15px);
    opacity: 1;
    transition: all linear 0.3s;
}
.comprehensive-solutions__section > .containers div:nth-child(2) ul li:hover a {
    color: white;
}

@media (min-width: 700px) {
    .hero_section_text {
        max-width: 100%;
        margin: 0;
    }
    .no-name__section {
        padding: 4.5rem 0;
    }
    .no-name__section > .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .no-name__section > div div {
        flex-basis: 50%;
    }

    .no-name__section > .container div:nth-child(2) p {
        line-height: 1.9rem;
    }

    .no-name__section > div div:nth-child(1) {
        display: flex;
        justify-content: center;
    }

    /* commitment to quality section */
    .commitment-to-quality__section > div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .commitment-to-quality__section > div div {
        flex-basis: 50%;
    }
    .commitment-to-quality__section > div div:nth-child(2) {
        display: flex;
        justify-content: center;
    }

    /* comprehensive solutions */
    .comprehensive-solutions__section .containers {
        display: flex;
        gap: 2rem;
    }
    .comprehensive-solutions__section .containers div {
        /* uncomment the code below if Tunde disagrees. */
        /* flex: 0 0 50%; */
    }
    .comprehensive-solutions__section:nth-of-type(odd) .containers {
        flex-direction: row-reverse;
    }
    .comprehensive-solutions__section > .containers div:nth-child(2) h2 {
        font-size: 1.5rem;
        padding-bottom: 1.2rem;
        font-weight: 400;
    }

    .comprehensive-solutions__section > .containers div:nth-child(2) p {
        padding-bottom: 2rem;
        font-weight: 300;
        line-height: 1.6rem;
        text-decoration: none;
        color: black;
    }
}

@media (min-width: 1000px) {
    /* commitment to quality section */
    .commitment-to-quality__section > div div:first-child h2 {
        font-size: 2.2rem;
    }
    .commitment-to-quality__section > div div:first-child ul {
        font-size: 1rem;
        padding-top: 2.8rem;
    }
    .commitment-to-quality__section > div div:first-child ul li {
        line-height: 1.8rem;
    }
    /* comprehensive solution */
    .commitment-to-quality__section > div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .comprehensive-solutions__section:nth-of-type(odd) > .containers {
        flex-direction: row-reverse;
    }
    .comprehensive-solutions__section > .containers div:nth-child(2) h2 {
        font-size: 2.525rem;
    }

    .comprehensive-solutions__section > .containers div:nth-child(2) p {
        font-size: 1rem;
        line-height: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero_section {
        padding-block: 1rem;
        padding: 7rem 0;
    }
    .hero_section > div {
        display: flex;
        gap: 8rem;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
    .hero_section_img {
        flex-basis: 30%;
        margin: 0;
    }

    .hero_section_img {
        max-width: 400px;
    }
    .hero_section_img div:nth-child(2) {
        background-color: white;
        color: black;
        line-height: 1.8rem;
        font-size: 1.1rem;
        padding: 2rem 1.5rem;
        position: relative;
        overflow: hidden;
        display: flex;
        height: 7rem;
    }
    .rotating-text span {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 1rem;
        left: 0;
        right: 0;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }
    .rotating-text span.visible {
        opacity: 1;
    }
    .hero_section_text {
        flex-basis: 70%;
    }
    .hero_section_text > h1 > br {
        display: block;
    }
    .hero_section_text > h1 {
        font-size: 2.625rem;
        line-height: 3.75rem;
    }
    .hero_section_text > p {
        padding-top: 1.9rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.875rem;
    }
    .hero-cta-button {
        padding-top: 3rem;
    }
    .hero-cta-button a {
        background-color: var(--primary);
        text-decoration: none;
        color: white;
        font-size: 0.9rem;
        display: block;
        width: fit-content;
        padding: 1rem 3rem;
    }
    .no-name__section > .container div:first-child {
        margin: 0;
    }
    .comprehensive-solutions__section:nth-of-type(odd)
        > .containers
        div:nth-child(2) {
        max-width: 640px;
        padding: 2rem 0rem 2rem 2rem;
    }

    .comprehensive-solutions__section:nth-of-type(even)
        > .containers
        div:nth-child(2) {
        max-width: 640px;
        padding: 2rem 2rem 2rem 0rem;
    }
}
@media (min-width: 1500px) {
    .comprehensive-solutions__section > .containers {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    .comprehensive-solutions__section:nth-of-type(odd)
        > .containers
        div:nth-child(2) {
        max-width: 100%;
        padding: 4rem 0rem 4rem 0rem;
    }

    .comprehensive-solutions__section:nth-of-type(even)
        > .containers
        div:nth-child(2) {
        max-width: 100%;
        padding: 4rem 0rem 4rem 0rem;
    }
}
