/* Home Page Styles */

/* Slider Styles */
.slider {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    height: 40vw;
    margin-top: 140px; /* Fallback margin-top */
    margin-top: var(--header-height, 140px); /* Dynamic margin-top */
    z-index: 1;
}

.slides {
    position: relative;
}

.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slides img.active {
    opacity: 1;
}

.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* Main Content Layout Styles */
.bb11 {
    display: flex;
    height: 100vh;
    margin: 2.8rem 2.8rem 0px;
    min-height: 52rem;
    grid-column-gap: 3rem;
}

.bb11 .left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2.8rem;
}

.bb11 .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb11 .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 2.8rem;
}

.bb11 .right .top,
.bb11 .right .bottom {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bb11 .right img {
    width: 100%;
    height: 100%;
}

/* Image Grid Styles */
.b111 {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 2.8rem;
}

.image-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.image-row div {
    flex: 1;
    text-align: center;
}

.image-row img {
    max-width: 100%;
    height: auto;
}

/* Body Styles */
.home-body {
    background-color: #ffffff;
    margin: 0px;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .slider { 
        height: auto; 
    }
    
    .bb11 {
        flex-direction: column;
        height: auto;
        min-height: unset;
    }
    
    .bb11 .left,
    .bb11 .right,
    .bb11 .right .top,
    .bb11 .right .bottom {
        height: auto;
    }
    
    .b111 {
        margin: 1.2rem;
    }
    
    .image-row {
        flex-direction: column;
    }
}

@media screen and (max-width: 575px) {
    .slider { 
        height: auto; 
    }
}
