.home-page {
    color: #17263a;
    background: #fff;
    font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.home-page a {
    text-decoration: none !important;
}

.home-page .container {
    max-width: 1280px;
}

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

.home-section-kicker {
    margin: 0 0 10px;
    color: #0872e6;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.home-hero {
    background: #edf7ff;
    overflow: hidden;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(540px, 1.05fr);
    min-height: 430px;
    padding-right: 0;
}

.home-hero__content {
    align-self: center;
    padding: 64px 48px 64px 12px;
}

.home-hero__title,
.home-hero h1 {
    max-width: 650px;
    margin: 0;
    color: #102b50;
    font-size: clamp(34px, 2.7vw, 46px);
    font-weight: 750;
    line-height: 1.23;
    letter-spacing: -.04em;
}

.home-hero__description {
    max-width: 580px;
    margin: 22px 0 0;
    color: #536980;
    font-size: 17px;
    line-height: 1.75;
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 32px;
}

.home-hero__actions--search {
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero__actions--search > .home-button {
    flex-shrink: 0;
}

.home-hero__keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}

.home-hero__keywords-label {
    margin-right: 3px;
    color: #7d90a6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.home-hero__keyword {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2c4a6d;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(16, 43, 80, .07);
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-hero__keyword:hover {
    background: #eaf2ff;
    color: #0867e8;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(8, 114, 230, .16);
}

.home-hero__keyword:focus-visible {
    outline: 2px solid #0872e6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__keyword {
        transition: none;
    }

    .home-hero__keyword:hover {
        transform: none;
    }
}

.home-hero__search {
    display: flex;
    flex: 1 1 260px;
    align-items: center;
    width: 100%;
    max-width: 420px;
    min-height: 56px;
    margin: 0;
    padding: 5px;
    border: 1px solid #c5daec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(16, 43, 80, .06);
}

.home-hero__search:focus-within {
    border-color: #0872e6;
    box-shadow: 0 0 0 3px rgba(8, 114, 230, .15);
}

.home-hero__search input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #102b50;
    font: inherit;
    font-size: 16px;
}

.home-hero__search input::placeholder {
    color: #687e93;
}

.home-hero__search button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #102b50;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
}

.home-hero__search button:hover {
    background: #0867e8;
}

.home-hero__search button:focus-visible {
    outline: 2px solid #0872e6;
    outline-offset: 3px;
}

.home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 23px;
    border-radius: 8px;
    font-size: 16px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #27384c;
    font-size: 15px;
    font-weight: 650;
}

.home-text-link:hover,
.home-text-link:focus {
    color: #0867e8;
}

.home-hero__media {
    position: relative;
    min-height: 430px;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

.home-hero__indicators {
    right: auto;
    bottom: 22px;
    left: 50%;
    z-index: 3;
    width: min(100%, 1280px);
    margin: 0;
    padding: 0 24px;
    justify-content: flex-start;
    transform: translateX(-50%);
}

.home-hero__indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    margin: 0 8px 0 0;
    border: 0;
    border-radius: 999px;
    background-color: #9fbfda;
    opacity: 1;
    transition: width .2s ease, background-color .2s ease;
}

.home-hero__indicators [data-bs-target]:hover,
.home-hero__indicators [data-bs-target]:focus-visible {
    background-color: #6f9dc6;
}

.home-hero__indicators .active {
    width: 46px;
    background-color: #0872e6;
}

.home-section-heading {
    margin-bottom: 26px;
}

.home-section-heading h2,
.home-bottom h2 {
    margin: 0;
    color: #17263a;
    font-weight: 750;
    letter-spacing: -.035em;
}

.home-section-heading h2 {
    font-size: 30px;
}

.home-section-heading--center {
    text-align: center;
}

.home-section-heading--row,
.home-bottom__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-guide-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1240px;
    margin: 0 auto;
}

.home-guide {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 16px;
    padding: 10px 26px;
    border-right: 1px solid #dfe8f1;
}

.home-guide:last-child {
    border-right: 0;
}

.home-guide__icon {
    display: inline-flex;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    color: #0b4f91;
    background: #eaf6ff;
    border-radius: 50%;
}

.home-guide__icon i {
    font-size: 26px;
}

.home-guide__copy {
    display: grid;
    gap: 7px;
}

.home-guide__copy strong {
    color: #142b46;
    font-size: 18px;
}

.home-guide__copy small {
    color: #65768a;
    font-size: 15px;
    line-height: 1.6;
}

.home-content {
    padding-top: 30px;
    padding-bottom: 50px;
    border-top: 1px solid #e9eff5;
}

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

.home-content-card {
    min-width: 0;
}

.home-content-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef3f7;
    border-radius: 10px;
}

.home-content-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-content-card:hover .home-content-card__image img {
    transform: scale(1.025);
}

.home-content-card__image span {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #fff;
    background: #ef7e22;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.home-content-card.is-canada-study .home-content-card__image span {
    background: #078cc8;
}

.home-content-card.is-global-study .home-content-card__image span {
    background: #6356d8;
}

.home-content-card.is-canada-immigration .home-content-card__image span {
    background: #179c7d;
}

.home-content-card__body {
    padding: 16px 1px 0;
}

.home-content-card__body h3 {
    display: -webkit-box;
    min-height: 50px;
    margin: 0;
    overflow: hidden;
    color: #17263a;
    font-size: 18px;
    font-weight: 680;
    line-height: 1.55;
    letter-spacing: -.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-content-card__body h3 a:hover,
.home-content-card__body h3 a:focus {
    color: #0867e8;
}

.home-content-card__body time {
    color: #8795a5;
    font-size: 14px;
}

.home-trust {
    padding-top: 28px;
    padding-bottom: 28px;
}

.home-trust__panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 274px;
    overflow: hidden;
    background: #eef7ff;
    border-radius: 14px;
}

.home-trust__content {
    align-self: center;
    padding: 36px 44px;
}

.home-trust h2 {
    margin: 0;
    color: #112d51;
    font-size: 34px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.home-proof-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.home-proof {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 11px;
}

.home-proof > i {
    flex: 0 0 auto;
    color: #075dab;
    font-size: 29px;
}

.home-proof span {
    display: grid;
    gap: 4px;
}

.home-proof strong {
    color: #134574;
    font-size: 15px;
    line-height: 1.35;
}

.home-proof small {
    color: #64778b;
    font-size: 14px;
    line-height: 1.55;
}

.home-trust__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-bottom {
    padding-top: 18px;
    padding-bottom: 8px;
}

.home-bottom__grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
}

.home-bottom h2 {
    font-size: 20px;
}

.home-notice {
    padding-top: 12px;
}

.home-notice ul {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.home-notice li a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #42566d;
    font-size: 15px;
}

.home-notice li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notice time {
    flex: 0 0 auto;
    color: #8a97a6;
}

.home-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    background: #f5f8fb;
    border: 1px solid #e5edf4;
    border-radius: 16px;
    color: #203c56;
}

.home-contact__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #607e98;
    font-size: 13px;
    font-weight: 600;
}

.home-contact h2 {
    margin: 0;
    color: #203c56;
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 750;
    line-height: 1.45;
    letter-spacing: -.7px;
    word-break: keep-all;
}

.home-contact__description {
    margin: 12px 0 0;
    color: #647588;
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
}

.home-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid #d5e1ec;
    border-radius: 8px;
    background: #fff;
    color: #123452;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color .15s ease-in-out;
}

.home-contact__button:hover {
    background: #e5f1fb;
    color: #123452;
}

.home-contact__button:focus-visible {
    outline: 3px solid #4383b5;
    outline-offset: 4px;
}

.home-contact__actions {
    display: grid;
    gap: 10px;
}

.home-contact__button--kakao {
    background: #fee500;
    border-color: #fee500;
    color: #302b20;
}

.home-contact__button--kakao:hover {
    background: #f3d900;
    border-color: #f3d900;
    color: #302b20;
}

.home-contact__hint {
    margin: 0;
    color: #697b8c;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.home-page .site-footer {
    margin-top: 28px;
}

.home-guides.section-space {
    padding-top: 46px;
    padding-bottom: 48px;
}

@media (max-width: 1199.98px) {
    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
    }

    .home-hero__content {
        padding-left: 24px;
    }

    .home-guide {
        padding-right: 26px;
        padding-left: 26px;
    }

    .home-trust__content {
        padding: 40px 32px;
    }

    .home-proof-list {
        gap: 14px;
    }

    .home-contact {
        gap: 16px;
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 58px 0;
    }

    .home-hero__inner {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .home-hero__content {
        padding: 56px 24px 42px;
    }

    .home-hero__media {
        min-height: 360px;
    }

    .home-guide {
        align-items: flex-start;
        padding: 10px 22px;
    }

    .home-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
    }

    .home-trust__panel {
        grid-template-columns: 1fr;
    }

    .home-trust__media {
        max-height: 360px;
    }

    .home-bottom__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 767.98px) {
    .home-section-heading h2 {
        font-size: 26px;
    }

    .home-guide-list {
        grid-template-columns: 1fr;
    }

    .home-guide {
        min-height: 96px;
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid #e3ebf2;
    }

    .home-guide:last-child {
        border-bottom: 0;
    }

    .home-proof-list {
        grid-template-columns: 1fr;
    }

    .home-contact {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .home-contact__button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .section-space {
        padding: 48px 0;
    }

    .home-page .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    /* 모바일에서는 히어로가 화면을 다 차지해 아래 내용이 보이지 않았다.
       사진을 빼고 버튼과 검색창을 한 줄로 붙여 높이를 줄인다. */
    .home-hero__inner {
        min-height: 0;
    }

    .home-hero__media {
        display: none;
    }

    .home-hero__content {
        padding: 32px 20px 46px;
    }

    .home-hero__title,
    .home-hero h1 {
        font-size: 30px;
    }

    .home-hero__description {
        margin-top: 14px;
        font-size: 15px;
    }

    /* 검색창이 있는 슬라이드는 [상담 예약]+검색창, 없는 슬라이드는
       [상담 예약]+[최신 컨텐츠 보기]가 각각 한 줄에 들어간다. */
    .home-hero__actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 22px;
    }

    .home-hero__actions .home-button {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 0 15px;
        font-size: 15px;
    }

    .home-hero__actions .home-button i {
        display: none;
    }

    .home-hero__search {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        min-height: 46px;
        padding: 4px;
    }

    .home-hero__search input {
        padding: 8px 10px;
        font-size: 15px;
    }

    .home-hero__search button {
        min-height: 38px;
        padding: 8px 12px;
        gap: 0;
    }

    .home-hero__search button span {
        display: none;
    }

    .home-hero__keywords {
        gap: 7px;
        margin-top: 14px;
    }

    .home-hero__keyword {
        padding: 7px 13px;
        font-size: 13px;
    }

    .home-section-heading--row {
        align-items: flex-end;
    }

    .home-content-grid {
        grid-template-columns: 1fr;
    }

    .home-content-card__body h3 {
        min-height: 0;
    }

    .home-trust__content {
        padding: 34px 24px;
    }

    .home-trust h2 {
        font-size: 29px;
    }

    .home-trust__media {
        height: 240px;
    }

    .home-contact {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        gap: 16px;
    }


    .home-contact__button {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .home-hero__indicators {
        bottom: 16px;
        width: auto;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .8);
        justify-content: center;
    }

    .home-hero__indicators [data-bs-target] {
        margin: 0 4px;
    }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    .home-guide-list {
        max-width: 680px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-guide {
        padding: 16px 22px;
    }

    .home-guide:nth-child(2n) {
        border-right: 0;
    }

    .home-guide:nth-child(-n + 2) {
        border-bottom: 1px solid #dfe8f1;
    }
}
