/* October 2 review: local component changes, not a global spacing reset. */

/* Master overview: a single divider with equal space around it. */
.page-template-overview-master main > .why-study + .events {
    position: relative;
    padding-top: 48px;
}
.page-template-overview-master main > .why-study + .events::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--section-divider-width);
    height: 1px;
    transform: translateX(-50%);
    background: var(--color-grey-light-2);
    pointer-events: none;
}

/* Remove the extra outer padding that doubled the gap above this divider. */
.single-master main > #karrierechancen.program-text--divider-top {
    padding-top: 0;
}
.single-master #karrierechancen.program-text--divider-top > .container {
    padding-top: 48px;
}

/* The final list's margin must not add another gap before the benefit cards. */
.single-vertiefung main > #ueberblick.program-text {
    padding-bottom: 24px;
}
.single-vertiefung #ueberblick .program-text__body > :last-child {
    margin-bottom: 0;
}

/* Admissions belong to the same heading level as the adjacent content. */
:is(.page-template-overview-bachelor, .single-bachelor, .page-template-overview-master, .single-master, .single-vertiefung, .page-template-overview-mba, .single-mba, .single-mba_vertiefung) :is(#admission .admission__title, #admission .program-text__title, #zulassung .program-accordion__title, #zulassung .program-text__title, #zulassung .admission__title) {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.25;
    font-weight: 600;
}

/* MBA overview: keep equal vertical space around the feature image. */
.page-template-overview-mba main > #why.feature-split {
    padding-top: 28px;
    padding-bottom: 28px;
}
/* October 27: keep the image section balanced and bring the text closer to it. */
.page-template-overview-mba #why .feature-split__grid {
    max-width: 1260px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 48px;
    align-items: center;
}
.page-template-overview-mba #why .feature-split__media {
    width: 100%;
    max-width: 560px;
    justify-self: end;
    aspect-ratio: 560 / 632;
}
.page-template-overview-mba #why .feature-split__media img {
    object-position: 16% center;
}
.page-template-overview-mba main > .why-study--bare {
    padding-top: 16px;
    padding-bottom: 16px;
}
.page-template-overview-mba main > .feature-list--boxed {
    padding-top: 16px;
}
.page-template-overview-mba .feature-list--boxed .feature-list__grid {
    row-gap: 0;
}
.page-template-overview-mba .feature-list--boxed .feature-list__title {
    font-size: 32px;
    line-height: 42px;
}
.page-template-overview-mba .feature-list--boxed .feature-list__lead {
    margin-bottom: 0;
}
.page-template-overview-mba .feature-list--boxed {
    --content-list-after: 0px;
}
.page-template-overview-mba .study-track__description {
    white-space: pre-line;
}

/* Keep the FAQ divider, removing only the preceding admission border. */
.single-mba #zulassung.program-accordion--stacked .program-accordion__grid {
    border-bottom: 0;
    padding-bottom: 0;
}

/* October 15: compact inner spacing without changing the section rhythm. */
.page-template-overview-mba .feature-list--boxed .feature-list__inner {
    padding-top: 32px;
    padding-bottom: 32px;
}
.page-template-overview-mba #career .program-text__list-item {
    font-weight: 400;
}

/* MBA 120: match the heading-to-copy gap used for embedded section headings. */
.single-mba.postid-7620 #karriere .program-text__title {
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .page-template-overview-mba #why .feature-split__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .page-template-overview-mba #why .feature-split__media {
        justify-self: center;
        aspect-ratio: 4 / 3;
    }
    .page-template-overview-mba #ueberblick + .program-text {
        padding-bottom: 16px;
    }
    .page-template-overview-mba main > #why.feature-split {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .page-template-overview-mba .admission__left,
    .page-template-overview-mba .admission__right {
        min-width: 0;
    }
    .page-template-overview-mba .admission__title-main {
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    /* Figma mobile: 350px content at a 390px viewport, 24px between rows. */
    .page-template-overview-mba #why .feature-split__grid {
        gap: 24px;
    }
    .page-template-overview-mba #why .feature-split__media {
        aspect-ratio: 350 / 334.0909;
    }
    .single-mba .mba-electives__title-suffix {
        white-space: nowrap;
        hyphens: none;
    }
    :is(.page-template-overview-bachelor, .single-bachelor, .page-template-overview-master, .single-master, .single-vertiefung, .page-template-overview-mba, .single-mba, .single-mba_vertiefung) :is(#admission .admission__title, #admission .program-text__title, #zulassung .program-accordion__title, #zulassung .program-text__title, #zulassung .admission__title) {
        font-size: 32px;
    }
    .page-template-overview-mba .feature-list--boxed .feature-list__title {
        font-size: 26px;
        line-height: 34px;
    }
    .page-template-overview-mba .feature-list--boxed .feature-list__inner {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
