.xd-tertiary-lower-content {
    width: 100%;
}

.xd-tertiary-lower-content__faculty {
    margin-bottom: 48px;
}

.xd-tertiary-lower-content__media {
    margin-bottom: 50px;
    overflow: hidden;
    border-radius: 42px;
}

.xd-tertiary-lower-content__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.xd-tertiary-lower-content__body {
    max-width: 740px;
}

.xd-tertiary-lower-content__heading {
    margin: 0 0 16px;
    color: #1f1b24;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.xd-tertiary-lower-content__copy {
    margin: 0 0 18px;
    color: #2b2433;
    font-size: 18px;
    line-height: 1.45;
}

.xd-tertiary-lower-content__link,
.xd-tertiary-lower-content__link:visited {
    color: #6a40a7;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    text-decoration: none;
}

.xd-tertiary-lower-content__link span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.xd-tertiary-lower-content__link:hover,
.xd-tertiary-lower-content__link:focus-visible {
    text-decoration: underline;
    color: #6a40a7 !important;
}

.xd-tertiary-lower-content__link:hover span,
.xd-tertiary-lower-content__link:focus-visible span {
    transform: translateX(5px);
}

.xd-tertiary-lower-content__apply {
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    min-height: 252px;
    background-color: #553185;
    background-image: var(--xd-tlc-apply-bg, linear-gradient(135deg, rgba(74, 38, 126, 0.98) 0%, rgba(106, 73, 148, 0.94) 52%, rgba(103, 69, 134, 0.9) 100%));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.xd-tertiary-lower-content__apply::before {
    content: none;
}

.xd-tertiary-lower-content__apply::after {
    content: none;
}

.xd-tertiary-lower-content__apply-inner {
    position: relative;
    z-index: 1;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

.xd-tertiary-lower-content__apply-title {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(4.4rem, 5vw, 6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.xd-tertiary-lower-content__apply-button,
.xd-tertiary-lower-content__apply-button:visited {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 35px;
    border-radius: 4px;
    box-sizing: border-box;
    border: 2px solid #efbb47;
    background-color: #efbb47;
    color: #1c140f;
    font-size: 19px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.xd-tertiary-lower-content__apply-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, #ffb92a, #fbd179);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.xd-tertiary-lower-content__apply-button:hover,
.xd-tertiary-lower-content__apply-button:focus-visible {
    color: #1c140f;
    text-decoration: none;
}

.xd-tertiary-lower-content__apply-button:hover::after,
.xd-tertiary-lower-content__apply-button:focus-visible::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .xd-tertiary-lower-content__faculty {
        margin-bottom: 36px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .xd-tertiary-lower-content__media,
    .xd-tertiary-lower-content__apply {
        border-radius: 32px;
    }
}

@media (max-width: 575px) {
    .xd-tertiary-lower-content__apply-title {
        line-height: 1.2;
    }

    .xd-tertiary-lower-content__media {
        border-radius: 24px;
    }

    .xd-tertiary-lower-content__apply {
        border-radius: 0px;
    }

    .xd-tertiary-lower-content__image {
        height: 300px;
        aspect-ratio: auto;
    }

    .xd-tertiary-lower-content__link,
    .xd-tertiary-lower-content__link:visited {
        font-size: 19px;
    }

    .xd-tertiary-lower-content__apply-button,
    .xd-tertiary-lower-content__apply-button:visited {
        width: 100%;
        max-width: 170px;
    }
}
