/*
Theme Name: Euler Robotics
Theme URI: https://euler-robotics.com
Author: Euler Robotics
Author URI: https://euler-robotics.com
Description: Custom theme for Euler Robotics - PHP/HTML based, no page builder
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: euler-robotics
*/

/* =========================================
   CSS Variables
   ========================================= */
:root {
    --color-primary: #222222 !important;
    --color-accent: #ea513c !important;
    --color-accent-dark: #a93226 !important;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #888888;
    --color-gray-dark: #444444;
    --color-text: #222222;
    --color-border: #e0e0e0;

    --font-base: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Nanum Gothic', 'Malgun Gothic', 'Samsung One', sans-serif;
    --font-heading: 'Roboto Slab', serif;

    --container-max: 1440px;
    --header-height: 100px;
    --transition: 0.3s ease;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem !important; }
p  { font-size: 18px !important; word-break: keep-all; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

/* =========================================
   Layout
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-top: var(--header-height); /* fixed 헤더 보정 */
}

/* 프론트페이지는 hero가 풀스크린이므로 보정 제거 */
.home .site-main {
    padding-top: 0;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 900;
    text-decoration: none;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover { background: var(--color-accent); color: #fff; }

/* =========================================
   Top Bar
   ========================================= */
#top-bar {
    background: var(--color-primary);
    padding: 6px 0;
}

#top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 18px;
}

.lang-menu {
    display: flex;
    gap: 0;
}

.lang-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 2px 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: color var(--transition);
}

.lang-menu a:last-child {
    border-right: none;
}

.lang-menu a:hover,
.lang-menu a.active {
    color: var(--color-white);
}

/* =========================================
   Header
   ========================================= */
#site-header {
    background: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

/* 프론트페이지: 최초 투명 상태 */
#site-header.header-transparent {
    background: transparent;
    box-shadow: none;
}

/* 스크롤 후 흰 배경으로 전환 */
#site-header.scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

#site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: relative;
}

/* Logo */
#site-logo a {
    display: flex;
    align-items: center;
}
#site-logo img {
    height: 40px;
    width: auto;
}

/* 투명 헤더일 때 로고 흰색 */
#site-header.header-transparent:not(.scrolled) #site-logo img {
    filter: brightness(0) invert(1);
}

/* Navigation — 헤더 컨테이너 기준 절대 중앙 */
#site-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: var(--header-height);
    pointer-events: auto;
}

.main-menu {
    display: flex;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    position: relative;
    padding: 0 20px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    white-space: nowrap;
}

/* 투명 헤더일 때 메뉴 흰색 */
#site-header.header-transparent:not(.scrolled) .main-menu > li > a {
    color: rgba(255,255,255,0.9);
}

/* hover 밑줄 애니메이션 */
.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.main-menu > li > a:hover::after,
.main-menu > li.current-menu-item > a::after,
.main-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a {
    color: var(--color-accent);
}
#site-header.header-transparent:not(.scrolled) .main-menu > li > a:hover {
    color: var(--color-white);
}

/* Dropdown */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-top: 2px solid var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition);
    z-index: 100;
    padding: 8px 0;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.main-menu .sub-menu > li.menu-item-has-children > a { font-weight: 500; }
.main-menu .sub-menu > li.menu-no-hover > a,
.main-menu .sub-menu > li.menu-no-hover > a:hover,
.main-menu .sub-menu > li > a.menu-no-hover,
.main-menu .sub-menu > li > a.menu-no-hover:hover {
    color: var(--color-text) !important;
    background: transparent !important;
    cursor: default;
}
.main-menu .sub-menu > li > a:hover {
    background: var(--color-gray-light);
    color: var(--color-accent);
}

/* depth-2 — indent */
.main-menu .sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0;
    min-width: 0;
    display: block;
}
.main-menu .sub-menu .sub-menu li a {
    display: block;
    padding: 7px 20px 7px 36px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray-dark);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.main-menu .sub-menu .sub-menu li a:hover {
    background: var(--color-gray-light);
    color: var(--color-accent);
}

.main-menu .sub-menu > li { border-bottom: 1px solid var(--color-border); }
.main-menu .sub-menu > li:last-child { border-bottom: none; }

/* Header SNS icons */
.header-sns {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #888;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}
.header-sns-link svg {
    display: block;
    flex-shrink: 0;
}
.header-sns-link:hover {
    color: #FF6B00;
    border-color: #FF6B00;
    background: rgba(255,107,0,0.05);
}

/* 투명 헤더 상태 (프론트페이지 hero 위) — 아이콘은 흰색, 테두리는 옅은 회색 */
#site-header.header-transparent:not(.scrolled) .header-sns-link {
    color: #ffffff;
    border-color: #d8d8d8;
}
#site-header.header-transparent:not(.scrolled) .header-sns-link:hover {
    color: #FF6B00;
    border-color: #FF6B00;
    background: rgba(255,255,255,0.1);
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: var(--header-height);
}

.header-cta {
    display: inline-block;
    padding: 10px 22px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
}
.header-cta:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
}

/* Hamburger — CSS 3선 방식 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #999;
    border-radius: 1px;
    transition: background var(--transition);
}
#site-header.header-transparent:not(.scrolled) .mobile-menu-toggle span {
    background: var(--color-white);
}

/* =========================================
   Mobile Navigation
   ========================================= */
/* Mobile nav overlay */
#mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#mobile-nav-overlay.is-open {
    opacity: 1;
}

/* Side drawer */
#mobile-nav {
    display: none;
    background: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
    padding: 72px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

#mobile-nav.is-open {
    transform: translateX(0);
}

/* X 아이콘 — CSS 방식 */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-close span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #333;
    display: block;
}
.mobile-nav-close span:first-child { transform: rotate(45deg); }
.mobile-nav-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-list > li > a {
    display: block;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-menu-list .sub-menu {
    padding-left: 16px;
}

.mobile-menu-list .sub-menu li a {
    display: block;
    color: #555;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-lang-menu {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.mobile-lang-menu a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="0.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 560px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
    color: var(--color-white);
}

/* =========================================
   Section Common
   ========================================= */
.section {
    padding: 50px 0;
}

.section-alt {
    background: var(--color-gray-light);
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 48px;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.65);
}

.section-header {
    margin-bottom: 56px;
}

.section-header.text-center {
    text-align: center;
}

/* =========================================
   Cards Grid
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.card-body {
    padding: 28px;
    color: white;
    border: none;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.card-text {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.card-link:hover {
    color: var(--color-accent-dark);
}

/* =========================================
   Value Section (홈 - 고객만족)
   ========================================= */
.value-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.value-content .section-title {
    margin-bottom: 20px;
}

.value-lead {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
    line-height: 1.7;
}

.value-desc {
    font-size: 15px;
    color: var(--color-gray);
    margin-bottom: 32px;
}

.carousel-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.carousel-wrapper img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
}

.carousel-wrapper img.active {
    opacity: 1;
    position: relative;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}

.carousel-dot.active {
    background: var(--color-white);
}

/* =========================================
   Footer
   ========================================= */
#site-footer {
    background: #ffffff;
    color: #888;
    padding: 56px 0 0;
    border-top: 1px solid #e8e8e8;
}

/* Footer top: 로고 / 네비 / SNS 한 줄 */
.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e8e8e8;
}

.footer-brand {
    flex-shrink: 0;
    padding-top: 4px;
}

.footer-logo-link { display: inline-block; }
.footer-logo-img {
    height: 44px;
    width: auto;
}

/* SNS 아이콘 — 우측 */
.footer-sns-row {
    display: flex;
    gap: 10px;
    margin: 0;
    flex-shrink: 0;
    padding-top: 4px;
}

.footer-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #888;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}
.footer-sns-link svg { display: block; }
.footer-sns-link:hover {
    color: #FF6B00;
    border-color: #FF6B00;
    background: rgba(255,107,0,0.05);
}

/* Nav columns */
.footer-nav-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 56px;
    color: #555;
}

/* 카테고리 제목 (제품, 솔루션, 리소스, 도입문의) */
.footer-col-title {
    display: block;
    color: var(--color-gray-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 10px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col-title:hover { color: #FF6B00; }

/* 하위 링크 영역 */
.footer-col-sub ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-sub ul li a {
    font-size: 14px;
    color: #888 !important;
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col-sub ul li a:hover { color: #FF6B00 !important; }

/* Bottom row */
.footer-bottom {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-info-line {
    font-size: 12px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.footer-info-line a {
    color: #777;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-info-line a:hover { color: #333; }
.footer-sep { color: #bbb; }

.footer-copy {
    font-size: 12px;
    color: #999;
}

/* =========================================
   Page Header
   ========================================= */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary), #0f3460);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
}

/* =========================================
   RBS Page
   ========================================= */
.rbs-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.rbs-feature.reverse {
    direction: rtl;
}

.rbs-feature.reverse > * {
    direction: ltr;
}

.rbs-feature-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.rbs-feature-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.rbs-feature-content .section-title {
    font-size: 1.8rem;
}

.spec-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.spec-item::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================================
   History Page
   ========================================= */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-year {
    margin-bottom: 40px;
}

.timeline-year-label {
    position: relative;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.timeline-year-label::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.timeline-month {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray);
    min-width: 40px;
    margin-top: 2px;
}

.timeline-text {
    font-size: 18px;
    color: var(--color-gray-dark);
}

/* =========================================
   Contact Page — map + company info card
   ========================================= */

/* 지도 (우측 상단) */
.contact-info-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: var(--color-gray-light);
    margin-bottom: 32px;
}

.contact-info-map iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    border: 0;
}

/* 회사명 */
.contact-info-company {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* 라벨–값 표 형식 정보 리스트 */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 32px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: start;
    font-size: 14px;
    line-height: 1.7;
}

.contact-info-row dt {
    font-weight: 700;
    color: var(--color-text);
}

.contact-info-row dd {
    margin: 0;
    color: var(--color-gray-dark);
}

.contact-info-row dd a {
    color: inherit;
    transition: color var(--transition);
}

.contact-info-row dd a:hover {
    color: var(--color-accent);
}

/* 우측 하단 로고 */
.contact-info-logo {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.contact-info-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* =========================================
   News / Archive
   ========================================= */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    width: 60px;
}

.news-date-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.news-date-month {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-gray);
    font-weight: 600;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 6px;
    transition: color var(--transition);
}

.news-item a:hover .news-title {
    color: var(--color-accent);
}

.news-meta {
    font-size: 13px;
    color: var(--color-gray);
}

/* News full list (page-news.php) */
.news-grid-full .news-title {
    font-size: 17px;
}

/* 컨테이너 내에서 좌측 정렬된 좁은 본문 영역 (history/about 등) */
.content-narrow {
    max-width: 1500px;
}

.content-narrow p {
    font-size: 19px;
}

/* Catalog */
.catalog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.catalog-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.catalog-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}

.catalog-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.catalog-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.catalog-desc {
    font-size: 13px;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.catalog-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    padding: 6px 14px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    transition: all var(--transition);
}

.catalog-download-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* WPDM 다운로드 버튼 hover — accent 컬러 */
.catalog-download-wrap a:hover,
.catalog-download-wrap .wpdm-download-link:hover,
.catalog-download-wrap [class*="download-link"]:hover,
.catalog-download-wrap [class*="download_now"]:hover,
.catalog-download-wrap [class*="wpdm_download"]:hover,
.catalog-download-wrap [class*="wpdm-btn"]:hover,
.catalog-download-wrap .btn:hover,
.catalog-download-wrap .btn-primary:hover,
.catalog-download-wrap button:hover {
    background: var(--color-accent) !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    border-color: var(--color-accent) !important;
}

/* =========================================
   Breadcrumb
   ========================================= */
.breadcrumb-bar {
    background: var(--color-white);
    border-top: 1px solid var(--color-white);
    border-bottom: 1px solid var(--color-white);
    padding: 120px 0 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-gray);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb-sep {
    color: var(--color-border);
}

/* 브레드크럼 현재 페이지(마지막 span, 구분자 제외) */
.breadcrumb > span:not(.breadcrumb-sep) {
    color: var(--color-accent);
    font-weight: 600;
}

/* =========================================
   Utilities
   ========================================= */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* =========================================
   Page Sub-Header & Anchor Tab Bar
   ========================================= */
.page-subheader {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0 0 0;
    text-align: center;
}

.page-subheader-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.page-subheader-title {
    padding-bottom: 24px;
    max-width: 720px;
    text-align: left;
    align-self: flex-start;
}

.page-subheader-title h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-subheader-title p {
    font-size: 15px;
    color: var(--color-gray-dark);
    line-height: 1.7;
}

.page-anchor-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-anchor-tabs::-webkit-scrollbar {
    display: none;
}

.page-anchor-tabs a {
    display: inline-block;
    padding: 14px 24px;
    font-size: 19px;
    font-weight: 600;
    color: var(--color-gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
}

.page-anchor-tabs a:hover,
.page-anchor-tabs a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* sticky tab bar that detaches from subheader on scroll */
.page-anchor-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 200;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-anchor-bar .page-anchor-tabs {
    border-top: none;
}

/* =========================================
   Scroll To Top
   ========================================= */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
}

/* =========================================
   Pagination
   ========================================= */
.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-dark);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* =========================================
   Entry Content (WYSIWYG)
   ========================================= */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.5em 0 0.5em;
    color: var(--color-primary);
}

.entry-content p {
    margin-bottom: 1em;
    color: var(--color-gray-dark);
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0 1em 1.5em;
    list-style: disc;
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-gray-dark);
}

.entry-content img {
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Single post layout helpers */
.single-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-divider {
    margin: 48px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.single-nav a {
    color: var(--color-gray-dark);
    transition: color var(--transition);
}

.single-nav a:hover {
    color: var(--color-accent);
}

.single-back {
    margin-top: 32px;
    text-align: center;
}

.single-back-btn {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.single-back-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* =========================================
   Header CTA Button
   ========================================= */
.header-cta {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 16px;
    white-space: nowrap;
}

/* Mobile hamburger lines (duplicate rule removed — see base rule above) */

/* =========================================
   Tech Pillars (홈 + 프로덕트)
   ========================================= */
.tech-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tech-pillar {
    background: var(--color-white);
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform var(--transition), box-shadow var(--transition);
}

.tech-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.tech-pillar-link-card {
    display: block;
    color: inherit;
}

.tech-pillar-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tech-pillar h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.tech-pillar-sub {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 14px;
    line-height: 1.5;
}

.tech-pillar-desc {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tech-pillar-link,
.tech-pillar-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-block;
}

/* =========================================
   Solution Cards (홈)
   ========================================= */
.solution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    display: block;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.solution-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.solution-card-wide {
    grid-column: span 3;
}

.solution-card-inner {
    padding: 32px 28px;
}

.solution-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(233,69,96,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.solution-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

/* =========================================
   Value Grid (홈 dark section)
   ========================================= */
.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.value-grid .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.value-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 28px;
}

.value-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-points li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 20px;
    position: relative;
}

.value-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.value-points strong {
    color: var(--color-white);
    font-size: 15px;
}

.value-points span {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.value-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
    background: var(--color-gray-light);
    border-top: 1px solid var(--color-border);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 16px;
    color: var(--color-gray);
}

/* =========================================
   News Excerpt
   ========================================= */
.news-excerpt {
    font-size: 13px;
    color: var(--color-gray);
    margin-top: 6px;
    line-height: 1.6;
}

.btn-text-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.btn-text-link:hover {
    color: var(--color-accent-dark);
}

/* =========================================
   Problem Cards (솔루션 페이지)
   ========================================= */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.problem-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 36px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 3px solid var(--color-accent);
}

.problem-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.problem-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.problem-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

/* =========================================
   Solution Detail (솔루션 페이지)
   ========================================= */
.solution-detail-header {
    text-align: center;
    margin-bottom: 56px;
}

.solution-detail-lead {
    font-size: 18px;
    color: var(--color-gray);
    margin-top: 12px;
}

.solution-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.solution-feature {
    background: var(--color-white);
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.solution-feature h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.solution-feature p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ROI Grid */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.roi-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roi-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.roi-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
}

.roi-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* =========================================
   Logistics Page — Intro Split
   ========================================= */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.intro-text p {
    font-size: 15px;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 24px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    font-size: 15px;
    color: var(--color-gray-dark);
    padding-left: 24px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.intro-stat {
    background: var(--color-gray-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.intro-stat strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    min-width: 80px;
}

.intro-stat span {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-dark);
}

/* =========================================
   Product Lineup (프로덕트 페이지)
   ========================================= */
.product-lineup {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.product-item {
    background: var(--color-white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-accent);
}

.product-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(233,69,96,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.product-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.product-item p {
    font-size: 15px;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
}

/* =========================================
   Contact Form Page
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row-2col > .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.required {
    color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-privacy {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-accent);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    padding: 16px;
}

.form-success {
    background: #edfaf3;
    border: 1px solid #52c47e;
    color: #1a7a46;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-error-msg {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #b91c1c;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 14px;
    margin-bottom: 24px;
}

/* =========================================
   Footer Nav Columns
   ========================================= */
.footer-nav-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-white);
}

.footer-logo-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

/* =========================================
   Blog Grid
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.blog-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-gray-light);
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: 10px;
}

.blog-cat {
    background: rgba(233,69,96,0.08);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-card-excerpt {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-dark);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--color-gray);
    font-size: 16px;
}

/* =========================================
   Tech Flow (Technologies 페이지)
   ========================================= */
.tech-flow {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.tech-flow-step {
    flex: 1;
    max-width: 280px;
    background: var(--color-white);
    border-radius: 10px;
    padding: 32px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    text-align: center;
}

.tech-flow-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tech-flow-step h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.tech-flow-step p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.7;
}

.tech-flow-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    padding: 0 16px;
    flex-shrink: 0;
}

/* Vertical Flow (팔레타이징/디팔레타이징) */
.tech-flow-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.flow-step-v {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.flow-num-v {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.flow-step-v strong {
    display: block;
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.flow-step-v p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   Spec Table (팔레타이징/디팔레타이징)
   ========================================= */
.spec-table-wrap {
    max-width: 850px;
    margin: 0 auto;
}

.spec-table {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 16px 20px;
    font-size: 17px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    word-break: keep-all;
    vertical-align: top;
}

.spec-table th {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    padding-right: 48px;
}

.spec-table td {
    color: var(--color-gray-dark);
}

/* =========================================
   Resource Hub
   ========================================= */
.resource-hub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.resource-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px 28px;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.resource-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.resource-card-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.resource-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(233,69,96,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.resource-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.resource-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

/* =========================================
   YouTube Page
   ========================================= */
.youtube-cta-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.yt-placeholder {
    background: var(--color-gray-light);
    border-radius: 8px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.yt-placeholder-inner {
    text-align: center;
}

.yt-placeholder-inner span {
    font-size: 36px;
    color: var(--color-gray);
    display: block;
    margin-bottom: 8px;
}

.yt-placeholder-inner p {
    font-size: 13px;
    color: var(--color-gray);
}

/* =========================================
   Mobile Nav CTA
   ========================================= */
.mobile-nav-cta {
    margin-top: 32px;
}

.mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
}

/* sub-menu-depth2 — static display (handled by flat dropdown above) */

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-cards {
        grid-template-columns: 1fr 1fr;
    }

    .solution-card-wide {
        grid-column: span 2;
    }

    .value-grid,
    .value-section,
    .rbs-feature,
    .intro-split,
    .solution-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rbs-feature.reverse {
        direction: ltr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-nav-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-cta {
        display: none;
    }

    .roi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* ---- 전체 글씨 크기 축소 ---- */
    h1 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
    h3 { font-size: 1.1rem !important; }
    p  { font-size: 15px !important; }

    .spec-table th,
    .spec-table td {
        font-size: 14px !important;
        padding: 12px 14px;
    }

    /* ---- 헤더: 높이 축소 + SNS 아이콘 숨김 ---- */
    :root {
        --header-height: 64px;
    }

    .header-sns {
        display: none;
    }

    /* ---- 제품 상세 서브헤더: 헤더 높이에 맞춰 상단 패딩 조정 ---- */
    .page-subheader--detail {
        padding-top: 80px;
    }

    /* ---- Navigation ---- */
    #site-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }

    #mobile-nav {
        display: block;
    }

    /* ---- Footer: 세로 스택 ---- */
    .footer-top {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-nav-cols {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

    .footer-sns-row {
        align-self: flex-start;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* ---- Grid layouts ---- */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        min-height: 480px;
    }

    .tech-pillars,
    .solution-cards,
    .problem-cards,
    .value-stats,
    .resource-hub,
    .youtube-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .tech-flow {
        flex-direction: column;
    }

    .tech-flow-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .solution-card-wide {
        grid-column: span 1;
    }

    .form-row-2col {
        flex-direction: column;
    }

    .product-item {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .page-anchor-bar {
        top: 64px;
    }

    .page-anchor-tabs a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
    }

    .news-date {
        display: flex;
        gap: 8px;
        align-items: baseline;
        width: auto;
    }

    .footer-nav-cols {
        grid-template-columns: 1fr;
    }

    .value-section .carousel-wrapper img {
        height: 240px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .roi-number {
        font-size: 2rem;
    }
}

/* =========================================
   Product Detail Pages (multistage-vla, ai, vision, tool, rbs)
   =========================================
   Layout shared by all product/technology detail pages.
   Global helpers (.section-label / .section-desc) defined here
   but usable across the theme. */

/* ---- Global: section label + description ---- */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 19px;
    color: var(--color-gray-dark);
    line-height: 1.85;
    max-width: auto;
}

/* ---- Page subheader (detail variant): breadcrumb + h1 + lead ---- */
.page-subheader--detail {
    padding: 120px 0 0;
    background: var(--color-white);
    border-bottom: none;
    text-align: left;
}

.page-subheader--detail .page-subheader-inner--detail {
    text-align: left;
    padding-bottom: 50px;
}

.page-subheader--detail .breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
}

.page-subheader--detail h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 50px;
    color: var(--color-text);
}

.page-subheader--detail p {
    font-size: 19px;
    color: var(--color-gray-dark);
    margin: 0;
}


/* ---- Hero image banner (container width) ---- */
.product-hero-image {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* 배너 이미지 대신 사용하는 서브헤더 하단 구분선 (contact/blog/news/youtube 등) */
.page-divider {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.page-divider::after {
    content: '';
    display: block;
    border-top: 1px solid var(--color-border);
}

.product-hero-image-inner {
    width: 100%;
    height: clamp(213px, 28vw, 373px);
    background-size: cover;
    background-position: center;
}

/* ---- Section-level title override inside product detail pages ---- */
.product-intro .section-title,
.product-process .section-title,
.product-feature .section-title,
.product-spec .section-title,
.product-trust .section-title,
.product-related .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--color-text);
}

/* ---- Intro section ---- */
.product-intro {
    text-align: center;
}

.product-intro .section-label,
.product-intro .section-title,
.product-intro .section-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* ---- Embedded media (video) ---- */
.product-media-wrap {
    margin-top: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.product-media-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.product-media-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Process section (5-step horizontal flow) ---- */
.product-process {
    position: relative;
}

.product-process-bg {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
}

.product-process-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-gray-light);
}

.product-process-bg .container {
    position: relative;
    z-index: 2;
}

.product-process-bg .section-title {
    margin-bottom: 20px;
}

.product-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    list-style: none;
}

.product-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.product-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.product-step-track {
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--color-accent);
    z-index: 1;
}

.product-step-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-step-body strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.product-step-body span {
    font-size: 12px;
    line-height: 1.5;
}

/* ---- Key feature section (3-up list) ---- */
.product-feature {
    text-align: center;
}

.product-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.product-feature-item {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.product-feature-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: transparent;
}

.product-feature-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 8px;
}

.product-feature-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-feature-content p {
    font-size: 18px;
    color: var(--color-gray-dark);
    line-height: 1.85;
    margin-bottom: 20px;
    word-break: keep-all;
}

/* ---- Validation / Trust section ---- */
.product-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* 단일 카드용: 가운데 정렬 + 폭 제한 */
.product-trust-grid.product-trust-grid--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.product-trust-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-top: 3px solid var(--color-accent);
}

.product-trust-badge {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.product-trust-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
}

.product-trust-card p {
    font-size: 17px;
    color: var(--color-gray);
    line-height: 1.85;
}

/* ---- Related solution cards (2-up) ---- */
.product-related-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-related-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.product-related-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-related-card-body {
    padding: 32px;
}

.product-related-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.product-related-card-body p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-related-card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

.product-related-card-link:hover {
    color: var(--color-accent-dark);
}

/* ---- CTA section (background image + overlay) ---- */
.product-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.product-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.product-cta-inner {
    position: relative;
    z-index: 2;
}

.product-cta-lead {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

.product-cta-lead strong {
    color: var(--color-accent);
}

.product-cta-btn {
    font-size: 16px;
    padding: 16px 40px;
}

/* ---- Spec table override inside product detail pages ---- */
.spec-section .spec-table th {
    color: var(--color-text);
    font-weight: 600;
}

.spec-section .spec-table td,
.spec-section p {
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .product-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .product-step {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: flex-start;
    }

    .product-step-num {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .product-step-track {
        display: none;
    }

    .product-feature-list,
    .product-trust-grid,
    .product-related-cards {
        grid-template-columns: 1fr;
    }

    .product-cta {
        padding: 64px 0;
    }
}
