:root {
    --brand-blue: #005eb8;
    --brand-lightblue: #009FE3;
    --brand-yellow: #ffc20e;
    --brand-dark: #222222;
    --bg-gray: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Noto Sans KR', sans-serif; }

body { background-color: #ffffff; color: var(--brand-dark); line-height: 1.6; }

/* 1. 헤더 */
header {
    background: white; border-bottom: 1px solid #e0e0e0;
    position: sticky; top: 0; z-index: 1000;
}
.header-top-line { height: 4px; background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-lightblue) 100%); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.logo-img { height: 40px; width: auto; object-fit: contain; }
.nav-menu { display: flex; gap: 30px; font-weight: 500; font-size: 15px; color: #555; }
.nav-item { cursor: pointer; transition: 0.2s; }
.nav-item:hover { color: var(--brand-blue); font-weight: 700; }

/* 2. 히어로 섹션 */
.hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
    padding: 100px 20px; text-align: center; color: white;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.hero-eng { 
    font-size: 14px; letter-spacing: 2px; text-transform: uppercase; 
    color: var(--brand-yellow); font-weight: 700; margin-bottom: 10px;
    display: inline-block; border-bottom: 2px solid var(--brand-yellow); padding-bottom: 5px;
}
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 18px; opacity: 0.95; max-width: 800px; margin: 0 auto; font-weight: 300; line-height: 1.6; word-break: keep-all; }

/* 3. 신뢰 배지 섹션 */
.trust-badge-section { background: white; padding: 40px 20px; border-bottom: 1px solid #eee; }
.trust-container {
    max-width: 900px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 15px; flex: 1; max-width: 350px; }
.trust-icon { 
    width: 60px; height: 60px; background: var(--bg-gray); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: var(--brand-blue); font-size: 24px;
}
.trust-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--brand-blue); }
.trust-text p { font-size: 13px; color: #666; line-height: 1.4; }
.collaboration-icon {
    font-size: 28px; color: #999; display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
}

/* --- 탭 스타일 (Slim & Sharp) --- */
.tabs { background: var(--bg-gray); padding: 15px 0 0; border-bottom: 1px solid #ddd; }
.tabs-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 2px; padding: 0 20px; }

.tab-btn {
    /* [수정] 높이와 여백 축소 */
    padding: 10px 25px; 
    cursor: pointer; 
    font-weight: 500; 
    font-size: 14px; 
    color: #777;
    background: #e9e9e9; 
    /* [수정] 모서리 R값 축소 (5px -> 2px) */
    border-radius: 2px 2px 0 0; 
    transition: 0.2s;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    line-height: 1.2;
    border: 1px solid transparent; /* 기본 테두리 */
}

.tab-btn span { 
    font-size: 11px; 
    font-weight: 400; 
    margin-top: 3px; 
    color: #999; 
}

.tab-btn:hover { background: #dedede; color: #333; }

.tab-btn.active { 
    background: white; 
    color: var(--brand-blue); 
    font-weight: 700; 
    /* [수정] 상단 선 두께 축소 (3px -> 2px) */
    border-top: 2px solid var(--brand-blue);
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid white; /* 하단 선을 가려서 뚫린 느낌 줌 */
    margin-bottom: -1px; /* 1px 내려서 border-bottom 덮기 */
}
.tab-btn.active span { color: var(--brand-blue); font-weight: 500; }

/* 5. 콘텐츠 그리드 */
.container { 
    max-width: 1200px; margin: 60px auto; padding: 0 20px; 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 30px;
}

/* 6. 카드 디자인 (공통) */
.card {
    background: white; border: 1px solid #ddd; display: flex; flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; position: relative;
}
.card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--brand-blue);
}

/* [일반 제품 카드용 이미지] */
.card-img-wrap { height: 180px; overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-wrap img { transform: scale(1.05); }

/* [NEW] 가이드 카드용 헤더 (사진 대신 아이콘) */
.card-guide-header {
    height: 180px; background: linear-gradient(135deg, var(--brand-blue) 0%, #004a91 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; position: relative;
}
.card-guide-header i { font-size: 48px; margin-bottom: 10px; opacity: 0.9; }
.card-guide-header span { font-size: 14px; font-weight: 500; opacity: 0.8; letter-spacing: 1px; }

.card-tag {
    position: absolute; bottom: 0; left: 0; background: var(--brand-blue); color: white;
    padding: 6px 15px; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.card-guide-header .card-tag { background: var(--brand-dark); } /* 가이드는 검은색 태그 */

.format-badge {
    position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.95);
    padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; gap: 8px; align-items: center;
}
.format-badge i.fa-file-pdf { color: #e11d48; font-size: 14px; }
.format-badge i.fa-file-word { color: #2563eb; font-size: 14px; }

.card-body { padding: 25px; flex: 1; border-bottom: 1px solid #eee; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #222; line-height: 1.4; }
.card-desc { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.6; }
.package-list { list-style: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.package-list li { font-size: 13px; color: #555; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.package-list li i { color: var(--brand-blue); font-size: 12px; }
.package-list li.more { color: #888; font-size: 12px; }

.card-footer {
    padding: 15px 25px; background: #fafafa; display: flex; justify-content: space-between; align-items: center;
}
.price { font-weight: 800; font-size: 16px; color: #222; }
.view-btn { 
    font-size: 13px; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; 
    display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.card:hover .view-btn { gap: 10px; }

/* 모달 스타일 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2000; display: none;
    justify-content: center; align-items: center; backdrop-filter: blur(3px);
}
.modal-box {
    background: white; width: 850px; max-width: 90%; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-top: 5px solid var(--brand-blue);
    max-height: 90vh; overflow-y: auto;
}
.modal-header { 
    padding: 25px 30px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-close { font-size: 28px; cursor: pointer; color: #999; transition: color 0.2s; }
.modal-close:hover { color: var(--brand-dark); }

.modal-body { padding: 30px; display: flex; gap: 30px; }
.modal-left { flex: 1; }
.modal-right { width: 300px; background: #f9f9f9; padding: 20px; border-radius: 8px; }

.modal-row { display: flex; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; align-items: center; }

.price-option { 
    background: white; border: 1px solid #ddd; padding: 15px; margin-bottom: 10px; 
    border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.price-option:hover { border-color: var(--brand-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.price-option .p-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; display: flex; justify-content: space-between; }
.price-option .p-desc { font-size: 12px; color: #666; }

.btn-buy { 
    width: 100%; padding: 15px; background: var(--brand-blue); color: white; 
    border: none; border-radius: 6px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: background 0.2s;
}
.btn-buy:hover { background: #004a91; }

/* 가이드 모달 내부 스타일 */
.guide-section { margin-bottom: 25px; }
.guide-title { font-size: 16px; font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; padding-left: 10px; border-left: 4px solid var(--brand-blue); }
.guide-list { list-style: none; background: #f9f9f9; padding: 15px; border-radius: 6px; }
.guide-list li { font-size: 14px; color: #555; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.guide-list li::before { content: '•'; color: var(--brand-blue); font-weight: bold; }

/* 가격 테이블 스타일 */
.price-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.price-table th { background: #f0f7ff; color: var(--brand-blue); padding: 10px; border: 1px solid #e0e0e0; text-align: center; font-weight: 700; }
.price-table td { padding: 10px; border: 1px solid #e0e0e0; text-align: center; color: #444; }
.price-table td.left { text-align: left; padding-left: 15px; font-weight: 500; }
.price-table tr:hover td { background: #fcfcfc; }

/* --- Footer 스타일 (OKESG 포털 스타일: 초슬림/좌측정렬) --- */

/* 1. 푸터 전체 틀 */
.site-footer {
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e1e1e1;
    padding: 20px 0; /* 전체 높이 최소화 */
    font-size: 12px; /* 작은 글씨 */
    color: #666;
    line-height: 1.4; /* 줄 간격 좁힘 */
    text-align: left; /* 무조건 좌측 정렬 */
}

/* 2. 내부 박스 (1200px 중앙 정렬) */
.site-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    
    /* Flexbox로 좌/우 배치 */
    display: flex;
    justify-content: space-between; /* 왼쪽(로고+정보) vs 오른쪽(빈공간 활용) */
    align-items: flex-start; /* 위쪽 라인 맞춤 */
}

/* 3. 왼쪽 영역: 로고 + 텍스트 정보 */
.footer-left-area {
    display: flex;
    gap: 30px; /* 로고와 텍스트 사이 간격 */
    align-items: flex-start;
}

/* 로고 이미지 */
.footer-logo-img {
    height: 35px; /* 로고 크기 고정 */
    width: auto;
    margin-top: 5px; /* 텍스트 첫 줄과 높이 맞추기 미세조정 */
}

/* 텍스트 정보 묶음 */
.footer-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px; /* 줄 사이 간격 (아주 좁게) */
}

/* 개별 줄(Row) 스타일 */
.info-row {
    display: flex;
    align-items: center;
}

.info-row span {
    display: inline-block;
    letter-spacing: -0.5px; /* 자간 좁힘 (한국형 스타일) */
}

.info-row a {
    color: #666;
    text-decoration: none;
}

/* 구분선 (|) */
.bar {
    margin: 0 8px; /* 좌우 간격 좁힘 */
    color: #e2e2e2; /* 아주 연한 회색 */
    font-size: 10px;
    height: 10px;
    line-height: 10px;
}

/* 4. 오른쪽 영역 (이용약관 등) */
.footer-right-links {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.footer-right-links a {
    color: #555;
    text-decoration: none;
}
.footer-right-links a:hover { color: #005eb8; text-decoration: underline; }
.privacy-link { font-weight: bold; color: #333 !important; }


/* 카피라이트 (정보 아래에 위치) */
.copyright {
    color: #999;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    margin-top: 8px; /* 위 정보와 살짝 띄움 */
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .site-footer .container {
        flex-direction: column;
        padding: 0 15px;
    }
    .footer-left-area {
        flex-direction: column;
        gap: 15px;
    }
    .info-row {
        flex-wrap: wrap; /* 정보가 길면 줄바꿈 */
        gap: 5px;
    }
    .bar { display: none; } /* 모바일에서 구분선 숨김 */
    
    .footer-right-links {
        margin-top: 15px;
        justify-content: flex-start;
        border-top: 1px solid #eee;
        padding-top: 10px;
        width: 100%;
    }
}