@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;800&family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
    --color-black: #000;
    --color-white: #fff;
    --color-gray-dark: #1a1a1a;
    --color-gray-mid: #333;
    --color-gray-light: #f8f9fa;
    --color-primary: #005BAC; /* Public institution blue */
    --color-secondary: #6A0DAD; /* Purple accent */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 그누보드 관리자 로그인 바 완전 숨김 (상단 흰색 공백 원인 제거) */
#hd_login_msg {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* 닷홈 무료호스팅 광고 바 CSS 제거 */
body > iframe:first-of-type,
body > div[style*="margin-top"]:first-of-type,
body > center:first-of-type {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.outfit {
    font-family: 'Outfit', sans-serif;
}

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

li {
    list-style: none;
}

/* Header */
.page-head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 40px;
    /* 최상단에서는 은은한 그라데이션으로 자연스럽게 */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.8);
    border: none;
    border-radius: 0;
}

.page-head.scrolled {
    /* 스크롤 시: 흰색 배경 위에서도 글씨가 잘 보이도록 적당히 어두운 반투명 효과 적용하되, 블러(흐림)는 제거 */
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 15px 40px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.45); /* 45% 투명도의 블랙 배경 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-shadow: 0px 1px 2px rgba(0,0,0,0.5);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-head-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-head-name {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.gnb-list {
    display: flex;
    gap: 40px;
}

.gnb-item {
    position: relative;
}

.gnb-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hide LNB for simplicity in this mockup */
.lnb {
    display: none;
}

/* KV Slider */
.main-kv {
    height: 100vh;
    width: 100%;
    position: relative;
}

.swiper-container, .intro-swiper, .swiper-wrapper, .swiper-slide {
    height: 100%;
    width: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 10%;
    color: var(--color-white);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 800;
}

/* Waves */
.wave-top, .wave-btm {
    position: relative;
}

.wave-top::before {
    display: none;
}

/* Features Just Go */
.just-go {
    padding: 150px 10%;
    background: var(--color-white);
}

.section-head {
    margin-bottom: 80px;
}

.section-head .title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-head .summary {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #666;
}

.just-content-row {
    display: flex;
    justify-content: space-between;
}

.just-text-column {
    width: 40%;
}

.text-block {
    margin-bottom: 60px;
}

.text-block .num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: 'Outfit';
}

.text-block .title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.text-block .desc {
    font-size: 1.1rem;
    color: #555;
}

.just-image-column {
    width: 50%;
    height: 500px;
}

.just-image-swiper {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

/* Service Grid */
.service {
    padding: 100px 10%;
    background: var(--color-gray-light);
}

.service-grid-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.service-grid-left, .service-grid-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card .title {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card .desc {
    font-size: 1.1rem;
    color: #666;
}

/* Footer */
.footer {
    padding: 60px 10%;
    background: var(--color-gray-dark);
    color: var(--color-white);
}

.footer .logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit';
    margin-bottom: 20px;
}

.footer .address p {
    color: #aaa;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-head-nav { display: none; }
    .page-head-name { font-size: 1.4rem; letter-spacing: -1px; white-space: nowrap; }
    .page-head-wrap { padding: 10px 15px; }
    
    .page-control { display: flex; align-items: center; }
    .page-control a { font-size: 14px; margin-right: 15px !important; color: #fff !important; }
    
    /* 햄버거 메뉴 아이콘 복원 */
    .goto-page-navi { background: transparent; border: none; padding: 5px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
    .goto-page-navi .bar { width: 24px; height: 3px; background: #fff; border-radius: 2px; }
    .goto-page-navi .btn-text { display: none !important; }
    
    .slide-title { font-size: 1.8rem !important; line-height: 1.35 !important; word-break: keep-all; padding: 0 10px; }
    .slide-subtitle { font-size: 1rem !important; margin-bottom: 15px !important; }
    
    .section-head .title { font-size: 1.8rem !important; line-height: 1.3 !important; word-break: keep-all; }
    .section-head .summary { font-size: 1rem !important; margin-top: 10px !important; }
    
    .just-content-row { flex-direction: column; }
    .just-text-column { width: 100%; padding: 0 15px; }
    
    /* 숨겨진 이미지 복원 */
    .just-image-column { width: 100%; padding: 0; height: 350px !important; margin-top: 30px; }
    .just-image-container, .just-image-swiper, .just-card { height: 100% !important; min-height: 350px; }
    
    /* 숨겨진 서비스 카드 복원 */
    .service-grid-wrapper { flex-direction: column; padding: 0 15px; gap: 20px; }
    .service-grid-left, .service-grid-right { flex: auto; width: 100%; gap: 20px; display:flex; flex-direction:column; }
    .service-card { height: 250px !important; min-height: 250px; }
    
    /* 모바일 스크롤 애니메이션(GSAP) 오류로 인해 안 나오는 현상 강제 해결 */
    .text-block, .service-card { opacity: 1 !important; transform: none !important; }
    
    /* 모바일 폰트 깨짐 및 줄바꿈 최적화 */
    .text-block .title { font-size: 1.5rem !important; word-break: keep-all; }
    .text-block .desc { font-size: 1rem !important; word-break: keep-all; }
    .service-card { padding: 25px !important; height: auto !important; min-height: 220px; }
    .service-card .title { font-size: 1.3rem !important; word-break: keep-all; }
    .service-card .desc { font-size: 0.95rem !important; word-break: keep-all; }
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-white) 150%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.intro-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.intro-logo .logo-ko {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}
.intro-logo .logo-en {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}
.logo-ko {
    font-size: 1.2rem; margin-right: 10px;
}
.logo-en {
    font-size: 2rem; font-weight: 800;
}

/* Footer SNS Buttons */
.footer-sns {
    display: flex;
    gap: 15px;
    align-items: center;
}
.footer-sns .sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.footer-sns .sns-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.footer-sns .sns-btn.kakao {
    background-color: #FEE500;
    color: #381E1F;
}
.footer-sns .sns-btn.youtube {
    background-color: #FF0000;
}
.footer-sns .sns-btn.blog {
    background-color: #03C75A;
}
.footer-sns .sns-btn.blog .blog-icon {
    font-weight: 900;
    font-family: Arial, sans-serif;
}

/* 닷홈 상단 공백 완전 제거 */
/* ========== 닷홈 상단 공백 완전 제거 ========== */
html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 닷홈이 삽입하는 광고 요소 완전 차단 */
body > iframe,
body > center,
body > div[id*="dothome"],
body > div[class*="dothome"],
body > div[style*="margin-top: 45px"],
body > div[style*="margin-top:45px"],
body > div[style*="margin-top: 44px"],
body > div[style*="position: fixed"][style*="top: 0"],
#hd_dothome_top_wrap,
.dothome_notice,
iframe[src*="dothome"] {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.page-head {
    top: 0 !important;
}

/* PC 스크롤 보장 - overflow 명시 */
html {
    overflow-y: auto !important;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fix step-num alignment on mobile */
.step-num { text-align: center !important; }

