@charset "utf-8";

/*==========================================================================
   🎨 AI Assistant - 통합 스타일시트
   버전: v2.0 (2025.09.04)
   설명: HTML5 Reset + 폰트 + 변수 + AI Assistant 스타일 통합
===========================================================================*/

/*==========================================================================
   1. HTML5 Reset & Base Styles
===========================================================================*/


body {
    min-width: 320px;
    line-height: 1.4;
    font-size: 1.6rem;
    color: #444;
    letter-spacing: -0.5px;
    -webkit-text-size-adjust: 100%;
    background-color: #f8f9fa;
}

/* 리스트 스타일 초기화 */
ol, ul {
    list-style: none;
}

/* 테이블 스타일 초기화 */
table, tr, td {
    border-collapse: collapse;
}

table {
    border: 0;
    border-spacing: 0;
    table-layout: fixed; /* 251013 추가 */
}

table caption {
    overflow: hidden;
    width: 0;
    height: 0;
}

/* 폼 요소 기본 스타일 */


/* 플레이스홀더 스타일 통합 */

/* 체크박스, 라디오 버튼 */
input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

input[type="radio"] {
    -webkit-appearance: radio;
    appearance: radio;
    border-radius: 8px;
}

/* 버튼 스타일 */

/* 링크 스타일 */
a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    vertical-align: top;
}

/* 이미지 스타일 */
img {
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

/* 기타 요소 */
address, em, i {
    font-style: normal;
}

hr {
    display: block;
    height: 1px;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* 박스 모델 통일 */
*, *::before, *::after {
    box-sizing: border-box;
}

/*==========================================================================
   2. 폰트 정의
===========================================================================*/


/*==========================================================================
   3. CSS 변수 (색상 팔레트)
===========================================================================*/
:root {
    /* 메인 컬러 */
    --primary: #2259cc;
    --primary-light: #48FDE2;
    --secondary: #4ab3d9;
    --ai-color: #e75157;

    /* 시스템 컬러 */
    --blue: #136766;
    --red: #e75157;
    --green: #2bb81f;
    --orange: #f8742e;
    --yellow: #ffe222;

    /* 그레이스케일 */
    --gray-50: #f9f9f9;
    --gray-100: #f5f5f5;
    --gray-200: #f1f1f1;
    --gray-300: #e9e9e9;
    --gray-400: #e5e5e5;
    --gray-500: #ddd;
    --gray-600: #ccc;
    --gray-700: #999;
    --gray-800: #666;
    --gray-900: #333;

    /* 레거시 지원 (기존 변수명 유지) */
    --main_color01: var(--primary);
    --main_color02: var(--primary-light);
    --main-color: var(--secondary);
    --gray-22: #222;
    --gray-33: var(--gray-900);
    --gray-44: #444;
    --gray-55: #555;
    --gray-66: var(--gray-800);
    --gray-77: #777;
    --gray-88: #888;
    --gray-99: var(--gray-700);
    --gray-aa: #aaa;
    --gray-bb: #bbb;
    --gray-cc: var(--gray-600);
    --gray-dd: var(--gray-500);
    --gray-ee: #eee;
    --gray-e5: var(--gray-400);
    --gray-e9: var(--gray-300);
    --gray-f1: var(--gray-200);
    --gray-f5: var(--gray-100);
    --gray-f9: var(--gray-50);
    --gray-ac: #acacac;

    /* 간격 변수 */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 40px;
    --spacing-3xl: 50px;

    /* 보더 반경 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-2xl: 30px;
    --radius-full: 50px;

    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* 트랜지션 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/*==========================================================================
   4. 페이지 레이아웃
===========================================================================*/
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.page-content {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-lg);
}

/* 레거시 지원 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.cont {
    width: 100%;
}

/*==========================================================================
   5. AI 검색 인터페이스
===========================================================================*/
.ai_wrap {
    display:block;
    width: 100%;
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    background: var(--Linear, linear-gradient(270deg, #E3F3E1 0%, #CAF8F6 100%));
    margin-bottom: var(--spacing-xl);
}

/* AI 제목 영역 */
.ai_tit_area {
    display: flex;
    align-items: start;
    flex-direction:column;
}
.ai_tit_area p{font-size:24px; font-weight:500; color:#0192A6;}
.ai_tit_area strong{
    font-size:48px;
    display:flex;
    align-items: center;
    gap:0px  8px;
    font-weight:800;
    color:#005068;
}
.ai_tit_area strong::Before{
    content:"";
    display:block;
    width:64px;
    height:64px;
    background:url("../images/ai.svg")center center no-repeat;
    background-size:100%;
}

.ai_tit_area .tit_big {
    font-size: 5rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.ai_tit_area .tit_ex {
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 1.3;
    padding-left: var(--spacing-sm);
    letter-spacing: 0;
    margin: 0;
}

/* AI 검색 입력 영역 */
.ai_search_wrap {
    margin-top: 24px;
    position:relative;
}

.ai_search_wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(72, 253, 226, 0.3);
}

.ai_search_wrap input {
    width: 100%;
    background-color: #fff;
    font-size: 24px;
    font-weight: 500;
    color: #272D30;
    border: 3px solid #00B1A3;
    padding-left:40px;
    height:80px;
    border-radius:100px;
}

.ai_search_wrap input::placeholder {
    color: #272D30;
    opacity:0.6;
    font-size:24px;
}

.ai_search_wrap input:focus::placeholder {
    color: transparent;
}

/* 자동완성 배경색 제거 */
.ai_search_wrap input:-webkit-autofill,
.ai_search_wrap input:-webkit-autofill:hover,
.ai_search_wrap input:-webkit-autofill:focus,
.ai_search_wrap input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--primary-light) !important;
}

.ai_search_wrap button {
    width:80px;
    height:80px;
    border-radius:50%;
    background:#0192A6 url("../images/search_icon.png")center center no-repeat;
    position:absolute;
    background-size:36px;
    right:0px;
    top:0px;
}

.ai_search_wrap button:hover {
}
.ai_search_wrap button img{
    display:none;
}
/* AI 검색 하단 */
.ai_search_bottom {
    margin-top: var(--spacing-sm);
    padding-right: var(--spacing-lg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-lg);
}

.ai_search_bottom p {
    font-size: 1.3rem;
    color: var(--color-mint);
    margin: 0;
    opacity: 0.9;
}

/*==========================================================================
   6. 검색 결과 영역
===========================================================================*/
.search_result {
    display: none;
}

.total-rslt {
    width: 100%;
    position: relative;
    margin-top: var(--spacing-xl);
    min-height: 545px;
}

.rslt-box-wrap {
    width: 100%;
}

/*==========================================================================
   7. 검색 결과 컨텐츠 스타일
===========================================================================*/
.search_result_section {
    position: relative;
    padding: var(--spacing-xl);
    background: #ffffff;
    border-radius: var(--radius-2xl);
    margin-top: var(--spacing-lg);
    line-height: 1.3;
}

.search_result_section * {
    letter-spacing: 0;
}

.search_result_tit {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    padding: 60px var(--spacing-lg) var(--spacing-xl);
    margin: 0;
}

/* 제목 스타일 통합 */
.search_result_section h1,
.search_result_section h2,
.search_result_section h3,
.search_result_section h4,
.search_result_section h5,
.search_result_section h6 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    margin: 0;
    color: var(--gray-900);
}

.search_result_section p {
    font-size: 1.8rem;
    line-height: 1.3;
    padding: var(--spacing-lg) 0;
    color: var(--gray-800);
    margin: 0;
}

.search_result_section p + p {
    padding-top: 0;
}

.search_result_section hr {
    margin-bottom: var(--spacing-lg);
    border: none;
    border-top: 1px solid var(--gray-400);
}

.search_result_section a {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: underline;
    padding-right: var(--spacing-lg);
    background: url('../images/bull_new_link.png') right center no-repeat;
    transition: var(--transition-fast);
}

.search_result_section a:hover {
    color: var(--primary-light);
}

/* 목록 스타일 */
.search_result_section > ol,
.search_result_section > ul {
    padding: 0 0 var(--spacing-lg);
    margin: 0;
}

.search_result_section > ul p {
    padding: 0;
}

.search_result_section > ul > li {
    font-size: 1.8rem;
    padding-left: 13px;
    position: relative;
    margin-top: var(--spacing-sm);
}

.search_result_section > ul > li:first-child {
    margin-top: 0;
}

.search_result_section > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 2px;
    background: var(--gray-900);
}

.search_result_section > ul > li > p {
    padding-top: 0;
}

/* 중첩 목록 */
.search_result_section > ul > li > ul {
    margin: 12px 0 0;
}

.search_result_section > ul > li > ul > li {
    padding-left: var(--spacing-sm);
    position: relative;
    margin-top: 7px;
    font-size: 1.6rem;
}

.search_result_section > ul > li > ul > li:first-child {
    margin-top: 0;
}

.search_result_section > ul > li > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 50%;
}

/* 순서 목록 */
.search_result_section > ol {
    position: relative;
}

.search_result_section > ol > li {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-top: var(--spacing-sm);
}

.search_result_section > ol > li:first-child {
    margin-top: 0;
}

.search_result_section > ol > li > p {
    padding-left: 25px;
}

/* 테이블 */
.search_result_section table {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
}

/*==========================================================================
   8. 질문 스와이퍼
===========================================================================*/
.questionSwiper.swiper {
    padding-bottom: var(--spacing-xl);
}

.questionSwiper .swiper-scrollbar {
    opacity: 1 !important;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
}

.questionSwiper .swiper-scrollbar-drag {
    background: #ffffff;
    border-radius: 0;
}

.questionSwiper .swiper-slide {
    padding: 75px 0 var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    background: #ffffff url('../images/bull_q.svg') var(--spacing-xl) var(--spacing-xl) no-repeat;
}

.questionSwiper button {
    text-align: left;
    padding: 0 var(--spacing-xl);
    font-size: 2rem;
    font-weight: 500;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
    height: 78px;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.questionSwiper button:hover {
    color: var(--primary);
}

/*==========================================================================
   9. QnA 토글 박스
===========================================================================*/
.bg_white_box {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-lg);
}

.bg_white_box .btn_toggle:first-child {
    border-top: none;
}

.bg_white_box .btn_toggle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    border-top: 1px solid var(--gray-500);
    width: 100%;
    text-align: left;
    position: relative;
    font-size: 2rem;
    color: #1e1e1e;
    font-weight: 600;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-3xl);
    background: url('../images/bull_q.svg') left center no-repeat;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.bg_white_box .btn_toggle::before {
    content: '';
    position: absolute;
    right: 0;
    top: 25px;
    width: 14px;
    height: 8px;
    background: url('../images/chevron-up.svg') right center no-repeat;
    transition: var(--transition-normal);
}

.bg_white_box .btn_toggle.on {
    border-bottom: none;
}

.bg_white_box .btn_toggle.on::before {
    transform: rotate(180deg);
}

.bg_white_box .btn_toggle:hover {
    background-color: var(--gray-50);
}

.bg_white_box .toggle_con {
    display: none;
    border-bottom: 1px solid #1e1e1e;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl) var(--spacing-3xl);
    font-size: 1.8rem;
    line-height: 1.5;
    background: url('../images/bull_a.svg') left 25px no-repeat;
}

/*==========================================================================
   10. 로딩 및 유틸리티
===========================================================================*/
/* 전역 로딩 */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.global-loading .spinner {
    width: var(--spacing-3xl);
    height: var(--spacing-3xl);
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 로딩 애니메이션 */
.loading-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: var(--spacing-2xl);
    height: var(--spacing-2xl);
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 숨김 요소 */
#hide_result,
.typing-txt {
    display: none;
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: var(--spacing-sm); }
.mb-20 { margin-bottom: var(--spacing-lg); }
.mt-10 { margin-top: var(--spacing-sm); }
.mt-20 { margin-top: var(--spacing-lg); }

.flex { display: flex; }
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-100 { width: 100%; }

/*==========================================================================
   11. 반응형 디자인
===========================================================================*/
@media only screen and (max-width: 1023px) {
    html {
        font-size: 58%;
    }
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 56%;
    }

    .page-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .page-content {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-sm);
        border-radius: var(--radius-md);
    }

    .ai_wrap {
        padding: var(--spacing-xl);
        border-radius: var(--spacing-lg);
    }

    .ai_tit_area .tit_big {
        font-size: 3.5rem;
    }

    .ai_search_wrap {
        padding: var(--spacing-sm) var(--spacing-lg);
    }


    .total-rslt {
        margin-top: var(--spacing-lg);
        min-height: auto;
    }

    .search_result_section {
        padding: var(--spacing-lg);
        border-radius: var(--spacing-lg);
    }

    .bg_white_box {
        padding: var(--spacing-lg);
        border-radius: var(--spacing-lg);
    }

    .questionSwiper .swiper-slide {
        padding: var(--spacing-3xl) 0 var(--spacing-xl);
        border-radius: var(--spacing-lg);
    }
}

@media only screen and (max-width: 480px) {
    .page-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .page-content {
        padding: var(--spacing-md);
    }

    .ai_wrap {
        padding: var(--spacing-lg);
    }

    .ai_tit_area .tit_big {
        font-size: 2.8rem;
    }

    .ai_tit_area .tit_ex {
        font-size: 1.4rem;
    }
}
/* 테이블 스타일 */
.search_result_section .table-wrapper {
    overflow-x: auto;
}
.search_result_section table {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
    border-top: 1px solid var(--gray-300);
    transition: var(--transition-normal);
}

.search_result_section table th {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    border-bottom: 1px solid var(--gray-300);
    padding: var(--spacing-sm) 0;
    background-color: var(--gray-50);
}

.search_result_section table th::before {
    content: '';
    width: 1px;
    height: var(--spacing-lg);
    background-color: var(--gray-300);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.search_result_section table th:first-child::before {
    display: none;
}

.search_result_section table td {
    font-size: 1.8rem;
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--gray-300);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.search_result_section table td::before {
    content: '';
    width: 1px;
    height: var(--spacing-lg);
    background-color: var(--gray-300);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.search_result_section table td:first-child::before {
    display: none;
}

/*==========================================================================
   12. 고급 로딩 애니메이션
===========================================================================*/
.loading_wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
}

.loading_area {
    position: relative;
}

.loader {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: var(--secondary) var(--secondary) transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent var(--primary) var(--primary);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}

.loader::before {
    width: 82px;
    height: 82px;
    border-color: var(--secondary) var(--secondary) transparent transparent;
    animation: rotation 1.5s linear infinite;
}

.loading_wrap .loading_area .loading_center {
    width: 35px;
    height: 35px;
    z-index: 21;
    position: absolute;
    left: 50%;
    top: 50%;
    background: url('../images/ai_load_con.svg') center no-repeat;
    transform: translate(-50%, -50%);
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotationBack {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/*==========================================================================
   13. 레거시 지원 및 기타
===========================================================================*/
/* 기존 코드와의 호환성을 위해 유지 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.cont {
    width: 100%;
}

#link {
    color: var(--accent);
    display: block;
    font: 1.2rem "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

#link:hover {
    color: var(--gray-400);
}

/* 페이지 레이아웃 스타일 */
body {
    margin: 0;
    padding: 0;
    background-color: var(--gray-50);

}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    box-sizing: border-box;
}

.page-content {
    background-color: unset !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0px !important;
    margin-top: var(--spacing-lg);
}

/* AI 검색 영역 */
.ai_wrap {
    width: 100%;
    margin-bottom: var(--spacing-xl);
}

/* 통합검색 결과 영역 */
.total-rslt {
    width: 100%;
    position: relative;
    margin-top: var(--spacing-xl);
    min-height: 545px;
}

.rslt-box-wrap {
    width: 100%;
}

/* 251013 모바일추가 */
@media screen and (max-width: 1024px) {
    .search_result_section table {width: 800px;}
}
@media screen and (max-width: 768px) {
    .ai_tit_area {flex-wrap: wrap;}
    .ai_wrap {padding: 40px 20px;}
    .ai_tit_area .tit_big {font-size: 40px;}
    .ai_tit_area h2 img {width: 94px;}
    .ai_search_wrap {padding: 7px 15px;margin-top: 20px;}
    .ai_search_wrap input {font-size: 16px;}
    .search_result_section {padding: 16px;}
    .bg_white_box .btn_toggle {font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: initial; height: 62px; padding: 16px 20px 20px 40px;}
    .bg_white_box {padding: 20px; }
    .search_result_tit {font-size: 18px;}
    .questionSwiper button{padding: 0 20px; font-size: 16px;height: 61px;}
    .ai_search_wrap button img { width: 30px;}
    .search_result_section p,
    .search_result_section > ol > li {font-size: 16px;}
    .search_result_section h3 {font-size: 18px;}
    .search_result_section > ol > li > ul {padding: 10px 5px;}
    .search_result_section a {background-position: right 3px;}
}

@keyframes loading-dots {
    0%, 20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.loading-text .dot {
    animation: loading-dots 1.4s infinite;
}

.loading-text .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text .dot:nth-child(3) {
    animation-delay: 0.4s;
}

section .subContents{
	padding: 0 !important;
}

@media(max-width: 1200px) {
	section .subContents {padding: 0 40px !important;}	
}
@media(max-width: 768px) {
	.page-container {
		 margin-top: 0 !important;
	}
	section .subContents {padding: 0 !important;}	
	.ai_tit_area p {
	    font-size: 16px;
	}
	.ai_tit_area strong {
	    font-size: 30px;
	}
	.ai_search_wrap button {
	    right: 10px;
	    top: 8px;
	}
	.subVisual.search .subVisualWrap::after {
	    display: none;
	}
}