/* Sub page layout (left menu + right content) */
#s_contents { display: flex; gap: 20px; }
#main { padding-top: 0; }
#left { flex: 0 0 250px; max-width: 250px; border-right: 1px solid #e5e7eb; padding-right: 20px; }
#right { flex: 1 1 auto; margin-top: 20px; }
#title { font-size: 25px; font-weight: 700; color: #222; margin: 0 0 12px 0; }
#right_con { display: flex; flex-direction: column; gap: 10px; }

/* Card base (copied style parity with test page) */
.card { background: #fff; border: 1px solid #eef1f5; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-header h3 { font-size: 16px; font-weight: 700; color: #222; margin: 0; }

/* 4x4 grid for sub pages */
.product-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.product-contents { width: 100%; }

/* Product card */
.product-item { background: #fff; border-radius: 8px; border: 1px solid #e5e9f0; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease; display: flex; flex-direction: column; align-items: center; text-align: center; box-sizing: border-box; height: 210px; overflow: hidden; }
.product-item:hover { filter: brightness(0.9); transform: translateY(-5px); }
.product-item img { max-width: 100%; height: auto; display: block; margin-left: auto; margin-right: auto; transition: opacity 0.2s ease, filter 0.2s ease; }
.product-item a { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; color: inherit; }
.product-item .p_title { display: block; width: 100%; font-size: 14px; font-weight: 600; color: #333; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-item .p_desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; font-size: 12px; color: #666; margin-top: 4px; overflow: hidden; white-space: normal; }

/* Left navigation (test) */
.left-nav { padding: 0; margin-top: 20px; background: transparent; border: 0; box-shadow: none; }
.left-title { margin: 0 0 6px 0; font-size: 30px; color: #333; }
.left-sub { margin: 0 0 12px 0; color: #6b90dc; font-size: 15px; }
.left-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.left-link { display: block; padding: 8px 10px; border-radius: 6px; color: #333; text-decoration: none; transition: background .2s ease, color .2s ease; }
.left-link:hover { background: #f5f7fa; color: #111; }
.left-link.active { background: #6b90dc; color: #fff; font-weight: 600 }

@media (max-width: 1133px) {
    #s_contents { flex-direction: column; }
    #left { flex: none; max-width: 100%; border-right: 0; padding-right: 0; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; }
    #right { flex: none; }
    .product-content { grid-template-columns: repeat(2, 1fr); }
}

/* tab2 / tab3 styles (category tabs) */
/* tab2 as button chips; tab3 keeps underline style */
.tab2, .tab3 { list-style: none; padding: 0; margin: 10px 0 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tab2 { border-bottom: 0; }
.tab3 { margin: 0; gap: 20px; }
.tab2 li, .tab3 li { margin: 0; }
/* Button look for tab2 */
.tab2 a { display: inline-block; padding: 8px 12px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid #e5e7eb; border-radius: 10px 10px 0 0; background: #fff; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tab2 a:hover { background: #f5f7fa; border-color: #dfe3e8; }
.tab2 li.on a { background: #6b90dc; color: #fff; border-color: #6b90dc; height: 35px; }
/* Keep tab3 as underline tabs */
.tab3 a { display: block; padding: 8px 0; color: #666; text-decoration: none; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; }
.tab3 li.on a, .tab3 a:hover { color: #333; border-bottom-color: #6b90dc; }

/* pagination */
.pagination-wrap { margin-top: 16px; display: flex; justify-content: center; }
.pagination-wrap a,
.pagination-wrap span,
.pagination-wrap b,
.pagination-wrap strong { 
    display: inline-block; 
    min-width: 32px; 
    height: 32px; 
    line-height: 32px; 
    margin: 0 4px; 
    padding: 0 8px; 
    text-align: center; 
    border: 1px solid #e5e7eb; 
    border-radius: 6px; 
    text-decoration: none; 
    color: #333; 
    background: #fff; 
}
.pagination-wrap a:hover { background: #f5f7fa; }
.pagination-wrap strong,
.pagination-wrap b { 
    background: #333; 
    color: #fff; 
    border-color: #333; 
}
.pagination-wrap img { vertical-align: middle; }

/* detail tabs in product read */
#right .detail-tabs { list-style:none; padding:0; margin:0 0 12px 0; display:flex; justify-content:center; gap:30px; }
#right .detail-tabs li { margin:0; }
#right .detail-tabs a { display:block; padding:8px 0; color:#666; text-decoration:none; border-bottom:2px solid transparent; font-size:20px; font-weight:500; }
#right .detail-tabs li.on a, #right .detail-tabs a:hover { color:#333; border-bottom-color:#333; }
#right .detail-panes { font-size:14px; line-height:1.7; color:#333; }
#right .detail-panes img { max-width:100%; height:auto; }

/* sub02 (SN check) clean styles */
.sn-hero { max-width:100%; height:auto; display:block; margin:0 auto; }
.sn-hero-title { font-size:28px; font-weight:700; color:#222; margin:0 0 16px 0; text-align:center; }
.sn-form { margin-top:16px; }
.sn-form #sn { display:flex; align-items:center; justify-content:center; gap:10px; margin:0; }
.sn-form #sn dt { margin:0; font-weight:600; }
.sn-form #sn input[type="text"] { 
    padding:10px 20px;
    margin-left: 10px;
    border: none; 
    border-radius: 25px; 
    min-width: 420px; 
    background: #f5f5f5; 
    outline: none; 
    font-size: 14px; 
    transition: all .3s ease;
}
.sn-form #sn input[type="text"]:focus { background:#fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sn-form #sn input[type="submit"] { 
    height: 42px; 
    padding: 10px 20px;
    border: none; 
    border-radius: 25px; 
    background: #555; 
    color: #fff; 
    cursor: pointer; 
    transition: background .3s ease; 
}
.sn-form #sn input[type="submit"]:hover { background:#666; }

.sn-result { list-style:none; padding:16px; margin:16px 0 0 0; text-align:left; border:1px solid #eef1f5; border-radius:10px; background:#fff; }
.sn-result-title { text-align:center; margin:0 0 12px 0; font-size:18px; color:#000; }
.sn-em { color:#0066CC; }
.sn-ok { color:#0a7d39; font-weight:700; }
.sn-warn { color:#b45309; font-weight:700; }
.sn-danger { color:#d10000; font-weight:700; }
.sn-result li { margin:4px 0; color:#333; }

.sn-notice { list-style:none; padding:0; margin:16px 0 0 0; display:flex; gap:14px; align-items:center; }
.sn-notice-icon { flex:0 0 100px; }
.sn-notice-icon img { display:block; }
.sn-notice-icon .sn-check-icon { width:100px; height:100px; display:block; margin:0 auto; }
.sn-notice-text { flex:1 1 auto; color:#555; line-height:1.6; text-align:left; }
.sn-notice-text .sn-line { display:grid; grid-template-columns: 20px 1fr; column-gap:10px; margin:6px 0; }
.sn-notice-text .sn-bullet { display:inline-block; width:20px; text-align:center; font-weight:700; }
.sn-notice-text .sn-text { display:block; font-size:14px; color:#555; line-height:1.7; }

/* board.css moved board overrides */

/* 1:1고객센터 - 나의 상담조회 버튼 */
.myqna-btn { height: 40px; padding: 8px 18px; border: none; border-radius: 0; background: #4080d5; color: #fff; font-weight: 600; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.myqna-btn:hover { background: #2f6cc0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

@media (max-width: 1133px) {
    .sn-form #sn input[type="text"] { min-width: 280px; padding: 8px 15px; font-size: 13px; }
    .sn-form #sn input[type="submit"] { height: 38px; padding: 8px 15px; font-size: 13px; }
}

/* ---------- sub02_4 (A/S 처리규정) tables & lists ---------- */
#right h3 { margin: 10px 0 2px 0; font-size: 18px; font-weight: 700; color: #222; }
#right p.s_title { margin: 6px 0 10px 0; font-size: 16px; color: #666; font-weight: 600; }

/* generic table style for legacy class "table2" */
.table2 { width: 100%; border-collapse: collapse; margin: 8px 0 12px 0; background: #fff; }
.table2 th, .table2 td { border: 1px solid #e5e7eb; padding: 10px 12px; vertical-align: top; text-align: left; font-size: 14px; color: #333; }
.table2 th { background: #f5f7fa; font-weight: 700; white-space: nowrap; }

/* lists from legacy content */
ul.list, ul.list2, ul.list3 { margin: 2px 0 10px 18px; padding: 0; }
ul.list li { margin: 6px 0; list-style: disc; color: #444; line-height: 1.7; }
ul.list2 li { margin: 4px 0; list-style: circle; color: #555; line-height: 1.6; }
ul.list3 li { margin: 3px 0; list-style: circle; color: #555; line-height: 1.6; }

/* images inside content */
#right img { max-width: 100%; height: auto; }

/* sub02_5 (정품 구매문의) partner list */
.partner-list { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.partner-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.partner-item:last-child { border-bottom: none; }
.partner-logo { flex: 0 0 160px; display: block; }
.partner-logo img { width: 160px; height: 50px; object-fit: contain; display: block; }
.partner-meta { display: flex; flex-direction: column; gap: 4px; }
.partner-name { margin: 0; color: #333; font-weight: 700; font-size: 16px; }
.partner-desc { margin: 0; color: #555; font-size: 14px; line-height: 1.6; }

/* sub02_5 contact (전화/FAX 상담) */
.contact-list { list-style: none; margin: 10px 0 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; align-items: start; }
.contact-item { display: flex; align-items: center; gap: 10px; color: #111; }
.contact-label { font-weight: 700; color: #333; min-width: 44px; }
.contact-num { font-size: 24px; font-weight: 700; color: #222; }
.contact-desc { color: #555; line-height: 1.7; margin-left: 0; grid-column: 1 / -1; }

@media (max-width: 768px) {
    .contact-list { grid-template-columns: 1fr; }
}

/* sub03_7 (캐시백 신청) form styles */
#table1, #table15 {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
#table1 th, #table15 th {
    background: #f5f7fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    vertical-align: middle;
    width: 20%;
}
#table1 td, #table15 td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}
#table1 td > *,
#table15 td > * {
    vertical-align: middle;
}
#table1 tr:last-child td, #table15 tr:last-child td {
    border-bottom: none;
}

/* Form inputs */
#table1 input[type="text"],
#table1 input[type="number"],
#table15 input[type="text"],
#table15 input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all .2s ease;
}
#table1 input[type="text"]:focus,
#table1 input[type="number"]:focus,
#table15 input[type="text"]:focus,
#table15 input[type="number"]:focus {
    border-color: #6b90dc;
    box-shadow: 0 0 0 3px rgba(107, 144, 220, 0.1);
}

/* Select */
#table1 select,
#table15 select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all .2s ease;
    min-width: 200px;
    vertical-align: middle;
    display: inline-block;
}
#table1 td select,
#table15 td select {
    vertical-align: middle;
}
#table1 select:focus,
#table15 select:focus {
    border-color: #6b90dc;
    box-shadow: 0 0 0 3px rgba(107, 144, 220, 0.1);
}

/* Checkbox */
#table1 input[type="checkbox"],
#table15 input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.b_btn2 {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #6b90dc;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}
.b_btn2:hover {
    background: #5a7bc7;
    box-shadow: 0 2px 8px rgba(107, 144, 220, 0.3);
}

/* Notice box (box2) */
.box2 {
    list-style: none;
    padding: 16px 20px;
    margin: 20px 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-image: url(/img/sub/check_icon.gif);
    background-repeat: no-repeat;
    background-position: 16px 20px;
}
.box2 li {
    padding-left: 88px;
    margin: 4px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* Form sections */
#right_con form {
    margin: 20px 0;
}
#right_con > div[style*="text-align:center"] {
    margin: 20px 0;
}

/* Ticket image container */
#ticket-img {
    margin-top: 12px;
}
#ticket-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Info text */
#right_con > div[style*="padding-bottom"] {
    padding: 16px;
    margin: 20px 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    line-height: 1.7;
    font-size: 14px;
}

@media (max-width: 768px) {
    #table1 th, #table15 th,
    #table1 td, #table15 td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }
    #table1 th, #table15 th {
        background: #f5f7fa;
        border-bottom: none;
        font-weight: 700;
    }
    #table1 td, #table15 td {
        border-bottom: 1px solid #eef1f5;
    }
    #table1 tr:last-child td, #table15 tr:last-child td {
        border-bottom: none;
    }
}

/* sub04_1 (회사소개) styles */
.company-intro-image {
    margin-bottom: 20px;
}
.company-intro-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}
.company-intro-text {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
}

/* sub04_2 (연혁) styles */
#history {
    list-style: none;
    padding: 0;
    margin: 0;
}
#history li {
    margin: 8px 0;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}
#history .history-period {
    font-size: 26px;
    color: #4080d5;
    font-weight: 600;
    margin: 30px 0 15px 0;
}
#history .history-period img {
    vertical-align: middle;
}
#history .month {
    display: inline-block;
    min-width: 80px;
    font-weight: 600;
    color: #333;
    text-align: right;
    margin-left: 40px;
}
#history .month2 {
    display: inline-block;
    min-width: 80px;
    font-weight: 500;
    color: #666;
    padding-left: 20px;
    text-align: right;
    margin-left: 40px;
}
#history li:first-child {
    margin-top: 0;
}

/* sub04_3 (위치 및 연락처) styles */
#daumRoughmapContainer1518067682228 {
    margin-bottom: 30px;
}
.contact-section-title {
    margin: 30px 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #6b90dc;
    padding-bottom: 8px;
}
.contact-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.contact-info-table th {
    background: #f5f7fa;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    white-space: nowrap;
    width: 20%;
}
.contact-info-table th img {
    vertical-align: middle;
    margin-right: 6px;
}
.contact-info-table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: middle;
}

/* sub07_1 (서버 솔루션) styles */
.server-solution-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin: 30px 0;
}
.server-solution-table-first {
    margin-top: 0;
}
.server-solution-table tr {
    border: 0;
}
.server-solution-table td {
    padding: 10px;
    border: 0;
    vertical-align: top;
}
.server-image-cell {
    width: 350px;
    text-align: left;
}
.server-image-cell img {
    max-width: 100%;
    height: auto;
    display: block;
}
.server-image-right {
    text-align: right;
}
.server-content-cell {
    padding-left: 20px;
}
.server-content-cell p {
    margin: 0;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}
.server-section-title {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
@media (max-width: 1133px) {
    .server-solution-table {
        display: block;
    }
    .server-solution-table tr {
        display: block;
    }
    .server-solution-table td {
        display: block;
        width: 100% !important;
        padding: 15px 0;
    }
    .server-image-cell {
        text-align: center;
    }
    .server-image-right {
        text-align: center;
    }
    .server-content-cell {
        padding-left: 0;
    }
}

/* sub07_2 (서버 SSD) styles */
.server-product-button-wrap {
    text-align: center;
    margin: 30px 0;
}
.server-product-button {
    display: inline-block;
    padding: 14px 32px;
    background: #6b90dc;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all .2s ease;
    box-shadow: 0 2px 4px rgba(107, 144, 220, 0.2);
}
.server-product-button:hover {
    background: #5a7bc7;
    box-shadow: 0 4px 8px rgba(107, 144, 220, 0.3);
    transform: translateY(-1px);
}
.server-product-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 144, 220, 0.2);
}

/* sub07_4 (호환성 가이드) styles */
.server-compatibility-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin: 30px 0;
}
.server-compatibility-table tr {
    border: 0;
}
.server-compatibility-table td {
    padding: 10px;
    border: 0;
    vertical-align: middle;
}
.server-compatibility-spacer {
    height: 10px;
}
.server-compatibility-spacer-cell {
    padding: 0;
}
.server-compatibility-button-cell {
    text-align: center;
    padding: 15px 10px;
}
.server-compatibility-button {
    display: inline-block;
    padding: 14px 24px;
    background: #6b90dc;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all .2s ease;
    box-shadow: 0 2px 4px rgba(107, 144, 220, 0.2);
    white-space: nowrap;
}
.server-compatibility-button:hover {
    background: #5a7bc7;
    box-shadow: 0 4px 8px rgba(107, 144, 220, 0.3);
    transform: translateY(-1px);
}
.server-compatibility-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 144, 220, 0.2);
}
.server-compatibility-desc-cell {
    text-align: center;
    padding: 10px;
}
.server-compatibility-desc-cell p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 13px;
}
@media (max-width: 1133px) {
    .server-compatibility-table {
        display: block;
    }
    .server-compatibility-table tr {
        display: block;
    }
    .server-compatibility-table td {
        display: block;
        width: 100% !important;
        padding: 15px 0;
        text-align: center !important;
    }
    .server-compatibility-spacer {
        display: none;
    }
    .server-compatibility-spacer-cell {
        display: none;
    }
}

