/* FIRST SECTION */
#our-work-section h3 {
	color: white;
}

#services-section li {
	margin-left: 25px;
    list-style-position: outside;
}

.break-line-md {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .break-line-md {
    display: initial;
  }
}

.service-sec1 {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
    width: auto;
    height: 100vh;
    gap: 4rem;
    position: relative;
    background-color: black;
}

.service-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 0 4rem 4rem;
    filter: drop-shadow(0 0 4px black);
    gap: 2rem;
    z-index: 5;
    p {
        font-size: 25px;
        font-weight: 200;
        color: var(--orange);
    }
    h3 {
        font-weight: 200;
        span {
            font-style: italic;
        }
    }
}

.service-bg1 {
    position: absolute;
    width: 100%;
    outline: 2px dotted white;
    mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0)); 
    z-index: 1;
    video {
        object-fit: cover;
        height: 100vh !important;
        width: 100%;
    }
    img{
        object-fit: cover;
        opacity: 70%;
        height: 100vh;
        width: 100vw;
    }
}

/* SECOND SECTION */
.service-sec2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-image: url("../images/bg2.png");
    background-size: cover;
    padding: 2rem 1rem;
    gap: 1rem;
}

.real-estate, .family-office {
    background-color: white;
    max-width: 560px;

}

.top-sec {
    position: relative;
    background-color: black;
    video {
        width: 600px;
        height: auto;
        mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,0)); 
        z-index: 1;
    }
    img {
        width: 600px;
        height: auto;
        mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,0)); 
        z-index: 1;
    }
    h4 {
        font-weight: 300;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0; 
        right: 0; 
        margin: 0 0 2rem;
        z-index: 2;
    }
}

.service-list{
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.item-header {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    p {
        color: var(--blue);
        margin: 0;
        transition: all 0.2s ease;
    }
}

.item-header:hover {
    p {
        color: var(--orange);
        font-weight: bold;
    }
}

.item-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 1.6rem;
    height: 1.6rem;
    position: relative;
    padding: 0;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.15rem;
    background-color: var(--orange);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.toggle-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.15rem;
    height: 1.6rem;
    background-color: var(--orange);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.item-toggle.active .toggle-icon::before {
    transform: translate(-50%, -50%) scaleY(0);
}

.list-item ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    color: var(--blue);
    margin-top: 0.7rem;
    margin-left: 2rem;
}

/* THIRD SECTION  */
.service-sec3 {
    display: flex;
    flex-direction: row;
    background-image: url('../images/texture.png');
    h4 {
        font-weight: 500;
        background-color: var(--orange);
        padding: 0.5rem 1.9rem;
        max-width: fit-content;
    }
}

/* .left-sec {
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 2rem 5rem;
    gap: 1rem;
    flex: 1;
} */

.top-layer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.top-layer .text-box1 {
    flex: 1;
}

.text-box1 {
    padding: 1rem;
    outline: 1px solid white;
    h4 {
        background-color: transparent;
        font-weight: 200;
        padding: 0;
    }
    p {
        font-weight: 200;
        color: white;
        margin: 0.5rem 0;
    }
}

.bot-layer {
    display: flex;
    flex-direction: row;
}

.bot-layer p {
    flex: 1;
}

.text-box2 {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    h4 {
        font-weight: 300;
        color: var(--blue);
        background-color: transparent;
        padding: 0;
    }
    p {
        text-align: center;
        padding: 1rem;
        margin: 0.5rem 0;
    }
    span {
        font-weight: bold;
    }
}

.type1 {
    height: 100%;
    margin: 0;
}

.type2 {
    width: 100%;
    margin: 0;
}

.right-sec {
    display: flex;
    flex-direction: column;
    justify-content: end;
    background-image: url('../images/img3.png');
    background-repeat: no-repeat;
    background-size: cover;
    gap: 2rem;
    flex: 1;
}

.text-box3 {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin: 0 2rem 2rem;
    gap: 1rem;
    background-color: white;
    p {
        font-weight: 300;
        font-style: italic;
        color: black;
        text-align: center;
        background-color: transparent;
        line-height: 1.2;
    }
    h5 {
        font-size: 20px;
        font-weight: 300;
        text-align: center;
        color: var(--orange);
        margin: 0;
    }
    span {
        font-weight: bold;
    }
}

@media (max-width: 1280px) {
    .top-sec {
        video {
            width: 48vw;
        }
        img {
            width: 48vw;
        }
    }
    .service-list {
        padding: 1rem;
    }
    ul {
        margin-left: 1rem;
    }
}

#service-img-box .elementor-image-box-wrapper p:empty{
		display: none !important;
		margin: 0 !important;
	}

@media (max-width: 1024px) {
    .top-layer, .bot-layer {
        flex-direction: column;
    }
	
	#service-img-box .elementor-image-box-wrapper {
		display: flex !important;
	}
}

@media (max-width: 940px) {
    .service-sec3 {
        h5 {
            font-size: 20px;
        }
    }
    .text-box3 {
        margin: 0 2rem 2rem;
        h4 {
            padding: 0;
        }
    }
}



@media (max-width: 764px) {
    .service-sec3 {
        flex-direction: column;
    }
    .left-sec {
        flex: none;
    }
    .right-sec {
        height: 100vh;
        flex: none;
    }
    .service-text {
        padding: 2rem;
        p {
            font-size: 18px;
        }
    }
    ul {
        margin-left: 0;
    }
}

@media (max-width: 546px) {
    .left-sec {
        padding: 1rem;
    }
    .text-box3 {
        margin: 0 1rem 2rem;
    }
    .service-text {
        padding: 2rem 1rem;
        p {
            font-size: 16px;
        }
        br {
            display: none;
        }
    }
    .real-estate, .family-office {
        width: auto;
    }
    .service-sec2 {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .top-sec {
        video {
            width: 100%;height: auto;
        }
        img {
            width: 100%;height: auto;
        }
        h4 {
            margin: 0 0 1rem;
        }
    }
    .service-sec3 {
        h5 {
            font-size: 18px;
        }
        h4 {
            align-self: center;
        }
    }
    .text-box2 {
        h4 {
            align-self: flex-start;
        }
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.left-sec {
		padding: 2rem 2rem 2rem 2rem;
	}
	 .service-text {
        padding: 0 2rem 4rem;
    }
}