.mh-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.mh-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid #40798c;
    background: transparent;
    color: #40798c;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    outline: none;
}

.mh-pill:hover,
.mh-pill:focus,
.mh-pill:active,
.mh-pill.is-active {
    background-color: #40798c;
    color: #fff;
    border-color: #40798c;
    box-shadow: none;
}

@keyframes mh-fall {
    from {
        transform: translateY(-200px) scale(0.65) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.mh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    overflow: visible;
}

.mh-item {
    background-color: var(--mh-bg, #9EC1A3);
    border-radius: 2em;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
}

.mh-grid.is-visible .mh-item {
    animation: mh-fall 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--mh-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .mh-item { opacity: 1; }
    .mh-grid.is-visible .mh-item { animation: none; }
}

.mh-logo-wrap {
    min-height: 52px;
    display: flex;
    align-items: flex-start;
}

.mh-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: 180px;
    object-fit: contain;
}

.mh-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.mh-intro {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
}

.mh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    margin-top: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mh-btn:hover,
.mh-btn:focus,
.mh-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: #fff;
}

.mh-btn svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .mh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mh-grid {
        grid-template-columns: 1fr;
    }

    .mh-filter {
        gap: 0.5rem;
    }
}
