.saemg-home {
    --home-ink: #172443;
    --home-text: #4b5870;
    --home-red-hover: var(--saemg-join-hover);
    --home-space: clamp(2.8rem, 5vw, 4.6rem);
}

.saemg-home :is(h2, h3) { color: var(--home-ink); }
.saemg-home h2 { letter-spacing: -.045em; text-wrap: balance; }
.saemg-home .saemg-section-heading { align-items: center; margin-bottom: 1.45rem; }
.saemg-home .saemg-section-heading > .saemg-button { flex: 0 0 auto; }
.saemg-home .saemg-section-heading .saemg-eyebrow { color: var(--home-red-hover); }

.saemg-home-hero {
    background: var(--saemg-dark-surface);
    border-bottom: 4px solid var(--saemg-red);
    color: #fff;
}

.saemg-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.19fr);
    align-items: center;
    gap: clamp(1.8rem, 4.5vw, 4rem);
    padding-block: clamp(2.4rem, 5vw, 4.1rem);
}

.saemg-hero-copy > .saemg-eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; color: #fff; }
.saemg-hero-copy:only-child { grid-column: 1 / -1; }
.saemg-hero-copy > .saemg-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: #fff; }
.saemg-hero-copy h1 { max-width: 20ch; color: #fff; font-size: clamp(2.1rem, 4.1vw, 3.7rem); line-height: 1.07; letter-spacing: -.052em; }
.saemg-hero-intro { max-width: 53ch; margin-top: 1rem; color: #eef2f8; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.saemg-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: 1.4rem; }

.saemg-home-highlights { position: relative; min-width: 0; color: var(--home-ink); }
.saemg-highlights-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; border-radius: 12px; }
.saemg-home-highlights[data-enhanced] .saemg-highlights-track { scrollbar-width: none; }
.saemg-highlight-slide { display: grid; align-items: stretch; min-width: 0; min-height: clamp(18.5rem, 33vw, 27rem); scroll-snap-align: start; scroll-snap-stop: always; background: var(--saemg-card-surface); }
.saemg-highlight-slide:has(.saemg-highlight-image) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.saemg-highlight-image { position: relative; background: #e3e7f5; }
.saemg-highlight-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.saemg-highlight-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(.9rem, 2vw, 1.65rem); }
.saemg-home-highlights[data-enhanced] .saemg-highlight-copy { padding-bottom: 4.35rem; }
.saemg-highlight-copy h3 { margin: .55rem 0 0; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.16; overflow-wrap: anywhere; }
.saemg-highlight-copy h3 a { color: var(--home-ink); }
.saemg-highlight-copy h3 a:hover { color: var(--home-red-hover); }
.saemg-highlight-controls:not([hidden]) { position: absolute; z-index: 1; inset: auto .75rem .75rem auto; display: flex; align-items: center; gap: .15rem; }
.saemg-highlight-controls > span { min-width: 3rem; color: var(--home-text); text-align: center; font-size: .85rem; font-weight: 600; }

.saemg-home-quick { min-width: 0; padding-block-start: 1.35rem; color: var(--home-ink); }
.saemg-home-quick h2 { margin-bottom: .8rem; font-size: .96rem; letter-spacing: 0; }
.saemg-home-quick ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .68rem; margin: 0; padding: 0; list-style: none; }
.saemg-home-quick a { display: flex; flex-direction: column; align-items: center; gap: .52rem; height: 100%; padding: .8rem .55rem; border: 1px solid var(--saemg-card-border); border-radius: 8px; background: var(--saemg-card-surface); color: var(--home-ink); text-align: center; font-size: .94rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.saemg-home-quick a:hover { border-color: var(--saemg-accent); background: var(--saemg-card-hover); }

.saemg-home-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 8px; background: var(--saemg-red-pale); }
.saemg-home-quick .saemg-home-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.5rem; }

.saemg-home-news, .saemg-home-services { padding-block: var(--home-space); }
.saemg-home-news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; gap: 1.05rem; }
.saemg-home-news-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.saemg-home-feature { min-width: 0; overflow: hidden; border: 1px solid var(--saemg-card-border); border-top: 4px solid var(--saemg-red); border-radius: 12px; background: var(--saemg-card-surface); }
.saemg-home-feature-image { position: relative; aspect-ratio: 1.16; overflow: hidden; background: #edf0fa; }
.saemg-home-feature-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.saemg-feature-copy { padding: clamp(1rem, 2.3vw, 1.55rem); }
.saemg-feature-copy h3 { margin-top: .45rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.17; }
.saemg-feature-copy > p { margin: .65rem 0 0; color: var(--home-text); line-height: 1.5; }
.saemg-home time { color: var(--home-text); font-size: .8rem; font-weight: 550; }
.saemg-home-news h3 a, .saemg-home-job-grid h3 a { color: var(--home-ink); }
.saemg-home-news h3 a:hover, .saemg-home-job-grid h3 a:hover { color: var(--home-red-hover); }
.saemg-home-recent { display: grid; align-content: start; gap: .65rem; min-width: 0; }
.saemg-home-recent-item { display: flex; align-items: center; gap: .9rem; min-height: 124px; padding: .6rem; border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-card-surface); }
.saemg-home-recent-item > div { min-width: 0; overflow-wrap: anywhere; }
.saemg-home-recent-item img { display: block; width: 156px; height: 136px; flex: 0 0 156px; object-fit: cover; border-radius: 7px; }
.saemg-home-recent-item h3 { margin: .2rem 0 0; font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.3; }
.saemg-home-notice { padding: .8rem 1rem; border-left: 3px solid var(--saemg-red); border-radius: 5px; background: var(--saemg-red-pale); color: var(--home-ink); font-size: .92rem; }
.saemg-home-notice strong { margin-right: .35rem; }
.saemg-home-news > .saemg-home-notice { margin-bottom: 1rem; }
.saemg-home-updates {
    --home-divider-space: clamp(1.1875rem, 2.2vw, 1.6875rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.05rem, 2vw, 1.5rem);
    margin-block-start: var(--home-divider-space);
    padding-block-start: var(--home-divider-space);
    border-top: 1px solid var(--saemg-card-border);
}
.saemg-home-update-card {
    display: grid;
    grid-template-columns: clamp(5.5rem, 12vw, 10rem) minmax(0, 1fr);
    gap: clamp(.75rem, 2vw, 1.25rem);
    padding: clamp(.8rem, 2vw, 1.25rem);
    border: 1px solid var(--saemg-card-border);
    border-radius: var(--saemg-radius);
    background: var(--saemg-card-surface);
}
.saemg-home-update-image { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; }
.saemg-home-update-copy { display: flex; flex-direction: column; gap: .65rem; min-width: 0; overflow-wrap: anywhere; }
.saemg-home-update-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.saemg-home-update-copy time { display: block; margin-bottom: .15rem; }
.saemg-home-update-copy h4 { font-size: 1rem; line-height: 1.35; }
.saemg-home-update-copy p { margin: .25rem 0 0; color: var(--home-text); font-size: .9rem; }
.saemg-home-update-items { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.saemg-home-update-link { align-self: start; margin-block-start: auto; padding-top: .25rem; font-size: .9rem; font-weight: 650; }

.saemg-benefit-highlights-home .saemg-benefit-highlight {
    position: relative;
    gap: .45rem;
    padding: clamp(.85rem, 1.5vw, 1.15rem);
    cursor: pointer;
}
:is(.saemg-benefit-highlights-home, .saemg-home-member-benefits) .saemg-benefit-highlight > :is(h3, p) { margin: 0; }
.saemg-benefit-highlights-home .saemg-benefit-highlight > .saemg-benefit-highlight-image {
    object-fit: cover;
    margin-bottom: .4rem;
    border-radius: 9px;
    background: var(--saemg-card-surface);
}
.saemg-benefit-highlight-image-totalpass { object-position: center 20%; }
.saemg-benefit-highlight-image-grupo-zelo { object-position: center 75%; }
.saemg-benefit-highlights-home .saemg-benefit-highlight > h3 { line-height: 1.2; overflow-wrap: anywhere; }
.saemg-benefit-highlights-home .saemg-benefit-highlight > p:not(.saemg-eyebrow) { margin-bottom: .25rem; color: var(--home-text); font-size: .9rem; line-height: 1.45; }
.saemg-benefit-highlights-home .saemg-benefit-highlight:is(:hover, :focus-within) {
    border-color: var(--saemg-blue);
    background: var(--saemg-card-hover);
}
.saemg-benefit-highlights-home .saemg-benefit-highlight > .saemg-button::after {
    content: "";
    position: absolute;
    inset: 0;
}
.saemg-benefit-highlights .saemg-home-notice { margin-top: 1.25rem; }
.saemg-benefit-others-title { margin: 0 0 .85rem; }
.saemg-benefit-others-section .saemg-benefit-rail-controls { justify-content: center; margin-top: .85rem; }

.saemg-home-member-benefits { padding-block: var(--home-space); background: var(--saemg-card-surface); }
.saemg-home-member-benefits .saemg-section-heading p { margin: .45rem 0 0; color: var(--home-text); }
.saemg-home-member-benefits .saemg-benefit-highlight { gap: .8rem; }
.saemg-home-member-benefit-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; background: var(--saemg-card-surface); }
.saemg-home-member-benefits .saemg-service-action { margin-top: auto; }

.saemg-home-services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.1rem, 4vw, 2.8rem); }
.saemg-home-jobs { min-width: 0; }
.saemg-home-jobs > .saemg-eyebrow, .saemg-home-dental .saemg-eyebrow { margin-bottom: .55rem; color: var(--home-red-hover); }
.saemg-home-job-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 1rem 0; padding: 0; list-style: none; }
.saemg-home-job-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .45rem .72rem; min-width: 0; padding: .85rem; border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-card-surface); }
.saemg-home-job-meta { min-width: 0; text-align: right; }
.saemg-home-job-grid h3 { margin: 0; font-size: 1.07rem; line-height: 1.3; }
.saemg-home-job-grid p { margin: .22rem 0 0; color: var(--home-text); font-size: .87rem; }
.saemg-home-job-meta p { font-size: .78rem; }
.saemg-home-job-meta .saemg-solid-icon { margin-right: .12rem; }
.saemg-home-jobs-empty { margin-block: 1rem; color: var(--home-text); }

.saemg-home-dental { min-width: 0; overflow: hidden; border: 1px solid var(--saemg-card-border); border-radius: 12px; background: var(--saemg-card-surface); }
.saemg-home-dental > img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; object-position: center 24%; }
.saemg-home-dental-copy { padding: clamp(1.15rem, 3vw, 1.75rem); }
.saemg-home-dental-copy > p:not(.saemg-eyebrow) { margin: .62rem 0 1rem; color: var(--home-text); }

@media (min-width: 1050px) {
    .saemg-home-feature:has(.saemg-home-feature-image) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .saemg-home-feature-image { min-height: 22rem; aspect-ratio: auto; }
    .saemg-feature-copy { align-self: center; }
}

@media (min-width: 951px) and (max-width: 1279px) {
    .saemg-home-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 3.6vw; }
}

@media (max-width: 950px) {
    .saemg-home-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 1.55rem; }
    .saemg-home-quick ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .saemg-home-recent-item img { width: 120px; height: 108px; flex-basis: 120px; }
}

@media (max-width: 740px) {
    .saemg-home-hero-grid, .saemg-home-news-grid, .saemg-home-updates, .saemg-home-services { grid-template-columns: minmax(0, 1fr); }
    .saemg-benefit-highlights-home .saemg-benefit-highlight > .saemg-benefit-highlight-image { max-height: max(18rem, 75vw); }
    .saemg-home-hero-grid { padding-block: 2rem 1.2rem; }
    .saemg-home-quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saemg-home-quick h2 { margin-bottom: .55rem; }
    .saemg-home .saemg-section-heading { align-items: start; flex-direction: column; gap: .85rem; }
}

@media (max-width: 490px) {
    .saemg-highlight-slide:has(.saemg-highlight-image) { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(14rem, 73vw, 21rem) 1fr; }
    .saemg-highlight-copy { justify-content: start; }
    .saemg-home-job-grid li { grid-template-columns: auto minmax(0, 1fr); }
    .saemg-home-job-meta { grid-column: 2; text-align: left; }
}
