/* =============================================================
   modern.css — 가벼운 현대화 레이어 (2026)
   기존 style.css / responsive.css / skin 위에 마지막으로 로드되어
   레이아웃은 유지하되 타이포·여백·버튼·모바일 메뉴를 현대화한다.
   테마색: #015f98 (메인) / #55a2a6 (포인트)
   ============================================================= */

/* 한글 웹폰트 Pretendard */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --brand: #015f98;
  --brand-dark: #014a76;
  --accent: #55a2a6;
  --ink: #2b2b2b;
  --muted: #5f6b76;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

/* ---------- 타이포그래피 ---------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { font-size: 16px; line-height: 1.8; color: #444; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: #1a2733;
  letter-spacing: -0.02em;
  font-weight: 700;
}
a { color: var(--brand); transition: color .18s ease; }
a:hover { color: var(--accent); }

/* 이미지가 모바일에서 컨테이너를 넘지 않도록 */
img { max-width: 100%; }
#map_canvas img, #googlemap img { max-width: none; }

/* 부드러운 앵커 스크롤 */
html { scroll-behavior: smooth; }

/* ---------- 버튼 (readmore / submit) ---------- */
.readmore, .submit, input[type="submit"].readmore {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(1, 95, 152, .18);
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}
.readmore:hover, .submit:hover {
  background: var(--brand-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(1, 95, 152, .28);
}

/* ---------- 네비게이션 ---------- */
#main-menu > li > a { font-weight: 600; font-size: 15px; }
.nav-bar li ul li a { font-size: 14px; }
/* 드롭다운에 부드러운 그림자/모서리 */
.nav-bar li ul, ul.sf-menu ul {
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  overflow: hidden;
}

/* ---------- 홈 아이콘 카드 (.ca-menu) ---------- */
.ca-menu li {
  transition: transform .2s ease;
}
.ca-menu li:hover { transform: translateY(-4px); }
.ca-icon { transition: color .2s ease, transform .2s ease; }
.ca-menu li:hover .ca-icon { transform: scale(1.08); }

/* ---------- 본문 카드 영역 (.three columns) ---------- */
.centersectiontitle { transition: all .2s ease; }

/* ---------- 서브헤더 / 구분선 ---------- */
.hr { border-top: 1px solid #e7ebef; }
.hr, .hr * { border-color: #e7ebef; }

/* ---------- 지도 iframe ---------- */
.gmap, iframe.gmap {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 10px;
}

/* ---------- 서브헤더 가독성(저대비 텍스트 보정) ---------- */
#subheader, #subheader p, #subheader a,
#subheader .left, #subheader .right { color: #fff !important; }
#subheader a { text-decoration: underline; }
#subheader a:hover { color: #e6f2f8 !important; }

/* ---------- 푸터 ---------- */
#footer { border-top: 4px solid var(--brand); }
#footer h1 { font-size: 20px; color: #fff; }
.copyright { font-size: 13px; }

/* =============================================================
   모바일 메뉴 (햄버거) — jQuery 의존 tinyNav 대체
   site.js 가 .menu-toggle 버튼을 #nav-wrap 안에 주입하고
   클릭 시 #main-menu 에 .open 클래스를 토글한다.
   ============================================================= */
.menu-toggle { display: none; }

@media screen and (max-width: 800px) {
  .tinynav { display: none !important; }   /* 빈 select 방지 */

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-toggle .bars {
    display: inline-block; width: 18px; height: 2px; background: #fff;
    position: relative;
  }
  .menu-toggle .bars::before,
  .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }

  /* 기본은 숨김(반응형 원본 규칙 유지), .open 일 때만 표시 */
  #main-menu.open {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  }
  #main-menu.open > li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    border-bottom: 1px solid #eef1f4;
  }
  #main-menu.open > li:last-child { border-bottom: 0; }
  #main-menu.open > li > a {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    color: #1a2733;
  }
  /* 서브메뉴를 인라인으로 펼쳐서 보이게 */
  #main-menu.open li ul {
    position: static;
    display: block;
    width: 100%;
    top: auto; left: auto;
    box-shadow: none;
    border-radius: 0;
    background: #f6f8fa;
  }
  #main-menu.open li ul li a {
    margin: 0;
    padding: 12px 18px 12px 32px;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--muted);
  }
  #main-menu.open li ul li a:hover { background: #eef3f6; color: var(--brand); }

  /* 모바일 본문 가독성 */
  body { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
}

/* =============================================================
   모바일 그리드 보정
   이 템플릿은 모바일에서 .one~.twelve 컬럼을 자동으로 접지 않아
   본문(.ten columns 등)이 데스크탑 폭 그대로 남아 가로 오버플로우가
   발생한다. 작은 화면에서 그리드 컬럼을 세로로 쌓는다.
   ============================================================= */
@media screen and (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .row {
    width: 100% !important;
    min-width: 0 !important;   /* Foundation 의 min-width:768px 무력화 (오버플로우 주범) */
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .row .columns,
  .row .column {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
  }
  img, table, iframe, pre { max-width: 100% !important; }
  /* 긴 영문 단어/URL 줄바꿈 */
  p, li, td, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-break: break-word; }
  /* 인라인 style="width:25%" 등으로 작아진 이미지를 모바일에선 더 크게 */
  .tabs-content img[style*="width"] { width: auto !important; max-width: 70% !important; height: auto; }
}

/* ---------- 맨 위로 버튼 ---------- */
.back-top a {
  display: block;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: background .18s ease, transform .18s ease;
}
.back-top a:hover { background: var(--accent); transform: translateY(-2px); }

/* =============================================================
   홈페이지 비주얼 리뉴얼 (2026) — 카드형 디자인
   ============================================================= */

/* 캐러셀(히어로) 다듬기 */
.carousel, .carousel-inner { border-radius: 14px; overflow: hidden; }
.carousel { box-shadow: 0 10px 30px rgba(20,40,60,.12); }

/* 섹션 제목 */
.home-section-head { text-align: center; margin: 46px 0 28px; }
.home-section-head h2 {
  font-size: 30px; font-weight: 800; color: #15293a; margin: 0 0 10px;
  letter-spacing: -0.03em; position: relative; padding-bottom: 14px;
}
.home-section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 52px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.home-section-head p { color: #6a7682; font-size: 16px; margin: 0; }

/* ---- 아이콘 카드 (.ca-menu) 완전 리디자인 ---- */
.ca-menu {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  list-style: none; margin: 0 0 18px; padding: 0;
}
.ca-menu li {
  flex: 1 1 200px; max-width: 280px;
  width: auto !important; height: auto !important; min-height: 0 !important;
  float: none !important; margin: 0 !important; overflow: visible !important;
  background: #fff; border: 1px solid #e7ebef; border-radius: 18px;
  box-shadow: 0 6px 20px rgba(20,40,60,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ca-menu li:hover {
  background: #fff !important; transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(1,95,152,.16); border-color: #cfe0ea;
}
.ca-menu li a {
  position: static !important; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  width: 100% !important; height: auto !important; padding: 34px 18px 30px;
}
.ca-icon {
  position: static !important; width: 88px !important; height: 88px !important;
  line-height: 1 !important; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; margin: 0 0 18px !important;
  background: linear-gradient(135deg, #0a7bbf, var(--brand));
  color: #fff !important; font-size: 34px !important; text-shadow: none !important;
  box-shadow: 0 8px 18px rgba(1,95,152,.28);
  transition: transform .22s ease, background .22s ease;
}
.ca-menu li:hover .ca-icon {
  background: linear-gradient(135deg, var(--accent), #3f8f93);
  color: #fff !important; font-size: 34px !important; transform: scale(1.07) rotate(-3deg);
}
.ca-icon i { line-height: 1; }
.ca-content {
  position: static !important; width: 100% !important; height: auto !important; top: auto !important;
}
.ca-main {
  font-size: 17px !important; font-weight: 700; color: #1a2733 !important;
  opacity: 1 !important; line-height: 1.4; margin: 0;
}
.ca-menu li:hover .ca-main { color: var(--brand) !important; animation: none !important; }

/* ---- 콘텐츠 카드 (.home-services) ---- */
.home-services { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 10px; }
.home-services .columns {
  background: #fff; border: 1px solid #e7ebef; border-top: 3px solid var(--brand);
  border-radius: 14px; padding: 26px 24px 22px;
  box-shadow: 0 4px 16px rgba(20,40,60,.05);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-services .columns:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,40,60,.10); }
.home-services h5 { color: var(--brand); font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.home-services p { flex: 1 1 auto; color: #56616c; font-size: 15px; line-height: 1.7; }
.home-services p:last-child { flex: 0 0 auto; margin-bottom: 0; }
.home-services .readmore { align-self: flex-start; }

.home-services .columns {
  flex: 1 1 220px; width: auto !important; float: none !important; margin: 0 !important;
}
@media (max-width: 800px) {
  .home-section-head { margin: 30px 0 20px; }
  .home-section-head h2 { font-size: 24px; }
  .ca-menu li { max-width: 320px; }
}

/* =============================================================
   장비 필터 버튼 + 갤러리 라이트박스
   ============================================================= */
#options { text-align: center; margin: 6px 0 26px; }
#filters { display: inline-flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
#filters li { float: none !important; margin: 0 !important; list-style: none; }
a.portofoliobutton {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: #eef2f6 !important; border: 1px solid #e0e6ec !important;
  color: #45525e !important; font-size: 14px; font-weight: 600;
  box-shadow: none !important; background-image: none !important;
  text-shadow: none !important; transition: all .18s ease; cursor: pointer;
}
a.portofoliobutton:hover { background: #dfe9f1 !important; color: var(--brand) !important; }
a.portofoliobutton.selected {
  background: var(--brand) !important; border-color: var(--brand) !important;
  color: #fff !important;
}

/* 라이트박스 */
.site-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 20, 30, .86);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.site-lightbox img {
  max-width: 92%; max-height: 88%; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff;
}
.site-lightbox-close {
  position: absolute; top: 18px; right: 24px;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; transition: background .18s ease;
}
.site-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* =============================================================
   내부 페이지 공통 컴포넌트 리뉴얼 (2026 · 3차)
   about / services / equipments / seminar 가 공유하는
   서브헤더·섹션타이틀·패널·사이드바·갤러리·세미나를 일괄 현대화.
   modern.css 가 마지막에 로드되므로 기존 규칙 위에 덮어쓴다.
   ============================================================= */

/* ---- 헤더(로고+메뉴 행) 살짝 다듬기 ---- */
.headerlogo .logo { margin-top: 24px; margin-bottom: 22px; }

/* ---- 언어 토글 버튼 (한/영) ---- */
/* 토글은 헤더 메뉴 칼럼 기준으로 고정(로고와 겹치지 않게) */
.headermenu { position: relative; }
.lang-toggle {
  position: absolute; top: 12px; right: 8px; z-index: 200;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border: 1px solid #d8e0e7; border-radius: 999px;
  background: rgba(255,255,255,.95); cursor: pointer;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; line-height: 1;
  letter-spacing: .02em; color: #9aa6b1;
  box-shadow: 0 2px 8px rgba(20,40,60,.08);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.lang-toggle:hover { border-color: #b9c6d2; box-shadow: 0 4px 12px rgba(20,40,60,.14); }
.lang-toggle .lang-sep { color: #cdd6de; font-weight: 400; }
.lang-toggle .lang-ko.active, .lang-toggle .lang-en.active { color: var(--brand); }
@media screen and (max-width: 800px) {
  .lang-toggle { top: 12px; right: 12px; padding: 5px 11px; font-size: 12px; }
}

/* ---- 데스크탑 헤더: 로고·메뉴·토글 한 줄 세로 중앙 정렬 ---- */
@media screen and (min-width: 801px) {
  /* 헤더 행을 flex 로 (로고 ↔ 메뉴 세로 중앙 정렬) */
  .row:has(> .headerlogo) { display: flex; align-items: center; padding: 20px 0; }
  .row:has(> .headerlogo) > .headerlogo,
  .row:has(> .headerlogo) > .headermenu { float: none; }
  .row:has(> .headerlogo) > .headermenu { width: auto; margin-left: auto; }
  .headerlogo .logo { margin: 0; }

  /* nav-wrap 을 flex 로: [메뉴][토글] 을 gap 으로 나란히(겹침 방지) */
  #nav-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0; }
  #main-menu.sf-menu {
    order: 1; float: none; white-space: nowrap; margin: 0; padding: 0;
  }
  #main-menu.sf-menu > li {
    float: none !important; display: inline-block; vertical-align: middle;
    margin: 0 1px !important; line-height: 40px;
  }
  #main-menu.sf-menu > li > a,
  #main-menu.sf-menu > li > a:first-child { padding: 0 11px; font-size: 14.5px; }
  /* 드롭다운 내부는 원래대로(좌측정렬, 정상 줄바꿈) */
  #main-menu.sf-menu ul { white-space: normal; text-align: left; }

  /* 토글: 인라인(흐름 안)으로 메뉴 오른쪽에 배치 */
  .lang-toggle { position: static; transform: none; order: 3; margin: 0; }
}

/* ---- 페이지 서브헤더(타이틀 배너) ---- */
#subheader {
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, #0a7bbf 100%) !important;
  padding: 30px 50px !important;
  border-top: 0 !important;
  position: relative; overflow: hidden;
}
/* 우측의 은은한 광택 */
#subheader::after {
  content: ""; position: absolute; top: -40%; right: -6%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
#subheader p, #subheader .left, #subheader .bread {
  position: relative; z-index: 1;
  font-size: 24px !important; font-weight: 700; letter-spacing: -0.02em; margin: 0;
}
#subheader p b { font-weight: 700; }
#subheader p::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 6px; height: 22px; border-radius: 3px; margin-right: 12px;
  background: rgba(255,255,255,.85);
}
/* 홈의 빈(가운데 정렬) 서브헤더에는 눈금 표시 숨김 */
#subheader p.text-center::before { display: none; }

/* ---- 섹션 타이틀 (.sectiontitle) — 점선 gif 제거, 깔끔한 헤딩 ---- */
.sectiontitle, .centersectiontitle {
  background: none !important; border-left: 0 !important;
  min-height: 0; margin: 36px 0 22px; padding: 0;
}
.sectiontitle h4, .centersectiontitle h4 {
  display: block !important; background: transparent !important;
  padding: 0 0 12px !important; margin: 0;
  font-size: 24px; font-weight: 800; color: #15293a; letter-spacing: -0.02em;
  position: relative;
}
.centersectiontitle { text-align: center; }
.sectiontitle h4::after, .centersectiontitle h4::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 46px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.centersectiontitle h4::after { left: 50%; transform: translateX(-50%); }

/* ---- 본문 패널 (.panel) — 부드러운 카드 ---- */
.panel {
  background: #f7fafc !important;
  border: 1px solid #e7ebef;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 18px 22px !important;
  margin: 0 0 20px !important;
}
.panel h5 { color: var(--brand); margin-bottom: 8px; }
.panel ol, .panel ul { margin-bottom: 0; }
.panel li { line-height: 1.7; }

/* ---- 사이드바/리스트 제목 (.sidebartitle) ---- */
.sidebartitle {
  border-bottom: 2px solid #e7ebef !important;
  padding-bottom: 10px !important; margin-bottom: 18px !important;
  font-weight: 700; color: #15293a; position: relative;
}
.sidebartitle::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 44px; height: 2px; background: var(--brand);
}

/* ---- 아코디언 (.accordion) ---- */
ul.accordion { border-bottom: 0 !important; }
ul.accordion > li {
  border: 1px solid #e7ebef !important; border-radius: 10px;
  margin-bottom: 10px !important; overflow: hidden;
}
ul.accordion > li .title {
  background: #f7fafc !important; border: 0 !important;
  padding: 14px 18px !important; font-weight: 700; color: #1a2733;
}
ul.accordion > li.active { border-top: 1px solid #e7ebef !important; }
ul.accordion > li.active .title { background: #eef4f8 !important; }
ul.accordion > li .content { border: 0 !important; padding: 16px 18px !important; }

/* ---- 장비 갤러리 카드 (#portofolio) ---- */
#portofolio { display: flex; flex-wrap: wrap; gap: 22px; }
#portofolio .three.columns.category {
  width: calc(25% - 17px) !important; margin: 0 !important; float: none !important;
  background: #fff; border: 1px solid #e7ebef; border-radius: 14px;
  padding: 16px 16px 18px; box-shadow: 0 4px 16px rgba(20,40,60,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
#portofolio .three.columns.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(1,95,152,.14); border-color: #cfe0ea;
}
#portofolio h5 { padding-top: 0 !important; font-size: 16px; color: #15293a; margin: 0 0 4px; }
#portofolio .category > p { color: var(--muted); font-size: 13px; margin: 0 0 12px; min-height: 18px; }
.portofoliothumb { border-radius: 10px; overflow: hidden; }
.portofoliothumb > img, .fourimage { border-radius: 10px; }
a.projectdetail {
  background: var(--brand) !important; text-shadow: none !important;
  border-radius: 8px !important; padding: 8px 12px !important; font-weight: 600;
}
a.projectdetail:hover { background: var(--brand-dark) !important; }

/* ---- 세미나 항목 (.circledate / 엔트리) ---- */
.circledate {
  background: linear-gradient(135deg, #0a7bbf, var(--brand)) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 18px rgba(1,95,152,.25);
  display: flex; align-items: center; justify-content: center;
}
.textcircle {
  margin: 0 !important; color: #fff !important; font-size: 13px !important;
  line-height: 1.4; font-weight: 600; letter-spacing: -0.01em;
}
.dots.blogdots { background: none; height: auto; border-bottom: 1px solid #eef1f4; margin: 6px 0 14px; }

/* ---- 내부 페이지 모바일 보정 ---- */
@media screen and (max-width: 800px) {
  #subheader { padding: 22px 24px !important; }
  #subheader p, #subheader .left, #subheader .bread { font-size: 20px !important; }
  #portofolio { gap: 16px; }
  #portofolio .three.columns.category { width: 100% !important; }
}
@media screen and (min-width: 801px) and (max-width: 1100px) {
  #portofolio .three.columns.category { width: calc(50% - 11px) !important; }
}

/* =============================================================
   서비스 페이지 리디자인 (.services-page) — 카드형 통일 디자인
   ============================================================= */
/* 페이지 헤더 */
.services-page .svc-head { margin: 6px 0 32px; }
.services-page .svc-head h2 {
  font-size: 30px; font-weight: 800; color: #15293a; margin: 0 0 12px;
  letter-spacing: -.02em; position: relative; padding-bottom: 14px;
}
.services-page .svc-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.services-page .svc-head .svc-sub { color: #6a7682; font-size: 16px; margin: 0; }

/* 카테고리 */
.services-page .svc-cat { margin: 0 0 42px; }
.services-page .svc-cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800; color: #15293a; margin: 0 0 18px;
}
.services-page .svc-cat-title i { color: var(--brand); font-size: 19px; }

/* 카드 그리드 */
.services-page .svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.services-page .svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e7ebef; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(20,40,60,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.services-page .svc-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1,95,152,.12); border-color: #cfe0ea;
}
/* 단일 카드(공동연구개발)는 가로형 */
.services-page .svc-cat > .svc-card { flex-direction: row; }
.services-page .svc-cat > .svc-card .svc-card-media { width: 46%; height: auto; min-height: 230px; }
.services-page .svc-cat > .svc-card .svc-card-body { flex: 1; justify-content: center; }

/* 미디어(이미지/비디오/아이콘) */
.services-page .svc-card-media {
  display: flex; height: 190px; background: #eef2f6; flex: 0 0 auto; overflow: hidden;
}
.services-page .svc-card-media img {
  flex: 1 1 0; width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0;
  border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important;
}
.services-page .svc-card-media video { width: 100%; height: 100%; object-fit: contain; background: #0b1118; }
.services-page a.svc-card-media { cursor: pointer; }
.services-page .svc-card-media--icon {
  background: linear-gradient(135deg, #0a7bbf, var(--brand)); align-items: center; justify-content: center;
}
.services-page .svc-card-media--icon i { color: #fff; font-size: 46px; }

.services-page .svc-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.services-page .svc-card-title { font-size: 17px; font-weight: 700; color: #15293a; margin: 0 0 8px; }
.services-page .svc-card-desc { font-size: 14.5px; line-height: 1.7; color: #56616c; margin: 0; }
.services-page .svc-card-contact { font-size: 13px; color: var(--brand); font-weight: 600; margin: 10px 0 0; }

/* 그 외 서비스(아이콘 카드) */
.services-page .svc-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.services-page .svc-mini {
  display: block; background: #fff; border: 1px solid #e7ebef; border-radius: 16px;
  padding: 24px 20px; box-shadow: 0 4px 16px rgba(20,40,60,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.services-page .svc-mini:hover {
  transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1,95,152,.12); border-color: #cfe0ea;
}
.services-page .svc-mini-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  border-radius: 14px; background: linear-gradient(135deg, #0a7bbf, var(--brand)); color: #fff;
  font-size: 20px; margin-bottom: 14px;
}
.services-page .svc-mini h4 { font-size: 16px; font-weight: 700; color: #15293a; margin: 0 0 8px; }
.services-page .svc-mini p { font-size: 14px; line-height: 1.6; color: #56616c; margin: 0 0 12px; }
.services-page .svc-mini-link { font-size: 13px; font-weight: 700; color: var(--brand); }

/* 사이드바: 신청 카드 */
.services-page .svc-request {
  background: linear-gradient(135deg, var(--brand), #0a7bbf); color: #fff;
  border-radius: 18px; padding: 26px 24px; box-shadow: 0 10px 26px rgba(1,95,152,.22);
}
.services-page .svc-request h3 { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.services-page .svc-request p { color: rgba(255,255,255,.92); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
.services-page .svc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #fff; color: var(--brand) !important; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; font-family: var(--font);
  border-radius: 10px; padding: 13px 18px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.services-page .svc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); color: var(--brand-dark) !important; }

/* 사이드바: 자료실 다운로드 */
.services-page .svc-downloads { margin-top: 26px; }
.services-page .svc-dl-head { font-size: 16px; font-weight: 800; color: #15293a; margin: 0 0 14px; }
.services-page .svc-dl {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e7ebef; border-radius: 12px; padding: 13px 16px; margin-bottom: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.services-page .svc-dl:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(1,95,152,.10); transform: translateY(-2px); }
.services-page .svc-dl-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px; background: #eef4f8; color: var(--brand); font-size: 18px;
}
.services-page .svc-dl-text { display: flex; flex-direction: column; line-height: 1.3; color: #1a2733; font-weight: 700; font-size: 14.5px; }
.services-page .svc-dl-text small { font-size: 11px; font-weight: 600; color: #9aa6b1; margin-top: 3px; }

@media screen and (max-width: 800px) {
  .services-page .svc-grid { grid-template-columns: 1fr; }
  .services-page .svc-mini-grid { grid-template-columns: 1fr; }
  .services-page .svc-cat > .svc-card { flex-direction: column; }
  .services-page .svc-cat > .svc-card .svc-card-media { width: 100%; min-height: 0; height: 200px; }
  .services-page .svc-head h2 { font-size: 25px; }
}

/* =============================================================
   서비스 문의 모달 (mailto 자동 작성)
   ============================================================= */
.inq-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,20,30,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.inq-overlay[hidden] { display: none; }
.inq-modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto; padding: 30px 28px 24px; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.3); animation: inqpop .2s ease;
}
@keyframes inqpop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.inq-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #f0f3f6; color: #66727d;
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.inq-close:hover { background: #e2e8ee; }
.inq-modal h3 { font-size: 21px; font-weight: 800; color: #15293a; margin: 0 6px 6px 0; }
.inq-sub { font-size: 14px; color: #6a7682; line-height: 1.6; margin: 0 0 20px; }
#inquiry-form label {
  display: block; font-size: 13.5px; font-weight: 700; color: #2b3a47; margin: 0 0 14px;
}
#inquiry-form label em { color: #e0564f; font-style: normal; margin-left: 2px; }
#inquiry-form input, #inquiry-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid #d8e0e7; border-radius: 10px; box-sizing: border-box;
  font-family: var(--font); font-size: 14.5px; color: var(--ink); background: #fafbfc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#inquiry-form input:focus, #inquiry-form textarea:focus {
  outline: 0; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(1,95,152,.12);
}
#inquiry-form textarea { resize: vertical; min-height: 100px; }
.inq-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 4px; border: 0; cursor: pointer; font-family: var(--font);
  background: linear-gradient(135deg, var(--brand), #0a7bbf); color: #fff;
  font-weight: 700; font-size: 15px; border-radius: 10px; padding: 13px 18px;
  box-shadow: 0 6px 16px rgba(1,95,152,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.inq-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(1,95,152,.32); }
.inq-note { font-size: 12.5px; color: #9aa6b1; text-align: center; margin: 16px 0 0; }
#inq-step-done[hidden], #inq-step-form[hidden] { display: none; }

/* 받는 사람 줄 */
.inq-to {
  display: flex; align-items: center; gap: 10px;
  background: #eef4f8; border: 1px solid #dbe6ee; border-radius: 10px;
  padding: 10px 12px; margin: 0 0 14px;
}
.inq-to-label { font-size: 12px; font-weight: 700; color: #6a7682; flex: 0 0 auto; }
.inq-to-mail { font-size: 14.5px; font-weight: 700; color: var(--brand); flex: 1 1 auto; word-break: break-all; }
.inq-copymail {
  flex: 0 0 auto; border: 0; cursor: pointer; background: #fff; color: var(--brand);
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #cfdde8; font-size: 13px;
  transition: background .15s ease;
}
.inq-copymail:hover { background: #e3eef5; }

.inq-result-text {
  width: 100%; box-sizing: border-box; border: 1px solid #d8e0e7; border-radius: 10px;
  padding: 12px 13px; font-family: var(--font); font-size: 13.5px; line-height: 1.6;
  color: #2b3a47; background: #fafbfc; resize: vertical; margin: 0 0 16px;
}

.inq-actions { display: flex; gap: 8px; margin: 0 0 6px; }
.inq-act {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #d8e0e7; background: #fff; color: #45525e !important; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 13px; border-radius: 10px;
  padding: 11px 8px; text-align: center; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.inq-act:hover { border-color: var(--brand); color: var(--brand) !important; background: #f3f8fb; }
.inq-act-primary {
  background: linear-gradient(135deg, var(--brand), #0a7bbf); color: #fff !important; border: 0;
  box-shadow: 0 4px 12px rgba(1,95,152,.22);
}
.inq-act-primary:hover { color: #fff !important; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.inq-back {
  display: block; margin: 14px auto 0; border: 0; background: none; cursor: pointer;
  color: #9aa6b1; font-family: var(--font); font-size: 13px; font-weight: 600;
}
.inq-back:hover { color: var(--brand); }
@media (max-width: 480px) {
  .inq-actions { flex-direction: column; }
}
