/* ============================================================
   반도기연 서브 페이지 전용 스타일
   ============================================================ */

/* ===== 서브 탭 메뉴 ===== */
.sub-tab-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  position: sticky;
  top: 80px;
  z-index: 900;
}
.sub-tabs {
  display: flex;
  justify-content: center;   /* ← 가운데 정렬 */
  gap: 0;
}
.sub-tab {
  display: block;
  padding: 18px 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  transition: all .25s;
  white-space: nowrap;
  letter-spacing: -.2px;
}
.sub-tab:hover,
.sub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(10,45,107,.03);
}

/* ===== 서브 섹션 ===== */
.sub-section { padding: 80px 0; }
.sub-section.bg-light { background: var(--light-gray); }

/* ===== CEO ===== */
.ceo-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

/* 사진 업로더 컨테이너 */
.ceo-photo-inner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 8px;
  height: 420px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* 실제 사진이 있을 때 꽉 채우기 */
.ceo-photo-inner img.ceo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* 사진 없을 때 플레이스홀더 */
.ceo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  transition: background .2s;
}
.ceo-placeholder svg { width: 54px; height: 54px; fill: rgba(255,255,255,.3); }
.ceo-placeholder span { font-size: 13px; }
/* 숨겨진 파일 인풋 */
.ceo-file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
/* 호버 효과 */
.ceo-photo-inner:hover .ceo-placeholder { background: rgba(0,0,0,.15); }
/* 업로드 버튼 (사진 있을 때도 재변경 가능) */
.ceo-photo-change {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(6,29,71,.85);
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 14px 16px;
  color: #fff;
  pointer-events: none;
}
.ceo-photo-change span {
  font-size: 12px; color: rgba(255,255,255,.6);
  display: block; margin-bottom: 3px;
}
.ceo-photo-change strong {
  font-size: 16px; letter-spacing: 2px;
}

.ceo-greeting {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -.5px;
}
.ceo-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 18px;
}
.ceo-sign {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--mid-gray);
  font-size: 14px;
  color: var(--text-light);
}
.ceo-sign strong {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--primary);
  margin-left: 10px;
}

/* ===== 회사개요 (오른쪽 stats 없음 → 테이블 풀너비) ===== */
.overview-grid {
  display: block;   /* 단일 컬럼, 테이블 풀너비 */
}
.overview-table { width: 100%; border-collapse: collapse; }
.overview-table th,
.overview-table td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--mid-gray);
  text-align: left;
  vertical-align: top;
}
.overview-table th {
  width: 160px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.overview-table td { background: var(--white); color: var(--text-mid); }
.overview-table tr:last-child th,
.overview-table tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .overview-table th,
  .overview-table td { padding: 12px 14px; font-size: 13px; }
  .overview-table th { width: 90px; font-size: 12px; }
}

/* ===== 연혁 ===== */
.timeline { display: flex; flex-direction: column; gap: 50px; }
.tl-year { display: grid; grid-template-columns: 120px 1fr; gap: 0; align-items: start; }
.tl-year-label {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  padding-top: 6px;
  position: sticky;
  top: 160px;
}
.tl-items { border-left: 2px solid var(--mid-gray); padding-left: 30px; display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--mid-gray);
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-item:last-child { border-bottom: none; }
.tl-date { font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--primary); min-width: 50px; }
.tl-text { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }

/* ===== 수상 및 인증 - 사진 배경 카드 ===== */
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.award-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;        /* 세로형 카드 비율 */
  cursor: pointer;
  transition: transform .35s, box-shadow .35s;
  background: var(--primary-dark);
}
.award-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10,45,107,.25);
}
/* 배경 사진 */
.award-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.award-card:hover .award-card-bg { transform: scale(1.06); }
/* 사진 없을 때 폴백 그라디언트 */
.award-card-bg.ab1 { background-color: #0a2d6b; background-image: linear-gradient(160deg,#061d47,#1a5cb8); }
.award-card-bg.ab2 { background-color: #0d3a7a; background-image: linear-gradient(160deg,#0a2240,#1e7fd4); }
.award-card-bg.ab3 { background-color: #103a88; background-image: linear-gradient(160deg,#061d47,#2e9de8); }
.award-card-bg.ab4 { background-color: #06233a; background-image: linear-gradient(160deg,#04111e,#0a3d8a); }
/* 어두운 오버레이 */
.award-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.75) 0%,
    rgba(10,10,10,.35) 18%,
    rgba(0,0,0,.00) 35%,
    rgba(0,0,0,.00) 100%
  );
}
/* 아이콘 (중앙 상단) */
.award-card-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.award-card:hover .award-card-icon {
  background: rgba(30,127,212,.4);
  transform: translate(-50%, -65%) scale(1.08);
}
.award-card-icon svg { width: 28px; height: 28px; fill: #fff; }
/* 하단 텍스트 */
.award-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 20px 20px;
  text-align: center;
}
.award-card-year {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px; letter-spacing: 2.5px;
  color: var(--gold);
  border: 1px solid rgba(200,168,75,.5);
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px;
}
.award-card-body h4 {
  font-size: 15px; font-weight: 800;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.award-card-body p {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

/* ===== 사업분야 상세 ===== */
.biz-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.biz-detail-wrap.reverse { direction: rtl; }
.biz-detail-wrap.reverse > * { direction: ltr; }
.biz-detail-visual {
  border-radius: 8px;
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.bv1 { background: linear-gradient(135deg, #0a2d6b, #1a5cb8); }
.bv2 { background: linear-gradient(135deg, #061d47, #0a3d8a); }
.bv3 { background: linear-gradient(135deg, #103a88, #1e7fd4); }
.bv4 { background: linear-gradient(135deg, #0a2240, #0d3a7a); }
.biz-visual-icon {
  width: 120px; height: 120px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.biz-visual-icon svg { width: 60px; height: 60px; }
.biz-detail-text .label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 4px;
  color: var(--accent);
  background: rgba(30,127,212,.08);
  padding: 5px 14px; border-radius: 2px;
  margin-bottom: 14px;
}
.biz-detail-text h2 {
  font-size: 32px; font-weight: 900;
  color: var(--primary-dark); letter-spacing: -1px; margin-bottom: 20px;
}
.biz-detail-text p {
  font-size: 14.5px; color: var(--text-mid);
  line-height: 1.9; margin-bottom: 14px;
}
.biz-feature-list { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.biz-feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-mid);
}
.biz-feature-list li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.biz-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 14px 28px; border-radius: 3px;
  margin-top: 10px; transition: all .3s;
}
.biz-cta-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== 제품 그리드 ===== */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.product-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10,45,107,.06);
  transition: all .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(10,45,107,.14); }
.product-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pc1 { background: linear-gradient(135deg, #0a2d6b, #1a5cb8); }
.pc2 { background: linear-gradient(135deg, #061d47, #0a3d8a); }
.pc3 { background: linear-gradient(135deg, #103a88, #1e7fd4); }
.pc4 { background: linear-gradient(135deg, #0a2240, #0d3a7a); }
.product-img-icon { width: 70px; height: 70px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.product-img-icon svg { width: 34px; height: 34px; }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
}
.product-body { padding: 22px; }
.product-cat { font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; color: var(--accent); display: block; margin-bottom: 8px; }
.product-body h3 { font-size: 16px; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.product-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.product-spec { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.product-spec span { font-size: 11.5px; background: var(--light-gray); color: var(--primary); padding: 4px 10px; border-radius: 12px; font-weight: 600; }
.product-btn {
  display: block; text-align: center;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 11px; border-radius: 3px;
  transition: background .3s;
}
.product-btn:hover { background: var(--accent); }

/* ===== 부품 그리드 ===== */
.parts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.parts-item {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  padding: 32px 28px;
  transition: all .3s;
}
.parts-item:hover { border-color: var(--primary); box-shadow: 0 6px 24px rgba(10,45,107,.08); }
.parts-item svg { width: 36px; height: 36px; fill: var(--primary); margin-bottom: 16px; }
.parts-item h4 { font-size: 15px; font-weight: 800; color: var(--primary-dark); margin-bottom: 10px; }
.parts-item p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== 오시는 길 ===== */
.map-wrap { margin-bottom: 40px; }
.map-placeholder {
  height: 420px;
  background: var(--primary-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.map-placeholder svg { width: 60px; height: 60px; }
.map-placeholder p { font-size: 15px; line-height: 1.8; }
.map-placeholder small { font-size: 12px; }
.directions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.directions-card {
  background: var(--light-gray);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.directions-card.main { background: var(--primary-dark); color: #fff; }
.dir-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dir-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.directions-card.main .dir-icon svg { fill: var(--gold); }
.dir-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.directions-card.main h3 { color: #fff; }
.dir-addr { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.directions-card.main .dir-addr { color: rgba(255,255,255,.8); }
.dir-contact { display: flex; gap: 20px; font-size: 13.5px; margin-bottom: 12px; }
.directions-card.main .dir-contact { color: rgba(255,255,255,.8); }
.dir-contact strong { color: var(--gold); }
.dir-time { font-size: 13px; color: var(--text-light); }
.directions-card.main .dir-time { color: rgba(255,255,255,.6); }

.transport-list { display: flex; flex-direction: column; gap: 14px; }
.transport-item { display: flex; align-items: flex-start; gap: 12px; }
.transport-type {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; white-space: nowrap; margin-top: 2px; color: #fff;
}
.transport-type.car { background: var(--primary); }
.transport-type.bus { background: #27ae60; }
.transport-type.ktx { background: #e74c3c; }
.transport-item p { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; }

.as-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.as-info-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}
.as-info-card:hover { border-color: var(--primary); box-shadow: 0 6px 24px rgba(10,45,107,.08); }
.as-info-card svg { width: 36px; height: 36px; fill: var(--primary); margin: 0 auto 14px; display: block; }
.as-info-card h4 { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.as-info-card strong { display: block; font-size: 22px; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.as-info-card p { font-size: 13px; color: var(--text-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .award-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .sub-tab-wrap { top: 0; }
  .sub-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .sub-tab { padding: 14px 20px; font-size: 13px; }
  .ceo-wrap { grid-template-columns: 1fr; }
  .ceo-photo-inner { height: 320px; }
  .award-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .award-card { aspect-ratio: 3 / 4; }
  .biz-detail-wrap,
  .biz-detail-wrap.reverse { grid-template-columns: 1fr; direction: ltr; }
  .biz-detail-visual { height: 240px; }
  .directions-grid { grid-template-columns: 1fr; }
  .as-info-grid { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .tl-year { grid-template-columns: 80px 1fr; }
  .tl-year-label { font-size: 20px; }
}
@media (max-width: 480px) {
  .award-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .award-card-body h4 { font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }
}
