/* Global Styles for Nmytech Platform */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #2c3e50;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Top Bar & Multilingual Header */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0f2b48 0%, #1a4971 100%);
    color: #ffffff;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* 스크롤 시 살짝 그림을強調 */
.top-nav.is-stuck {
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

/* 로고+회사명 영역은 고정 폭이 아니라 유동적으로 */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* ===== 회사명 클릭 → 메인 화면 이동 (brand home link) ===== */
.brand-home-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    margin-left: -8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.brand-home-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.brand-home-link:hover h1 {
    /* underline removed per user request */
}

.brand-home-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* 뒤로가기 버튼 제거로 남은 여백 정리 */
.back-bar { display: none; }

.brand-logo .brand-text {
    min-width: 0;
}

.brand-logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
}

.brand-logo p {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 2px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-selector label {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.lang-selector select {
    background: #1a4971;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* Main Container */
.main-container {
    max-width: 1250px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f2b48 0%, #1a4971 60%, #00a896 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.25);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 16px;
    color: #d5e3f0;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: #00a896;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.35);
}

.hero-cta:hover {
    background: #00897b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 168, 150, 0.45);
}

/* Global Milestones Banner */
.milestone-banner {
    background: #f0f7ff;
    border: 1px solid #cce3fd;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(43, 108, 176, 0.06);
}

.milestone-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a4971;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.milestone-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.milestone-list li {
    font-size: 13.5px;
    color: #4a5568;
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.milestone-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2b6cb0;
    font-weight: bold;
}

/* Section Block */
.section-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.section-header {
    font-size: 16px;
    font-weight: 800;
    color: #1a4971;
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid #2b6cb0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.feature-item h4 {
    font-size: 14px;
    color: #1a4971;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 12.5px;
    color: #4a5568;
    line-height: 1.5;
}

/* TAB NAVIGATION MENU FOR PRODUCTS */
ul.tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    border-bottom: 2px solid #2b6cb0;
    flex-wrap: wrap;
}

ul.tabs li {
    background: #e2e8f0;
    color: #4a5568;
    display: inline-block;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 4px;
}

ul.tabs li:hover {
    color: #1a4971;
    background: #edf2f7;
}

ul.tabs li.current {
    background: #ededed;
    color: #0f2b48;
    border-top: 3px solid #2b6cb0;
    border-left: 1px solid #cbd5e0;
    border-right: 1px solid #cbd5e0;
}

/* TAB CONTENT WRAPPER */
.tab-content {
    display: none;
    background: #ededed;
    padding: 22px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.tab-content.current {
    display: block;
}

.tab-intro-box {
    background: #ffffff;
    border-left: 4px solid #2b6cb0;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Product Table */
table.catalog-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

table.catalog-table th {
    background-color: #0f2b48;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #0f2b48;
}

table.catalog-table td {
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    vertical-align: middle;
    color: #2d3748;
}

table.catalog-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Service Name Background Highlighting */
.prod-name-bg {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 800;
    display: inline-block;
    border: 1px solid #bae6fd;
    margin-bottom: 3px;
}

/* Badge Tags in Table */
.badge-tag {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 600;
    color: #4a5568;
    background: transparent;
    margin-top: 2px;
}

/* Detail Page Button Style */
.page-link-btn {
    background-color: #2b6cb0;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease;
}

.page-link-btn:hover {
    background-color: #1a4971;
}

/* Footer Style */
.footer {
    background: #ffffff;
    border-top: 2px solid #1a365d;
    padding: 24px 30px;
    margin-top: 50px;
    border-radius: 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.footer-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.footer-grid td {
    padding: 6px 10px;
    vertical-align: top;
    color: #4a5568;
}

.footer-label {
    font-weight: 700;
    color: #1a365d;
    width: 110px;
}

/* Main Navigation Menu */
.main-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.main-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.main-menu li a.active {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* sticky nav가 본문을 가리지 않도록 앵커 스크롤 여백 */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .top-nav {
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 10px 20px;
    }
    .main-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-menu li a {
        font-size: 13px;
        padding: 5px 10px;
    }
    .lang-selector {
        padding: 5px 12px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 16px;
    }
    .brand-logo h1 { font-size: 18px; }
    .brand-logo p { font-size: 11px; }
    .nav-logo { height: 30px; }
    .main-container {
        padding: 0 10px;
    }
    .hero-section {
        padding: 40px 20px;
    }
    .hero-title {
        font-size: 28px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 네비 로고 ===== */
.nav-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 4px;
}

/* page-link-btn 이 <a> 태그로 쓰일 때 */
a.page-link-btn {
    display: inline-block;
    text-decoration: none;
}

/* ===== 서비스 상세 페이지 ===== */
.back-bar {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.back-btn {
    display: inline-block;
    background: #00a896;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}

.back-btn:hover { background: #0f2b48; }

.red-box-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid #e11d48;
    margin-bottom: 30px;
}

.picxx_nr2 {
    text-align: center;
    font-size: 22pt;
    font-weight: 800;
    color: #0f2b48;
    margin-bottom: 30px;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 15px;
}

.neirong { font-size: 11.5pt; color: #334155; }

.content-text-box { text-align: left; line-height: 1.8; }

.content-text-box h3 {
    font-size: 15px;
    font-weight: 800;
    color: #1a4971;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #2b6cb0;
}

/* ===== 모바일 테이블 가로 스크롤 ===== */
@media (max-width: 768px) {
    .catalog-table { display: block; overflow-x: auto; white-space: nowrap; }
    .hero-cta { padding: 12px 24px; font-size: 14px; }
    .picxx_nr2 { font-size: 20pt; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 14px; }
    .section-header { font-size: 14px; }
    ul.tabs li { padding: 10px 16px; font-size: 13px; }
}

/* ===== 서비스 상세 이미지 ===== */
.img-showcase { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 25px 0 35px 0; flex-wrap: wrap; }
.img-item1 { background: #fff; border: 1px solid #cbd5e0; border-radius: 8px; padding: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; width: 70%; max-width: 640px; }
.img-item1 img { max-width: 100%; height: auto; border-radius: 6px; }
.img-caption1 { font-size: 13px; color: #64748b; margin-top: 8px; font-weight: 600; }
.prod-detail-img { max-width: 100%; height: auto; border-radius: 8px; }

/* ===== 강화된 서비스 상세 페이지 (Enhanced Service Detail) ===== */
.svc-hero { margin: 10px 0 28px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(15,43,72,0.12); border: 1px solid #e6eef7; }
.svc-hero img { display: block; width: 100%; height: auto; }
.svc-tagline { font-size: 16px; font-weight: 700; color: #0052a3; background: #f2f8ff; border-left: 4px solid #0052a3; padding: 14px 18px; border-radius: 6px; margin-bottom: 26px; line-height: 1.6; }
.content-text-box h3.svc-section { font-size: 18px; font-weight: 800; color: #0052a3; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #e6eef7; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 6px 0 10px; }
.svc-card { background: #f7fafd; border: 1px solid #e6eef7; border-radius: 10px; padding: 16px 18px; transition: all .25s ease; }
.svc-card:hover { border-color: #0052a3; box-shadow: 0 8px 20px rgba(0,82,163,0.12); transform: translateY(-3px); }
.svc-card h4 { font-size: 15px; font-weight: 800; color: #0f2b48; margin-bottom: 6px; }
.svc-card p { font-size: 13.5px; color: #4a5568; line-height: 1.65; margin: 0; }
.content-text-box p { font-size: 14.5px; color: #334155; line-height: 1.9; margin-bottom: 12px; }
.svc-cta { margin-top: 40px; background: linear-gradient(135deg, #0052a3 0%, #003b75 100%); border-radius: 14px; padding: 32px; text-align: center; color: #fff; box-shadow: 0 12px 30px rgba(0,82,163,0.25); }
.svc-cta h3 { font-size: 21px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.svc-cta p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 20px; line-height: 1.7; }
.svc-cta .btn-cta { display: inline-block; background: #ffffff; color: #0052a3; font-weight: 800; font-size: 15px; padding: 13px 30px; border-radius: 40px; text-decoration: none; transition: all .25s ease; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.svc-cta .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.25); background: #f2f8ff; }
.svc-cta .svc-contact { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.9); }
@media (max-width: 768px) { .svc-grid { grid-template-columns: 1fr; } .svc-cta { padding: 24px 18px; } }