
/* =========================================================
   IMME 2026 - LOGO STRIP
   Desktop + iPhone + iPad Mini
   Desktop design preserved
========================================================= */

/* Main Header */
#headerban.ogtp1-header {
    width: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-sizing: border-box;
}

/* Logo Container - Desktop */
.ogtp1-logo-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;

    gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 10px;

    background: #ffffff !important;
    box-sizing: border-box;
}

/* Individual Logo Wrapper - Desktop */
.ogtp1-logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    flex: 0 1 auto;
    min-width: 0;
    height: 90px;
    margin-bottom: 10px;

    text-align: center;
    box-sizing: border-box;
}

/* Logo Labels - Desktop */
.ogtp1-logo-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);

    min-height: 20px;
    margin: 0;

    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    color: #333333;

    white-space: nowrap;
}

/* Logo Images - Desktop */
.ogtp1-logo-wrapper img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 70px;

    object-fit: contain;
    margin: 20px auto 0;
    box-sizing: border-box;
}

/* Logo Links */
.ogtp1-logo-wrapper a {
    display: inline-block;
    max-width: 100%;
}

/* =========================================================
   TABLET VIEW
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .ogtp1-logo-container {
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 10px;
        padding: 25px 15px 10px;
    }

    .ogtp1-logo-wrapper {
        flex: 0 1 auto;
    }

    .ogtp1-logo-wrapper img {
        max-width: 145px;
    }

    .ogtp1-logo-label {
        font-size: 12px;
    }

    /* Preserve original logo colours */
    #headerban .ogtp1-logo-wrapper img[src*="cii_blue.png"] {
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;
        mix-blend-mode: normal !important;
    }
}

/* =========================================================
   MOBILE VIEW - iPHONE
   All logos in one horizontal line
========================================================= */

@media screen and (max-width: 767px) {

    #headerban.ogtp1-header {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: #ffffff !important;
        box-sizing: border-box;
    }

    /* Show logo container on mobile */
    #headerban.ogtp1-header .hide-on-mobile {
        display: flex !important;
    }

    .ogtp1-logo-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;

        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 82px;

        gap: 8px;
        margin: 0;
        padding: 22px 6px 10px;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;

        scrollbar-width: none;
        -ms-overflow-style: none;

        background: #ffffff !important;
        box-sizing: border-box;
    }

    /* Hide scrollbar in Safari and Chrome */
    .ogtp1-logo-container::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Each logo takes equal available space */
    .ogtp1-logo-wrapper {
        position: relative;
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        width: 0;
        min-width: 0;
        max-width: none;
        height: 62px;
        margin: 0;
        padding: 0;

        text-align: center;
        box-sizing: border-box;
    }

    /* Mobile logo labels */
    .ogtp1-logo-label {
        position: static;
        display: block;

        width: 100%;
        min-height: 15px;
        margin: 0 0 5px;
        padding: 0;

        transform: none;

        font-family: -apple-system, BlinkMacSystemFont,
                     "Helvetica Neue", Arial, sans-serif;
        font-size: 8px;
        line-height: 12px;
        font-weight: 600;
        color: #333333;
        text-align: center;
        white-space: nowrap;
    }

    /* Mobile logo images */
    .ogtp1-logo-wrapper img {
        display: block;
        flex: 0 1 auto;

        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 34px;

        margin: 0 auto;
        padding: 0 !important;

        object-fit: contain;
        box-sizing: border-box;
    }

    /* Logo links */
    .ogtp1-logo-wrapper a {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        justify-content: center;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Preserve original CII logo colours on mobile */
    #headerban .ogtp1-logo-wrapper img[src*="cii_blue.png"] {
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;
        mix-blend-mode: normal !important;
    }
}

/* =========================================================
   SMALL iPHONES
========================================================= */

@media screen and (max-width: 380px) {

    .ogtp1-logo-container {
        gap: 5px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .ogtp1-logo-wrapper {
        flex: 1 1 0;
        min-width: 0;
    }

    .ogtp1-logo-label {
        font-size: 7px;
        line-height: 11px;
    }

    .ogtp1-logo-wrapper img {
        max-width: 100%;
        max-height: 30px;
    }
}
