@font-face {
    font-family: 'YeogiOttaeJalnan';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YeogiOttaeJalnanGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_231029@1.1/JalnanGothic.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

:root {
    --bg-pastel: #fef9f3;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-pastel);
    min-height: 100vh;
    color: #2d3436;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.5;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
}

.blob1 {
    background: #ffeaa7;
    top: -10%;
    left: -10%;
    animation: move 20s infinite alternate;
}

.blob2 {
    background: #fab1a0;
    bottom: -10%;
    right: -10%;
    animation: move 25s infinite alternate-reverse;
}

.blob3 {
    background: #a29bfe;
    top: 40%;
    left: 40%;
    animation: move 18s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

.wrapper {
    width: 100%;
    flex: 1;
    padding: 0 2vw 2vh;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    height: auto;
    min-height: 10vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-center-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-family: 'YeogiOttaeJalnanGothic';
    font-size: 38px;
    color: #5d5d5d;

    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;

    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));

    white-space: nowrap;
}

.pc-download-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--theme-color);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-download-btn:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 18px;
    border-radius: 100px;
    box-shadow: var(--card-shadow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-link {
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #2d3436;
}

.main-container {
    max-width: 1400px;
    padding: 0 20px;
}

.program-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .program-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .program-section {
        grid-template-columns: 1fr;
    }

    .banner-img-large {
        max-height: 10vh !important;
    }
}

.card {
    background: var(--white);
    border-radius: 20px;
    border: none;
    padding: 2vh 1.5vw;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 19vh;
    min-height: 180px !important;

    max-height: 19vh;
    z-index: 1;
}


.card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    transition: transform 0.5s ease;
}

.card:hover::before {
    transform: scale(1.1);
    opacity: 0;
}

.card-korean {
    --theme-color: #ee8c95;
    --theme-rgb: 238, 140, 149;
    background: linear-gradient(135deg, #FFF5F6 0%, #FFFFFF 100%);
}

.card-korean::before {
    background: #FFB3BC;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
}

.card-math {
    --theme-color: #157acb;
    --theme-rgb: 21, 122, 203;
    background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
}

.card-math::before {
    background: #6DB3F2;
    top: auto;
    bottom: -40px;
    left: -40px;
    right: auto;
    width: 180px;
    height: 180px;
}

.card-science {
    --theme-color: #ea5e71;
    --theme-rgb: 234, 94, 113;
    background: linear-gradient(135deg, #FFF0F2 0%, #FFFFFF 100%);
}

.card-science .card-title {
    color: #fff;
}

.card-science::before {
    background: #ff9aa5;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -30px;
    left: -30px;
    width: 190px;
    height: 190px;
}

.card-play {
    --theme-color: #79c061;
    --theme-rgb: 121, 192, 97;
    background: linear-gradient(135deg, #F0FFF4 0%, #FFFFFF 100%);
}

.card-play .card-title {
    color: #fff;
}

.card-play::before {
    background: #9ED68B;
    width: 160px;
    height: 160px;
    top: auto;
    bottom: -40px;
    right: -40px;
    left: auto;
}

.card-owl {
    --theme-color: #00b1b2;
    --theme-rgb: 0, 177, 178;
    background: linear-gradient(135deg, #F0FFFA 0%, #FFFFFF 100%);
}

.card-owl::before {
    background: #66D2D3;
    border-radius: 61% 39% 70% 30% / 51% 54% 46% 49%;
    top: -50px;
    left: auto;
    right: -30px;
    width: 200px;
    height: 200px;
}

.card-talk {
    --theme-color: #363a8a;
    --theme-rgb: 54, 58, 138;
    background: linear-gradient(135deg, #F0F1FA 0%, #FFFFFF 100%);
}

.card-talk::before {
    background: #7E82C2;
    top: auto;
    bottom: -50px;
    left: -50px;
    width: 210px;
    height: 210px;
}

.card-plus {
    --theme-color: #3fb359;
    --theme-rgb: 63, 179, 89;
    background: linear-gradient(135deg, #F0FFF4 0%, #FFFFFF 100%);
}

.card-plus::before {
    background: #85D496;
    border-radius: 40%;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
}

.card-eng {
    --theme-color: #ea5414;
    --theme-rgb: 234, 84, 20;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 100%);
}

.card-eng::before {
    background: #FF8F61;
    width: 220px;
    height: 220px;
    top: auto;
    bottom: -60px;
    right: -60px;
    left: auto;
}

.card-story {
    --theme-color: #f8b500;
    --theme-rgb: 248, 181, 0;
    background: linear-gradient(135deg, #FFFAF0 0%, #FFFFFF 100%);
}

.card-story .card-title {
    color: #fff;
}

.card-story::before {
    background: #FFD54F;
    top: -40px;
    left: -40px;
    bottom: auto;
    width: 190px;
    height: 190px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 700;
    z-index: 2;

    position: absolute;
    top: 2.5vh;
    left: 0;
    padding: 6px 16px 6px 12px;
    border-radius: 0 100px 100px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    background: var(--theme-color);
    color: white;
}

.card-image-wrapper {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-top: 45px;
}

.card-image-wrapper img {
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
}

.card-korean .card-image-wrapper {
    margin-top: 35px;
}

.card-korean .card-image-wrapper img {
    height: 110px;
}

.card-science .card-image-wrapper {
    margin-top: 40px;
}

.card-science .card-image-wrapper img {
    height: 110px;
}

.card-eng .card-image-wrapper {
    margin-top: 55px;
}

.card-eng .card-image-wrapper img:first-child {
    height: 90px;
}

.card-eng .card-image-wrapper img:last-child {
    height: 80px;
}

.banner-img-large {
    max-height: 12vh;
    height: 145px;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .card-image-wrapper {
        margin-top: 35px;
    }

    .card-image-wrapper img {
        height: 90px;
    }

    .card-korean .card-image-wrapper img {
        height: 100px;
    }

    .card-science .card-image-wrapper img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-center-text {
        position: static;
        transform: none;
        order: 2;
        font-size: 24px;
        margin: 5px 0;
    }

    #kizm-logo {
        height: 40px !important;
        align-self: flex-start;
    }

    .user-nav {
        align-self: flex-end;
        position: absolute;
        top: 0;
        right: 0;
        padding: 5px 12px;
    }

    .program-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card {
        height: auto !important;
        min-height: 180px !important;
        padding: 2vh 2vw;
    }

    .card-title {
        font-size: 16px;
        top: 20px;
        position: absolute;
        margin-right: 0;
    }

    .card-image-wrapper {
        margin-top: 45px !important;
        justify-content: center;
    }

    .card-image-wrapper img {
        height: 80px;
    }

    .card-korean .card-image-wrapper img {
        height: 90px !important;
    }

    .card-math .card-image-wrapper img {
        height: 80px !important;
    }

    .card-science .card-image-wrapper img {
        height: 90px !important;
    }

    .card-eng .card-image-wrapper img:first-child {
        height: 75px !important;
    }

    .card-eng .card-image-wrapper img:last-child {
        height: 65px !important;
    }


    .bottom-banners {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wide-card {
        height: auto !important;
        min-height: 180px !important;
        padding: 15px;
    }

    .banner-title {
        font-size: 16px;
        top: 15px;
    }

    .jelly-container {
        padding-top: 50px;
    }

    .jelly-sub-card {
        height: 90px;
        padding: 8px;
    }

    .sub-card-logo {
        height: 35px;
    }

    .sub-card-text {
        font-size: 13px;
    }

    .banner-img-large {
        height: 110px !important;
        max-height: 120px;
        margin-top: 30px;
    }

    .footer-content {
        gap: 1rem !important;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-text {
        font-size: 0.8rem;
        min-width: auto;
    }

    .kakao-btn {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .program-section {
        grid-template-columns: 1fr;
    }

    .header-center-text {
        font-size: 24px;
    }

    .card {
        height: auto !important;
        min-height: 180px !important;
        padding: 2vh 2vw;
    }

    .card-title {
        font-size: 16px;
        top: 20px;
        position: absolute;
        margin-right: 0;
    }

    .card-image-wrapper {
        margin-top: 45px !important;
        justify-content: center;
    }

    .card-image-wrapper img {
        height: 80px !important;
    }

    .card::before {
        display: none;
    }

    .banner-img-large {
        max-height: 100px;
    }
}

.card:hover .card-image-wrapper img {
    transform: scale(1.1) rotate(5deg);
}

.double-img {
    gap: 25px;
    transition: transform 0.4s ease;
}

.card:hover .double-img {
    transform: scale(1.1) rotate(5deg);
}

.card:hover .double-img img {
    transform: none;
}

.bottom-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wide-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    height: 19vh;
    min-height: 180px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.card:hover,
.wide-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(var(--theme-rgb), 0.4);
}

.jelly-card {
    --theme-color: #a373ff;
    --theme-rgb: 163, 115, 255;
    background: linear-gradient(135deg, #F3E5F5 0%, #FFFFFF 100%);
}

.jelly-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 225px;
    background: #cbb3ff;
    border-radius: 61% 39% 70% 30% / 51% 54% 46% 49%;
    opacity: 0.15;
    z-index: -1;
    top: auto;
    bottom: -50px;
    left: -50px;
    right: auto;
    transition: transform 0.5s ease;
}

.jelly-card:hover::before {
    transform: scale(1.1);
    opacity: 0;
}

.play-card {
    --theme-color: #f87972;
    --theme-rgb: 248, 121, 114;
    background: linear-gradient(135deg, #FFF0F0 0%, #FFFFFF 100%);
}

.play-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: #ffb3ae;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    z-index: -1;
    top: -40px;
    right: -40px;
    bottom: auto;
    left: auto;
    transition: transform 0.5s ease;
}

.play-card:hover::before {
    transform: scale(1.1);
    opacity: 0;
}

.jelly-card::after,
.play-card::after {
    display: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 2;
}

.banner-title {
    font-size: 18px;
    font-weight: 700;
    position: absolute;
    top: 24px;
    left: 0;
    margin: 0;
    z-index: 20;
    text-align: left;
    color: white;
    padding: 8px 20px 8px 16px;
    border-radius: 0 100px 100px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--theme-color);
}

.banner-img,
.banner-img-large {
    z-index: 5;
    position: relative;
    max-width: 100%;
    transition: transform 0.4s ease;
}

.wide-card:hover .banner-img,
.wide-card:hover .banner-img-large {
    transform: scale(1.1) rotate(5deg);
}

.banner-img {
    height: 10vh !important;
    top: 10px;
}

.banner-img-large {
    max-height: 12vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .bottom-banners {
        grid-template-columns: 1fr;
    }
}

.main-footer {
    background-color: #FFF9E6;
    padding: 2rem 2rem;
    border-top: 3px solid #FFEDBC;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}


.footer-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    color: #8D9396;
}

.copyright {
    margin-top: 0.5rem;
    font-weight: 700;
    color: #AAB0B3;
}

.kakao-btn {
    background: #f7e600;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 900;
    color: #3c1e1e;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(247, 230, 0, 0.3);
    transition: var(--transition);
    display: flex;
    gap: 5px;
}

.kakao-btn img {
    width: 24px;
    height: 24px;
}

.kakao-btn:hover {
    transform: scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    animation: fadeInUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.wide-card {
    animation: fadeInUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.card[data-index="1"] {
    animation-delay: 0.1s;
}

.card[data-index="2"] {
    animation-delay: 0.15s;
}

.card[data-index="3"] {
    animation-delay: 0.2s;
}

.card[data-index="4"] {
    animation-delay: 0.25s;
}

.card[data-index="5"] {
    animation-delay: 0.3s;
}

.card[data-index="6"] {
    animation-delay: 0.35s;
}

.card[data-index="7"] {
    animation-delay: 0.4s;
}

.card[data-index="8"] {
    animation-delay: 0.45s;
}

.card[data-index="9"] {
    animation-delay: 0.5s;
}

.card[data-index="10"] {
    animation-delay: 0.55s;
}

.card[data-index="11"] {
    animation-delay: 0.6s;
}

.wide-card[data-index="1"] {
    animation-delay: 0.65s;
}

.wide-card[data-index="2"] {
    animation-delay: 0.6s;
}

.jelly-container {
    align-items: flex-start;
    padding-top: 60px;
    justify-content: center;
}

.jelly-sub-cards {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.jelly-sub-card {
    background: #F3E5F5;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: 100px;
}

.jelly-sub-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--theme-rgb), 0.4);
}

.sub-card-logo {
    height: 40px;
    object-fit: contain;
}

.sub-card-text {
    font-size: 16px;
    font-weight: 700;
    color: #4A4A4A;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .jelly-sub-cards {
        gap: 10px;
    }

    .jelly-sub-card {
        padding: 10px;
        height: 100px;
    }

    .sub-card-text {
        font-size: 11px;
    }

    .sub-card-logo {
        height: 28px;
    }
}