﻿
.officeItem {
    position: relative;
    overflow: hidden;
    width: 485px;
    height: 368px;
    border-radius: 24px;
}
    .officeItem img {
        height: 100%;
        object-fit: cover;
    }

    .officeItem::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #000000 100%);
        transition: background 0.3s ease;
    }
.officesContainer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1020px;
    margin: auto;
    gap:50px;
}
.officesGalleryWrapper {
    position: relative;
}

.sliderControls {
    position: absolute;
    bottom: 10px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index:1;
}
.imageCounter {
    font-size: 22px;
    font-weight: 400;
    border-radius: 5px;
}
.progressBar {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 40px;
    position: relative;
    overflow: hidden;
}
.progressFill {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.3s ease-in-out;
}
.customNav {
    display: flex;
    gap:9px;
}
    .customNav button {
        background: transparent;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border: 2px solid #fff;
    }
.officesGallery {
   width: 485px;
   height:368px;
}
    .officesGallery img {
        width: 100%;
        border-radius: 10px;
    }
.addressTitle{
    display:flex;
    align-items:center;
    gap:30px;
    margin-left:38px;
}
.addressTitle h4{
    font-family:"MuseoSlab";
    font-size:25px;
    font-weight:600;
    margin:0;
}
.officesList {
    list-style: none;
    padding: 0;
    width: 50%;
    text-align: left;
    margin:0;
}
.officeLink {
    display: flex;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    transition: 0.3s;
    margin-bottom: 20px;
    color: #666666;
}
.listIcon {
    display: none;
    width: 4px;
    height: 40px;
    background: linear-gradient(105.66deg, #00F4FF 16.76%, #68FFED 46.39%, #9867FF 76.01%);
    border-radius:30px;
}
.officeLink.active {
    color: #FFFFFF;
    flex-direction:column;
}
.detailsMobile{
    display:none;
}
.detailsMobileItem {
    display: none;
    color: white;
    font-size:14px;
}
    .detailsMobileItem.active{
        display: block;
    }
.officeDetails {
    display: none;
    font-size: 20px;
    margin-top: 20px;
    font-weight: 400;
    margin-left: 38px;
    opacity: 0.9;
    color: #fff;
}
    .officeDetails > p {
        color: #F2F3F3;
    }
    .officeDetailsBottom {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
.callButton{
    display:none;
}
.officePhone {
    color: #FFFFFF;
}
.officeLink.active .officeDetails {
    display: block;
}
.officeLink.active .addressTitle {
    margin-left:0;
}
.officeLink.active .addressTitle h4 {
    font-size:35px;
}
.officeLink.active .listIcon {
    display: inline-block;
}

@media (max-width:992px){
    .officesContainer {
        flex-direction: column-reverse;
        align-items: center;
        gap:42px;
        position:relative;
    }
    .officesList{
        display:flex;
        gap:15px;
        width:unset;
        max-width:450px;
    }
    .officeLink{
        margin-bottom:0;
        position:unset;
    }
    .addressTitle {
        gap: 0;
        margin-left: 0;
    }

    .officeLink.active .addressTitle {
        position: relative;
    }
        .officeLink.active .addressTitle:before {
            position: absolute;
            content: "";
            width: 20px;
            height: 2px;
            background: linear-gradient(105.66deg, #00F4FF 16.76%, #68FFED 46.39%, #9867FF 76.01%);
            bottom: -12px;
        }
    .addressTitle h4 {
        font-size: 14px;
        line-height: 20px;
    }
    .officeLink.active .addressTitle h4 {
        font-size: 16px;
    }
    .officeLink.active .listIcon {
        display: none;
    }
    .officeDetails {
        display:none !important;
        position: absolute;
        bottom: 0;
        margin: 0;
        max-width: 280px;
        right: 0;
    }
    .officesGalleryWrapper {

    }
    .officesGallery {
        width: 320px;
        height: 251px;
    }
    .officeItem {
        width: 320px;
        height: 251px;
    }
    .officesRes{
        display:flex;
        align-items:center;
    }
    .detailsMobile {
        display: block;
        max-width: 280px;
        margin-left: 30px;
    }
    .sliderControls{
        left:20px;
        right:20px;
    }
    .imageCounter {
        font-size: 16px;
    }
    .progressBar {
        margin: 0 16px;
    }
    .customNav button {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 650px){
    .officesRes {
        flex-direction: column;
    }
    .detailsMobile {
        margin-left: 0;
        margin-top: 20px;
        max-width: 320px;
    }
    .officeDetailsBottom {
        flex-direction:column;
    }
    .officePhone{
        display:none;
    }
    .callButton {
        display: flex;
        justify-content:center;
        width: 100%;
    }
    .officeDetailsBottom .secondaryButton{
        width:100%;
    }
}
@media (max-width: 450px){
    .officesList {
        gap: 8px;
    }
    .officeLink.active .addressTitle h4 {
        font-size: 14px;
    }
    .addressTitle h4 {
        font-size: 12px;
    }
    .officeDetailsBottom {
        margin-top: 12px;
    }
  
}