@media (max-width: 860px) {
  /* dropdown-menu 하위의 화살표만 숨김, 상위 네비게이터(ol > li > a > .dropdown-arrow)는 항상 노출 */
  .dropdown-menu .dropdown-arrow {
    display: none !important;
  }
}
@media (max-width: 860px) {
  /* 모바일: 드롭다운은 .open 클래스가 있을 때만 노출 */
  .breadcrumb-dropdown .dropdown-menu {
    display: none;
    position: static;
    min-width: 0;
    width: max-content;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    padding: 0 0 0 10px;
    border-radius: 0 0 8px 8px;
    margin-bottom: 6px;
  }
  .breadcrumb-dropdown.open > .dropdown-menu {
    display: block;
  }
  /* 데스크탑 hover/focus 스타일 무효화 */
  .breadcrumb-dropdown:hover > .dropdown-menu,
  .breadcrumb-dropdown:focus-within > .dropdown-menu {
    display: none;
  }
  .breadcrumb,
  .breadcrumb ol,
  .breadcrumb-dropdown > a,
  .dropdown-menu a {
    font-size: 13px !important;
  }
  .breadcrumb-dropdown > a {
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(11,92,171,0.08);
    user-select: none;
    border-radius: 8px;
  }
  .breadcrumb-dropdown > a:active,
  .breadcrumb-dropdown > a:focus {
    background: #e8f0fe;
    color: #0b5cab;
    outline: none;
  }
  .dropdown-menu a {
    padding: 12px 18px;
    font-size: 13px !important;
  }
}
/* 드롭다운 내부 divider 숨김 */
.dropdown-menu li:not(:last-child)::after {
  display: none !important;
}
/* === Breadcrumb Dropdown(같은 계층 드롭박스) === */
.breadcrumb-dropdown {
  position: relative;
}
.breadcrumb-dropdown > a {
  cursor: pointer;
}
.breadcrumb-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 0;
  width: max-content;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 6px 0;
}
.breadcrumb-dropdown:hover > .dropdown-menu,
.breadcrumb-dropdown:focus-within > .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  list-style: none;
  position: relative;
}
.dropdown-menu a {
  display: block;
  padding: 8px 18px;
  color: #222;
  text-decoration: none;
  font-size: 0.97rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.dropdown-menu a:hover {
  background: #f2f6fa;
  color: #0b5cab;
}
.dropdown-menu .dropdown-menu {
  left: 100%;
  top: 0;
  margin-left: 2px;
  border-radius: 8px;
  min-width: 210px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
#quoteCopyBtn,
#quoteCloseBtn {
  font-size: 15px !important;
}
.btn.primary,
#quoteMailBtn {
  color: #fff !important;
}
/* 모달팝업 닫기/주소복사 버튼 텍스트 컬러 */
.btn,
.btn:not(.primary),
#quoteCloseBtn,
#quoteCopyBtn {
  color: #111 !important;
}
/* Breadcrumb 네비게이터 스타일 */
.breadcrumb {
  margin: 40px 0px 0px 0px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0px;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
}
 .breadcrumb ol li:not(:last-child)::after {
   content: '';
   display: inline-block;
   width: 1px;
   height: 0.9em;
   background: #c7d2fe;
   margin: 0 12px;
   vertical-align: middle;
 }

.breadcrumb a {
  color: var(--breadcrumb-default, #222);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a.active,
.breadcrumb a[aria-current="page"] {
  color: var(--breadcrumb-active, #0b5cab);
  font-weight: 700;
}
.breadcrumb a:hover {
  color: var(--breadcrumb-active, #0b5cab);
}
/* === Global Button Style === */
a.btn, button.btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 10px 6px;
  background-color: #005a9e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
a.btn:hover, button.btn:hover {
  opacity: .88;
}
a.btn.primary, button.btn.primary {
  background: #0b5cab;
  color: #fff;
  border: 1px solid #0b5cab;
}
a.btn:not(.primary):not(.main) {
  background: #fff;
  color: #005a9e;
  border: 1px solid #e5e7eb;
}
.main.container {
  padding: 40px 40px;
}
/* CTPT main.html 상세 설명 영역 스타일 */
.after.after-detail {
  margin-top: 24px;
  line-height: 1.7;
  color: #1f2937;
  white-space: pre-line;
}
/* ===== CTPT main.html 전용 스타일 ===== */
.page-title {
  font-size: 2.2rem;
  color: #005a9e;
  text-align: center !important;
  margin: 60px 0 6px;
  font-weight: 700;
}
.sub-title {
  font-size: 1.15rem;
  color: #333;
  text-align: center !important;
  margin-bottom: 40px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .page-title {
    font-size: 1.70rem;
    line-height: 2.4rem;
  }
}
.lead, .after {
  line-height: 1.7;
  color: #1f2937;
  font-size: 1.05rem;
}
.lead p, .after p {
  margin: 10px 0;
}
/* =====================
   Footer Styles (footer.css)
   ===================== */
@media (min-width: 861px) {
  .footer .footer-logo {
    display: none;
  }
}
.footer {
  width: 100%;
  background: #f5faff;
  color: #333;
  border-top: 1px solid #e5e7eb;
  padding: 32px 0 24px 0;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1px;
  margin-top: auto;
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 80px;
  box-sizing: border-box;
}
.footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer .footer-logo {
  margin-bottom: 4px;
}
.footer .footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.footer .footer-links {
  margin-bottom: 8px;
}
.footer .footer-links a {
  color: #0b5cab;
  text-decoration: none;
  margin: 0 0;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0 16px;
}
.footer .footer-links a:hover {
  text-decoration: underline;
}
.footer .footer-copy {
  color: #888;
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .footer {
    font-size: 0.95rem;
    padding: 24px 16px;
  }
  .footer .footer-inner {
    width: 98%;
    gap: 6px;
  }
  .footer .footer-logo img {
    height: 20px;
    width: 80%;
  }
  .footer .footer-links a {
    margin: 0px;
    font-size: 0.93rem;
    padding: 0px;
  }
}
/* header.html이 동적으로 삽입될 때 sticky 정상 동작을 위한 처리 */
#header { display: contents; }
.menu-pc { display: inline; }
.menu-mobile { display: none; }
@media (max-width: 860px) {
  .brand .logo-desktop {
    display: none !important;
  }
  .brand .logo-mobile {
    display: block !important;
    height: 20px !important;
    width: auto !important;
  }
 .mainmenu {
   gap: 8px !important;
   flex-direction: column;
   align-items: flex-start;
   position: absolute;
   left: 0; right: 0; top: 58px;
   background: #fff;
   border-bottom: 1px solid #e5e7eb;
   margin-bottom: 0 !important;
   width: auto;
  }
  .mainmenu > li > a {
    font-size: 14px;
  }
  .container.navwrap {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 10px !important;
  }
  .quote-btn,
  .quote-btn-mobile {
    font-size: 13px !important;
  }
  .mainmenu {
    margin-bottom: 0 !important;
  }
  .quote-btn,
  .quote-btn-mobile {
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .container.navwrap {
    gap: 0 !important;
  }
  .menu-mobile { display: inline; }
  .menu-pc { display: none; }
}
:root {
  --primary: #005a9e;
  --secondary: #f5faff;
  --text: #333333;
  --card-bg: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f9f9f9;
  color: var(--text);
  overflow-x: hidden; /* Prevent horizontal scroll */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--secondary), #ffffff);
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}
#hero .logo {
  max-width: 240px;
  width: 100%;
  margin: auto;
  display: block;
}
/* Products Section */
#products {
  display: flex;
  flex-wrap: wrap; /* Wrap to next line */
  justify-content: flex-start;
  gap: 20px;
  padding: 40px 0px;
  overflow: visible; /* Ensure no scroll */
}
.product {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: calc(33.333% - 13.33px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s;
}
.product:hover {
  transform: translateY(-5px);
}
.product img {
  width: 100%;
  padding: 20px 20px 0 20px;
  display: block;
}
.description {
  padding: 20px;
  text-align: center;
}
.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.product-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1rem;
  color: var(--primary);
  text-transform: none;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 8px;
}
/* Partner Logo */
.partner-logo {
  text-align: center;
  padding: 60px 0;
}
.partner-logo img {
  max-width: 200px;
  width: 50%;
  display: inline-block;
}
/* Responsive */
@media (max-width: 860px) {
  .main.container {
    padding: 40px 0px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 860px) {
  #products {
  padding: 20px 0;
  }
  .product {
    width: 100%;
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.topbar .navwrap { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  height:58px; 
}
.brand { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  text-decoration:none; }
.brand img { 
  height:60px; 
  width:auto; 
  display:block; 
}
.mainmenu {
   list-style:none; 
   display:flex; 
   align-items:center; 
   gap:0px; 
}
.mainmenu > li { 
  position:relative;
}
.mainmenu > li > a, .quote-btn {
  letter-spacing: .2px;
}
.mainmenu > li > a { 
  text-decoration:none; 
  color:#0b5cab; 
  font-weight:700; 
  font-size:.95rem; 
  text-transform:uppercase; 
  padding:0px 0px; 
  display:inline-flex; 
  align-items:center; 
  gap:0px; 
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}

/* 활성화(선택)된 메뉴에 아래 라인 */
.mainmenu > li > a.active {
  color: #0b5cab !important;
  border-bottom: 2.5px solid #0b5cab;
}
.dropdown { position:absolute; top:100%; left:0; background:#ffffff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:10px; display:none; min-width:240px; }
.dropdown a { display:block; padding:8px 10px; text-decoration:none; color:#111; font-weight:600; border-radius:8px; }
.dropdown a:hover { background:#f5faff; color:#0b5cab; }
.mainmenu > li:hover .dropdown { 
  display:block; 
}
.hambox { display:none; } .hambtn { display:none; }
@media (max-width: 860px) {
  .hambox { display: block; }
  .hambtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e5e7eb; padding: 8px 10px; border-radius: 10px; background: #fff; font-weight: 700; color: #0b5cab; }
  #nav-toggle:checked ~ .mainmenu { display: flex; }
  .dropdown { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 10px; }
  .dropdown a { padding: 6px 0; }
}

/* CTA button */
.quote-btn { display:inline-block; padding:9px 12px 10px; border-radius:4px; background:#0b5cab; color:#fff; font-weight:700; text-decoration:none; margin-left:16px; }
.quote-btn:hover { opacity:.9; text-decoration:none; }
/* Mobile CTA inside menu */
.mainmenu .quote-mobile { display:none; }
@media (max-width: 860px) {
  .quote-btn { display: none; }
  .mainmenu .quote-mobile { display: block; margin-top: 6px; }
  .mainmenu .quote-mobile a { display: inline-block; padding: 9px 12px 10px; border-radius: 10px; background: #0b5cab; color: #fff; font-weight: 700; text-decoration: none; }
}

/* Force hide images for About/Quote cards */
a.product[href="about.html"] img,
a.product.quote-btn[href="quote.html"] img { display:none !important; }

/* === Quote Modal === */
#quoteModalOverlay{position:fixed; inset:0; background:rgba(0,0,0,.4); display:none; z-index:99999;}
#quoteModal{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:#fff; width:min(92vw,520px);
  border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.2); overflow:hidden; font-family:'Noto Sans KR', sans-serif;}
#quoteModal header{padding:14px 18px; background:#0b5cab; color:#fff; font-weight:700;}
#quoteModal .body{padding:18px; color:#111827; line-height:1.6;}
#quoteModal .email{font-weight:700; font-size:1.05rem;}
#quoteModal .actions{display:flex; gap:10px; justify-content:flex-end; padding:0 18px 18px;}
#quoteModal .btn{padding:10px 14px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; cursor:pointer;}
#quoteModal .btn.primary{background:#0b5cab; color:#fff; border-color:#0b5cab;}
#quoteModal .btn:active{transform:translateY(1px);}

/* === Force desktop-style topbar on all widths (index) === */
.hambox, .hambtn { display: none; }
.mainmenu {
  display: flex;
  position: static;
  left: auto; right: auto; top: auto;
  background: transparent;
  border: none;
  padding: 0;
  flex-direction: row;
  align-items: center;
  gap: 0px;
}
.quote-btn { display: inline-block; }
.quote-btn-mobile { display: none; }
@media (max-width: 860px) {
  .quote-btn { display: none; }
  .quote-btn-mobile { display: inline-block; }
}
.mainmenu > li:not(:first-child)::before {
  content: "|";
  color: #c7d2fe;
  display: inline-block;
  margin: 0 20px 0 24px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-3px);
}
@media (max-width: 860px) {
  .mainmenu > li:not(:first-child)::before {
    display: none !important;
  }
}
