
/* Section 8 Styles */
.section-8 {
    padding: 60px 0;
    background-color: #fff; /* White background to match previous sections */
    position: relative;
}

.section-8-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section-8-grey-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(247, 248, 252); /* Light gray background */
    z-index: 0;
}

.section-8-about-wrapper {
    position: relative;
    width: 1200px;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px; /* Space between text and images */
}

.section-8-about-left{
    width: 500px;

}
.section-8-about-right{
    width: 500px;
}
.section-8-subtitle {
    display: block;
    margin-top: -30px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: color rgb(8, 28, 58);
}

.section-8-about-intro  {
    font-size: 34px;
    font-weight: 600;
    color: rgb(8, 28, 58);
    line-height: 44.2px;
    margin: 0;
}

.section-8-stacked-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-8-stacked-paragraphs .section-8-body-display {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.section-8-about-images-wrapper {
    position: relative;
    z-index: 1;
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Center relative to viewport */
    margin-right: calc(-50vw + 50%); /* Center relative to viewport */
    overflow-x: auto; /* Allow horizontal scrolling if images overflow */
}

.section-8-background-load-top,
.section-8-background-load-bottom {
    display: block;
    transform: translate3d(0px, 0%, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}

.section-8-about-images {
    display: flex;
    flex-wrap: nowrap; /* Keep images in a single line */
    gap: 0px; /* No gap between lightboxes */
    overflow-x: auto; /* Allow horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
}

.section-8-about-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    opacity: 0; /* Start hidden for animation */
    transform: translateX(-50px); /* Start off-screen for animation */
    flex: 0 0 522px; /* Fixed width for each image item */
}

/* Fade-in animation for images */
@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-8-about-image-item.animate {
    animation: fadeInImage 0.5s ease forwards;
}

/* Staggered animation delays for images */
.section-8-about-image-item:nth-child(1).animate { animation-delay: 0.2s; }
.section-8-about-image-item:nth-child(2).animate { animation-delay: 0.4s; }
.section-8-about-image-item:nth-child(3).animate { animation-delay: 0.6s; }
.section-8-about-image-item:nth-child(4).animate { animation-delay: 0.8s; }
.section-8-about-image-item:nth-child(5).animate { animation-delay: 1.0s; }
.section-8-about-image-item:nth-child(6).animate { animation-delay: 1.2s; }

.section-8-team-image-lightbox {
    position: relative;
    width: 522px; /* Fixed width */
    height: 522px; /* Fixed height */
}

.section-8-team-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
}


.section-8-team-background-image.one {
    background-image: url('../image/607b6af17c67770ae3de1541_Family001.jpeg');
}
.section-8-team-background-image.two {
    background-image: url('../image/607b6c801c6cc62928080d5c_Family003.jpeg');
}
.section-8-team-background-image.three {
    background-image: url('../image/607b6ccb8c09f127ee426222_Family004.jpeg');
}
.section-8-team-background-image.four {
    background-image: url('../image/607b6d1847737e3cad7ace73_Family005.jpeg');
}
.section-8-team-background-image.five {
    background-image: url('../image/607dcd6f4c797d614a152a89_Family0012.jpeg');
}
.section-8-team-background-image.six {
    background-image: url('../image/607b6e34994877bde5d7d81b_Family007.jpeg');
}

.section-8-overlay-extra-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 19, 38, 0.05);
}

.section-8-team-image-location {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-8-about-image-item:hover .section-8-team-image-location {
    opacity: 1;
}

.section-8-team-location-icon {
    transform: translate3d(0px, 12px, 0px) scale3d(0.8, 0.8, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-8-about-image-item:hover .section-8-team-location-icon {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);
    opacity: 1;
}

.section-8-team-image-location .section-8-subtitle {
    color: #fff;
    transform: translate3d(0px, 12px, 0px) scale3d(0.8, 0.8, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-8-about-image-item:hover .section-8-team-image-location .section-8-subtitle {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);
    opacity: 1;
}
