@charset "UTF-8";

/* --- 1. 블로그 리스트 & 상세 공통 배경 (화이트 고정) --- */
#blog_list, 
#blog_view,
.blog-list-header, 
.blog-grid,
.blog-view-container,
main {
    background-color: #FFF !important; /* 모든 배경을 흰색으로 강제 */
    color: #1E1E1E !important;
}

/* --- 2. 블로그 리스트 (blog.php) --- */
.blog-list-header { 
    padding: 180px 0 100px; 
    text-align: center; 
    background: #FFF !important; 
    border-bottom: 1px solid #F0F1F4; 
}

.blog-list-header .sub-tit {
    display: block;
    color: #FF5D27; /* 시그널디코드 브랜드 주황색 */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase; /* 대문자로 변환 */
    letter-spacing: 1.2px;
    margin-bottom: 15px; /* h1과의 간격 */
}

.blog-list-header h1 { 
    font-family: "Pretendard", sans-serif;
    font-size: 40px; 
    font-weight: 500;
    color: #1E1E1E !important; 
    letter-spacing: -1px;
    margin: 0;
}
.blog-grid { 
    max-width: 1650px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 40px; 
    padding: 80px 40px 160px; 
}

.blog-card { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.blog-card:hover { transform: translateY(-12px); }

.thumb-box { 
    width: 100%; 
    aspect-ratio: 16 / 10; 
    overflow: hidden; 
    border-radius: 24px; 
    background: #F0F1F4; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.thumb-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.blog-card:hover .thumb-box img { transform: scale(1.08); }

.info-box .cate { color: #FF5D27; font-size: 14px; font-weight: 500; margin-bottom: 12px; display: block; }
.info-box h3 { font-size: 24px; font-weight: 500; line-height: 1.4; margin-bottom: 18px; }
.info-box .desc { color: #767676; font-size: 16px; line-height: 1.625; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* --- 3. 블로그 상세 (blog_view.php) --- */
.view-header { 
    padding: 180px 0 100px; 
    text-align: center; 
}

.view-header .cate { color: #FF5D27; font-weight: 500; font-size: 15px; margin-bottom: 15px; display: block; }
.view-header h1 { font-size: 40px; font-weight: 500; line-height: 1.3; color: #000; margin-bottom: 40px; }
.view-meta { display: flex; justify-content: center; align-items: center; gap: 20px; color: #888; font-size: 15px; }
.view-meta .divider { width: 1px; height: 14px; background: #555; }

/* 본문 영역 흰색 배경 */
.blog-view-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    gap: 80px; 
    padding: 100px 20px; 
    align-items: flex-start;
}

.post-article { flex: 1; min-width: 0; }
.post-content { font-size: 18px; line-height: 1.9; color: #333 !important; }
.post-content h2 { 
    font-size: 32px; font-weight: 500; color: #111 !important; 
    margin: 100px 0 40px; padding-left: 25px; border-left: 8px solid #FF5D27; 
}
.post-content img { display: block; width: 100%; max-width: 900px; height: auto; border-radius: 24px; margin: 60px 0; }

/* 목차 사이드바 스타일 */
.toc-sidebar { width: 320px; position: sticky; top: 120px; }
.toc-box { padding: 40px; background: #F9F9F9 !important; border-radius: 28px; border: 1px solid #EEE; }
.toc-label { font-size: 16px; font-weight: 800; color: #BBB; margin-bottom: 25px; text-transform: uppercase; }
.toc-list li a { font-size: 17px; color: #767676; text-decoration: none; transition: 0.3s; }
.toc-list li a.active { color: #FF5D27; font-weight: 800; padding-left: 10px; }

/* 하단 네비게이션 */
.view-footer { max-width: 1000px; margin: 120px auto 0; border-top: 1px solid #EEE; padding-top: 60px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nav-item { padding: 30px; background: #F9F9F9; border-radius: 20px; text-decoration: none; color: inherit; transition: 0.3s; }
.nav-item:hover { background: #FFF; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }
.nav-label { font-size: 14px; color: #FF5D27; font-weight: 700; display: block; margin-bottom: 5px; }
.nav-title { font-size: 17px; font-weight: 600; color: #1E1E1E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 4. 반응형 --- */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-view-container { flex-direction: column; }
    .toc-sidebar { display: none; }
    .view-header h1 { font-size: 28px; }
}

@media (max-width: 768px) {
    .blog-list-header { padding: 120px 0 60px; }
    .blog-list-header .sub-tit { font-size: 14px; margin-bottom: 10px; }
    .blog-list-header h1 { font-size: 30px; }
}

/* --- 1. 고객센터 공통 레이아웃 --- */
#contact_page { 
    background-color: #FFF !important; 
    padding: 180px 0 160px; 
    font-family: "Pretendard", sans-serif;
}

.contact-container { 
    max-width: 1650px; /* 광폭 레이아웃 적용 */
    margin: 0 auto; 
    padding: 0 40px; 
}

/* --- 2. 상단 문의 섹션 (높이 밸런스 조정) --- */
.inquiry-section { 
    display: grid; 
    grid-template-columns: 500px 1fr; 
    gap: 120px; 
    align-items: flex-start; /* 좌우 상단 정렬 일치 */
}

/* 좌측 안내 영역 */
.inquiry-left { position: relative; padding-top: 10px; }

/* 우편함 둥둥 효과 */
.floating-mail {
    display: flex; width: 120px; height: 58px; justify-content: center; align-items: center; 
    position: absolute; left: 204px; top: -21px; border-radius: 9999px;
    background: rgba(255, 102, 20, 0.60); box-shadow: 4px 4px 4px -1px rgba(34, 34, 34, 0.14);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    animation: contact_float 3.5s ease-in-out infinite;
    z-index: 10;
}
@keyframes contact_float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.sub-headline { font-size: 24px; font-weight: 500; color: #1D212C; margin-bottom: 8px; letter-spacing: -0.6px; }
.main-display { font-size: 60px; font-weight: 700; color: #1D212C; letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 80px; }

.contact-info .info-item { margin-bottom: 35px; }
.contact-info .label { display: block; font-size: 18px; color: #808791; line-height: 28px; margin-bottom: 6px; letter-spacing: -0.45px; }
.contact-info .val { font-size: 18px; font-weight: 500; color: #1D212C; line-height: 28px; letter-spacing: -0.45px; }

/* --- 3. 우측 폼 영역 (바닥 선 디자인) --- */
.inquiry-right { margin-top: 5px; } /* CONSULTATION 타이틀과 높이 맞춤 */

.form-guide { 
    font-size: 24px; font-weight: 500; line-height: 34px; color: #1D212C; 
    letter-spacing: -0.6px; margin-bottom: 30px; 
}

.contact-form { display: flex; flex-direction: column; gap: 50px; margin-top: 70px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 60px; }

/* 입력 그룹 바닥 선 스타일 */
.input-group, .form-full-row { 
    display: flex; flex-direction: column; border-bottom: 1px solid #E5E5EC; 
    padding-bottom: 16px; gap: 12px; background: #FFF; transition: border-color 0.3s;
}
.input-group:focus-within, .form-full-row:focus-within { border-color: #FF5D27; }

.input-group label, .form-full-row label { font-size: 14px; font-weight: 500; color: #1D212C; letter-spacing: -0.35px; }
.required { color: #FF8712; margin-left: 2px; }

.input-group input, .form-full-row input, .form-full-row textarea { 
    width: 100%; border: none !important; outline: none !important; background: transparent;
    font-size: 14px; font-weight: 400; color: #1D212C; letter-spacing: -0.35px;
    padding: 0; resize: none; font-family: "Pretendard", sans-serif;
}

/* 라디오 버튼 (세로 꺾임 방지) */
.radio-row { border-bottom: none; }
.radio-group { display: flex; gap: 50px; margin-top: 10px; flex-wrap: nowrap; }
.radio-group label { 
    display: flex; align-items: center; gap: 12px; cursor: pointer; 
    font-size: 14px; font-weight: 500; white-space: nowrap; 
}
.radio-group input[type="radio"] { width: 20px; height: 20px; accent-color: #FF5D27; margin: 0; }

/* 약관 영역 */
.agreement-area { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.agreement-text { 
    height: 120px; padding: 20px; background: #F6F7FB; border: 1px solid #E5E5EC; 
    border-radius: 12px; overflow-y: auto; font-size: 13px; color: #808791; line-height: 1.6;
}
.form-agreement label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.form-agreement input[type="checkbox"] { width: 18px; height: 18px; accent-color: #FF5D27; }

/* 제출 버튼 */
.btn-submit { 
    width: 320px; height: 72px; background: #1D212C; color: #FFF; font-size: 20px; font-weight: 700;
    border-radius: 12px; border: none; cursor: pointer; margin: 40px auto 0; transition: all 0.3s;
}
.btn-submit:hover { background: #FF5D27; box-shadow: 0 10px 20px rgba(255, 93, 39, 0.2); }

/* --- 4. 자주 하는 질문 (FAQ) --- */
.faq-section { margin-top: 150px; border-top: 1px solid #F0F1F4; padding-top: 100px; }
.faq-display { font-size: 48px; font-weight: 700; line-height: 60px; letter-spacing: -1.2px; color: #000; margin-bottom: 80px; }

.faq-item { border-bottom: 1px solid #E5E5EC; }
.faq-q { padding: 35px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q span { font-size: 18px; font-weight: 500; line-height: 28px; color: #2C3D5B; letter-spacing: -0.45px; }

.faq-a { max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: #F6F7FB; border-radius: 12px; }
.faq-item.active .faq-a { max-height: 500px; padding: 35px 30px; margin-bottom: 30px; }
.faq-item.active .arrow { transform: rotate(180deg); }
.faq-a p { font-size: 16px; font-weight: 400; line-height: 26px; color: #2A2E3B; letter-spacing: -0.4px; }

/* --- 5. 반응형 보정 --- */
@media (max-width: 1400px) {
    .inquiry-section { grid-template-columns: 1fr; gap: 80px; }
    .contact-container { padding: 0 20px; }
}
@media (max-width: 768px) {
    #contact_page { padding: 120px 0 80px; }
    .main-display { font-size: 40px; line-height: 50px; }
    .form-grid { grid-template-columns: 1fr; }
    .btn-submit { width: 100%; }
    .radio-group { gap: 20px; }
}

/* --- 자주 하는 질문 (FAQ) --- */
.faq-section { margin-top: 150px; border-top: 1px solid #F0F1F4; padding-top: 100px; }
.faq-display { font-size: 48px; font-weight: 700; color: #000; margin-bottom: 40px; letter-spacing: -1.2px; }

/* 탭 메뉴 디자인 */
.faq-tabs { display: flex; gap: 12px; margin-bottom: 40px; border-bottom: 1px solid #1D212C; padding-bottom: 20px; }
.tab-item { 
    padding: 10px 24px; border-radius: 6px; border: 1px solid #E5E5EC; 
    background: #FFF; color: #808791; font-size: 14px; cursor: pointer; transition: 0.3s;
}
.tab-item.active { background: #2C3D5B; color: #FFF; border-color: #2C3D5B; }

/* FAQ 리스트 */
.faq-item { border-bottom: 1px solid #E5E5EC; }
.faq-q { padding: 35px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q span { font-size: 18px; font-weight: 500; color: #2C3D5B; letter-spacing: -0.45px; }
.faq-q .arrow { transition: 0.4s; transform: rotate(180deg); } /* 기본 닫힘 상태일 때 아래 방향 */

/* 답변 영역 */
.faq-a { max-height: 0; overflow: hidden; transition: all 0.4s ease-in-out; background: #F6F7FB; border-radius: 12px; }
.faq-item.active .faq-a { max-height: 500px; padding: 35px 30px; margin: 0 0 30px; }
.faq-item.active .arrow { transform: rotate(0deg); } /* 열림 상태일 때 위 방향 */
.faq-a p { font-size: 16px; color: #2A2E3B; line-height: 26px; margin: 0; }

/* 페이지네이션 */
.faq-pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 80px; }
.faq-pagination button { 
    border: none; background: none; font-size: 16px; color: #808791; cursor: pointer; 
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px;
}
.faq-pagination .num.active { background: #F0F1F4; color: #3b82f6; font-weight: 700; }