@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

/* Utility classes */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Section Snap functionality */
html {
    scroll-snap-type: y mandatory;
    /* scroll-behavior is now controlled via JavaScript for better speed control */
    scroll-padding-top: 60px; /* Header offset */
}

/* Ensure no other element overrides scrolling */
body {
    font-family: var(--bs-body-font-family);
    color: var(--dark-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 100%;
}

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Global theme variables */
:root {
    /* Use Bootstrap-like light gray for a softer, widely-used app background */
    --primary-color: #2563EB;
    --light-color: #FFFFFF;
    --dark-color: #111827;
    --gray-color: #6B7280;
    --border-gray: #DADADA;
    --accent: #2563eb;
    --text-sub: #6B7280;

    /* Bootstrap Font Overrides */
    /*--bs-body-font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;*/
    --bs-body-font-family: 'Pretendard';
    --bs-font-sans-serif: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--dark-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 100%;
}

/* Typography */
h1 {
    font-size: 47px;
    color: #111827;
    font-weight: 800;
    margin: 0;
}

h2 {
    font-size: 37px;
    color: #111827;
    font-weight: 800;
    margin: 0;
}

h3 {
    font-size: 37px;
    color: #FFFFFF;
    font-weight: 800;
    margin: 0;
}

h4 {
    font-size: 27px;
    color: #111827;
    font-weight: 800;
    margin: 0;
}

h5 {
    font-size: 20px;
    color: #111827;
    font-weight: 700;
    margin: 0;
}

.body-b1 {
    font-size: 20px;
    color: #111827;
    font-weight: 700;
}

.body-b2 {
    font-size: 20px;
    color: #111827;
    font-weight: 400;
}

.body-b3 {
    font-size: 20px;
    color: #6B7280;
    font-weight: 400;
}

.body-b4 {
    font-size: 20px;
    color: #DADADA;
    font-weight: 700;
}

.body-b5 {
    font-size: 17px;
    color: #6B7280;
    font-weight: 400;
    line-height: 20px;
}

.body-b6 {
    font-size: 17px;
    color: #DADADA;
    font-weight: 400;
}

.body-b7 {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 400;
}

.body-b8 {
    font-size: 17px;
    color: #FFFFFF;
    font-weight: 400;
}

.caption-c1 {
    font-size: 15px;
    color: #6B7280;
    font-weight: 700;
}

.caption-c2 {
    font-size: 15px;
    color: #6B7280;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.caption-c3 {
    font-size: 15px;
    color: #DADADA;
    font-weight: 400;
}

.caption-c4 {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 400;
}

/* Button */
.btn-custom {
    width: auto;
    height: 32px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--bs-body-font-family);
    font-size: 13px;
    font-weight: 700;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none; /* 밑줄 제거 */
    transition: all 0.3s ease; /* 부드러운 전환 효과 추가 */
    /* nav 오른쪽 정렬과 무관하게 버튼 자체만 배치 */
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
    color: #ffffff !important; /* 호버 시에도 텍스트 색상 유지 */
    text-decoration: none; /* 호버 시 밑줄 방지 */
}

main {
    padding-top: 60px; /* 헤더 높이만큼 여백 추가 (header-inner 10px*2 + logo 40px = 60px) */
}

/* =========================================
   Animations & Transitions
   ========================================= */

/* Base class for scroll-triggered elements */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Specific reveal directions */
.fade-in-up {
    transform: translateY(40px);
}

.fade-in-down {
    transform: translateY(-40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in {
    transform: scale(0.95);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Card Hover Animation Utility */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for CTA or important icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse:hover {
    animation: pulse 2s infinite ease-in-out;
}

/* Page Hero - Default settings (May be overridden in templates) */
.hero-section {
    height: 425px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    z-index: 1;
}

.hero-section.hero-gradient::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-section.no-overlay::before {
    background: transparent;
}

.hero-content {
    max-width: 1152px; /* 1120px content + 32px horizontal padding */
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    z-index: 2;
    text-align: left;
}

.hero-inner {
    width: 514px;
    height: 96px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 0 15px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-text-box {
    min-width: 514px;
    width: fit-content;
    height: 96px;
    margin: 0;
    padding: 0 0 15px 0;
    box-sizing: border-box;
    z-index: 2;
    text-align: left;
    white-space: nowrap;
}

.hero-area {
    max-width: 1120px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2;
}

.hero-content h1 {
    color: var(--light-color);
}

.hero-content .category {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

/* Section */
.content-section {
    width: 100%;
    margin: 0;
    padding: 100px 0;
}

.section-content {
    max-width: 1152px; /* 1120px content + 32px horizontal padding */
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Section background utilities */
.section-bg-f1f8ff {
    background-color: #F1F8FF;
}

.section-bg-white {
    background-color: #FFFFFF;
}

.section-bg-ebebeb {
    background-color: #EBEBEB;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    max-width: 1120px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-size: 15px;
    font-weight: 500;
    /* 추가: 네비게이션이 남은 공간을 차지하고 로고와 간격을 둠 */
    flex: 1;
    margin-left: auto;
}

.nav-link.top {
    position: relative;
    color: var(--text-sub);
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.22s ease-out;
}

.nav-link.top:hover,
.gnb-item.active .nav-link.top {
    color: var(--accent);
}

.nav-link.top::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.22s ease-out;
}

.nav-link.top:hover::after,
.gnb-item.active .nav-link.top::after {
    width: 100%;
}

/* Sub Menu Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    min-width: 160px;
    padding: 15px 0;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    z-index: 1001;
}

.gnb-item:hover .sub-menu {
    display: block;
}

.sub-menu li {
    width: 100%;
}

.sub-menu-link {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.sub-menu-link:hover {
    color: var(--accent);
    background-color: #f8faff;
}

.sub-menu-link.active {
    color: var(--accent);
    background-color: #f8faff;
    font-weight: 700;
}

.gnb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 22px;
    align-items: center;
}

.gnb-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    position: relative;
}

.nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #111827;
    left: 0;
}

.nav-toggle span::before {
    top: -8px;
}

.nav-toggle span::after {
    bottom: -8px;
}

@media (max-width: 991px) {
    .gnb-list, .btn-custom {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* =========================================
   Scroll To Top Button
   ========================================= */
.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top-button:hover {
    background: #1d4ed8;
}

.scroll-top-button:active {
    transform: translateY(4px);
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================
   Footer Styles (Overridden in footer.html)
   ========================================= */
/* .site-footer {
    flex-shrink: 0;
    background-color: #222;
    ...
} */
