/* --- Banner --- */

.banner-container{
    position: relative;
    height: 550px;
    overflow: hidden;
    /* background-size: cover;
    background-position: center; */
}

.banner-container .swiper-wrapper .swiper-slide{
    /* width: 100% !important;
    height: 100% !important; */
    /*background-size: cover !important;
    background-position: center !important;*/
    /* margin-right: 0 !important; */
}

.banner-container .container{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.banner-container-menu{
    width: 280px;
    height: 100%;
    /* background: rgba(86, 87, 89, .4); */
    background:linear-gradient(rgba(24, 76, 53, 0.9), rgba(117, 188, 67, 0.9), rgba(188, 212, 67, 0.8));
}

.banner-container-menu_image{
    height: 50%;
    display: flex;
}

.banner-container-menu_image a{
    /* padding: 0px 35px; */
    margin: auto;
}

.banner-container-menu_image a img{
    width: 250px;
    height: auto;
}

.banner-container-menu ul {
    color: white;
    list-style: none;
    padding: 0;
}

.sub-menu {
    display: none;
    width: 200px;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: rgba(140, 140, 140 , 0.8);
    padding: 5px;
}
.sub-menu li{
    padding: 10px 22px !important;
    font-size: 16px !important;
    font-size: 14px !important;
}
.sub-menu li:hover{
    background-color: rgba(76, 184, 72, 0.3) !important;
}
.sub-menu li a:hover{
    color: inherit !important;
}

.banner-container-menu ul li:hover .sub-menu {
    display: block;
}


/* ------- Business Section ------- */
.businesses{
    position: relative;
    /* height: 580px; */
    height: 100%;
    margin-bottom: 80px;
}

.businesses-buttons-container {
    display: flex;
    gap: 15px;
}

.businesses-image-container {
    color: white;
    display: flex;
    height: 520px;
    background-color: #f0f0f0;
    transition: background-image 0.5s ease-in-out;
    padding: 90px 40px;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    position: relative;
    align-items: start;
    text-align: start;
}
.businesses-image-container div:nth-child(2){
    max-width: 400px;
}

/* .businesses-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0; 
} */

.background-div {
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to left, rgba(121, 122, 126, 0.8), transparent 100%); */
    background: linear-gradient(to right, rgba(121, 122, 126, 0.9),rgba(121, 122, 126, 0.6), transparent 100%);
    pointer-events: none;
  }

.businesses-buttons{
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.businesses-buttons button {
    height: 130px;
    width: 130px;
    border-top-left-radius: 30%;
    border-bottom-right-radius: 30%;
    background: white;
    box-shadow: 10px 8px 25px 0px rgba(220, 220, 220, .8);
    border: 1px solid #f2f1f2ab;
    padding: 12px;
}

.businesses-buttons .button-content {
    display: none; 
}

.businesses-buttons .button-content img{
    height: 80px;
    width: 80px;
}

.businesses-buttons button span{
    font-size: 14px;
    line-height: 18px;
    color: white;
}

.businesses-buttons button.active {
    background: var(--color-primary-green);
    border: 0;
    box-shadow: unset;
}
.businesses-buttons button.active .button-content {
    display: block;
}
.businesses-buttons button.active .b-icon-white {
    display: none; 
}

/* ------- section-sustainability-content ------- */
.section-sustainability{
    background-image: url(../img/testimonials/testi9_back.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.section-sustainability-content{
    padding: var(--spacing-4) 0;
    display: flex;
    flex-direction: column;
    /* align-items: end;
    text-align: end; */
    align-items: center;
}

.section-sustainability-content .desc{
    /* max-width: 360px; */
    padding: var(--spacing-2) 0;
    max-width: 700px;
    text-align: center;
}

.section-sustainability-content .desc p, .section-sustainability-content-2 .desc p{
    font-size: 18px;
    /* line-height: 22px; */
    line-height: 26px;
    color: var(--color-grey-90)
}

.section-sustainability-bg{
    height: 100%;
    opacity: 5;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-sustainability-2{
    height: 650px;
}

.section-sustainability-content-2 .desc{
    max-width: 360px;
    padding: var(--spacing-2) 0;
}

.section-sustainability-content-2{
    padding: var(--spacing-4) 50px 0 0;
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: end;
}

.section-sustainability-bg-2 {
    height:100%;
    background-color: #f0f0f0;
    background-size: cover;
    /*background-position: calc(50% - 350px) center;*/
    position: relative;
    /*background-attachment: fixed;
    background-repeat: no-repeat;*/
}

.section-sustainability-bg-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.4);
    z-index: 0; */
}
.section-sustainability-bg-2-down {
    height:100%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: calc(50% - 350px) center;
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.section-sustainability-bg-2-down::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0; 
}

/* ------- Notice Section ------- */
.projects .projects-slider8 button{
    position: absolute;
    z-index: 2;
    top: 45%;
    /* color: #2C3236; */
    opacity: .8;
    background-color: #78787D;
    border-radius: 50%;
    border: unset;
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.projects .carousel-control{
    opacity: .8;
    background-color: #78787D;
    border-radius: 50%;
    border: unset;
    width: 45px;
    height: 45px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects a.carousel-item:hover{
    color: unset !important;
}

.projects .projects-slider8 .arrow-next{
    right: -20px;
}
.projects .projects-slider8 .arrow-prev{
    left: -20px;
}

.project-card{
    background: transparent;
    opacity: 1;
}
.notice-title{
    box-shadow: 10px 10px 25px 0px rgba(220, 220, 220, 0.5);
    border-radius: 0px 0px 48px 0px;
    background: #fff;
    padding: 32px 24px 18px;
}

.notice-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 540px;
    overflow-y: scroll;
}

.notice-list li a{
    display: flex;
    gap: 16px;
    background-color: white;
    padding: 12px;
    border-radius: 0px 0px 28px 0px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}
.notice-list li{
    padding-right: 8px;
}
.notice-list li a img{
    max-height: 70px;
    max-width: 70px;
    object-fit: cover;
}

.notice-list li a h6{
    flex: 1;
}
.notice-list li a p{
    width: 50px;
}

/* carousel */
.carousel {
    --carousel-bg: #77b25c;
    --carousel-clr: #000000;
    position: relative;
    display: grid;
    gap: 1rem;
    justify-items: center;
    padding-bottom: 1rem;
}

.carousel .new-card-title{
    padding: 32px 24px 18px;
}
.carousel-content-container {
    display: grid;
    width: 100%;
    height: 100%;

    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 48px 0px;
    border-bottom: 8px solid var(--color-primary-red);
    background-color: white;
}
  .carousel-content-wrapper {
    display: flex;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
  }
  .carousel-content {
    min-width: 100%;
    transition: translate 500ms ease;
  }
  .carousel-content[data-state=active] {
    translate: calc(-100% * var(--carousel-index)) 0;
  }
  .carousel-content[data-state=before-right-enter] {
    translate: calc(100% + -100% * var(--carousel-index)) 0;
    transition: none;
  }
  .carousel-content[data-state=before-left-enter] {
    translate: calc(-100% + -100% * var(--carousel-index)) 0;
    transition: none;
  }
  .carousel-content[data-state=leave-left] {
    translate: calc(-100% + -100% * var(--carousel-index)) 0;
  }
  .carousel-content[data-state=leave-right] {
    translate: calc(100% + -100% * var(--carousel-index)) 0;
  }
  .carousel-buttons {
    display: flex;
    gap: 1rem;
    padding: 10px 24px 16px;
  }
  .carousel-button {
    padding: 0;
    border: 0;
    border: 1px solid var(--color-grey-40);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
  }
  .carousel-button[data-active=true] {
    background: var(--color-grey-40);
    scale: 1.5;
  }
  .carousel-button:hover {
    scale: 1.5;
  }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    background: transparent;
    padding: 2rem;
    aspect-ratio: 1;
    border: 0;
    padding: 0;
    color: var(--carousel-clr);
    font-size: clamp(2rem, 6vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }
  .carousel-arrow.arrow-left {
    left: 0;
  }
  .carousel-arrow.arrow-right {
    right: 0;
  }
  
.carousel .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* padding-block: 1.5rem; */
    gap: 1rem;
    /* border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem -0.125rem rgba(0, 0, 0, 0.3);
    color: var(--carousel-clr); */
  }
  .content img {
    width: clamp(100px, 10vw, 300px);
    aspect-ratio: 1;
    border-radius: 1rem;
  }
  .content h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
  }
  .content p {
    max-width: 40ch;
    font-size: clamp(0.75rem, 3vw, 1rem);
    line-height: 1.35;
  }

@media (max-width: 600px) {
    
}

@media (max-width: 768px) {

    main {
        margin-top: -200px;
    }

    #banner {
        height: 300px;
    }

    .swiper img {
        max-width: 100%;
        height: auto;
        width: auto\9; /* ie8 */
        vertical-align: top;
    }

    .swiper-slide {
        display: block !important;
    }

    /* .menu .dropdown {
        display: none;
    } */
    .navbar-items{
        display: flex;
        justify-content: center;
    }

    .banner-container{
        overflow: hidden;
        height: 450px;
    }

    .banner-container .container{
        padding: 0;
        vertical-align: top;
    }

    .banner-container-menu{
        width: 100%;
        background: rgba(86, 87, 89, .4);
        display: flex;
    }

    .banner-container-menu_image{
        height: 40%;
        margin: auto;
    }

    .banner-container-menu_items ul li:hover {
        background: transparent !important;
    }

    .banner-container-menu ul li {
        position: static; /* Cambia a posición estática */
    }

    .banner-container-menu_image a img{
        width: 280px;
    }

    .sub-menu {
        position: static; /* Cambia a posición estática */
        display: none !important;
    }

    .menu-link .chevron-icons .bi-chevron-up{
        display: none;
    }

    .menu-link.show .sub-menu {
        display: block !important;
        background-color: transparent;
        transition: top 0.3s ease-in-out;
    }

    .menu-link.show .chevron-icons .bi-chevron-up{
        display: block;
    }

    .menu-link.show .chevron-icons .bi-chevron-down{
        display: none;
    }

    .banner-container-menu_items .menu-link{
        display: block !important;
    }


    /* Bussiness */
    .businesses{
        text-align: center;
    }

    .businesses h2{
        text-align: center;
    }

    .businesses-buttons{
        position: relative;
        bottom: unset;
    }

    .businesses-buttons-container{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    /* News */
    .new-card img{
        height: 260px !important;
    }

    .section-sustainability-2{
        height: fit-content;
    }
    .section-sustainability-content-2{
        text-align: center;
        align-items: center;
        padding: 100px 0px;
    }
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}