/* ===============================
   sub01.css (기업소개 서브페이지)
   =============================== */

/* 기본 여백 제거 + 고정 헤더 가림 방지 */
html,
body {
  margin: 0;
  padding: 0;
}
:root {
  --full: 1920px;
  --container: 1300px;
  --header-h: 72px;

  /* Palette */
  --text: #212529;
  --white: #fff;
  --green: #348413;
  --green-2: #dfece0;
  --green-3: #e9f1e9;
  --muted: #6b7280;
  --line: #e6e6e6;
  --tt-yellow: #ffd400;
}

/* 서브페이지는 헤더가 fixed라 본문이 가리지 않도록 위 패딩 */
body {
  padding-top: var(--header-h);
}

/* ===== Layout ===== */
.full-wrap {
  width: 100%;
  max-width: var(--full);
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 메인 메뉴 */
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #348413;
  position: relative;
  text-decoration: none;
}
.nav-link:hover {
  color: #348413;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #348413;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 70%;
}

/* ===========================
   전체 드롭다운 컨테이너
   =========================== */

/* 전체 배경 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 72px;
  width: 100%;
  height: 0;
  background: #348413;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: height 0.3s ease;
  z-index: 1;
}

/* hover 시 전체 내려옴 */
.site-header:hover::after {
  height: 250px;
}

/* ===========================
   모든 서브메뉴 줄맞춤
   =========================== */

.has-sub {
  position: relative;
}

/* 모든 mega-sub를 가로 정렬된 라인으로 */
.nav-item.has-sub .mega-sub {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* 헤더 전체 hover 시, 모든 서브메뉴 한 줄로 표시 */
.site-header:hover .nav-item.has-sub .mega-sub {
  opacity: 1;
  pointer-events: auto;
}

/* 각 서브리스트: 자기 메인메뉴 밑으로 */
.nav-item.has-sub .sub-list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  text-align: center;
}

/* 서브링크 */
.sub-link {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s; /* ← 문법만 정상화 */
}
.sub-link:hover {
  color: #999999;
}
/* ===============================
   기업소개 메인 이미지 영역
   =============================== */
.sub-hero {
  position: relative;
  width: 100%;
  height: 300px;
  background: url("../img/sub_prod.jpg") no-repeat center/cover;
  display: flex;
  align-items: center; /* 세로 가운데 정렬 */
}

/* 1300px 기준 왼쪽 정렬 */
.sub-hero .container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* 좌우 여백 */
  box-sizing: border-box;
}

/* 텍스트 스타일 */
.sub-title {
  font-size: 50px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  line-height: 1;
}

/* 기본 폰트 */
/* ================================
   제품 / 솔루션 페이지 전체 스타일
   ================================ */

.product-page .inner {
  width: 1300px;
  max-width: 95%;
  margin: 0 auto;
  padding: 60px 0 80px;
}

/* 그룹 타이틀 (납품 및 유지보수 / 유지보수 등) */
.group-title {
  font-size: 30px;
  font-weight: 700;
  color: #212529;
  margin-top: 200px;
  margin-bottom: -50px;
}

/* 첫 번째 그룹 타이틀은 위 여백 제거 */
.product-page .inner > .group-title:first-of-type {
  margin-top: 0;
}

/* 개별 섹션 (네트워크 스위치, STB, IPT, VPN, AP...) */
.product-section {
  margin-bottom: 50px;
}

/* 섹션 라벨 (색 네모) */
.section-title {
  font-size: 20px;
  padding: 6px 14px;
  margin-bottom: 10px;
  display: inline-block;
  color: #fff;
  width: 370px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 100px;
}

.section-title.blue {
  background: #2d9bc1;
}
.section-title.gray {
  background: #969696;
}
.section-title.green {
  background: #348413;
}

/* ================================
   제품 리스트 그리드 (PC 기준)
   한 줄에 3개, 카드 370 x 300
   ================================ */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 370px); /* 카드 폭 기준 3개 */
  justify-content: space-between; /* 좌우 균등 분배 */
  gap: 40px 30px; /* row / column 간격 */
  padding: 0;
  margin: 0 0 60px;
  list-style: none;
}

.product-list li {
  text-align: center;
}

/* 제품 썸네일 네모칸 */
.product-list .thumb {
  width: 370px;
  height: 300px;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 이미지 */
.product-list .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 이미지 없는 경우 (텍스트 박스) */
.product-list .thumb.noimg {
  font-size: 12px;
  color: #212529;
}

/* 제품명 텍스트 */
.p-name {
  font-size: 15px;
  margin-top: 10px;
  color: #212529;
  line-height: 1.4;
  display: flex;
  align-items: left;
  justify-content: left;
}

@media all and (max-width:1300px) {

  :root {
    --header-h: 50px;
  }
  .sub-hero{height:200px;}
  .sub-title{font-size:26px;}

  .group-title{font-size:24px;}

  .section-title{margin-top:60px;width:100%;font-size:16px;}
  .product-list{grid-template-columns:repeat(2, 1fr);gap: 10px;}
  .product-list .thumb{width: 100%;height: auto;aspect-ratio: 370/300;}
}