/* UK medicine directory — scoped to country page; existing shared CTAs & FAQs are untouched */
.mbc-main .mbu-hero {
    margin-top: 32px;
}

.mbc-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .72fr);
}

.mbc-main .mbu-hero-main>p,
.mbc-main .mbu-heading>p,
.mbc-main .mbu-tile>p,
.mbc-main .mbu-line p {
    font-family: Inter, Arial, sans-serif;
    line-height: 30px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.mbc-pathways .mbu-tile {
    display: flex;
    flex-direction: column;
}

.mbc-pathways .mbu-tile strong {
    font-size: 23px;
    font-weight: 800;
}

.mbc-pathways .mbu-tile a {
    margin-top: auto;
    padding-top: 24px;
    color: #008a4b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mbc-controls {
    padding: 24px;
    border: 1px solid #e1ece5;
    border-radius: 18px;
    background: #fafafa;
    margin-bottom: 22px;
}

.mbc-search-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

#mbc-search {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 52px;
    padding: 13px 16px;
    border: 1px solid #cbded1;
    border-radius: 10px;
    background: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    color: #14231d;
}

#mbc-search:focus-visible,
.mbc-filter-button:focus-visible,
.mbc-university a:focus-visible {
    outline: 3px solid #188e56;
    outline-offset: 2px;
}

.mbc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
}

.mbc-filter-button {
    border: 1px solid #cee4d5;
    background: white;
    color: #184a2f;
    padding: 12px 18px;
    border-radius: 40px;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mbc-filter-button.is-active {
    background: #008f4f;
    color: white;
    border-color: #008f4f;
}

.mbc-result-count {
    margin: 16px 0 0;
    color: #4e6757;
    font-size: 15px !important;
}

.mbc-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mbc-university {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 24px;
    border: 1px solid #e1ece5;
    border-radius: 16px;
    background: #fff;
}

.mbc-university[hidden] {
    display: none !important;
}

.mbc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    color: #507361;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.mbc-university h3 {
    margin: 19px 0 9px;
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.mbc-university p {
    margin: 0 0 24px;
    color: #54695e;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.mbc-university a {
    margin-top: auto;
    color: #008a4b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mbc-university a:hover,
.mbc-pathways a:hover {
    text-decoration: underline;
}

.mbc-no-results {
    font-size: 18px;
}

@media(max-width:1030px) {
    .mbc-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:820px) {
    .mbc-hero {
        grid-template-columns: 1fr;
    }

    .mbc-pathways {
        grid-template-columns: 1fr;
    }
}

@media(max-width:550px) {
    .mbc-directory {
        grid-template-columns: 1fr;
    }

    .mbc-controls {
        padding: 18px;
    }

    .mbc-university {
        min-height: 200px;
        padding: 20px;
    }

    .mbc-main .mbu-hero-main>p,
    .mbc-main .mbu-heading>p,
    .mbc-main .mbu-tile>p,
    .mbc-main .mbu-line p {
        font-size: 16px;
    }

    .mbc-filter-button {
        padding: 10px 13px;
        font-size: 12px;
    }
}