/* Homepage sections; shared service and doctor templates retain their own styles. */
.wmt-home-advantages,
.wmt-home-staff,
.wmt-home-licenses,
.wmt-home-publications {
    margin-top: 70px;
    margin-bottom: 70px;
}

.wmt-home-title {
    margin: 0 0 36px;
    color: #000;
    font-family: 'gotham pro';
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.wmt-home-advantages__list,
.wmt-home-publications__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Description and compact advantages form one section. */
.main-about .wmt-home-advantages { margin: 28px 0 0; }
.main-about .wmt-home-advantages__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.wmt-home-advantages__item {
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid #d4e9e6;
    border-radius: 6px;
    background: #fff;
}
.wmt-home-advantages__name {
    color: #267373;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 8px;
}
.wmt-home-advantages__text {
    color: #526967;
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
}
.wmt-home-advantages__item:last-child { background: #e4f4f0; }
.wmt-home-licenses__panel {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
    border-radius: 8px;
    background: #eef8f6;
}
.wmt-home-licenses__content { flex: 1; min-width: 0; }
.wmt-home-licenses__content .wmt-home-title { text-align: left; margin-bottom: 20px; }
.wmt-home-licenses__content p { font-size: 20px; line-height: 1.45; margin: 0; }
.wmt-home-licenses__illustration { flex: 0 0 260px; width: 260px; height: auto; }
.wmt-home-licenses .wmt-home-licenses__actions { justify-content: flex-start; margin: 24px 0 0; gap: 12px; }
.wmt-home-licenses .wmt-home-licenses__actions a { padding: 12px 18px; }

.wmt-home-staff__more,
.wmt-home-staff__all,
.wmt-home-publications__all,
.wmt-home-publications__tabs button,
.wmt-home-licenses__actions a {
    display: inline-flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    height: auto;
    max-width: 100%;
    padding: 12px 26px;
    border: 2px solid #66cccc;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}

.wmt-home-staff__more,
.wmt-home-staff__all,
.wmt-home-publications__all {
    display: flex;
    width: fit-content;
    margin: 32px auto 0;
}

.wmt-home-staff__more:hover,
.wmt-home-staff__all:hover,
.wmt-home-publications__all:hover,
.wmt-home-publications__tabs button:hover,
.wmt-home-publications__tabs button[aria-selected="true"],
.wmt-home-licenses__actions a:hover {
    background: #eafcfc;
    color: #000;
    text-decoration: none;
}

.wmt-home-publications__tabs button[aria-selected="true"] {
    border-color: #117b80;
}

.wmt-home-licenses__actions,
.wmt-home-publications__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.wmt-home-publications__card {
    min-width: 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #66cccc;
    overflow-wrap: anywhere;
}

.wmt-home-publications__card--no-image {
    padding: 24px;
    background: #eafcfc;
}

.wmt-home-publications .new-news__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.wmt-home-publications .new-news__link {
    display: block;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.wmt-home-publications [data-home-publication-panel] + [data-home-publication-panel] {
    margin-top: 48px;
}

.wmt-home-publications[data-publications-enhanced="true"] [data-home-publication-panel] {
    margin-top: 0;
}

.wmt-home-staff a:focus-visible,
.wmt-home-staff button:focus-visible,
.wmt-home-publications a:focus-visible,
.wmt-home-publications button:focus-visible,
.wmt-home-licenses a:focus-visible {
    outline: 3px solid #117b80;
    outline-offset: 3px;
}

/* Keep native hidden semantics even when author styles specify display. */
.wmt-home-staff [hidden],
.wmt-home-publications [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .wmt-home-publications__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .wmt-home-advantages,
    .wmt-home-staff,
    .wmt-home-licenses,
    .wmt-home-publications {
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .wmt-home-title {
        margin-bottom: 28px;
        font-size: 28px;
    }

    .wmt-home-publications__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .wmt-home-licenses__actions a {
        width: 100%;
    }

    .wmt-home-publications__tabs {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .wmt-home-publications__tabs button {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px;
    }
}

/* Match the main service tabs, including the line with plus signs. */
.wmt-home-publications__tabs { gap: 20px; }
.wmt-home-publications__tab-wrap { width: 220px; max-width: 50%; }
.wmt-home-publications__tabs button { width: 100%; text-transform: uppercase; }
.wmt-home-publications__tabs button[aria-selected="true"] {
    border-color: #66cccc;
    background: #66cccc;
    color: #fff;
}
.wmt-home-publications__tabs .wmt-line { visibility: hidden; display: flex; }
.wmt-home-publications__tabs button[aria-selected="true"] + .wmt-line { visibility: visible; }
@media (max-width: 800px) {
    .main-about .wmt-home-advantages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wmt-home-advantages__name { font-size: 28px; }
    .wmt-home-licenses__panel { gap: 20px; padding: 28px; }
    .wmt-home-licenses__illustration { flex-basis: 190px; width: 190px; }
}
@media (max-width: 560px) {
    .main-about .wmt-home-advantages { margin-top: 24px; }
    .wmt-home-advantages__item { padding: 18px 14px; }
    .wmt-home-advantages__name { font-size: 25px; overflow-wrap: anywhere; }
    .wmt-home-advantages__text { font-size: 17px; }
    .wmt-home-licenses__panel { flex-direction: column-reverse; padding: 24px; gap: 16px; }
    .wmt-home-licenses__illustration { flex: none; width: 180px; }
    .wmt-home-licenses__content p { font-size: 18px; }
    .wmt-home-publications__tab-wrap { flex: 1; min-width: 0; }
}

/* The reused doctor component is already inside the homepage container. */
.wmt-home-staff .staff-list.wrap { width: 100%; max-width: none; margin: 0; padding: 0; }

.wmt-home-publications__tabs .wmt-line { height: 2px; margin-top: 15px; padding: 0 20px; }
.wmt-home-publications__tabs .wmt-line__center { width: 100%; height: 2px; }
.wmt-home-publications__tabs .wmt-line__left-plus,
.wmt-home-publications__tabs .wmt-line__right-plus { width: 10px; height: 2px; top: 1px; }
.wmt-home-publications__tabs .wmt-line__left-plus::before,
.wmt-home-publications__tabs .wmt-line__right-plus::after { width: 2px; height: 10px; left: 4px; top: -4px; }
