/* ==========================================================================
   K-인똥구리 놀이문화 레이아웃 공통 CSS
   헤더, 푸터, 공통 컨테이너, 모바일 반응형 포함
   ========================================================================== */

/* ── Google Fonts 임포트 ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Gmarket+Sans:wght@300;500;700&display=swap');

/* ── CSS 변수 (디자인 토큰) ── */
:root {
    /* 브랜드 컬러 팔레트 */
    --kid-orange: #FF6B2C;       /* 메인 오렌지: 따뜻하고 생동감 있는 어린이 컬러 */
    --kid-orange-light: #FF9A62;
    --kid-orange-dark: #E0511B;
    --kid-yellow: #FFD93D;       /* 서브 옐로: 즐거움, 에너지 */
    --kid-green: #6BCB77;        /* 포인트 그린: 자연, 성장 */
    --kid-blue: #4D96FF;         /* 포인트 블루: 신뢰, 안정 */
    --kid-purple: #C77DFF;       /* 포인트 퍼플: 창의성 */

    /* 중립 컬러 */
    --dark-bg: #1A1A2E;          /* 어두운 배경 */
    --dark-surface: #16213E;     /* 카드/섹션 배경 */
    --dark-card: #0F3460;        /* 짙은 카드 */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.72);
    --text-muted: rgba(255,255,255,0.45);

    /* 라이트 섹션용 */
    --light-bg: #FFF9F5;
    --light-text: #2D2D2D;
    --light-muted: #666666;

    /* 그라디언트 */
    --grad-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 40%, #0F3460 100%);
    --grad-orange: linear-gradient(135deg, #FF6B2C, #FFD93D);
    --grad-cool: linear-gradient(135deg, #4D96FF, #C77DFF);

    /* 레이아웃 */
    --header-h: 74px;            /* 헤더 기본 높이 */
    --header-h-slim: 60px;       /* 스크롤 후 슬림 높이 */
    --container-max: 1080px;     /* 메인 m-wrap과 1:1 완벽 일치 */
    --container-pad: 20px;
    --border-r: 16px;            /* 기본 border-radius */

    /* 폰트 */
    --font-main: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    --font-brand: 'Gmarket Sans', 'Noto Sans KR', sans-serif;

    /* 트랜지션 */
    --trans-fast: 0.18s ease;
    --trans-base: 0.3s ease;
    --trans-slow: 0.5s ease;

    /* 섀도 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.18);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.28);
    --shadow-orange: 0 8px 28px rgba(255,107,44,0.38);
}

/* ==========================================================================
   K-인똥구리 3색 시그니처 스크롤 시스템 (K: 주황 #F15A24 / -: 갈색 #94401C / 인똥구리: 초록 #0A6C3B)
   ========================================================================== */

/* ── 1. PC 데스크탑 브라우저 3색 스크롤바 (Chrome, Edge, Safari, Whale) ── */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #FAF8F5;
    border-left: 1px solid #EFECE6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F15A24 0%, #94401C 50%, #0A6C3B 100%) !important;
    border-radius: 9999px;
    border: 2px solid #FAF8F5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D94614 0%, #783214 50%, #064E2A 100%) !important;
}

/* 스크롤바 상단 화살표 (주황) */
::-webkit-scrollbar-button:vertical:start:decrement {
    display: block;
    height: 14px;
    background-color: #FAF8F5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><polygon points='5,1 1,8 9,8' fill='%23F15A24'/></svg>");
}

::-webkit-scrollbar-button:vertical:start:decrement:hover {
    background-color: #FFF2EB;
}

/* 스크롤바 하단 화살표 (초록) */
::-webkit-scrollbar-button:vertical:end:increment {
    display: block;
    height: 14px;
    background-color: #FAF8F5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><polygon points='1,2 9,2 5,9' fill='%230A6C3B'/></svg>");
}

::-webkit-scrollbar-button:vertical:end:increment:hover {
    background-color: #EBF7EE;
}

/* ── 2. PC & 모바일 공통 최상단 3색 스크롤 진행 인디케이터 (Top Scroll Indicator) ── */
.kid-scroll-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;          /* 회색 선 제거 (완전 투명) */
    z-index: 999999;
    pointer-events: none;
}

.kid-scroll-bar {
    height: 100%;
    width: 0%;
    /* K: 주황(#F15A24) ➔ -: 갈색(#94401C) ➔ 인똥구리: 초록(#0A6C3B) 3색 완벽 일치 */
    background: linear-gradient(to right, #F15A24 0%, #94401C 50%, #0A6C3B 100%);
    box-shadow: 0 2px 8px rgba(10, 108, 59, 0.45);
    position: relative;
    transition: width 0.06s ease-out;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* ── 전역 리셋 ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background: #ffffff;
    color: #222222;
    min-height: 100dvh;
    overflow-x: clip;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   K-인똥구리 100% 고화질 벡터 SVG 마우스 커서 시스템
   ========================================================================== */
html, body {
    cursor: url('../img/cursor_default.svg') 4 3, auto;
}

/* 링크, 버튼, 탭, 인터랙티브 요소 호버 시 100% 선명한 SVG 포인터 */
a, button, [role="button"], input[type="submit"], input[type="button"], select, label, 
.m-slider-btn, .kid-btn-scroll, .m-card-action-btn, .kid-header-cta, .m-gallery-more, .m-prog-btn, .m-hero-btn,
.kid-drawer-toggle, .kid-drawer-close, .m-center-photo, .m-book-cover-wrap {
    cursor: url('../img/cursor_pointer.svg') 10 2, pointer !important;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ── 웹 접근성: 건너뛰기 링크 ── */
.kid-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--kid-orange);
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top 0.2s;
}
.kid-skip-link:focus {
    top: 0;
}

/* ==========================================================================
   헤더 (HEADER)
   ========================================================================== */
.kid-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: #ffffff;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: height var(--trans-base), background var(--trans-base), box-shadow var(--trans-base);
}

/* 스크롤 시 슬림 헤더 */
.kid-header.shrunk {
    height: var(--header-h-slim);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-bottom-color: #E0E0E0;
}

.kid-header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ── 로고 ── */
.kid-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.kid-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height var(--trans-base);
}

.kid-logo-img.logo-nature {
    height: 48px;
}

.kid-logo-img.logo-cali {
    height: 46px;
}

.kid-logo-img.logo-ai {
    height: 48px;
}

.kid-header.shrunk .kid-logo-img {
    height: 38px;
}

/* 텍스트 로고 (이미지 없을 때 폴백) */
.kid-logo-text {
    font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kid-logo-text .logo-k {
    color: #F15A24;
}

.kid-logo-text .logo-dash {
    color: #94401C;
    margin: 0 1px;
}

.kid-logo-text .logo-name {
    color: #0A6C3B;
}

.kid-logo-text .logo-sub {
    color: #1E293B;
    font-size: 1.15rem;
    font-weight: 700;
}

/* ── GNB 네비게이션 (레퍼런스 이미지 완벽 일치) ── */
.kid-gnb-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: flex-end;
}

.kid-gnb {
    display: flex;
    align-items: center;
    gap: 2px;
}

.kid-gnb-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.kid-gnb-item {
    position: relative;
}

.kid-gnb-link {
    display: block;
    padding: 8px 11px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
    font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
    border-radius: 8px;
    transition: all var(--trans-fast);
    white-space: nowrap;
}

.kid-gnb-link:hover,
.kid-gnb-item.active .kid-gnb-link {
    color: #0A6C3B;
    background: rgba(10, 108, 59, 0.06);
}

/* GNB 2단 드롭다운 */
.kid-gnb-sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity var(--trans-base), visibility var(--trans-base), transform var(--trans-base);
    pointer-events: none;
    z-index: 1000;
}

.kid-gnb-item:hover .kid-gnb-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.kid-gnb-sub-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    border-radius: 8px;
    transition: color var(--trans-fast), background var(--trans-fast);
    white-space: nowrap;
}

.kid-gnb-sub-link:hover {
    color: #0A6C3B;
    background: rgba(10, 108, 59, 0.08);
}

/* ── 헤더 우측 로그인 / 로그아웃 버튼 (about.css 크림/포레스트 딥그린 감성) ── */
.kid-header-auth-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kid-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px;
    background: #FFFDF9;
    color: #1E293B !important;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Gmarket Sans', 'Noto Sans KR', var(--font-ko), sans-serif;
    border-radius: 20px;
    white-space: nowrap;
    border: 1.5px solid #D4C9B6;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.06);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.kid-header-cta i {
    font-size: 0.85rem;
    color: #4A7C59;
    transition: transform 0.2s ease;
}

/* 로그인 버튼 (클래식 내추럴 딥그린 하이라이트) */
.kid-header-cta.cta-login:hover {
    background: #4A7C59;
    color: #FFFFFF !important;
    border-color: #4A7C59;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.28);
}

.kid-header-cta.cta-login:hover i {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* 관리자 대시보드 버튼 */
.kid-header-cta.cta-admin {
    background: #EDE8DC;
    border-color: #C4A882;
    color: #3D2B1F !important;
}

.kid-header-cta.cta-admin:hover {
    background: #3D2B1F;
    color: #FFFDF9 !important;
    border-color: #3D2B1F;
    transform: translateY(-2px);
}

.kid-header-cta.cta-admin:hover i {
    color: #FFFDF9;
}

/* 로그아웃 버튼 */
.kid-header-cta.cta-logout {
    color: #6B5744 !important;
}

.kid-header-cta.cta-logout:hover {
    background: #C0392B;
    color: #FFFFFF !important;
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.25);
}

.kid-header-cta.cta-logout:hover i {
    color: #FFFFFF;
}

.kid-header-cta:active {
    transform: translateY(0);
}

/* ── 모바일 햄버거 버튼 ── */
/* ── 모바일 햄버거 버튼 (about.html 톤앤매너 최고급 디자인) ── */
.kid-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #FFFDF9;
    border: 1.5px solid #E2D9C8;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(61, 43, 31, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.kid-mobile-toggle:hover {
    background: #F7F3EA;
    border-color: #4A7C59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
    transform: translateY(-1px);
}

.kid-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2.2px;
    background: #3D2B1F;
    border-radius: 2px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.kid-mobile-toggle:hover span {
    background: #4A7C59;
}

/* 햄버거 → X 변환 (드로어 열림 상태) */
.kid-mobile-toggle.is-active {
    background: #F1ECE1;
    border-color: #E8723A;
}
.kid-mobile-toggle.is-active span {
    background: #E8723A;
}
.kid-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7.2px) rotate(45deg);
}
.kid-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.kid-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7.2px) rotate(-45deg);
}

/* ==========================================================================
   본문 컨테이너 (상단 헤더 높이만큼 패딩)
   ========================================================================== */
.kid-wrapper {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* 메인형: 풀스크린 (각 섹션이 헤더 오버랩 처리) */
.kid-wrapper.main-type .kid-content {
    padding-top: 0;
    width: 100%;
}

/* 서브형 & 일반 페이지: 고정 헤더 높이(74px) 완벽 확보 */
.kid-wrapper.sub-type .kid-content,
.kid-wrapper:not(.main-type) .kid-content,
.kid-content {
    padding-top: var(--header-h, 74px);
    width: 100%;
    flex: 1;
}

/* 서브형 콘텐츠 래퍼 */
.kid-sub-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 48px var(--container-pad) 80px;
}

/* ==========================================================================
   푸터 (FOOTER)
   ========================================================================== */
/* ==========================================================================
   푸터 (FOOTER) — 첨부 레퍼런스 스타일 & PC/모바일 반응형
   ========================================================================== */
.kid-footer {
    background: #FFFFFF;
    border-top: 1px solid #EAEAEA;
    padding: 44px 0 32px;
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
    color: #333333;
}

.kid-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 1. 상단 바: 브랜드명 + FOLLOW US & SNS ── */
.kid-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid #EAEAEA;
    flex-wrap: wrap;
    gap: 16px;
}

.kid-footer-brand-title {
    display: inline-flex;
    align-items: center;
}

.kid-footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.kid-footer-logo:hover {
    opacity: 0.85;
}

.kid-footer-logo-img {
    height: 38px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    /* 세련된 흑백 모노톤 처리 */
    filter: grayscale(100%) contrast(115%) opacity(0.85);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.kid-footer-logo:hover .kid-footer-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-1px);
}

.kid-footer-logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: #222222;
    letter-spacing: -0.02em;
    font-family: var(--font-brand, 'Jua', 'Noto Sans KR', sans-serif);
}

.kid-footer-logo-text .sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666666;
    margin-left: 4px;
}

.kid-footer-sns-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kid-footer-sns-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: #111111;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kid-footer-sns-divider {
    color: #D1D5DB;
    font-size: 0.85rem;
}

.kid-footer-sns-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kid-footer-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F4F4F5;
    border: 1px solid #E4E4E7;
    color: #52525B;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.kid-footer-sns-link:hover {
    background: #4A7C59;
    border-color: #4A7C59;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 124, 89, 0.25);
}

/* ── 2. 중단 본문: CS CENTER + COMPANY 정보 (PC 가로 그리드 / 모바일 스택) ── */
.kid-footer-mid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    padding: 32px 0 28px;
}

.kid-footer-head {
    font-size: 0.88rem;
    font-weight: 800;
    color: #111111;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* CS 센터 */
.kid-footer-cs-col {
    display: flex;
    flex-direction: column;
}

.kid-footer-tel {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: var(--font-brand, 'Jua', 'Noto Sans KR', sans-serif);
}

.kid-footer-cs-desc {
    font-size: 0.82rem;
    color: #71717A;
    line-height: 1.7;
    word-break: keep-all;
}

/* COMPANY 정보 */
.kid-footer-company-col {
    display: flex;
    flex-direction: column;
}

.kid-footer-company-info {
    font-size: 0.82rem;
    color: #71717A;
    line-height: 1.85;
}

.kid-info-line {
    margin-bottom: 4px;
}

.kid-info-line strong {
    color: #27272A;
    font-weight: 700;
}

.kid-info-sep {
    display: inline-block;
    margin: 0 8px;
    color: #D4D4D8;
    font-size: 0.76rem;
}

.kid-info-item a {
    color: #71717A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kid-info-item a:hover {
    color: #4A7C59;
    text-decoration: underline;
}

/* ── 3. 하단 바: Copyright + 약관/대시보드 링크 ── */
.kid-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid #EAEAEA;
    flex-wrap: wrap;
    gap: 12px;
}

.kid-footer-copy {
    font-size: 0.78rem;
    color: #888888;
    margin: 0;
}

.kid-footer-copy strong {
    color: #444444;
    font-weight: 600;
}

.kid-footer-fnb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kid-footer-fnb a {
    font-size: 0.78rem;
    color: #71717A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kid-footer-fnb a:hover {
    color: #4A7C59;
    text-decoration: underline;
}

.kid-fnb-sep {
    color: #E4E4E7;
    font-size: 0.72rem;
}

/* ==========================================================================
   전역 이용약관 & 개인정보처리방침 모달 팝업 (Footer Policy Modal)
   ========================================================================== */
.kid-policy-modal-overlay {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.kid-policy-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(30, 24, 20, 0.68);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.kid-policy-modal-container {
    position: relative; z-index: 10;
    width: 100%; max-width: 680px; max-height: 88vh;
    background: #FFFDF9; border: 2px solid #E2D9C8;
    border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    display: flex; flex-direction: column; overflow: hidden;
    animation: kidPolicyModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes kidPolicyModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.kid-policy-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; background: #F7F3EA; border-bottom: 1.5px solid #E2D9C8;
}
.kid-policy-modal-title {
    font-size: 1.1rem; font-weight: 800; color: #3D2B1F;
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
}
.kid-policy-modal-title i { color: #4A7C59; font-size: 1.25rem; }
.kid-policy-modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent; border: 1px solid #D4C9B6;
    color: #6B5744; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease;
}
.kid-policy-modal-close:hover {
    background: #4A7C59; color: #fff; border-color: #4A7C59;
}
.kid-policy-modal-body {
    padding: 24px 26px; overflow-y: auto; max-height: calc(88vh - 135px);
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
    color: #4A3E35; font-size: 0.85rem; line-height: 1.85; word-break: break-word;
}
.kid-policy-modal-body h4 {
    font-size: 0.92rem; font-weight: 700; color: #3D2B1F;
    margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px dashed #E2D9C8;
}
.kid-policy-modal-body h4:first-child { margin-top: 0; }
.kid-policy-modal-body p { margin-bottom: 10px; }
.kid-policy-modal-body ul, .kid-policy-modal-body ol {
    margin: 6px 0 12px 20px; padding: 0;
}
.kid-policy-modal-body li { margin-bottom: 4px; }
.kid-policy-modal-foot {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 14px 24px; background: #F7F3EA; border-top: 1.5px solid #E2D9C8;
}
.kid-policy-btn-close {
    padding: 8px 24px; border-radius: 4px; font-size: 0.86rem; font-weight: 700;
    background: #4A7C59; border: 1px solid #4A7C59; color: #FFFFFF;
    cursor: pointer; transition: all 0.2s ease;
}
.kid-policy-btn-close:hover { background: #3C6548; }

/* ── 모바일 반응형 (<=768px) ── */
@media (max-width: 768px) {
    .kid-footer {
        padding: 32px 0 24px;
    }

    .kid-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 18px;
    }

    .kid-footer-brand-title {
        font-size: 1.35rem;
    }

    .kid-footer-sns-wrap {
        width: 100%;
        justify-content: flex-start;
    }

    .kid-footer-mid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 22px 0 20px;
    }

    .kid-footer-tel {
        font-size: 1.65rem;
    }

    .kid-info-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 6px;
    }

    .kid-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 18px;
    }

    .kid-footer-fnb {
        gap: 6px;
    }
}

/* ==========================================================================
   모바일 슬라이딩 드로어 (Mobile Drawer Navigation — about.html 톤앤매너)
   ========================================================================== */
.kid-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 24, 20, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kid-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.kid-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100dvh;
    background: #FAF7F0;
    border-left: 2px solid #E2D9C8;
    box-shadow: -10px 0 36px rgba(61,43,31,0.18);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kid-drawer.is-open {
    transform: translateX(0);
}

/* 드로어 헤더 */
.kid-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    background: #F1ECE1;
    border-bottom: 1.5px solid #E2D9C8;
}

.kid-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kid-drawer-seal {
    width: 28px;
    height: 28px;
    background: #B92B27;
    border: 1px solid rgba(255,255,255,0.7);
    outline: 1.5px solid #B92B27;
    outline-offset: 1px;
    border-radius: 4px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFDF9;
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    font-size: 0.52rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.kid-drawer-title-wrap {
    display: flex;
    flex-direction: column;
}

.kid-drawer-logo {
    font-family: 'Jua', 'Noto Sans KR', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #3D2B1F;
    letter-spacing: -0.02em;
}

.kid-drawer-logo em {
    font-style: normal;
    color: #4A7C59;
}

.kid-drawer-sub {
    font-size: 0.72rem;
    color: #8B7A6B;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.kid-drawer-close {
    width: 36px;
    height: 36px;
    background: #FFFDF9;
    border: 1px solid #D4C9B6;
    border-radius: 50%;
    color: #5A4D41;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kid-drawer-close:hover {
    background: #4A7C59;
    color: #ffffff;
    border-color: #4A7C59;
}

/* 드로어 유저 웰컴 바 */
.kid-drawer-user-bar {
    padding: 14px 20px;
    background: #FFFDF9;
    border-bottom: 1px solid #EAE3D6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kid-dr-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #5A4D41;
}

.kid-dr-user-icon {
    font-size: 1.25rem;
    color: #4A7C59;
}

.kid-dr-user-txt strong {
    color: #3D2B1F;
    font-weight: 800;
}

.kid-dr-user-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kid-dr-user-btn {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kid-dr-user-btn.login {
    background: #4A7C59;
    color: #ffffff;
}

.kid-dr-user-btn.signup {
    background: #EDE8DC;
    color: #5A4D41;
    border: 1px solid #D4C9B6;
}

.kid-dr-user-btn.admin {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.kid-dr-user-btn.logout {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* 드로어 본문 */
.kid-drawer-body {
    flex: 1;
    padding: 20px 18px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kid-drawer-sec-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #7A6B5D;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

/* 드로어 GNB */
.kid-drawer-gnb {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kid-drawer-gnb-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #FFFDF9;
    border: 1.5px solid #EAE3D6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kid-dr-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kid-dr-icon {
    font-size: 1rem;
    color: #4A7C59;
    width: 20px;
    text-align: center;
}

.kid-dr-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C4A882;
}

.kid-dr-link-txt {
    font-size: 0.92rem;
    font-weight: 700;
    color: #3D2B1F;
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
}

.kid-dr-arrow {
    font-size: 0.8rem;
    color: #C4A882;
    transition: transform 0.2s ease;
}

.kid-drawer-gnb-link:hover,
.kid-drawer-gnb-item.active .kid-drawer-gnb-link {
    background: #F1ECE1;
    border-color: #4A7C59;
    transform: translateX(3px);
}

.kid-drawer-gnb-item.active .kid-dr-link-txt {
    color: #4A7C59;
}

.kid-drawer-gnb-item.active .kid-dr-arrow {
    color: #4A7C59;
}

/* 체험신청 하이라이트 메뉴 */
.kid-drawer-gnb-link.highlight {
    background: #FFF9F5;
    border-color: rgba(232, 114, 58, 0.4);
}

.kid-drawer-gnb-link.highlight:hover {
    background: #FFF0E8;
    border-color: #E8723A;
}

.kid-dr-badge-hot {
    background: #E8723A;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

/* 드로어 서브메뉴 */
.kid-drawer-gnb-sub {
    padding: 6px 0 4px 34px;
    display: none;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}

.kid-drawer-gnb-item.has-sub.is-open .kid-drawer-gnb-sub {
    display: flex;
}

.kid-drawer-gnb-sub-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B5744;
    border-left: 2px solid #D4C9B6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kid-drawer-gnb-sub-link:hover {
    color: #4A7C59;
    border-color: #4A7C59;
    padding-left: 16px;
}

/* 드로어 하단 문의 카드 */
.kid-drawer-info-card {
    margin-top: auto;
    background: #F1ECE1;
    border: 1.5px solid #E2D9C8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.kid-dr-card-head {
    font-size: 0.78rem;
    font-weight: 800;
    color: #5A4D41;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kid-dr-tel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4A7C59;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.kid-dr-tel-btn:hover {
    background: #3C6548;
    transform: translateY(-1px);
}

.kid-dr-card-desc {
    font-size: 0.74rem;
    color: #8B7A6B;
    margin-top: 8px;
}

/* ==========================================================================
   모바일 하단 고정 퀵메뉴 바 (Mobile Bottom Bar)
   ========================================================================== */
.kid-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFDF9;
    border-top: 1.5px solid #EAE3D6;
    box-shadow: 0 -4px 16px rgba(61, 43, 31, 0.07);
    z-index: 9999;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.kid-bot-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7A6B5D;
    padding: 6px 2px 4px;
    transition: all 0.2s ease;
    position: relative;
    max-width: 80px;
}

.kid-bot-icon-wrap {
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kid-bot-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
}

.kid-bot-item:hover,
.kid-bot-item.active {
    color: #4A7C59;
}

.kid-bot-item.active .kid-bot-icon-wrap {
    transform: translateY(-2px);
}

.kid-bot-item.active .kid-bot-label {
    font-weight: 800;
    color: #4A7C59;
}

.kid-bot-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #4A7C59;
    border-radius: 0 0 3px 3px;
}

/* ==========================================================================
   PC 전용 우측 플로팅 퀵메뉴 (PC Quick Menu & TOP Button)
   ========================================================================== */
.kid-pc-quick-wrap {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.kid-pc-quick-card {
    width: 86px;
    background: #FFFFFF;
    border: 1.5px solid #EDE8E1;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(61, 43, 31, 0.09), 0 2px 8px rgba(61, 43, 31, 0.04);
    padding: 16px 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* 상단 QUICK MENU 타이틀 */
.kid-pcq-header {
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #F0ECE6;
}

.kid-pcq-title {
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #4A7C59;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* 퀵메뉴 항목 */
.kid-pcq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.kid-pcq-item:hover {
    background: #F8F5F0;
    transform: translateY(-2px);
}

.kid-pcq-icon {
    font-size: 1.35rem;
    color: #4A7C59;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    line-height: 1;
}

.kid-pcq-item:hover .kid-pcq-icon {
    transform: scale(1.12);
}

/* SNS별 아이콘 고유 컬러 */
.kid-pcq-item .yt-icon {
    color: #FF0000 !important;
}
.kid-pcq-item .insta-icon {
    color: #E1306C !important;
}
.kid-pcq-item .naver-icon {
    color: #03C75A !important;
}
.kid-pcq-item .kakao-icon {
    color: #3C1E1E !important;
}

.kid-pcq-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2B231D;
    text-align: center;
    line-height: 1.25;
    word-break: keep-all;
}

/* 항목 간 얇은 구분선 */
.kid-pcq-divider {
    width: 72%;
    height: 1px;
    background: #F0ECE6;
    margin: 3px auto;
}

/* 하단 독립 원형 TOP 버튼 */
.kid-pcq-top-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #EDE8E1;
    box-shadow: 0 6px 18px rgba(61, 43, 31, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #4A7C59;
    padding: 0;
}

.kid-pcq-top-btn i {
    font-size: 0.82rem;
    line-height: 1;
    margin-bottom: 2px;
    color: #4A7C59;
    transition: transform 0.2s ease, color 0.2s ease;
}

.kid-pcq-top-btn span {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #2B231D;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.kid-pcq-top-btn:hover {
    background: #4A7C59;
    border-color: #4A7C59;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(74, 124, 89, 0.32);
}

.kid-pcq-top-btn:hover i {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.kid-pcq-top-btn:hover span {
    color: #FFFFFF;
}

/* 1024px 이하에서는 PC 퀵메뉴 숨김 */
@media (max-width: 1024px) {
    .kid-pc-quick-wrap {
        display: none !important;
    }
}

/* 1025px 이상 PC에서는 모바일 전용 플로팅 스크롤 버튼 숨김 (PC 퀵메뉴가 TOP 담당) */
@media (min-width: 1025px) {
    .kid-floating-nav {
        display: none !important;
    }
}

/* ==========================================================================
   퀵 네비게이션 플로팅 버튼 세트 (위: 주황 / 아래: 초록 - 모바일용)
   ========================================================================== */
.kid-floating-nav {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--trans-base), visibility var(--trans-base), transform var(--trans-base);
}

.kid-floating-nav.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kid-btn-scroll {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #FFFFFF;
    transition: all var(--trans-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.kid-btn-scroll.top {
    background: linear-gradient(135deg, #FF6B2C, #F15A24);
}

.kid-btn-scroll.top:hover {
    background: linear-gradient(135deg, #FF7D45, #D94614);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(241, 90, 36, 0.45);
}

.kid-btn-scroll.bottom {
    background: linear-gradient(135deg, #4A7C59, #3C6548);
}

.kid-btn-scroll.bottom:hover {
    background: linear-gradient(135deg, #5B926C, #2E5038);
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(74, 124, 89, 0.45);
}

/* ==========================================================================
   서브 페이지 공통 스타일 및 콘텐츠 래퍼
   ========================================================================== */
.kid-sub-wrap .rx-list,
.kid-sub-wrap table {
    width: 100%;
}

.kid-sub-container {
    min-height: 560px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    color: #1E293B;
}

/* 일반 텍스트형 서브페이지만 기본 패딩 적용 */
.kid-sub-container:not(:has(.nc-page)):not(:has(.gl-page)):not(:has(.center-page)):not(:has(.about-page)):not(:has(.prog-page)):not(:has(.apply-page)) {
    padding: 30px 20px 60px;
    margin: 0 auto 40px;
}

.kid-sub-container h1,
.kid-sub-container h2,
.kid-sub-container h3 {
    color: #0F172A;
    font-family: var(--font-main, 'Noto Sans KR', sans-serif);
}

/* 페이지네이션 */
.kid-sub-container .xe_pagination,
.kid-sub-container .pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 32px;
}

.kid-sub-container .xe_pagination a,
.kid-sub-container .xe_pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--trans-fast);
    text-decoration: none;
}

.kid-sub-container .xe_pagination strong,
.kid-sub-container .xe_pagination a.active {
    background: #4A7C59;
    border-color: #4A7C59;
    color: #fff;
}

.kid-sub-container .xe_pagination a:hover {
    border-color: #4A7C59;
    color: #4A7C59;
    background: rgba(74, 124, 89, 0.08);
}

/* ==========================================================================
   반응형 미디어 쿼리 (태블릿 / 모바일)
   ========================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    :root {
        --container-pad: 20px;
        --header-h: 68px;
        --header-h-slim: 60px;
    }

    .kid-gnb-wrap {
        display: none !important;
    }

    .kid-mobile-toggle {
        display: flex !important;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    :root {
        --header-h: 62px;
        --header-h-slim: 56px;
        --container-pad: 16px;
    }

    body {
        padding-bottom: 60px; /* 하단 퀵메뉴 바 공간 확보 */
    }

    .kid-logo-img {
        height: 38px;
    }

    .kid-header {
        height: var(--header-h);
    }

    /* 하단 퀵메뉴 바 활성화 */
    .kid-bottom-bar {
        display: flex;
    }

    /* 플로팅 스크롤 버튼이 하단 퀵메뉴에 가려지지 않도록 위치 상향 조정 */
    .kid-floating-nav {
        right: 14px;
        bottom: 74px;
    }

    .kid-btn-scroll {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .kid-logo-img {
        height: 34px;
    }

    .kid-drawer {
        width: 100vw;
        border-left: none;
    }
}

/* ==========================================================================
   내부 로그인 모달 팝업 (about.html 크림 앤 내추럴 딥그린 감성)
   ========================================================================== */
.kid-login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(30, 24, 20, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: kidLoginFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kidLoginFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.kid-login-modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #FFFDF9;
    border: 2px solid #E2D9C8;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(45, 30, 18, 0.28);
    padding: 34px 28px 28px;
    box-sizing: border-box;
    animation: kidLoginPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes kidLoginPop {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 닫기 버튼 */
.kid-login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F7F3EA;
    border: 1px solid #D4C9B6;
    color: #6B5744;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kid-login-modal-close:hover {
    background: #4A7C59;
    color: #FFFFFF;
    border-color: #4A7C59;
    transform: rotate(90deg);
}

/* 모달 헤더 */
.kid-login-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #E2D9C8;
}

.kid-login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.kid-login-logo-img {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
}

.kid-login-header-text {
    text-align: center;
}

.kid-login-modal-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #18181B;
    font-family: 'Jua', var(--font-ko), sans-serif;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.kid-login-modal-sub {
    font-size: 0.8rem;
    color: #71717A;
    margin: 0;
    font-family: 'Noto Serif KR', serif;
}

/* 입력 필드 */
.kid-login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kid-login-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kid-login-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4A7C59;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Noto Serif KR', serif;
}

.kid-login-input-wrap {
    position: relative;
    width: 100%;
}

.kid-login-input {
    width: 100%;
    padding: 11px 14px;
    background: #FFFFFF;
    border: 1.5px solid #D4C9B6;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #18181B;
    font-family: var(--font-ko), sans-serif;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

.kid-login-input:focus {
    border-color: #4A7C59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
    background: #FFFDF9;
}

/* 옵션 (로그인 유지) */
.kid-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 6px;
}

.kid-login-check-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #52525B;
    user-select: none;
    font-family: 'Noto Serif KR', serif;
}

.kid-login-checkbox {
    display: none;
}

.kid-login-custom-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #D4C9B6;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    transition: all 0.2s ease;
}

.kid-login-checkbox:checked + .kid-login-custom-check {
    background: #4A7C59;
    border-color: #4A7C59;
    color: #FFFFFF;
}

/* 로그인 제출 버튼 */
.kid-login-btn-submit {
    width: 100%;
    padding: 13px 20px;
    background: #4A7C59;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Jua', var(--font-ko), sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.32);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.kid-login-btn-submit:hover {
    background: #3A6345;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 124, 89, 0.42);
}

.kid-login-btn-submit:active {
    transform: translateY(0);
}

/* 하단 링크 */
.kid-login-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #E2D9C8;
    font-size: 0.82rem;
    font-family: 'Noto Serif KR', serif;
}

.kid-login-sublink {
    color: #71717A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kid-login-sublink:hover {
    color: #4A7C59;
    text-decoration: underline;
}

.kid-login-signup-link {
    font-weight: 700;
    color: #4A7C59;
}

.kid-login-sublink-div {
    color: #D4D4D8;
}

/* 로그인 에러 알림 박스 (showdot 감성 에러 박스 & 쉐이크 애니메이션) */
.kid-login-error-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: 12px;
    padding: 11px 16px;
    margin-bottom: 16px;
    color: #DC2626;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Noto Serif KR', serif;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.kid-login-error-alert i {
    font-size: 1.05rem;
    color: #DC2626;
    flex-shrink: 0;
}

.kid-login-error-alert.shake {
    animation: kidErrorShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes kidErrorShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}
