/* Scoped styles for about.html only */

/* Align content vertically */
.about2 .row {
    align-items: center;
}

/* Make sure images cover their column cleanly */
.about2 .about2-img .main-img img,
.about2 .about2-img .main-img .img-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Adjust column widths only on medium+ screens and only inside .about2 */
@media (min-width: 768px) {
    /* Keep the existing text/image balance but increase image height to make it appear larger */
    .about2 .col-md-6 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 40%;
        flex: 0 0 40%;
        max-width: 40%;
        width: 40%;
    }

    .about2 .col-md-5.offset-md-1 {
        margin-left: 0; /* cancel the bootstrap offset */
        -webkit-box-flex: 0;
        -ms-flex: 0 0 60%;
        flex: 0 0 60%;
        max-width: 60%;
        width: 60%;
    }

    /* Override the default .main-img height from the main stylesheet so the image appears larger */
    .about2 .about2-img .main-img {
        height: 560px !important;
    }

    /* Reduce the extra top offset so the image fills more of the visible area */
    .about2 .about2-img .main-img:nth-child(1) {
        margin-top: 30px !important;
    }
}

/* Keep default Bootstrap behavior on small screens */
@media (max-width: 767.98px) {
    .about2 .col-md-6,
    .about2 .col-md-5,
    .about2 .col-md-5.offset-md-1 {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        flex: 0 0 100%;
    }

    /* keep mobile-friendly image height */
    .about2 .about2-img .main-img {
        height: 300px !important;
    }
}

/* Scoped Team slider fixes for about page */
/* Center slides and limit their width so two are fully visible */
.team .team-slider .swiper-wrapper {
    justify-content: center; /* center slides inside wrapper */
}

.team .team-slider .swiper-slide {
    width: auto;           /* let slide content determine width */
    max-width: 360px;     /* prevent slides being too wide */
    box-sizing: border-box;
}

/* Keep team images at a controlled height (restore approximate original size) */
.team .item .wrapper .img img {
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

/* On small screens, let slides be full width */
@media (max-width: 767.98px) {
    .team .team-slider .swiper-slide {
        max-width: 100%;
    }
    .team .item .wrapper .img img {
        max-height: 180px;
        width: 100%;
        height: auto;
    }
}

.about2 .about2-img {
    display: block;
    grid-template-columns: auto;
    gap: 6px;
}

.about2 .about2-img {
    margin-bottom: 20px;
}

/* Mobile behavior: hide the two about images and stack team slides vertically */
@media (max-width: 767.98px) {
    /* Hide the about images block entirely on small screens */
    .about2 .about2-img {
        display: none !important;
    }

    /* Force the team slider to render as a stacked list (vertical) */
    .team .team-slider .swiper-wrapper {
        display: block !important;
        transform: none !important;
        transition: none !important;
    }

    .team .team-slider .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-bottom: 20px;
        display: block !important;
        opacity: 1 !important;
    }

    /* Ensure container doesn't hide overflow so stacked slides are visible */
    .team .team-slider, .team .team-slider .swiper-container {
        overflow: visible !important;
    }

    /* Move the team images up and reduce extra spacing */
    .team .item .wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .team .item .wrapper .img img {
        max-height: 180px;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}