body {
    background: #eee;
}

#header {
    height: 6rem;
    background: #fff;
}

#footer {
    background: #0171b8;
    color: #fff;
}

.logo-footer-space {
    display: none;
}

.logo-header {
    height: 6.5rem;
}

.menu-link {
    padding: 1.8rem 0;
}

.header-logo {
    max-width: 100%;
    max-height: 100%;
}

.logospace .header-logo {
    max-width: 100%;
    max-height: 70px;
}

.menuspace .header-logo {
    max-width: 42px;
    max-height: 42px;
}

.pure-button {
    background-color: #0171b8;
    color: #fff;
}

.pure-button-red {
    background-color: #0171b8;
    color: #fff;
}

#menu {
    background-color: #0171b8;
}

#menu .pure-menu ul, #menu .pure-menu .menu-item-divided {
    border-top: 1px solid #0171b8;
}

#menu .pure-menu-selected, #menu .pure-menu-heading {
    background: #eee;
    color: #000;
}

div.c-preferredidp {
    border: 1px dashed #ccc;
}

/* 1. Hide the star */
.idp .fa-star, .idp .favourite {
    display: none !important;
}

/* 2. THE PARENT: Force horizontal layout */
form[action*="disco"] {
    display: flex !important;
    flex-flow: row wrap !important; /* Row by default, wraps when out of space */
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 1000px !important; /* Keeps the row from getting too wide on huge monitors */
    margin: 0 auto !important;
}

/* 3. THE CARD: Fixed size, floating side-by-side */
.idp.c-pure-g {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Dimensions */
    width: 185px !important;
    height: 140px !important;
    flex: 0 0 185px !important; /* Prevents the cards from shrinking or growing */
    
    background: #ffffff !important;
    border: 2px solid #0171b8 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    transition: all 0.2s ease !important;
}

/* 4. THE GHOST BUTTON: Massive and Invisible */
.idp.c-pure-g .pure-button {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 10 !important;
    cursor: pointer !important;
}

/* 5. THE CONTENT: Centered Text & Icon */

.idp.c-pure-g .idpname {
    color: #0171b8 !important;
    font-weight: bold !important;
    font-size: 1.3rem !important;
    z-index: 5;
    pointer-events: none;
}

/* 6. Hover effect */
.idp.c-pure-g:hover {
    background-color: #f0f7ff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Center the text within the wrap container */
.wrap h2, 
.wrap p {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Optional: Style the headline to match your brand */
.wrap h2 {
    margin-top: 30px !important;
    margin-bottom: 10px !important;
    color: #0171b8 !important; /* Matches your button/border color */
}

/* Optional: Style the subtext (the <p> tag) */
.wrap p {
    margin-bottom: 30px !important;
    color: #666 !important;
    font-size: 1.1rem !important;
}

.wrap {
    max-width: 1200px !important; /* Or whatever your site width is */
    margin: 0 auto !important;    /* Centers the whole wrap block on the page */
}

/* Universal Card Icon Rule */
/* Container for the logo image */
.idp-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;      /* Matches the height we used before */
    margin-bottom: 15px;
}

/* The actual image styling */
.idp-logo-img {
    max-width: 140px;  /* Keeps logos from being too wide */
    max-height: 90px;  /* Keeps logos from being too tall */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures logo isn't stretched */
}

/* Only apply hover effects to devices that actually have a mouse/pointer */
@media (hover: hover) {
    .idp.c-pure-g:hover {
        background-color: #f0f7ff !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }
}

/* Optional: Active state for mobile (provides a quick "blink" when tapped) */
@media (hover: none) {
    .idp.c-pure-g:active {
        background-color: #e0efff !important;
        transform: scale(0.98) !important; /* Slight shrink to show it was pressed */
    }
}