@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* --- 글로벌 디자인 변수 선언 --- */
:root {
    --nv-bg-body: #f9f8f7;
    --nv-bg-surface: #ffffff;
    --nv-primary: #dc2626;
    --nv-primary-dark: #991b1b;
    --nv-primary-light: #fef2f2;
    --nv-text-dark: #1e293b;
    --nv-text-gray: #64748b;
    --nv-border: #e2e8f0;
    
    --nv-radius-lg: 20px;
    --nv-radius-md: 12px;
    --nv-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.03);
    --nv-shadow-hover: 0 20px 40px -10px rgba(220, 38, 38, 0.12);
}

/* --- 기본 레이아웃 재정의 --- */
body { 
    background-color: var(--nv-bg-body); 
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--nv-text-dark);
}
#container { width: 100% !important; }

/* --- 1. 상단 TNB 및 로고 중앙 정렬 영역 (head.php) --- */
#tnb {
    border-top: 3px solid var(--nv-primary);
    background: #fff;
    border-bottom: 1px solid #eee;
}
#hd_qnb li a:hover {
    color: var(--nv-primary);
}

/* 헤더 래퍼 내부 정렬 변경: 좌우 여백을 무시하고 정중앙 배치 */
#hd_wrapper {
    background-color: #fff;
    border-bottom: 1px solid var(--nv-border);
}

#hd_wrapper .inner {
    display: flex;
    justify-content: center; /* 수평 정중앙 정렬 */
    align-items: center;     /* 수직 정중앙 정렬 */
    min-height: 110px;       /* 헤더의 쾌적한 높이 유지 */
    padding: 15px 20px;
    position: relative;
}

#logo {
    display: block;
    text-align: center;
}

#logo a {
    display: inline-block;
}

#logo img {
    display: block;
    max-height: 60px; /* 로고가 너무 클 경우를 대비한 가이드라인 (필요시 조절) */
    width: auto;
}

/* 불필요해진 요소 숨김 처리 */
.hd_login {
    display: none;
}

/* --- 2. 서브페이지 공통 타이틀 스타일 --- */
#container_title.minimal-line-title {
    text-align: center;
    display: block;
    padding: 20px 0;
    margin: 20px 0 40px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--nv-text-dark);
    border-bottom: 2px solid var(--nv-border);
    letter-spacing: -1px;
}

/* --- 3. 메인 인덱스 콘텐츠 영역 (index.php) --- */
.naviro-modern { padding-bottom: 80px; }
.nv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 메인 히어로 */
.nv-hero {
    margin-top: 30px;
    height: 460px;
    border-radius: var(--nv-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.nv-hero a, .nv-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 퀵 서비스 4구 링크 */
.nv-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -35px;
    position: relative;
    z-index: 10;
}
.nv-quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nv-radius-md);
    background: var(--nv-bg-surface);
    box-shadow: var(--nv-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e2e8f0;
    padding: 10px;
    overflow: hidden;
}
.nv-quick-links a:hover {
    transform: translateY(-6px);
    box-shadow: var(--nv-shadow-hover);
    border-color: var(--nv-primary);
}
.nv-quick-links img { max-width: 100%; height: auto; object-fit: contain; }

/* 하단 영역 그리드 및 고객센터 */
.nv-bottom-wrap {
    display: flex;
    gap: 24px;
    margin-top: 50px;
}
.nv-card {
    background: var(--nv-bg-surface);
    border-radius: var(--nv-radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    box-sizing: border-box;
}
.nv-service-desk {
    flex: 1; 
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}
.nv-service-desk a {
    display: block;
    border-radius: var(--nv-radius-md);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.2s ease;
}
.nv-service-desk a:hover {
    border-color: var(--nv-primary);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.08);
}
.nv-service-desk img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 우측 고객센터 */
.nv-cs-center {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border: 2px solid var(--nv-primary-light);
    background-color: #fff;
}
.nv-cs-center h3 { 
    font-size: 15px;
    font-weight: 700; 
    color: var(--nv-text-gray); 
    margin-bottom: 8px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nv-cs-center .tel { 
    font-size: 36px;
    font-weight: 800; 
    color: var(--nv-primary);
    margin-bottom: 16px; 
    letter-spacing: -1px; 
}
.nv-cs-center .info { 
    font-size: 14px;
    color: var(--nv-text-gray); 
    line-height: 1.7; 
    width: 100%;
    border-top: 1px dashed #e2e8f0;
    padding-top: 16px;
}
.nv-cs-center .info strong { color: var(--nv-text-dark); margin-right: 6px; }

/* --- 4. 모던 프리미엄 푸터 스타일 (tail.php) --- */
#pc_ft {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 45px 0 40px 0;
    font-size: 14px;
    position: relative;
}
.ft_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ft_links {
    border-bottom: 1px solid #334155;
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.ft_links a {
    color: #cbd5e1;
    margin-right: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.ft_links a:hover { color: #fff; }
.ft_links a.privacy_link {
    color: #ef4444;
    font-weight: 700;
}
.ft_info h3 {
    color: #f8fafc;
    font-size: 17px;
    margin-bottom: 12px;
    font-weight: 700;
}
.ft_info p span {
    display: inline-block;
    margin-right: 20px;
    line-height: 1.6;
}
.ft_info p span strong { color: #cbd5e1; }
.ft_info p span a { color: inherit; text-decoration: none; }
.ft_copy {
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
}

#pc_top_btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--nv-primary);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background-color 0.2s, transform 0.2s;
}
#pc_top_btn:hover {
    background-color: var(--nv-primary-dark);
    transform: translateY(-3px);
}