@import url(./base/reboot.css);
@import url(./base/custom.css);
@import url(./font.css);
body {
  font-family: "HyundaiSansHeadKR";
  color: var(--bs-dark);
  min-width: 1240px;
}
.wrap {
  position: relative;
}
.inner {
  max-width: 1240px;
  width: calc(100% - 60px);
  margin: 0 auto;
}
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
    transition: all .2s;
}

header:hover{
    background-color: #fff;
    color: var(--bs-primary-dark);
}
header .h-top {
  height: 60px;
  line-height: 60px;
  color: #fff;
  background-color: var(--bs-primary-dark);
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 20px;
}
header .h-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 80px;
  position: relative;

  background-color: transparent;
  border-bottom: 1px solid #e5e5e5d2;
}
header .h-body h1 {
  width: 160px;
  height: 36px;
  background: url(../images/aboutGbic/logo-w.png) no-repeat center / contain;
  cursor: pointer;
  transition: background .2s;
}
header .h-body nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 100px;
  font-weight: 500;
  font-size: 20px;
}
header .h-body nav a{
    transition: color .2s;
}
header .h-body nav a:hover{
    color: var(--bs-primary);
}
header .h-body .lang-area {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}
header .h-body .lang-area .cur-lang {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 16px;
  font-weight: 500;
}
header .h-body .lang-area .lang {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #eeeeee;
  color: var(--bs-primary-dark);
  padding: 20px 25px;
  font-size: 14px;
  display: none;
  font-weight: 500;
}
header .h-body .lang-area.active .lang {
  display: block;
}
header .h-body .lang-area .lang a {
  display: block;
  transition: color .6s;
}
header .h-body .lang-area .lang a:hover {
  color: var(--bs-primary);
}
header .h-body .lang-area .lang a + a {
  margin-top: 15px;
}
header:hover .h-body h1{
     background-image: url(../images/aboutGbic/logo.png);
}
.subPage header {
  color: var(--bs-primary-dark);
  position: static;
}
.subPage header .h-body {
  background-color: #fff;
}
.subPage header .h-body h1 {
  background-image: url(../images/aboutGbic/logo.png);
}
section {
  display: none;
}

.main {
  color: #fff;
  background: url(../images/aboutGbic/main-bg.png) no-repeat center / cover;
  padding-top: 160px;
  display: block;
}
.main .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 276px);
  min-height: 540px;
  max-width: 1568px;
}
html[lang="en"] .main .main-ttl {
  font-weight: 300;
  line-height: 1.2;
}
.main .main-ttl {
  font-size: 58px;
  font-family: "HDHarmony";
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.4310344;
  color: #fff;
}
.main p {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 22px 0 40px;
}

/* sub common */
section:not(.main) {
  padding: 120px 0 200px;
}
.ttl {
  font-size: 60px;
  color: var(--bs-primary-dark);
  font-weight: 700;
  margin-bottom: 120px;
}
.ttl2 {
  font-size: 30px;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--bs-dark);
}

.txt-box {
  font-size: 18px;
  color: var(--bs-txt1-c);
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  gap: 20px;
  justify-content: center;
}

.org-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  background-color: #fff;
  border-radius: 10px;
  font-size: 22px;
  color: var(--bs-secondary);
  text-align: center;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #dedede;
}

/* 가운데 큰 카드 */
.org-card--main {
  height: 340px;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  border: none;
}

/* 회색 비활성 박스 (좌우 여백용) */
.org-card--empty {
  height: 340px;
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.dept-list > li {
  padding: 60px 0; /* 위아래 60px */
}
.dept-list > li + li {
  border-top: 1px solid #e1e1e1;
}
/* 섹션 제목 */
.dept-list h4 {
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 500;
  color: #2d2d2d;
}

/* 도트 리스트 */
.dot-list {
  margin: 0;
  padding: 0;
  list-style: none; /* 기본 불릿 제거 */
}

/* 도트 항목: text-indent + padding-left 로 들여쓰기 */
.dot-list > li {
  font-size: 18px;
  line-height: 1.66666;
  color: var(--bs-txt2-c);
  padding-left: 0.65em; /* 들여쓰기 기준 */
  text-indent: -0.65em; /* 행 걸침(말줄임 시 정렬) */
}

/* 실제 도트는 텍스트로 출력 */
.dot-list > li::before {
  content: "• ";
}

/* directions */
.map-info {
  padding-top: 60px;
  border-top: 1px solid #000;
}
.map-info ul {
  margin-top: 20px;
  gap: 20px;
}
.map-info ul li h4,
.map-info ul li p {
  font-size: 18px;
  display: inline-block;
}
html[lang="en"] .map-info ul li h4,
html[lang="en"] .map-info ul li p {
  letter-spacing: -0.035em;
}
.map-info ul li h4 {
  font-weight: 700;
}
.map-info ul li p {
  margin-left: 5px;

  color: var(--bs-txt2-c);
}
footer {
  background-color: #fff;
  color: #63666a;
  font-size: 14px;
  line-height: 1.571428;
  letter-spacing: -0.025em;
  height: 116px;
}
footer .inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.subPage footer {
  background-color: #f5f5f5;
}

/* 팝업 기본 */
.subPage .popup {
  display: none !important;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup.is-active {
  display: flex;
}

/* 오버레이 */
.popup__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.7;
}

/* 컨테이너 */
.popup__container {
  position: relative;
  width: min(705px, calc(100% - 32px));
  background: #fff;
  overflow: hidden;
}

/* 닫기 버튼 (우상단) */
.popup__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border: 0;
  cursor: pointer;
  background-color: transparent;
}
/* 본문(이미지) */
.popup__body {
  padding: 0;
  background: #2b2b2b;
}
.img-box img {
  display: block;
  width: 100%;
  height: auto;
}

/* popoup 푸터 */
.popup__footer {
  padding: 20px 55px;
  background: #fff;
  text-align: right;
}
.today {
  display: inline-flex;
  font-size: 16px;
  line-height: 18px;
  align-items: center;
  gap: 8px;
  color: #606266;
  font-family: HDHarmony, sans-serif;
  font-weight: 500;
}
/* 체크박스 공통 */
.popup__footer input[type="checkbox"] {
  appearance: none; /* 브라우저 기본 제거 */
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #767676;
  background-color: #fff;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  margin: 0;
}

/* 체크되었을 때 */
.popup__footer input[type="checkbox"]:checked {
  background-color: #15269d; /* 원하는 색상 */
  border-color: #15269d;
}
/* 체크 표시 (가상요소로) */
.popup__footer input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
