/* NextGenAIBD targeted responsive fixes v1.0
 * Scope: shared frontend brand images and homepage Services heading.
 * No menu behavior, admin upload URLs, CRUD features, or animations changed.
 */

/* Wider, readable brand lockup without stretching the uploaded image. */
.header-section .header-wrapper .logo-menu {
    flex: 0 0 auto;
    width: 246px;
    max-width: 246px;
    min-width: 0;
}

.header-section .header-wrapper .logo-menu .logo {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-section .header-wrapper .logo-menu .logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

/* A little less width at laptop sizes keeps all existing navigation items visible. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-section .header-wrapper .logo-menu {
        width: 158px;
        max-width: 158px;
    }
    .header-section .header-wrapper .logo-menu .logo img {
        height: 58px;
    }
}

@media (max-width: 991.98px) {
    .header-section .header-wrapper .logo-menu {
        width: min(220px, calc(100% - 48px));
        max-width: 220px;
    }
    .header-section .header-wrapper .logo-menu .logo img {
        height: 64px;
    }
}

@media (max-width: 359.98px) {
    .header-section .header-wrapper .logo-menu {
        width: min(190px, calc(100% - 48px));
        max-width: 190px;
    }
    .header-section .header-wrapper .logo-menu .logo img {
        height: 58px;
    }
}

/* Footer logo: larger natural aspect ratio, constrained to its Bootstrap column. */
.footer-section.sda-footer-dark .footer-head .footer-logo1 {
    display: inline-flex;
    align-items: center;
    width: min(100%, 290px);
    max-width: 100%;
}

.footer-section.sda-footer-dark .footer-head .footer-logo1 img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .footer-section.sda-footer-dark .footer-head .footer-logo1 {
        width: min(100%, 270px);
    }
}

/* Services heading: column flex-items must not use their intrinsic text width.
 * The original title used width:max-content and the intro expanded past the
 * 390px viewport while .sda-services clipped the extra text.
 */
@media (max-width: 991.98px) {
    .sda-services .sda-services__heading-block {
        flex: 0 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .sda-services .sda-services__title,
    .sda-services .sda-services__intro {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .sda-services .sda-services__view-all {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .sda-services .sda-services__title {
        font-size: clamp(30px, 8vw, 42px) !important;
        line-height: 1.16 !important;
    }
    .sda-services .sda-services__intro {
        font-size: clamp(15.5px, 4vw, 17px) !important;
        line-height: 1.72 !important;
        text-align: left;
    }
}
