/* Custom styles for the Komos Solutions home page main content */

/* Home slider — flex layout that replaces absolute positioning in main.css */
#home-slider {
    padding: 40px 0 60px;
}

#home-slider .main-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: auto;
    min-height: 0;
    padding: 20px 0;
}

#home-slider .slide-text {
    flex: 1 1 48%;
    max-width: 480px;
    padding-right: 0;
    position: relative;
    top: auto;
    left: auto;
    width: auto;
}

#home-slider .app-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#home-slider .app-links .btn-common {
    display: block;
    width: 100%;
    margin-top: 0;
    white-space: normal;
    text-align: left;
    line-height: 1.45;
    padding: 14px 20px;
    box-sizing: border-box;
}

#home-slider .slider-image {
    flex: 1 1 48%;
    text-align: right;
}

#home-slider .slider-image img,
#home-slider .slider-map {
    position: static;
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    top: auto;
    right: auto;
}

/* Responsive: stack links above the map */
@media (max-width: 768px) {
    #home-slider {
        padding: 24px 0 40px;
    }

    #home-slider .main-slider {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 24px;
    }

    #home-slider .slide-text {
        max-width: none;
        padding-right: 0;
        text-align: left;
    }

    #home-slider .slider-image {
        flex: none;
        text-align: center;
        margin-top: 0;
    }
}
