@charset "utf-8";

/* [인슈마스터] 1. 프리텐다드(Pretendard) 폰트 불러오기 (최상단 필수) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f7f9fc;
  overflow-x: hidden;
}

/* [인슈마스터] 2. 전체 폰트 적용 */
body, input, textarea, select, button, table {
    font-size: 14px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
}

img { border: 0; max-width: 100%; }
fieldset { border: 1px solid #ddd; padding: 2%; }
hr { margin: 0; padding: 0; border: none; border-top: 1px solid #ccc; height: 0; overflow: hidden; }

/* 코드블럭 */
code.red { border: 1px solid #F6CECE; background-color: #FFF4F4; color: #BE0D0D; }
code.blue { border: 1px solid #B7D9F2; background-color: #F4FCFF; color: #4570CD; }
code.green { border: 1px solid #B7F2C7; background-color: #F4FFF7; color: #267C45; }

input, textarea { outline: none; box-sizing: border-box; }
div, span { box-sizing: border-box; }
::selection { background: #1f3c88; color: #fff; }
a { color: #333; text-decoration: none; transition: all 0.3s; }
a:hover { color: #1f3c88; }
li { transition: all 0.3s; }
.clear { clear: both; width: 100%; }
.text-center { text-align: center; }

/* ==========================================
   Sidebar (사이드바)
   ========================================== */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px; height: 100%;
  background-color: #0f1b3d;
  border-right: 1px solid #1f3c88;
  cursor: default;
}
#sidebar a { color: #f5f7ff; text-decoration: none; }
#sidebar a:hover { color: #d0e2ff; }
#sidebar .blank { clear: both; width: 100%; height: 60px; }

#sidebar #blog-logo {
  margin: 0; padding: 0 15px;
  text-align: center; font-size: 22px; font-weight: 700;
  line-height: 1.4; color: #ffffff; word-break: keep-all;
}
#sidebar #blog-logo a { color: #fff; }

#sidebar .widget { margin-top: 30px; padding: 0; line-height: 200%; }
#sidebar .widget-title {
  margin: 0 0 8px; padding: 0 18px;
  font-size: 14px; font-weight: 600; color: #d0e2ff;
  border-left: 3px solid #d0e2ff; letter-spacing: 0.08em;
}
#sidebar .widget li {
  list-style: none; padding-right: 30px; padding-left: 18px;
  font-size: 14px; word-break: break-word; color: #e5e7ff;
}

/* [PC용] 사이드바 상담 버튼 스타일 */
.consult-btn {
  display: block; width: 100%;
  background-color: #FEE500; /* 카카오 노랑 */
  color: #3c1e1e !important; /* 카카오 갈색 */
  text-align: center; padding: 15px 0;
  border-radius: 8px; font-weight: 800; font-size: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
  color: #3c1e1e !important;
}

/* [PC용] 사이드바 구글폼 버튼 스타일 */
.google-form-btn {
  display: block; width: 100%;
  background-color: #ffffff;
  color: #0f1b3d !important;
  text-align: center; padding: 15px 0;
  border-radius: 8px; font-weight: 800; font-size: 16px;
  margin-bottom: 30px;
  text-decoration: none;
  border: 2px solid #0f1b3d;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.google-form-btn:hover {
  background-color: #0f1b3d;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}


/* 카테고리 스타일 */
#sidebar .category > ul { margin: 0; padding: 0; }
#sidebar .category ul li { list-style: none; }

/* [인슈마스터] 카테고리 디자인 (접기/펼치기) */
.tt_category li a, .category_list li a {
    word-break: keep-all; word-wrap: break-word; white-space: normal;
    display: block; padding: 8px 0; line-height: 1.4;
    text-decoration: none; color: #e0e0e0; font-size: 15px;
    position: relative; transition: all 0.3s ease;
}
.tt_category li a:hover, .category_list li a:hover {
    color: #fff; padding-left: 5px; font-weight: 500;
}
/* 대분류 */
.tt_category > li > a, .category_list > li > a {
    font-weight: 700; font-size: 16px; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-top: 15px; padding-bottom: 10px; padding-right: 30px;
}
/* 하위분류 (기본 숨김) */
.tt_category .sub_category_list, .category_list .sub_category_list, #sidebar .category ul li ul {
    display: none; padding-left: 10px; background-color: rgba(0,0,0,0.15); margin-bottom: 5px;
}
/* 하위분류 링크 */
.tt_category .sub_category_list li a, #sidebar .category ul li ul li a {
    font-weight: 400; font-size: 14px; color: #b0c4de; padding-left: 15px; border-bottom: none; margin-top: 0;
}
/* 숫자 스타일 */
.c_cnt, .c_cnt_pc { font-size: 12px; color: #ff6b6b; margin-left: 5px; font-weight: normal; }

/* 화살표 */
.tt_category > li > a:after, .category_list > li > a:after {
    content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #888;
    transition: transform 0.3s ease;
}
.tt_category > li.open > a:after, .category_list > li.open > a:after {
    transform: translateY(-50%) rotate(180deg); border-top-color: #ff6b6b;
}


/* 방문자수, 검색 등 */
#sidebar .counter { font-size: 13px; }
#sidebar .counter .yesterday { color: #a4ffb2; }
#sidebar .counter .today { color: #ffd166; }
#sidebar .counter .total { color: #ff6b6b; }
#sidebar .search input {
  padding: 10px; width: 60%; border: none; border-bottom: 1px dashed #8b9ac5;
  background: transparent; color: #f5f7ff;
}

/* ==========================================
   Content (본문)
   ========================================== */
#content { margin: 0 0 0 330px; padding: 0; }
#content-inner { max-width: 1150px; width: 100%; padding-right: 30px; }

#head { position: relative; padding-top: 60px; width: 100%; text-align: center; }
#head h1, #head h2 {
  display: inline-block; margin: 0 0 40px; padding: 0 5px 10px;
  color: #14213d; line-height: 1.4; border-bottom: 1px dashed #c5cce5;
  word-break: keep-all;
}
#head h1 { font-size: 28px; font-weight: 700; }
#head h1 a { color: #14213d; }
#head h2 { font-size: 22px; font-weight: 500; }
#head .date {
  position: absolute; bottom: -35px; left: -10px; padding: 8px 12px;
  font-size: 13px; color: #fff; background-color: #1f3c88; z-index: 10;
}
#head .date:before {
  position: absolute; top: 0; left: -6px; border-top: 20px solid #1f3c88; border-left: 6px solid transparent; content: " ";
}
#head .date:after {
  position: absolute; bottom: 0; left: -6px; border-bottom: 20px solid #1f3c88; border-left: 6px solid transparent; content: " ";
}

#body {
  padding: 30px 25px; background-color: #ffffff;
  border: 1px solid #dde2f2; border-radius: 8px; word-break: break-all;
}

/* 목록 스타일 */
.list ul { margin: 0; padding: 0; border-top: 1px dotted #dde2f2; }
.list ul li {
  padding: 15px 10px; list-style: none; font-size: 15px; border-bottom: 1px dotted #dde2f2;
}
.list span { float: right; font-size: 13px; }
.list span.cnt { margin-right: 11px; color: #1f3c88; font-weight: bold; }

/* 댓글, 페이징, 푸터 등 */
#communicate { clear: both; }
#paging { padding: 30px 0 20px; text-align: center; }
#paging .selected { color: #1f3c88; font-weight: bold; }
#recent-post { padding: 70px 0 30px; }
#recent-post h4 { margin: 0 1% 10px; font-size: 16px; }
#recent-post ul li {
  float: left; width: 25%; height: 150px; overflow: hidden; background: #eee; position: relative;
}
#recent-post ul li .title {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-align: center; line-height: 155px;
  background: rgba(15, 27, 61, 0.9); color: #fff; opacity: 0; transition: opacity 0.2s;
}
#recent-post ul li:hover .title { opacity: 0.9; }

#foot { position: relative; width: 100%; height: 100px; }
#foot a { color: #14213d; border-bottom: 1px dotted #aaa; }
#foot .powered { position: absolute; bottom: 20px; right: 1%; font-size: 12px; }
#foot .social { position: absolute; bottom: 20px; left: 1%; font-size: 12px; }

/* 모바일 반응형 */
#sidebar-toggle { display: none; }
@media all and (max-width: 959px) {
  #sidebar { z-index: 100; transform: translate3d(-300px, 0, 0); transition: all 0.2s; }
  #sidebar-toggle {
    display: block; position: fixed; left: 10px; bottom: 80px; /* 위치 상향 조정 (하단바 때문에) */
    width: 50px; height: 50px; line-height: 55px; text-align: center; 
    color: #fff; background-color: #1f3c88; border-radius: 50%; 
    opacity: 0.95; box-shadow: 2px 4px 10px rgba(0,0,0,0.3); z-index: 101;
  }
  html.open #sidebar { overflow-y: auto; transform: translate3d(0, 0, 0); }
  #content { margin: 0 auto; padding: 0 10px; margin-bottom: 70px; /* 하단바 공간 확보 */ }
  #content-inner { padding: 0; }
  #head .date { bottom: -10px; right: 0; left: inherit; padding: 6px 10px; font-size: 11px; }
  #recent-post ul li { width: 100%; height: 200px; }
}
@media all and (min-width: 960px) { #sidebar-toggle { display: none; } }


/* ==========================================================================
   [인슈마스터] 모바일 하단 고정 상담바 (Mobile Sticky Bottom Bar)
   ========================================================================== */
#mobile-cta {
    display: none; /* PC에서는 숨김 */
}

@media all and (max-width: 959px) {
    #mobile-cta {
        display: flex;
        position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
        z-index: 9999; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    #mobile-cta a {
        flex: 1; display: flex; align-items: center; justify-content: center;
        font-size: 16px; font-weight: 700; text-decoration: none;
    }
    #mobile-cta .kakao-btn {
        background-color: #FEE500; color: #3c1e1e; /* 카카오 노랑 */
    }
    #mobile-cta .form-btn {
        background-color: #0f1b3d; color: #ffffff; /* 네이비 */
    }
    #mobile-cta i { margin-right: 5px; font-size: 18px; }
}


/* ==========================================================================
   [인슈마스터] 본문(Article) 디자인 자동화 시스템
   ========================================================================== */
#article-view {
    font-size: 17px; line-height: 1.85; letter-spacing: -0.02em;
    color: #2b2b2b; word-break: keep-all;
}
#article-view p { margin-bottom: 24px; }

/* 제목 디자인 (제목1, 제목2 등) */
#article-view h2 {
    font-size: 26px; font-weight: 700; color: #14213d;
    border-bottom: 2px solid #14213d; padding-bottom: 12px;
    margin-top: 50px; margin-bottom: 25px;
}
#article-view h3 {
    font-size: 21px; font-weight: 600; color: #1f3c88;
    border-left: 5px solid #1f3c88; padding-left: 15px;
    margin-top: 40px; margin-bottom: 20px;
}
#article-view h4 {
    font-size: 19px; font-weight: 600; color: #333;
    margin-top: 30px; margin-bottom: 15px;
}
/* 강조 & 인용구 */
#article-view b, #article-view strong {
    font-weight: 700; color: #14213d;
    background: linear-gradient(to top, #e3eafc 40%, transparent 40%);
}
#article-view blockquote {
    background-color: #f6f8fa; border-left: 4px solid #1f3c88;
    margin: 30px 0; padding: 20px 25px; color: #555; font-style: normal;
}
#article-view blockquote p { margin-bottom: 0; font-weight: 500; }
#article-view ul, #article-view ol { margin-bottom: 24px; padding-left: 20px; }
#article-view ul li { list-style-type: disc; margin-bottom: 8px; color: #444; }
#article-view ol li { list-style-type: decimal; margin-bottom: 8px; color: #444; }

/* [인슈마스터] 모바일 사이드바 토글 버튼 위치 수정 */
@media all and (max-width: 959px) {
    #sidebar-toggle {
        left: auto !important;   /* 왼쪽 정렬 해제 */
        right: 20px !important;  /* 오른쪽으로 이동 */
        bottom: 80px !important; /* 하단바 위에 위치 */
        opacity: 0.8;            /* 약간 투명하게 (글씨 보이게) */
        width: 45px; height: 45px; line-height: 50px; /* 크기 살짝 축소 */
    }
}