
.fold1-background {
    position: relative;
    height: 750px;
    overflow: hidden;
}

.fold1-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .5s ease;
    opacity: 0;
}

.fold1-background img.active {
    opacity: 1;
}

.fold1-background::before {
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #11111177, transparent);
    z-index: 3;
}

.fold1-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 130%;
    background: url("/wp-content/uploads/2024/05/advanced-icon-fold1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    opacity: 0.7;
}


/*CONTENT FOLD J*/
.content-fold-j-wrapper {
    display: flex;
    align-items: center;
    padding: 110px 0px;
    gap: 60px;
    flex-direction: row;
}

.content-fold-j-img img {
    height: 100%;
    object-fit: cover;
}

.content-fold-j-img {
    flex: 0 0 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.content-fold-j-img img {
    height: 100%;
    width: 100% !important;
    object-fit: cover;
}


.content-fold-j-content {
    display: flex;
    flex-direction: column;
}

.content-fold-j-content p{
    color: var(--color0);
}

.content-fold-j {
    background: url(/wp-content/uploads/2024/04/advancedaluminium-whitebackground.jpg);
    position: relative;
    z-index: 3;
    background-size: cover;
    background-position: center;
}

.content-fold-j .title{
    color: var(--green);
}

.flipped .content-fold-j-wrapper{
    flex-direction: row-reverse;
}

.content-fold-j-content ul {
    list-style: none;
    padding: 0px;
    margin: 0px 0px;
}

.content-fold-j-content ul li {
    position: relative;
    left: 20px;
    color: var(--color0);
}

.content-fold-j-content ul li::before{
    content: "\f058";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: -20px;
    color: var(--color1);
    font-size: 12px;
    font-family: fontawesome;
}

.rounded-fold .content-fold-j-img{
    border-radius: 30px;
    overflow: hidden;
}

.circle-fold .content-fold-j-img img{
    clip-path: circle(50%);
    overflow: hidden;
    height: auto;
    width: auto;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-title img {
    width: 100px;
    height: 100px;
}

.logo-title p {
    margin: 0;
}


.services-fold {
    max-width: calc(100% - 100px);
    margin: 20px auto;
    background: #4c4b4bee;
    border-radius: 40px;
}

.services-fold .row-container{
    max-width: 100%;
}

.services-fold-inner {padding: 20px;display: flex;align-items: center;gap: 100px;position: relative;overflow: hidden;}

.services-fold-tabs {
    display: flex;
    margin: 0px auto;
    background: #11111155;
    border-radius: 20px;
    margin-bottom: 40px;
}

.services-fold-content {
    padding: 40px;
    color: white;
    position: relative;
    z-index: 6;
}

.services-fold-image-slider.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.services-fold-image-slider {
    opacity: 0;
    pointer-events: none;
    transition: all .5s ease;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.services-fold-image-slider-item.active {
    display: block;
    height: 100%;
    opacity: 1;
}

.services-fold-image-slider-item {
    display: block;
    position: relative;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .5s ease;
    width: 100%;
    height: 100%;
}

.services-fold-image-tabs {
    position: absolute;
    display: flex;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: calc(100% - 60px);
    background: #11111188;
    border-radius: 10px;
}

.services-fold-image {
    flex: 0 0 920px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    min-height: 700px;
    display: flex;
    max-width: 50%;
}

.services-fold-image-slider-item-content {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    text-transform: uppercase;
    z-index: 3;
}

.services-fold-image-tabs p {
    color: white;
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
}

.services-fold-image-tabs-item {
    padding: 5px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    transition: all .5s ease;
    border-radius: 10px;
    cursor: pointer;
}

.services-fold-image-tabs-item.active, .services-fold-image-tabs-item:hover {
    background: var(--green);
    transform: scale(1.1);
}

.services-fold-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.services-fold-image-slider-item-image {
    height: 100%;
    position: relative;
    border-radius: 20px;
}

.services-fold-image-slider-item-content a {
    color: var(--green);
    text-decoration: underline !important;
    font-weight: 600;
}

.services-fold-image-slider-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #11111155;
}

.services-fold-image-slider-item-content p {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.services-fold-tabs-item {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 20px;
    transition: all .5s ease;
    cursor: pointer;
    opacity: .5;
}

.services-fold-tabs-item p {
    margin: 0;
}

.services-fold-tabs-item.active, .services-fold-tabs-item:hover {
    background: #333;
    opacity: 1;
}

.services-fold-content-inner .title {
    color: var(--green);
}

.services-fold-inner::before {
    content: '';
    width: 50%;
    position: absolute;
    top: -100px;
    left: 0;
    background: url(/wp-content/uploads/2024/04/advanced-aluminium-iconwhite-small.png);
    width: 50%;
    height: 120%;
    background-size: cover;
    transform: rotate(35deg);
    z-index: 0;
    opacity: 0.1;
    mask-image: linear-gradient(to bottom,black 0%,transparent 100%);
}

/**CASE STUDIES**/
.our-work-fold {
    padding: 110px 0px;
}

.our-work-title {
    text-align: center;
    position: relative;
}

.our-work-buttons {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.our-work-buttons a {
    margin: 0;
}

.our-work-buttons .readmore {
    width: 120px;
}

.our-work-buttons a:not(.readmore) {
    border-radius: 10px;
    width: 40px;
    background: var(--grey);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.our-work-title p:not([class]) {
    max-width: 500px;
    margin: 0px auto 20px;
}

.our-work-title .title {
    color: var(--green);
}

.case-study-splide-item {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.case-study-splide-item > div {
    display: flex;
    gap:  20px;
    align-items: stretch;
}

.case-study-splide-item-child {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-height: 400px;
}

.case-study-splide-item-child-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    background: linear-gradient(0deg, #111111aa, transparent);
    color: white;
    display: flex;
    justify-content: space-between;
}

.case-study-splide-item-child:hover img {
    transform: scale(1.1);
}

.case-study-splide-item-child-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: -1;
    transition: all .5s ease;
}

.case-study-splide-item-child-img {
    height: 100%;
}

.case-study-splide-item-top > div:first-child {
    flex: 1 0 50%;
}

.case-study-splide-item-top > div {
    flex: 0 0 44%;
}

.case-study-splide-item-bottom > div:first-child {
    flex: 0 0 44%;
}

.case-study-splide-item-bottom > div {
    flex: 1 0 50%;
}

div#case-studies-slider {
    margin-top: 70px;
}

.case-study-splide-item-child-content p {
    margin: 0;
    color: var(--green);
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 500;
}

div#case-studies-slider-track {
    overflow: visible;
}

#case-studies-slider li {
    padding: 0px 20px;
    opacity: 0.2;
}

#case-studies-slider li.is-visible {
    opacity: 1;
}

.case-study-splide-item-child-content i {
    color: var(--green);
    font-size: 32px;
    line-height: 32px;
}

.case-study-splide-item-child-content-left p:first-child {
    color: white;
}

.case-study-splide-item-child-content-right {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*FLIPPED SERVICE**/
.flipped .services-fold-inner {
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 0;
    overflow: visible;
}

.flipped .services-fold-inner::before {
    left: 60%;
    transform: scaleX(-1) rotate(35deg);
}

.services-fold-image.icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    min-height: unset;
    padding: 100px 0px;
}

.services-icon-item {
    flex: 1 1 47%;
    padding: 20px;
    box-sizing: border-box;
    transition: all .5s ease;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
    background: var(--grey);
}

.services-icon-item:hover {
    background: #373737;
}

.services-icon-item-content-button a {
    color: var(--green);
    text-transform: uppercase;
    text-decoration: underline !important;
    font-weight: 500;
}

.services-icon-item-content p {
    color: white;
}

.services-icon-item-content-title p {
    text-transform: uppercase;
    font-weight: 500;
    color: var(--green);
    font-size: 18px;
    margin-bottom: 10px;
}

.services-fold.flipped .row-container {
    max-width: 1580px;
}

.flipped .services-fold-content {
    padding: 70px 0px;
}

/**NEWS**/
.news-fold {
    padding: 110px 0px;
     background: url(/wp-content/uploads/2024/04/advancedaluminium-whitebackground.jpg);
    position: relative;
    z-index: 3;
    background-size: cover;
    background-position: center;
}

.news-fold-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: solid 2px var(--grey);
}

.news-buttons {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.news-buttons a {
    margin: 0;
}

.news-buttons .readmore {
    width: 120px;
}

.news-buttons a:not(.readmore) {
    border-radius: 10px;
    width: 40px;
    background: var(--grey);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.news-fold-title p {
    margin: 0;
}

.news-fold-title .title {
    color: var(--green);
}

.news-page {
    display: flex;
}

.news-page-left {
    display: flex;
    flex: 0 0 50%;
}

.news-page-right {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 50%;
    padding-left: 60px;
    box-sizing: border-box;
    gap: 30px;
}

.news-page-right > div {
    flex: 1 0 45%;
}

.news-page-item-img {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.news-page-title .title {
    color: var(--green);
}

.news-page-right .subtitle {
    font-size: 14px;
    line-height: 18px;
}

.news-page-right .title {
    font-size: 20px;
    line-height: 24px;
}

.news-page-item-img img {
    width: 100%;
    height: 100%;
}

.news-page-right p {
    font-size: 14px;
    line-height: 20px;
}

.news-page-right .news-page-content p:last-child {
    margin: 0;
}

.news-page-left .news-page-item {
    display: flex;
    flex-direction: column;
}

.news-page-left .news-page-item .news-page-item-img {
    flex-grow: 1;
}

.news-page-left .news-page-content p:last-child{
    margin: 0;
}