/* ==========================================
   GEUMCHANG MONORAIL - sub.css
   서브페이지 공통 스타일
   ========================================== */

/* ---- 서브 콘텐츠 블록 ---- */
.gc-sub-section { margin-bottom: 80px; }
.gc-sub-section:last-child { margin-bottom: 0; }

.gc-sub-title {
  font-size: clamp(22px, 4vw, 35px);
  font-weight: 700;
  color: var(--gc-text-dark);
  margin-bottom: 28px;
  line-height: 1.3;
}

.gc-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 80px 0;
}

/* ==========================================
   인사말
   ========================================== */
.gc-greeting {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position:relative;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom:60px;
}
.gc-greeting__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  color: var(--gc-text-mid);
  line-height: 1.85;
  word-break: keep-all;
}
.gc-greeting__image {
  text-align: center;
}
.gc-greeting__image img {
  /*max-width: 220px;*/
  margin: 0 auto;
  opacity: 0.6;
}

/* ==========================================
   연혁
   ========================================== */
.gc-history {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.gc-history__group { margin-bottom: 32px; }
.gc-history__group:last-child { margin-bottom: 0; }

.gc-history__year {
  font-size: 18px;
  font-weight: 700;
  color: var(--gc-blue);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gc-blue);
  display: inline-block;
}

.gc-history__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-history__list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--gc-text-mid);
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px dotted #e5e7eb;
  word-break: keep-all;
}
.gc-history__list li:last-child { border-bottom: none; }
.gc-history__month {
  flex-shrink: 0;
  width: 24px;
  font-weight: 600;
  color: var(--gc-text-gray);
}

/* ==========================================
   오시는 길
   ========================================== */
.gc-location {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.gc-location__map {
  width: 100%;
  aspect-ratio: 20/9;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.gc-location__map-placeholder {
  width: 100%;
  height: 100%;
}
.gc-location__info {}
.gc-location__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gc-location__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: var(--gc-text-mid);
}
.gc-location__list li i {font-size:20px;position:relative;top:5px;}
.gc-location__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gc-blue);
}
.gc-location__icon svg { width: 20px; height: 20px; }

/* ==========================================
   기술현황 - 인증서 그리드
   ========================================== */
.gc-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gc-cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gc-cert-item__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
}
.gc-cert-item__label {
  font-size: 16px;
  /*color: var(--gc-text-gray2);*/
  text-align: center;
}

/* ==========================================
   소방모노레일 - 운행 시나리오
   ========================================== */
.gc-scenario {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.gc-scenario__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.gc-scenario__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-scenario__icon img { width: 100%; height: 100%; object-fit: contain; }
.gc-scenario__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-text-dark);
  margin-bottom: 8px;
}
.gc-scenario__images {
  display: flex;
  gap: 6px;
  flex: 1;
}
.gc-scenario__images img {
  flex: 1;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
}

/* 산복구/평상시 토글 카드 */
.gc-toggle-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.gc-toggle-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
}
.gc-toggle-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gc-toggle-card__name {
  font-size: 16px;
  font-weight: 700;
}
.gc-toggle-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.gc-toggle-badge--on { background: var(--gc-blue); color: white; }
.gc-toggle-badge--off { background: #e5e7eb; color: var(--gc-text-gray); }

.gc-toggle-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gc-toggle-card__list li {
  font-size: 13px;
  color: var(--gc-text-mid);
  padding-left: 14px;
  position: relative;
}
.gc-toggle-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--gc-blue);
  border-radius: 50%;
}

/* ==========================================
   제품소개 - 탭
   ========================================== */
.gc-tab {
  display: flex;
  /*overflow-x: auto;*/
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 50px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gc-tab::-webkit-scrollbar { display: none; }

.gc-tab__btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gc-text-gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--gc-dur), border-color var(--gc-dur);
  position:relative;
}
.gc-tab__btn.is-active,
.gc-tab__btn:hover {
  color: var(--gc-blue);
  border-bottom-color: var(--gc-blue);
}

/*.gc-tab__btn.is-active:before {position:absolute;content:'';height:2px;width:100%;background:var(--gc-blue);bottom:0px;left:0px;z-index:10;}*/
.gc-tab-panel { display: none; }
.gc-tab-panel.is-active { display: block; }

.gc-product-group { margin-bottom: 40px; }
.gc-product-group__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gc-text-dark);
}
.gc-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gc-product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.gc-product-item {
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
}
.gc-product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(8,54,157,0.13);
}
/* 이미지 zoom */
.gc-product-item__img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.gc-product-item:hover .gc-product-item__img {
  transform: scale(1.07);
}
/* hover 오버레이 + 돋보기 아이콘 */
.gc-product-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,54,157,0.18);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 4px 4px 0 0;
}
.gc-product-item:hover::after { opacity: 1; }

.gc-product-item__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  z-index: 2;
  pointer-events: none;
  color: #fff;
}
.gc-product-item:hover .gc-product-item__zoom {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.gc-product-item__zoom svg {
  width: 44px; height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.gc-product-item__label {
  font-size: 18px;
  text-align: center;
  padding: 20px 0px;
  transition: color 0.3s ease;
}
.gc-product-item:hover .gc-product-item__label {
  color: var(--gc-navy);
}

/* ==========================================
   라이트박스
   ========================================== */
.gc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gc-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gc-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}
.gc-lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.gc-lightbox.is-open .gc-lightbox__inner {
  transform: scale(1);
}
.gc-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.gc-lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-top: 14px;
  text-align: center;
}
.gc-lightbox__close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none; border: none;
}
.gc-lightbox__close:hover { opacity: 1; }
.gc-lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 2;
}
.gc-lightbox__nav:hover { background: rgba(255,255,255,0.28); border-color: #fff; }
.gc-lightbox__nav--prev { left: -60px; }
.gc-lightbox__nav--next { right: -60px; }
.gc-lightbox__nav svg { width: 22px; height: 22px; }
@media (max-width: 768px) {
  .gc-lightbox__nav--prev { left: -48px; }
  .gc-lightbox__nav--next { right: -48px; }
}

/* ==========================================
   고객센터 - 폼 + 갤러리
   ========================================== */
.gc-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.gc-contact-grid .form-design {background:#f2f4f8;padding:30px;border-radius:20px;}
/* 폼 */
.gc-form { display: flex; flex-direction: column; gap: 12px; }
.gc-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-text-gray);
  margin-bottom: 4px;
}
.gc-form__input,
.gc-form__textarea {
  width: 100%;
  padding: 15px 20px;
  border: 0px solid #d1d5db;
  border-radius: 2px;
  font-size: 18px;
  font-family: var(--gc-font);
  color: var(--gc-text-dark);
  background: white;
  transition: border-color var(--gc-dur);border-radius:10px;
}
.gc-form__input::placeholder,
.gc-form__textarea::placeholder {
  color: var(--gc-text-gray);
}
.gc-form__input:focus,
.gc-form__textarea:focus {
  outline: none;
  border-color: var(--gc-blue);
}
.gc-form__textarea { resize: vertical; min-height: 180px; }

.gc-form__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--gc-text-gray);
}
.gc-form__privacy input[type="checkbox"] { accent-color: var(--gc-blue); }

.gc-form__submit {
  width: 100%;
  padding: 20px;
  background: var(--gc-blue);
  color: white;
  font-size: 18px;
  font-weight: 600;
  border-radius: 2px;
  transition: background var(--gc-dur);
}
.gc-form__submit:hover { background: var(--gc-navy); }

/* 시공 갤러리 */
.gc-gallery-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.gc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gc-gallery-grid img {
  width: 100%;
  /*aspect-ratio: 2/3;*/
  object-fit: cover;
  border-radius: 2px;
  transition: opacity var(--gc-dur);
}
.gc-gallery-grid img:hover { opacity: 0.85; }

/* ==========================================
   반응형 768px
   ========================================== */
@media (min-width: 768px) {
  .gc-greeting {
    flex-direction: row;
    align-items: flex-start;
  }
  .gc-greeting__text { flex: 1; }
  .gc-greeting__image { flex-shrink: 0; position:absolute;right:0px;bottom:0px;}

  .gc-history {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .gc-location {
    flex-direction: row;
    align-items: flex-start;
  }
  .gc-location__map { flex: 1; }
  .gc-location__info { flex-shrink: 0; /*width: 260px;*/ }

  .gc-cert-grid { grid-template-columns: repeat(3, 1fr); }

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

  .gc-product-grid { grid-template-columns: repeat(4, 1fr); }
  .gc-product-grid--3 { grid-template-columns: repeat(4, 1fr); }

  .gc-contact-grid { grid-template-columns: 0.8fr 1fr; }

  .gc-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================
   반응형 1024px
   ========================================== */
@media (min-width: 1024px) {
  .gc-cert-grid { grid-template-columns: repeat(6, 1fr); }
  .gc-sub-content { padding: 100px 40px; }
}

/* ==========================================
   소방모노레일 - 시나리오 그리드 (이미지 동일 크기)
   ========================================== */
.gc-scenario-section { margin-bottom: 40px; }
.gc-scenario-row {
  display: flex;
  flex-direction: column;       /* 모바일: 세로 */
  gap: 16px;
  border-bottom: solid 1px #eee;
  padding: 30px 0;
}
.gc-scenario-row:last-child { border-top: solid 1px #eee; }

.gc-scenario-label {
  display: flex;
  flex-direction: row;          /* 모바일: 아이콘 가로 */
  align-items: center;
  gap: 10px;
  padding-top: 0;
}
.gc-scenario-label__icon { }
.gc-scenario-label__text { font-size: 13px; font-weight: 700; color: var(--gc-text-dark); }

.gc-scenario-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 모바일: 2열 */
  gap: 8px;
}
.gc-scenario-images--1 { grid-template-columns: 1fr; }
.gc-scenario-images--steps { grid-template-columns: 1fr 1fr; gap: 8px; }
/* 이미지1 + 텍스트 나란히 — 모바일 포함 */
.gc-scenario-images--1col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.gc-scenario-img {
  width: 100%; aspect-ratio: 2.3/1; object-fit: cover; border-radius: 2px; display: block;
}
.gc-scenario-step {
  display: inline-block; font-size: 16px; color: var(--gc-text-gray);
  padding: 6px 8px; border-radius: 2px;
}
.gc-scenario-step__num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gc-blue);
  color: white; font-size: 15px; font-weight: 700; line-height: 24px;
  display: inline-block; text-align: center; margin-right: 8px;
}

/* PC: 가로 배치 복원 */
@media (min-width: 768px) {
  .gc-scenario-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .gc-scenario-label {
    flex-direction: column;
    align-items: center;
    width: 160px;
    flex-shrink: 0;
    padding-top: 40px;
    gap: 6px;
  }
  .gc-scenario-images {
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
  }
}

/* 구축방안 이미지 */
.gc-plan-images {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px;
}
@media (min-width: 768px) {
  .gc-plan-images { grid-template-columns: repeat(3, 1fr); }
}
.gc-plan-img-item { display: flex; flex-direction: column; gap: 8px; }
.gc-plan-img-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.gc-plan-img-item p { font-size: 12px; color: var(--gc-text-gray); text-align: center; }

/* ==========================================
   소방모노레일 구축방안 gc-plan-grid
   ========================================== */
.gc-plan-grid {
  display: flex;
  flex-direction: column;       /* 모바일: 세로 */
  gap: 30px;
  margin-top: 40px;
}
.gc-plan-left  { text-align: center; }
.gc-plan-right { text-align: center; }
.gc-plan-left img,
.gc-plan-right img { width: 100%; max-width: 100%; overflow: hidden; }

.gc-plan-grid .round {
  margin-top: 20px; text-align: center; display: inline-block;
  font-size: 16px; padding: 8px 28px;
  border-radius: 50px; border: solid 1px #eee; margin-bottom: 8px;
}

/* PC: 가로 2열 */
@media (min-width: 768px) {
  .gc-plan-grid {
    flex-direction: row;
    gap: 50px;
    margin-top: 70px;
  }
  .gc-plan-left,
  .gc-plan-right { flex: 1; }
  .gc-plan-grid .round { margin-top: 50px; font-size: 18px; padding: 10px 30px; }
}
/* ==========================================
   연혁 - 연도/월/점선/내용, 좌우 2단
   ========================================== */
.gc-history-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
/* 각 연도 행 - 년도 / 월 / 축 / 내용 순서 */
.gc-history-row {
  display: grid;
  grid-template-columns: 48px 28px 32px 1fr;
  gap: 0;
  margin-bottom: 0;
  break-inside: avoid;
}
/* 연도 */
.gc-history-row__year {
  font-size: 18px;
  font-weight: 700;
  color: var(--gc-blue);
  padding-top: 0px;
  text-align: right;
  padding-right: 4px;
  white-space: nowrap;
}
/* 월 컬럼 */
.gc-history-row__months {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
  padding-left: 4px;
}
.gc-history-row__months span {
  font-size: 18px;
  font-weight: 700;
  color: var(--gc-text-gray);
  line-height: 1.6;
  display: block;
  min-height: 1.6em;
}
/* 점·선·점 세로축 */
.gc-history-row__axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.gc-history-row__dot-top {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gc-blue);
  flex-shrink: 0;
  margin-top: 10px;
}
.gc-history-row__line {
  flex: 1;
  width: 1px;
  border-left: 1px dashed #b0bec5;
  margin: 3px 0;
  min-height: 16px;
}
.gc-history-row__dot-btm {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #b0bec5;
  flex-shrink: 0;
  margin-bottom: 38px;
}
/* 마지막 행: 아래 점 없음 */
.gc-history-row:last-child .gc-history-row__line { display: none; }
.gc-history-row:last-child .gc-history-row__dot-btm { display: none; }

/* 내용 */
.gc-history-row__body {
  padding-left: 10px;
  padding-bottom: 28px;
}
.gc-history-row__items {
  display: flex; flex-direction: column; gap: 5px;
  margin-top: 2px;
}
.gc-history-row__item {
  font-size: 18px;
  color: var(--gc-text-mid);
  line-height: 1.6;
  word-break: keep-all;
  min-height: 1.6em;
}
.gc-history-row__month {
  display: none;
}

@media (min-width: 768px) {
  .gc-history-wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
  /* 홀수(1,3,5,7,9번째) → 왼쪽 열 */
  .gc-history-row:nth-child(odd)  { grid-column: 1; }
  /* 짝수(2,4,6,8,10번째) → 오른쪽 열 */
  .gc-history-row:nth-child(even) { grid-column: 2; }
}


/* 갤러리 4열 - 모바일 2열 유지 */
.gc-gallery-grid--4 {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 600px) {
  .gc-gallery-grid--4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}