@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square-neo.css');

:root {
    --navy: #083f8f;
    --red: #ef3340;
    --gold: #e8a000;
    --title: #0b2f66;
    --text: #101a31;
    --sub: #465468;
    --line: #dfe6ee;
    --page: #f7f9fc;
    --card: #fff;
    --content-max: 1460px;
    --card-h: clamp(600px, 64vh, 760px)
}
* {
    box-sizing: border-box
}
html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'NanumSquareNeo', 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: #fff
}
a {
    color: inherit;
    text-decoration: none
}
img {
    display: block
}
.intro-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 82px minmax(0, 1fr) 74px;
    background: var(--page)
}
.topbar {
    background: #fff;
    border-bottom: 1px solid #e4eaf1
}
.topbar-inner {
    width: min(var(--content-max), calc(100% - 56px));
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}
.brand-area {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0
}
.deu-logo {
    width: 184px;
    height: auto
}
.brand-divider {
    width: 1px;
    height: 38px;
    background: #d2d9e3
}
.brand-area h1 {
    margin: 0;
    color: #0d3676;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.045em;
    white-space: nowrap
}
.top-actions {
    display: flex;
    gap: 10px
}
.top-action {
    height: 46px;
    min-width: 174px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #b9cbe2;
    background: #f1f6fc;
    border-radius: 8px;
    color: #0b3d82;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.03em;
    transition: background .15s ease, border-color .15s ease, color .15s ease
}
.main-area {
    position: relative;
    isolation: isolate;
    min-height: 0;
    padding: 36px 0 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f5f8fc
}
.main-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(rgba(247, 250, 253, .86), rgba(247, 250, 253, .86)), url("campus-bg.jpg") center 46% / cover no-repeat;
    filter: saturate(.72) contrast(.88);
    transform: scale(1.015)
}
.main-area::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .28) 0 30%, rgba(255, 255, 255, .08) 62%, rgba(230, 238, 248, .14) 100%)
}
.content-grid {
    width: min(var(--content-max), calc(100% - 56px));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 3.32fr) minmax(276px, .9fr);
    gap: 24px;
    align-items: stretch
}
.admission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    min-width: 0
}
.admission-card,
.promo-card {
    position: relative;
    height: var(--card-h);
    min-height: 600px;
    max-height: 760px;
    background: var(--card);
    border: 1px solid #dbe3ed;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 10px 24px rgba(30, 49, 74, .055);
    overflow: visible
}
.admission-card {
    --accent: var(--navy);
    padding: 0 30px 30px
}
.card-susi {
    --accent: var(--navy)
}
.card-jungsi {
    --accent: var(--red)
}
.card-common {
    --accent: var(--gold)
}
.card-tab {
    position: absolute;
    top: -16px;
    left: -1px;
    z-index: 4;
    width: 196px;
    height: 54px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--accent);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
    clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 0 100%);
    box-shadow: 0 5px 12px rgba(30, 49, 74, .08)
}
.card-head {
    padding-top: 76px
}
.eyebrow {
    margin: 0 0 17px;
    color: var(--sub);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: -.025em
}
.card-head h2 {
    margin: 0;
    color: var(--title);
    font-size: 31px;
    line-height: 1.26;
    font-weight: 900;
    letter-spacing: -.055em;
    word-break: keep-all
}
.accent-line {
    position: absolute;
    top: 168px;
    left: 30px;
    right: 30px;
    height: 1.5px;
    background: var(--accent);
    opacity: .92
}
.menu-list {
    position: absolute;
    top: 194px;
    left: 30px;
    right: 30px
}
.menu-list a {
    min-height: 76px;
    padding: 5px 4px 5px 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5eaf0;
    color: #27364c;
    font-size: 14.5px;
    line-height: 1.62;
    font-weight: 700;
    letter-spacing: -.027em;
    word-break: keep-all
}
.menu-list a:last-child {
    border-bottom: 0
}
.menu-list b {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #435064;
    font-size: 18px;
    font-weight: 500;
    transition: transform .16s ease, color .16s ease
}
.menu-list a:hover span,
.menu-list a:focus-visible span,
.menu-list a:hover b,
.menu-list a:focus-visible b {
    color: var(--accent)
}
.menu-list a:hover b,
.menu-list a:focus-visible b {
    transform: translateX(3px)
}
.admission-card::after,
.promo-card::after {
    content: "";
    position: absolute;
    z-index: 6;
    left: -1px;
    bottom: -1px;
    width: 30px;
    height: 30px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    pointer-events: none
}
.admission-card::after {
    background: var(--accent)
}
.promo-card::after {
    background: #0b3d91
}
.promo-card {
    padding: 38px 24px 20px
}
.promo-logo {
    width: 188px;
    max-width: 78%;
    margin: 14px auto 34px
}
.promo-links {
    display: flex;
    flex-direction: column;
    gap: 10px
}
.promo-links a {
    min-height: 50px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #d6e0ec;
    border-radius: 8px;
    background: #fff;
    color: #123a77;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.025em
}
.promo-links b {
    color: #294a7c;
    font-size: 21px;
    font-weight: 500
}
.sns-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 27px;
    margin-top: 23px
}
.sns-row img {
    height: 30px;
    width: auto;
    object-fit: contain
}
.mascot {
    position: absolute;
    right: 8px;
    bottom: -18px;
    width: min(300px, 82%);
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 8px 10px rgba(30, 47, 70, .10));
    pointer-events: none
}
.footer {
    background: #fff;
    border-top: 1px solid #dfe6ef
}
.footer-inner {
    width: min(var(--content-max), calc(100% - 56px));
    height: 74px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #66758a
}
.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    line-height: 1.45;
    white-space: nowrap
}
.footer-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: .78
}
.footer-item.address {
    white-space: normal;
    min-width: 250px
}
.footer-sep {
    width: 1px;
    height: 34px;
    background: #d8e0e9
}
.copyright {
    font-size: 11.5px;
    white-space: nowrap
}
.footer-building {
    width: 106px;
    height: auto;
    margin-left: auto;
    opacity: .72
}
@media (min-width:1181px) and (min-height:1100px) {
    :root {
        --card-h: 720px
    }
    .main-area {
        padding-top: 42px;
        padding-bottom: 42px
    }
}
@media (min-width:1181px) and (min-height:1350px) {
    :root {
        --card-h: 740px
    }
}
@media (max-width:1180px) {
    .intro-page {
        grid-template-rows: auto auto auto
    }
    .topbar-inner,
    .content-grid,
    .footer-inner {
        width: calc(100% - 36px)
    }
    .topbar {
        padding: 14px 0
    }
    .topbar-inner {
        height: auto
    }
    .main-area {
        display: block;
        padding: 38px 0 28px
    }
    .content-grid {
        grid-template-columns: 1fr
    }
    .admission-card,
    .promo-card {
        height: 490px;
        min-height: 490px;
        max-height: none
    }
    .promo-card {
        min-height: 420px
    }
    .mascot {
        width: 260px;
        right: -16px;
        bottom: -24px
    }
    .footer-inner {
        height: auto;
        min-height: 74px;
        flex-wrap: wrap;
        padding: 12px 0
    }
    .footer-building {
        margin-left: 0
    }
}
@media (max-width:900px) {
    .brand-area h1 {
        font-size: 21px
    }
    .deu-logo {
        width: 150px
    }
    .main-area {
        padding-top: 32px
    }
    .admission-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }
    .admission-card {
        height: 450px;
        min-height: 450px
    }
    .promo-card {
        margin-top: 8px;
        height: 500px
    }
    .card-tab {
        top: -13px
    }
    .card-head {
        padding-top: 74px
    }
    .accent-line {
        top: 164px
    }
    .menu-list {
        top: 190px
    }
    .menu-list a {
        min-height: 70px
    }
}
@media (max-width:600px) {
    .topbar-inner,
    .content-grid,
    .footer-inner {
        width: calc(100% - 24px)
    }
    .brand-area {
        gap: 12px
    }
    .brand-divider {
        height: 28px
    }
    .brand-area h1 {
        font-size: 17px
    }
    .deu-logo {
        width: 128px
    }
    .admission-card {
        padding: 0 24px 24px;
        border-radius: 0 15px 15px 0
    }
    .promo-card {
        padding: 30px 20px 18px;
        border-radius: 0 15px 15px 0
    }
    .card-tab {
        top: -11px;
        width: 160px;
        height: 47px;
        padding: 0 23px;
        font-size: 17px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%)
    }
    .card-head {
        padding-top: 68px
    }
    .eyebrow {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.5
    }
    .card-head h2 {
        font-size: 26px;
        line-height: 1.28
    }
    .accent-line {
        left: 24px;
        right: 24px;
        top: 151px
    }
    .menu-list {
        left: 24px;
        right: 24px;
        top: 176px
    }
    .menu-list a {
        min-height: 67px;
        font-size: 13.5px;
        line-height: 1.55;
        padding: 4px 3px
    }
    .promo-logo {
        width: 170px;
        margin-bottom: 26px
    }
    .mascot {
        width: 185px;
        right: 4px;
        bottom: -14px
    }
    .admission-card::after,
    .promo-card::after {
        width: 26px;
        height: 26px
    }
    .footer-sep {
        display: none
    }
    .footer-item,
    .copyright {
        width: 100%;
        white-space: normal
    }
    .footer-building {
        display: none
    }
}
/* 실제 휴대폰 폭에서는 캐릭터를 하단 장식 크기로 축소 */
@media (max-width:480px) {
    .mascot {
        width: 130px;
        right: 8px;
        bottom: -10px
    }
}
.slider-dots {
    display: none
}
@media (max-width:768px) {
    .main-area {
        display: block;
        padding: 28px 0 22px;
        overflow: hidden
    }
    .main-area::before {
        background: linear-gradient(rgba(247, 250, 253, .89), rgba(247, 250, 253, .89)), url("campus-bg.jpg") center center / cover no-repeat;
        filter: saturate(.68) contrast(.86)
    }
    .content-grid {
        width: 100%;
        display: flex;
        align-items: stretch;
        gap: 14px;
        margin: 0;
        padding: 14px 18px 26px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }
    .content-grid::-webkit-scrollbar {
        display: none
    }
    .admission-grid {
        display: contents
    }
    .admission-card,
    .promo-card {
        flex: 0 0 calc(100vw - 54px);
        width: calc(100vw - 54px);
        height: min(610px, calc(100dvh - 190px));
        min-height: 500px;
        max-height: 610px;
        scroll-snap-align: center;
        scroll-snap-stop: always
    }
    .promo-card {
        margin: 0;
        min-height: 500px
    }
    .slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0 auto 4px
    }
    .slider-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #c5cfdd;
        cursor: pointer;
        transition: width .2s ease, background .2s ease
    }
    .slider-dot.is-active {
        width: 24px;
        background: #0b3d91
    }
}
@media (max-width:600px) {
    .content-grid {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        scroll-padding-inline: 16px
    }
    .admission-card,
    .promo-card {
        flex-basis: calc(100vw - 48px);
        width: calc(100vw - 48px)
    }
}
@media (max-width:420px) {
    .admission-card,
    .promo-card {
        height: min(570px, calc(100dvh - 170px));
        min-height: 470px
    }
    .promo-card {
        min-height: 470px
    }
}
@media (max-width:900px) {
    .topbar-inner {
        flex-wrap: wrap;
        row-gap: 10px
    }
    .top-actions {
        display: flex !important;
        width: 100%;
        gap: 8px;
        justify-content: center;
        margin-left: 0
    }
    .top-action {
        display: flex !important;
        flex: 1 1 0;
        min-width: 0;
        max-width: 220px;
        height: 38px;
        padding: 0 10px;
        gap: 6px;
        font-size: 12px;
        white-space: nowrap
    }
}
@media (max-width:600px) {
    .topbar-inner {
        align-items: center
    }
    .brand-area {
        width: 100%;
        justify-content: center
    }
    .top-actions {
        width: 100%;
        gap: 6px
    }
    .top-action {
        max-width: none;
        height: 36px;
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: -.35px
    }
}
@media (max-width:380px) {
    .top-action {
        font-size: 10.5px;
        padding: 0 6px
    }
}
/* 수시 메뉴 일정 정보 */
.card-susi .menu-list a {
    min-height: 84px
}
.menu-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0
}
.menu-title {
    display: block;
    color: #27364c;
    font: inherit
}
.menu-date {
    display: block;
    margin-top: 5px;
    color: #7a8798;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: normal
}
@media (max-width:768px) {
    .card-susi .menu-list a {
        min-height: 78px
    }
    .menu-date {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.35
    }
}
@media (max-width:420px) {
    .card-susi .menu-list a {
        min-height: 75px
    }
    .menu-date {
        font-size: 10.5px
    }
}
/* 데스크톱 세로 높이 보정 */
@media (min-width:1200px) and (max-height:1100px) {
    .main-area {
        padding-top: 24px;
        padding-bottom: 12px
    }
}
/* 1366x768 등 세로 높이가 낮은 PC 화면 대응 */
@media (min-width:901px) and (max-height:800px) {
    .intro-page {
        grid-template-rows: 72px minmax(0, 1fr) 58px
    }
    .topbar-inner {
        height: 72px
    }
    .main-area {
        padding-top: 18px;
        padding-bottom: 12px
    }
    .admission-card,
    .promo-card {
        height: 560px;
        min-height: 560px;
        max-height: 560px
    }
    .footer-inner {
        height: 58px
    }
}
/* 상단 홈페이지 바로가기 가독성 개선 */
.top-action:first-child {
    background: #0b3d82;
    border-color: #0b3d82;
    color: #fff
}
.top-action:last-child {
    background: #f4f7fb;
    border-color: #c9d6e6;
    color: #123d7d
}
.top-action:hover,
.top-action:focus-visible {
    background: #0b3d82;
    border-color: #0b3d82;
    color: #fff
}
@media (max-width:900px) {
    .top-action {
        min-width: 0;
        height: 38px;
        padding: 0 10px;
        font-size: 12px
    }
}
@media (max-width:600px) {
    .top-action {
        height: 36px;
        padding: 0 8px;
        font-size: 11px
    }
}
/* 2026-08-14 : 카드 포커스 색상 보강 */
/* 1번째(수시) 카드 - 포커스/호버 시 글자색을 더 밝고 선명하게 */
.card-susi .menu-list a:hover .menu-title,
.card-susi .menu-list a:focus-visible .menu-title {
    color: #1976d2;
}
.card-susi .menu-list a:hover .menu-date,
.card-susi .menu-list a:focus-visible .menu-date {
    color: #4f86c6;
}
.card-susi .menu-list a:hover b,
.card-susi .menu-list a:focus-visible b {
    color: #1976d2;
}
/* 4번째(홍보) 카드 - 버튼 포커스/호버 시 색상 변경 */
.promo-links a {
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.promo-links a b {
    transition: color .16s ease, transform .16s ease;
}
.promo-links a:hover,
.promo-links a:focus-visible {
    background: #0b3d91;
    border-color: #0b3d91;
    color: #fff;
}
.promo-links a:hover b,
.promo-links a:focus-visible b {
    color: #fff;
    transform: translateX(2px);
}
/* 2026-08-14 : 1900px 이상 데스크톱에서는 페이지 스크롤 제거 */
@media (min-width:1900px) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    .intro-page {
        width: 100%;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }
}
/* 1900px대 저해상도 화면에서 홍보 버튼과 캐릭터가 겹치지 않도록 보정 */
@media (min-width:1900px) and (max-height:1000px) {
    .mascot {
        width: 210px;
        right: 8px;
        bottom: -18px;
    }
}
/* 2026-08-14 : PC 카드 리스트 가독성 개선 (+1.5px) */
@media (min-width:901px) {
    .menu-list a {
        font-size: 16px;
    }
    .menu-date {
        font-size: 12.5px;
    }
    .promo-links a {
        font-size: 15.5px;
    }
}
