/* ===== Hankang 테마 기본 스타일 ===== */

/* ========================================
   Paperozi Font
======================================== */

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* 기본 리셋 */
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 모바일 터치 포커스 효과 제거 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 입력 필드는 텍스트 선택 허용 */
input, textarea, select {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== 관리자 로그인 메시지 ===== */
#hd_login_msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background-color: rgba(27, 30, 85, 0.95); /* Deep premium Hankang Navy */
    color: #FFFFFF;
    padding: 11px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 6px 20px rgba(27, 30, 85, 0.25);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1.5;
}

#hd_login_msg:hover {
    background-color: rgba(27, 30, 85, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(27, 30, 85, 0.35);
}

#hd_login_msg a {
    color: #A0C5FF; /* Sophisticated cool sky blue matching corporate color family */
    text-decoration: none;
    margin-left: 10px;
    font-weight: 700;
    transition: color 0.3s ease;
}

#hd_login_msg a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* 반응형 관리자 로그인 메시지 */
/* 태블릿 (768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    #hd_login_msg {
        bottom: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
}

/* 모바일 (480px ~ 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    #hd_login_msg {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 479px) {
    #hd_login_msg {
        bottom: 15px;
        right: 15px;
        padding: 7px 12px;
        font-size: 11px;
        border-radius: 18px;
    }
    
    #hd_login_msg a {
        margin-left: 6px;
        display: inline-block;
    }
}

/* ========================================
   공통 반응형 디스플레이 유틸리티 (Responsive Helper Utilities)
   ======================================== */
@media (min-width: 768px) {
    .d-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}
@media (max-width: 767px) {
    .d-block { display: block !important; }
    .d-md-block { display: none !important; }
    .d-md-none { display: block !important; }
}

/* ========================================
   공통 Call to Action (CTA) 섹션 컴포넌트
   ======================================== */
.common_cta_section {
    position: relative;
    width: 100%;
    padding: 90px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* iOS/모바일 스크롤 잔상 최소화 */
    text-align: left; /* 좌측 정렬 */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.common_cta_section .cta_inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 좌측 정렬 */
    justify-content: center;
}

/* 제목 텍스트 */
.common_cta_section .cta_title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* 설명 텍스트 */
.common_cta_section .cta_desc {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* 문의하기 버튼 */
.common_cta_section .cta_btn {
    display: inline-block;
    background-color: #ffffff;
    color: #2F3389; /* 브랜드 정체성 블루 컬러 매칭 */
    padding: 14px 45px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.common_cta_section .cta_btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ========================================
   공통 Call to Action (CTA) 섹션 반응형 대응
   ======================================== */
@media (max-width: 1023px) {
    .common_cta_section {
        padding: 80px 0;
    }
    
    .common_cta_section .cta_title {
        font-size: 26px;
        line-height: 1.4;
    }
    
    .common_cta_section .cta_desc {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .common_cta_section .cta_btn {
        padding: 12px 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .common_cta_section {
        padding: 70px 0;
    }
    
    .common_cta_section .cta_title {
        font-size: 22px;
        line-height: 1.35;
    }
}

/* =========================================================================
   Scroll Animation Styles (Intersection Observer Integration)
   ========================================================================= */
.animate-on-scroll {
    opacity: 0;
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); /* Ultra smooth easeOutExponential */
    transition-property: opacity, transform;
    will-change: opacity, transform;
}

/* Entrance Animations presets */
.animate-on-scroll.fade-up {
    transform: translateY(45px);
}

.animate-on-scroll.fade-down {
    transform: translateY(-45px);
}

.animate-on-scroll.fade-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-right {
    transform: translateX(40px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.93);
}

/* Triggered Visibility State */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Stagger Delay Classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* =========================================================================
   GnuBoard Pagination Bulletproof Squish Fix (짜부 방지)
   ========================================================================= */
.pg_wrap {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
}

.pg_wrap a,
.pg_wrap span,
.pg_wrap strong {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin: 0 6px !important;
}

.pg_wrap .pg_start,
.pg_wrap .pg_prev,
.pg_wrap .pg_next,
.pg_wrap .pg_end,
.portfolio_pagination_wrap .pg_start,
.portfolio_pagination_wrap .pg_prev,
.portfolio_pagination_wrap .pg_next,
.portfolio_pagination_wrap .pg_end,
.pg_page.pg_start,
.pg_page.pg_prev,
.pg_page.pg_next,
.pg_page.pg_end {
    width: auto !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 18px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    color: #555566 !important;
    background: #FFFFFF !important;
    border: 1px solid #ECECF2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.pg_wrap .pg_start:hover,
.pg_wrap .pg_prev:hover,
.pg_wrap .pg_next:hover,
.pg_wrap .pg_end:hover,
.pg_page.pg_start:hover,
.pg_page.pg_prev:hover,
.pg_page.pg_next:hover,
.pg_page.pg_end:hover {
    background: #2B308B !important;
    color: #FFFFFF !important;
    border-color: #2B308B !important;
    box-shadow: 0 4px 10px rgba(43, 48, 139, 0.2) !important;
}

/* =========================================================================
   Premium Search Keyword Highlighting (검색결과 키워드 줄바꿈/틀어짐 방지)
   ========================================================================= */
.sch_word {
    display: inline !important;
    background: transparent !important;
    color: #2B308B !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: inherit !important;
}




