/* Support section styles */
.support_page {}

/* 서브비주얼 (NEWS 스타일 참고) */
.sub_visual {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    border-bottom-right-radius: 120px;
}

.sub_visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/support_bg.jpg') no-repeat center;
    background-size: cover;
    animation: slowZoom 2s ease-out forwards;
    z-index: 0;
    border-bottom-right-radius: inherit;
}

.sub_visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-bottom-right-radius: inherit;
}

.sub_visual_txt {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    padding: 250px 0 100px;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.sub_visual_txt h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.2s;
}

.sub_visual_txt p {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* 애니메이션 키프레임 (참고용 복제) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 컨텐츠 기본 패딩 (뉴스와 유사) */
.sub_content { padding: 80px 0; }
.sub_content_inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 서브 메뉴 (NEWS 스타일 참고) */
.sub_menu {
    background: rgba(22, 22, 22, 0.1);
    border-bottom: 1px solid rgba(12, 57, 170, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.sub_menu_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home_btn {
    display: none;
    color: #fff;
    font-size: 16px;
    margin-right: 20px;
    text-decoration: none;
}

.sub_menu_list {
    display: flex;
}

.sub_menu_list li {
    position: relative;
    overflow: hidden;
}

.sub_menu_list li a {
    display: block;
    padding: 0 30px;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
}

.sub_menu_list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #93d4ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sub_menu_list li a:hover::after {
    width: 100%;
}

.sub_menu_list li.on a {
    color: #ffffff;
    font-weight: 500;
}

.sub_menu_list li.on a::after {
    width: 100%;
    background-color: #93d4ff;
}

.sub_menu_list li a:hover { color: #ffffff; }

@media (max-width: 767px) {
    .sub_menu_list li a { padding: 0 20px; font-size: 14px; }
}

/* 반응형 */
@media (max-width: 1024px) {
    .sub_visual { height: 350px; border-bottom-right-radius: 80px; }
    .sub_visual_txt h2 { font-size: 32px; }
    .sub_visual_txt p { font-size: 16px; }
    .sub_content { padding: 60px 0; }
}

@media (max-width: 767px) {
    .sub_visual { height: 300px; border-bottom-right-radius: 48px; }
    .sub_visual_txt h2 { font-size: 28px; }
    .sub_visual_txt p { font-size: 14px; }
    .sub_content { padding: 40px 0; }
}

/* Manual page specific tweaks */
.manual_page .sub_visual { padding: 60px 0; }
.manual_page .sub_visual_txt h2 { font-size: 36px; font-weight: 800; }
.manual_page .sub_content { padding-top: 0; }

/* =============================
   Manual Hero (1200 x 360)
   ============================= */
.manual-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* 서브비주얼과의 간격 최소화 */
}

.manual-hero-inner {
    width: 100%;
    max-width: 1200px;
    height: 350px; /* 높이 350으로 조정 */
    position: relative;
    background: #fff;
}

.manual-hero-figure {
    position: absolute;
    top: 50%;
    left: 0;
    width: 578px;   /* 좌측 고정 폭 */
    height: 268px;  /* 좌측 고정 높이 */
    transform: translateY(-50%);
    margin: 0;
    border-radius: 16px; /* 둥근 모서리 */
    overflow: hidden;    /* 이미지 클리핑 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* 은은한 그림자 */
}

.manual-hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지 비율 유지 */
    object-position: left center; /* 좌측 정렬 */
    display: block;
    border-radius: 16px; /* 모서리 일치 */
}

/* Hero copy block (centered column on the right) */
.manual-hero-copy {
    position: absolute;
    top: 50%;
    left: 640px; /* 좌측 이미지(400) + 여백(40) */
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.manual-hero-copy .copy-title {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.manual-hero-copy .copy-subtitle {
    font-size: 18px;
    color: #374151;
    margin: 0 0 6px 0;
}

.manual-hero-copy .copy-models {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manual-hero-copy .copy-models li { color: #1f2937; font-weight: 700; font-size: 20px; }
.manual-hero-copy .copy-models .label { font-weight: 400; color: #6b7280; margin-right: 8px; }
.manual-hero-copy .copy-models .bar { color: #d1d5db; margin: 0 8px; }
.manual-hero-copy .copy-models .code { letter-spacing: 2px; }

/* Fade-in animation */
@keyframes copyFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.manual-hero-copy .fade-step-1 { opacity: 0; animation: copyFadeUp 1s ease forwards .2s; }
.manual-hero-copy .fade-step-2 { opacity: 0; animation: copyFadeUp 1s ease forwards .5s; }
.manual-hero-copy .fade-step-3 { opacity: 0; animation: copyFadeUp 1s ease forwards .8s; }

/* Responsive */
@media (max-width: 1024px) {
    .manual-hero-inner { height: 280px; }
    .manual-hero-figure { width: 320px; height: 280px; }
    .manual-hero-copy { left: 340px; right: 16px; }
    .manual-hero-copy .copy-title { font-size: 48px; }
    .manual-hero-copy .copy-subtitle { font-size: 18px; }
    .manual-hero-copy .copy-models li { font-size: 18px; }
}

@media (max-width: 767px) {
    /* Mobile layout: Title (top) -> Image (middle) -> Actions (below) */
    .manual-hero-inner { height: auto !important; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; }
    .manual-hero-copy { position: static; transform: none; order: 1; width: 100%; max-width: 560px; text-align: center; align-items: center; margin: 0 0 10px 0; }
    .manual-hero-figure { position: static; transform: none; order: 2; width: 100%; height: 260px; }
    .manual-hero-figure img { object-position: center; }
    /* Typography smaller on mobile */
    .manual-hero-copy .copy-title { font-size: 28px; }
    .manual-hero-copy .copy-subtitle { font-size: 14px; }
    .manual-hero-copy .copy-models li { font-size: 14px; }
    .manual-actions { gap: 18px; padding: 8px 12px; }
}

/* =============================
   Manual Actions Bar
   ============================= */
.manual-actions-bar {
    margin-top: 10px;
    border-top: 1px solid #e5e7eb; /* 상단 라인 */
}

.manual-actions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center; /* 버튼 중앙 정렬 (PC/Mobile 공통) */
    list-style: none;
}

.manual-actions li { list-style: none; }

.manual-actions .action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.manual-actions .action-link:hover {
    color: #0d5db8;
}

/* Responsive */
@media (max-width: 1024px) {
    .manual-hero-inner { height: 300px; }
}

@media (max-width: 767px) {
    .manual-hero-inner { height: 220px; }
    .manual-actions { gap: 18px; padding: 8px 12px; }
}

/* =============================
   Manual Detail Page Layout
   ============================= */
.manual-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 30px 20px 80px;
}

/* TOC (left) */
.manual-toc { position: sticky; top: 100px; height: fit-content; }
.toc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 18px;
}
.toc-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.toc-list a:hover { background: #f3f4f6; color: #0d5db8; }
.toc-list a.active { background: #e8f1ff; color: #0d5db8; font-weight: 600; }

/* Content (right) */
.manual-content { min-width: 0; }
.manual-content .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.manual-content h3 { font-size: 20px; margin: 0 0 12px; color: #111827; }
.manual-content h4 { font-size: 16px; margin: 14px 0 8px; color: #1f2937; }
.manual-content p { color: #4b5563; line-height: 1.7; }
.manual-content ol { padding-left: 18px; color: #4b5563; }
.manual-content ul { padding-left: 18px; color: #4b5563; }

/* Badges */
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e0e7ff;
}
.badge-danger { background: #ffe8e8; color: #b91c1c; border-color: #fecaca; }

/* Table-like blocks */
.table-like { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.table-like .row { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid #f1f5f9; }
.table-like .row:first-child { border-top: 0; }
.table-like .row.header { background: #f8fafc; font-weight: 700; color: #111827; }
.table-like .col { padding: 12px 14px; color: #374151; }
.table-like .col.wide { border-left: 1px solid #f1f5f9; }

/* Symbols grid */
.symbols-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 16px; padding-left: 0; list-style: none; }
.symbols-grid li { position: relative; padding-left: 18px; color: #374151; }
.symbols-grid li:before { content: '\2713'; position: absolute; left: 0; top: 0; color: #10b981; }
.version-note { margin-top: 8px; color: #6b7280; font-size: 12px; }

/* Responsive */
@media (max-width: 1024px) {
    .manual-detail-container { grid-template-columns: 1fr; gap: 16px; }
    .manual-toc { position: static; }
}

@media (max-width: 767px) {
    .table-like .row { grid-template-columns: 140px 1fr; }
    .symbols-grid { grid-template-columns: 1fr; }
}

/* WEIGHT AND PACKING UNIT: widen first column to avoid wrapping */
.manual-content #weight .table-like .row { grid-template-columns: 300px 1fr; }
@media (max-width: 1024px) {
    .manual-content #weight .table-like .row { grid-template-columns: 240px 1fr; }
}
@media (max-width: 767px) {
    .manual-content #weight .table-like .row { grid-template-columns: 180px 1fr; }
}
