.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    color: #fff;
    background: linear-gradient(135deg, #2f6fff 0%, #4f7edb 100%);
}

.page-banner--violet {
    background: linear-gradient(135deg, #4760c6 0%, #6b62ff 100%);
}

.page-banner--indigo {
    background: linear-gradient(135deg, #3558d8 0%, #4d69f0 100%);
}

.page-banner--sand {
    background: linear-gradient(135deg, #a68a71 0%, #8f745a 100%);
}

.page-banner--ice {
    background: linear-gradient(135deg, #dceeff 0%, #f5fbff 100%);
    color: #1b4fae;
}

.page-banner--ice .page-banner__overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.22) 42%, rgba(255, 255, 255, 0) 100%);
}

.page-banner--ice .page-banner__copy h1,
.page-banner--ice .page-banner__en,
.page-banner--ice .page-banner__lead {
    color: #1b4fae;
}

.page-banner--sky {
    background: linear-gradient(135deg, #5d9ae2 0%, #67b5ef 100%);
}

.page-banner__media {
    position: absolute;
    inset: 0 0 0 45%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.03);
}

.page-banner__media--empty {
    background:
        radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.5) 0 12%, transparent 14%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
        linear-gradient(90deg, rgba(6, 40, 110, 0.12), rgba(255, 255, 255, 0.08));
}

.page-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 46, 117, 0.76), rgba(10, 46, 117, 0.2) 42%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.page-banner__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 280px;
}

.page-banner__copy {
    max-width: 520px;
    padding: 58px 0;
}

.page-banner__controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-banner__copy h1 {
    margin: 0;
    color: inherit;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
}

.page-banner__en {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.page-banner__lead {
    margin-top: 14px;
    max-width: 460px;
    color: rgba(255, 255, 255, 0.88);
}

.page-banner--ice .page-banner__lead {
    color: rgba(27, 79, 174, 0.72);
}

.home-hero {
    background: #fff;
}

.home-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    min-height: 520px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, #2f6fff 0%, #1659e0 52%, #0e4abb 100%);
    box-shadow: var(--wendu-shadow);
}

.home-hero__content {
    padding: 88px 64px;
    color: #fff;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 22px 0 0;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.home-hero__lead {
    margin-top: 18px;
    max-width: 520px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 600;
}

.home-hero__visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.home-hero__panel {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.home-hero__visual::before {
    content: "";
    position: absolute;
    inset: 0 0 0 18%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 239, 255, 0.7));
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.12;
}

.home-hero__visual::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 82%;
    height: 84%;
    border-top-left-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 232, 255, 0.52));
    opacity: 0.12;
}

.home-hero__glass {
    position: absolute;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
}

.home-hero__glass--one {
    top: 56px;
    right: 38px;
    width: 240px;
    height: 180px;
    transform: skewX(-12deg);
}

.home-hero__glass--two {
    right: 182px;
    bottom: 80px;
    width: 180px;
    height: 120px;
    transform: skewX(-12deg);
}

.home-hero__dots {
    position: absolute;
    top: 34px;
    left: 34px;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0 2px, transparent 3px) 0 0/18px 18px;
    opacity: 0.5;
}

.home-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
}

.home-carousel__track {
    position: absolute;
    inset: 0;
}

.home-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 0.8s ease;
}

.home-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.home-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-carousel__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 40, 110, 0.12), rgba(10, 40, 110, 0.48));
}

.home-carousel__content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 84px;
    z-index: 2;
    max-width: 280px;
    color: #fff;
}

.home-carousel__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-carousel__content h3 {
    margin: 14px 0 0;
    font-size: 32px;
    line-height: 1.08;
}

.home-carousel__content p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

.home-carousel__controls {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-carousel__indicators {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-carousel__indicator {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-carousel__indicator.is-active {
    width: 36px;
    background: #fff;
}

.home-carousel__indicator:hover {
    transform: translateY(-1px);
}

.home-carousel__arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.home-carousel__arrow:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.28);
}

.home-section {
    padding: 72px 0;
}

.home-section:nth-child(even) {
    background: #f8fbff;
}

.home-section--advantages {
    background: linear-gradient(135deg, #2e55d0 0%, #7d63ff 100%);
    color: #fff;
}

.home-section--advantages .section-heading__en,
.home-section--advantages .section-heading__title,
.home-section--advantages .section-heading__lead {
    color: #fff;
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-tabs a,
.section-tabs span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #edf2fb;
    color: #63718d;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.section-tabs a:hover,
.section-tabs span:hover {
    background: #dde6f7;
    color: #2f6fff;
}

.section-tabs a:focus-visible,
.section-tabs span:focus-visible {
    outline: 2px solid #2f6fff;
    outline-offset: 2px;
}

.section-tabs .is-active {
    color: #fff;
    background: linear-gradient(135deg, #4f7bff, #7b63ff);
    box-shadow: 0 10px 20px rgba(79, 123, 255, 0.24);
}

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid--course {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--teacher {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid--service {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--news,
.card-grid--campus,
.card-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    min-width: 0;
    border: 1px solid rgba(219, 228, 244, 0.92);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--wendu-shadow-soft);
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__media {
    position: relative;
    background-position: center;
    background-size: cover;
}

.card__media--gradient {
    background:
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.18) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.14));
}

.card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.18));
}

.card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px;
    flex: 1;
}

.card__title {
    margin: 0;
    color: #21304d;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.card__excerpt {
    margin: 0;
    color: var(--wendu-muted);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}

.card__action,
.card__more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: #1f61ff;
    font-size: 13px;
    font-weight: 700;
}

.card__action::after,
.card__more::after {
    content: "→";
    margin-left: 6px;
}

.card--teacher .card__media {
    aspect-ratio: 4 / 5;
}

.card--teacher .card__body {
    text-align: center;
}

.card--teacher .card__title {
    color: #122d73;
}

.card--teacher .card__excerpt {
}

.card--course .card__media,
.card--campus .card__media {
    aspect-ratio: 16 / 10;
}

.card--news .card__body {
    padding: 22px;
}

.card--news .card__meta {
    margin: 0;
    color: #5f7fd3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.card--news .card__more {
    margin-top: auto;
    line-height: 1;
    padding-top: 6px;
}

.card--news .card__title {
    font-size: 17px;
}

.card--service {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.card--service .card__body {
    padding: 24px;
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.88) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.18));
    box-shadow: 0 14px 26px rgba(79, 123, 255, 0.16);
}

.section-more {
    margin-top: 26px;
    text-align: center;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 24px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.advantage-card__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
        rgba(255, 255, 255, 0.16);
}

.advantage-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.84);
}

.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 10px;
    border-radius: 10px;
    background: #e8eefb;
    color: #4c6ebf;
    font-weight: 700;
}

.archive-pagination .page-numbers.current {
    color: #fff;
    background: var(--wendu-blue);
}

.archive-pagination .next,
.archive-pagination .prev {
    background: transparent;
    color: var(--wendu-blue);
}

.entry-page,
.entry-detail {
    padding: 44px;
}

.entry-page__content {
    font-size: 17px;
    line-height: 1.95;
}

.entry-detail__header {
    margin-bottom: 26px;
    text-align: center;
}

.entry-detail__meta {
    color: #92a0b6;
    font-size: 14px;
}

.entry-detail__title {
    margin: 10px 0 0;
    font-size: 38px;
    line-height: 1.25;
}

.entry-detail__media {
    margin: 0 0 30px;
}

.entry-detail__media img {
    border-radius: 22px;
}

.entry-detail__content {
    font-size: 17px;
    line-height: 1.95;
}

.entry-detail__footer {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.related-section {
    margin-top: 54px;
}

.is-hidden {
    display: none !important;
}
