/* ═══════════════════════════════════════════════════════════════
   MedEncyclo Premium Homepage
   Namespace: .mehp
   Palette (site theme):
     primary   #0F4C81   secondary #00A6A6   accent #2ECC71
     bg        #F8FCFF   card      #FFFFFF   hover  #E6F7FF
     text      #1E293B   muted     #52667A   border #DCEAF5
   ═══════════════════════════════════════════════════════════════ */

.mehp {
    --mehp-primary: #0F4C81;
    --mehp-primary-dark: #0B426F;
    --mehp-secondary: #00A6A6;
    --mehp-accent: #2ECC71;
    --mehp-bg: #F8FCFF;
    --mehp-card: #FFFFFF;
    --mehp-hover: #E6F7FF;
    --mehp-text: #1E293B;
    --mehp-muted: #52667A;
    --mehp-border: #DCEAF5;
    --mehp-focus: #1A73E8;
    --mehp-success: #087443;
    --mehp-error: #B42318;
    --mehp-max: 1240px;
    --mehp-radius: 18px;
    --mehp-radius-sm: 12px;
    --mehp-shadow-soft: 0 18px 55px rgba(15, 76, 129, 0.11);
    --mehp-shadow-hover: 0 22px 70px rgba(15, 76, 129, 0.18);
    --mehp-shadow-card: 0 12px 34px rgba(15, 76, 129, 0.08);
    --mehp-hero: linear-gradient(135deg, #0F4C81 0%, #087B8F 46%, #00A6A6 100%);
    --mehp-font: 'Inter', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mehp-ease: cubic-bezier(0.4, 0, 0.2, 1);

    background: var(--mehp-bg);
    color: var(--mehp-text);
    font-family: var(--mehp-font);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mehp *,
.mehp *::before,
.mehp *::after { box-sizing: border-box; }

.mehp img { max-width: 100%; height: auto; display: block; }
.mehp a { color: inherit; text-decoration: none; }
.mehp h1, .mehp h2, .mehp h3, .mehp h4 { margin: 0; line-height: 1.22; font-weight: 800; }
.mehp p { margin: 0; }
.mehp ul { margin: 0; padding: 0; list-style: none; }

.mehp :focus-visible {
    outline: 3px solid var(--mehp-focus);
    outline-offset: 3px;
    border-radius: 8px;
}

.mehp-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.mehp svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.mehp-container {
    width: min(100% - 32px, var(--mehp-max));
    margin-inline: auto;
}

/* ─── Shared bits ─── */
.mehp-section { padding-block: 64px; }

.mehp-section__head { max-width: 760px; margin-bottom: 32px; }
.mehp-section__head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.mehp-section__title { color: var(--mehp-primary); font-size: clamp(1.5rem, 4vw, 2.35rem); letter-spacing: -0.02em; }
.mehp-section__lead { color: var(--mehp-muted); margin-top: 12px; font-size: 1.02rem; }

.mehp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--mehp-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.mehp-eyebrow--light { color: rgba(255, 255, 255, 0.92); }
.mehp-eyebrow__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(0, 166, 166, 0.18);
}

.mehp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 50px;
    font: 700 0.95rem/1 var(--mehp-font);
    cursor: pointer;
    transition: background-color .22s var(--mehp-ease), color .22s var(--mehp-ease), box-shadow .22s var(--mehp-ease), transform .22s var(--mehp-ease), border-color .22s var(--mehp-ease);
}
.mehp-btn--accent { background: var(--mehp-accent); color: #06351D; }
.mehp-btn--accent:hover { background: #5EE08F; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(46, 204, 113, 0.6); }
.mehp-btn--ghost {
    background: #fff;
    color: var(--mehp-primary);
    border-color: var(--mehp-border);
    box-shadow: var(--mehp-shadow-card);
}
.mehp-btn--ghost:hover { background: var(--mehp-hover); border-color: rgba(0, 166, 166, 0.45); transform: translateY(-2px); }
.mehp-btn svg { transition: transform .22s var(--mehp-ease); }
.mehp-btn:hover svg { transform: translateY(2px); }

.mehp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mehp-primary);
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}
.mehp-link svg { transition: transform .22s var(--mehp-ease); }
.mehp-link:hover { color: var(--mehp-secondary); }
.mehp-link:hover svg { transform: translateX(4px); }

/* ═══════════════ HERO ═══════════════ */
.mehp-hero {
    position: relative;
    overflow: hidden;
    background: var(--mehp-hero);
    color: #fff;
    padding-block: 72px 96px;
    isolation: isolate;
}
.mehp-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
    pointer-events: none;
}
.mehp-hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }
.mehp-hero__glow--1 { width: 420px; height: 420px; background: #2ECC71; top: -160px; right: -120px; }
.mehp-hero__glow--2 { width: 360px; height: 360px; background: #00A6A6; bottom: -180px; left: -100px; opacity: .55; }

.mehp-hero__inner { position: relative; z-index: 1; max-width: 900px; text-align: center; margin-inline: auto; }
.mehp-hero__title {
    color: #fff;
    font-size: clamp(2rem, 6.2vw, 3.65rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}
.mehp-hero__lead {
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    margin: 18px auto 0;
    max-width: 640px;
}

/* Search */
.mehp-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin: 30px auto 0;
    padding: 10px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 18px;
    box-shadow: 0 24px 60px -22px rgba(6, 40, 70, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.mehp-search__icon {
    display: inline-flex;
    padding-left: 8px;
    color: #fff;
    opacity: .85;
}
.mehp-search__icon svg { width: 22px; height: 22px; }
.mehp-search__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 500 1rem/1 var(--mehp-font);
    outline: none;
}
.mehp-search__input::placeholder { color: rgba(255,255,255,.78); }
.mehp-search__btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--mehp-primary);
    font: 800 0.95rem/1 var(--mehp-font);
    cursor: pointer;
    transition: background-color .2s var(--mehp-ease), transform .2s var(--mehp-ease), box-shadow .2s var(--mehp-ease);
}
.mehp-search__btn:hover { background: var(--mehp-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }

/* Suggestions */
.mehp-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    z-index: 30;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--mehp-border);
    border-radius: 16px;
    box-shadow: var(--mehp-shadow-hover);
    text-align: left;
    max-height: 380px;
    overflow: auto;
}
.mehp-suggest__item {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--mehp-text);
}
.mehp-suggest__item:hover,
.mehp-suggest__item.is-active { background: var(--mehp-hover); }
.mehp-suggest__title { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.35; color: var(--mehp-text); }
.mehp-suggest__meta { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--mehp-muted); }
.mehp-suggest__meta mark { background: rgba(46,204,113,.24); color: inherit; border-radius: 4px; padding: 0 2px; }
.mehp-suggest__empty { padding: 16px; color: var(--mehp-muted); font-size: 0.9rem; text-align: center; }
.mehp-suggest__all {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid var(--mehp-border);
    margin-top: 4px;
    color: var(--mehp-primary);
    font-weight: 800;
    font-size: 0.9rem;
}

/* Popular chips */
.mehp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; }
.mehp-chips--popular { margin-top: 22px; }
.mehp-chips__label { color: rgba(255,255,255,.75); font-weight: 700; font-size: 0.85rem; }
.mehp-chip {
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background-color .2s var(--mehp-ease), transform .2s var(--mehp-ease), border-color .2s var(--mehp-ease);
}
.mehp-chip:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); border-color: rgba(255,255,255,.6); }

/* Hero stats */
.mehp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 48px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.mehp-stat { text-align: center; }
.mehp-stat strong { display: block; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.mehp-stat span { font-size: 0.82rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .1em; }

/* ═══════════════ TRUST STRIP ═══════════════ */
.mehp-trust { background: #fff; border-bottom: 1px solid var(--mehp-border); }
.mehp-trust__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding-block: 26px;
}
.mehp-trust__item { display: flex; align-items: center; gap: 14px; }
.mehp-trust__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--mehp-hover);
    color: var(--mehp-primary);
}
.mehp-trust__icon svg { width: 22px; height: 22px; }
.mehp-trust__item strong { display: block; font-size: 0.95rem; }
.mehp-trust__item span { font-size: 0.82rem; color: var(--mehp-muted); }

/* ═══════════════ CATEGORY BROWSER ═══════════════ */
.mehp-browse { background: linear-gradient(180deg, #F8FCFF 0%, #FFFFFF 100%); }
.mehp-cat-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }

.mehp-cat-card {
    display: flex;
    flex-direction: column;
    background: var(--mehp-card);
    border: 1px solid var(--mehp-border);
    border-radius: var(--mehp-radius);
    box-shadow: var(--mehp-shadow-card);
    overflow: hidden;
    transition: box-shadow .28s var(--mehp-ease), transform .28s var(--mehp-ease), border-color .28s var(--mehp-ease);
}
.mehp-cat-card:hover { box-shadow: var(--mehp-shadow-hover); transform: translateY(-4px); border-color: rgba(0,166,166,.4); }

.mehp-cat-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 14px;
}
.mehp-cat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    flex-shrink: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--mehp-hero);
    box-shadow: 0 10px 22px -10px rgba(15,76,129,.6);
}
.mehp-cat-card__icon svg { width: 26px; height: 26px; }
.mehp-cat-card__titles { min-width: 0; }
.mehp-cat-card__titles h3 { font-size: 1.15rem; }
.mehp-cat-card__titles h3 a:hover { color: var(--mehp-secondary); }
.mehp-cat-card__count { display: inline-block; margin-top: 3px; font-size: 0.8rem; font-weight: 700; color: var(--mehp-secondary); }

.mehp-cat-card__desc { padding: 0 22px; color: var(--mehp-muted); font-size: 0.92rem; }

.mehp-cat-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 22px;
    flex: 1;
    align-content: flex-start;
}
.mehp-cat-card__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 50px;
    background: #F7FBFE;
    border: 1px solid var(--mehp-border);
    color: var(--mehp-text);
    font-size: 0.83rem;
    font-weight: 600;
    transition: background-color .2s var(--mehp-ease), border-color .2s var(--mehp-ease), color .2s var(--mehp-ease), transform .2s var(--mehp-ease);
}
.mehp-cat-card__links a:hover { background: var(--mehp-hover); border-color: rgba(0,166,166,.5); color: var(--mehp-primary); transform: translateY(-1px); }
.mehp-cat-card__links em { font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--mehp-secondary); background: rgba(0,166,166,.12); border-radius: 50px; padding: 1px 7px; }

.mehp-cat-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 22px 22px;
    padding-top: 16px;
    border-top: 1px solid var(--mehp-border);
    color: var(--mehp-primary);
    font-weight: 800;
    font-size: 0.9rem;
}
.mehp-cat-card__more svg { transition: transform .2s var(--mehp-ease); }
.mehp-cat-card__more:hover { color: var(--mehp-secondary); }
.mehp-cat-card__more:hover svg { transform: translateX(4px); }

/* ═══════════════ ARTICLE FEEDS ═══════════════ */
.mehp-feed { background: #fff; }
.mehp-feed:nth-of-type(even) { background: #F8FCFF; }

.mehp-cards {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

.mehp-card {
    display: flex;
    flex-direction: column;
    background: var(--mehp-card);
    border: 1px solid var(--mehp-border);
    border-radius: var(--mehp-radius);
    box-shadow: var(--mehp-shadow-card);
    overflow: hidden;
    transition: box-shadow .28s var(--mehp-ease), transform .28s var(--mehp-ease), border-color .28s var(--mehp-ease);
}
.mehp-card:hover { transform: translateY(-5px); box-shadow: var(--mehp-shadow-hover); border-color: rgba(0,166,166,.45); }

.mehp-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, rgba(15,76,129,.12), rgba(46,204,113,.16)); }
.mehp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--mehp-ease); }
.mehp-card:hover .mehp-card__media img { transform: scale(1.06); }

.mehp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.mehp-card__cat {
    align-self: flex-start;
    max-width: 100%;
    padding: 5px 11px;
    border-radius: 50px;
    background: rgba(0,166,166,.1);
    border: 1px solid rgba(0,166,166,.2);
    color: var(--mehp-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mehp-card__cat:hover { background: rgba(0,166,166,.2); }
.mehp-card__title { font-size: 1.06rem; line-height: 1.36; letter-spacing: -0.01em; }
.mehp-card__title a:hover { color: var(--mehp-primary); }
.mehp-card__excerpt { color: var(--mehp-muted); font-size: 0.9rem; flex: 1; }
.mehp-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--mehp-border);
    color: var(--mehp-muted);
    font-size: 0.8rem;
}
.mehp-card__read { display: inline-flex; align-items: center; gap: 5px; }
.mehp-card__read svg { width: 15px; height: 15px; }

.mehp-loadmore { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; }
.mehp-loadmore.is-done { display: none; }

.mehp-spinner {
    display: none;
    width: 22px; height: 22px;
    border: 3px solid rgba(15,76,129,.2);
    border-top-color: var(--mehp-primary);
    border-radius: 50%;
    animation: mehp-spin .8s linear infinite;
}
.mehp-loadmore.is-loading .mehp-spinner { display: inline-block; }
.mehp-loadmore.is-loading .mehp-btn { opacity: .6; pointer-events: none; }
@keyframes mehp-spin { to { transform: rotate(360deg); } }

/* skeleton */
.mehp-skeleton {
    border: 1px solid var(--mehp-border);
    border-radius: var(--mehp-radius);
    overflow: hidden;
    background: #fff;
}
.mehp-skeleton__media { aspect-ratio: 16/10; }
.mehp-skeleton__line { height: 16px; margin: 14px 18px; border-radius: 8px; }
.mehp-skeleton__line--sm { width: 40%; }
.mehp-skeleton__media,
.mehp-skeleton__line {
    background: linear-gradient(90deg, #EDF6FC 25%, #F9FDFF 50%, #EDF6FC 75%);
    background-size: 240% 100%;
    animation: mehp-shimmer 1.3s ease-in-out infinite;
}
@keyframes mehp-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ═══════════════ CTA / NEWSLETTER ═══════════════ */
.mehp-cta { position: relative; overflow: hidden; background: var(--mehp-hero); color: #fff; padding-block: 64px; text-align: center; }
.mehp-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}
.mehp-cta__inner { position: relative; z-index: 1; max-width: 720px; }
.mehp-cta__title { color: #fff; font-size: clamp(1.6rem, 4.6vw, 2.5rem); letter-spacing: -0.02em; }
.mehp-cta__lead { color: rgba(255,255,255,.88); margin-top: 12px; font-size: 1.02rem; }

.mehp-news {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 26px auto 0;
    padding: 8px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
}
.mehp-news__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--mehp-text);
    font: 500 0.95rem/1 var(--mehp-font);
    outline: none;
}
.mehp-news__msg { min-height: 1.4em; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.mehp-news__msg[data-state="success"] { color: #C9FFDF; }
.mehp-news__msg[data-state="error"] { color: #FFD3CC; }

/* ═══════════════ NOTICE / DISCLAIMER ═══════════════ */
.mehp-notice { background: #FFFCF5; border-top: 1px solid #F3E7CE; padding-block: 26px; }
.mehp-notice__inner { display: flex; align-items: flex-start; gap: 14px; }
.mehp-notice__icon { color: #B7791F; margin-top: 2px; }
.mehp-notice__icon svg { width: 22px; height: 22px; }
.mehp-notice p { color: #6B5A34; font-size: 0.88rem; }
.mehp-notice a { color: var(--mehp-primary); text-decoration: underline; font-weight: 600; }

/* ═══════════════ BACK TO TOP ═══════════════ */
.mehp-totop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--mehp-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 34px -12px rgba(15,76,129,.7);
    transition: background-color .2s var(--mehp-ease), transform .2s var(--mehp-ease);
}
.mehp-totop:hover { background: var(--mehp-primary-dark); transform: translateY(-3px); }
.mehp-totop svg { transform: rotate(180deg); width: 22px; height: 22px; }

/* ═══════════════ REVEAL ═══════════════ */
.mehp [data-mehp-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--mehp-ease), transform .55s var(--mehp-ease); }
.mehp [data-mehp-reveal].is-visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   FULL-BLEED RESET
   Neutralises theme content wrappers (GeneratePress grid-container,
   sidebars) only on the homepage so hero/CTA gradients span the
   full viewport while the site header/footer keep their own layout.
   ═══════════════════════════════════════════════════════════════ */
body.mehp-template .grid-container { max-width: none; width: 100%; padding-inline: 0; }
body.mehp-template #content.site-content { max-width: none; width: 100%; padding: 0; margin: 0; }
body.mehp-template #content.site-content .content-area,
body.mehp-template #content.site-content .site-main,
body.mehp-template #content.site-content .inside-article,
body.mehp-template #content.site-content > article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}
body.mehp-template #content.site-content .entry-content { margin: 0; padding: 0; }
body.mehp-template .widget-area,
body.mehp-template .sidebar { display: none; }
body.mehp-template #right-sidebar,
body.mehp-template #left-sidebar { display: none; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (min-width: 560px) {
    .mehp-container { width: min(100% - 40px, var(--mehp-max)); }
    .mehp-trust__grid { grid-template-columns: repeat(2, 1fr); }
    .mehp-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .mehp-section { padding-block: 84px; }
    .mehp-hero { padding-block: 96px 120px; }
    .mehp-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .mehp-trust__grid { grid-template-columns: repeat(4, 1fr); }
    .mehp-notice__inner { align-items: center; }
}

@media (min-width: 1024px) {
    .mehp-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .mehp-cards { grid-template-columns: repeat(4, 1fr); }
    .mehp-search { max-width: 720px; }
}

@media (min-width: 1400px) {
    .mehp-container { width: min(100% - 64px, 1320px); }
}

/* Small phones */
@media (max-width: 480px) {
    .mehp-search { flex-wrap: wrap; }
    .mehp-search__input { flex-basis: 100%; order: 2; }
    .mehp-search__btn { order: 3; width: 100%; }
    .mehp-search__icon { order: 1; }
    .mehp-news { flex-direction: column; }
    .mehp-news__input { width: 100%; }
    .mehp-news .mehp-btn { width: 100%; }
    .mehp-hero__stats { gap: 14px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .mehp *, .mehp *::before, .mehp *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .mehp [data-mehp-reveal] { opacity: 1; transform: none; }
}
