/* =========================================================
   울산다파컴퓨터디자인학원 — 메인 페이지 (PC 1280 기준)
   원본 사이트의 computed style 을 측정해 그대로 옮긴 값입니다.
   ========================================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #363636;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;           /* 27.2px */
  font-weight: 400;
  letter-spacing: normal;
  word-break: keep-all;       /* 한글 단어 단위 줄바꿈 */
}
a { color: inherit; text-decoration: none; background: transparent; }
img { border: 0; vertical-align: middle; max-width: 100%; }
p { margin: 0; }
h3, h4, h5 { margin: 10px 0; }
ul { margin: 0; padding: 0; list-style: none; }
hr { margin: 0; }
button { font-family: inherit; }
strong { font-weight: 700; }

:root {
  --blue: #1c73d7;           /* rgb(28,115,215) */
  --dark: #0e0e0e;
}
.blue { color: var(--blue); }
.inside { max-width: 1280px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  color: #fff;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
}
.btn:hover { color: #fffce9; }
.btn-blue  { background: var(--blue); }
.btn-black { background: #000; }
.btn-lg { font-size: 14px; line-height: 18.6667px; padding: 15px 35px; }
.btn-sm { font-size: 12px; line-height: 17.1429px; padding: 10px 35px; }
.btn.round { border-radius: 9999px; }

/* ---------- Scroll animation (fadeInUp) ---------- */
.anim { visibility: hidden; }
.anim.in {
  visibility: visible;
  animation: fadeInUp var(--dur, .7s) var(--delay, 0s) both;
}
.anim.fade.in { animation-name: fadeIn; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   HEADER  (height 70)
   ========================================================= */
.hd {
  position: relative;
  z-index: 1000;
  height: 70px;
  background: #fff;
  font-family: Poppins, Pretendard, "Pretendard Variable", sans-serif;
}
.hd-inner {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 65px;
  display: grid;
  grid-template-columns: 24% 52% 24%;   /* 276 / 598 / 276 */
}
.hd-left { display: flex; align-items: center; }
.logo { display: flex; align-items: center; height: 29px; }
.logo img { width: 42px; height: 28px; display: block; }
.logo-title {
  padding-left: 3px;
  font-size: 17px;
  font-weight: 700;
  line-height: 28.9px;
  color: #212121;
  white-space: nowrap;
}

.hd-center { text-align: center; }
.gnb { display: inline-flex; height: 70px; }
.gnb-item { position: relative; z-index: 10; }
.gnb-link {
  display: flex; align-items: center;
  height: 70px;
  padding: 0 18px;
  font-size: 15px;
  line-height: 25.5px;
  color: #202020;
  white-space: nowrap;
  transition: .3s;
}
.gnb-item:hover > .gnb-link { color: var(--blue); }

.sub {
  position: absolute;
  top: 70px; left: 18px;
  min-width: 160px;
  background: #fff;
  text-align: left;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.gnb-item:hover > .sub { opacity: 1; visibility: visible; }
.sub a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  line-height: 18.5714px;
  color: #656565;
  white-space: nowrap;
  transition: .3s;
}
.sub a:hover { color: var(--blue); }

.hd-right {
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 4px;
}
.hd-login { font-size: 13px; line-height: 22.1px; color: #656565; }
.hd-login:first-child { margin-right: 10px; }



/* =========================================================
   Footer
   ========================================================= */
.dark-gap { height: 73px; background: var(--dark); }
.ft { background: var(--dark); color: #8a8a8a; }
.ft-inside { max-width: 1160px; height: 483px; position: relative; }
.ft hr { border: 0; border-top: 1px solid; }
.ft-hr0 { color: rgba(0,0,0,.05); }
.ft-logo { margin-top: 134px; height: 37px; display: flow-root; }
.ft-logo img { display: block; width: 290px; height: 46px; margin-top: -4px; }
.ft-hr1 { margin-top: 22px; border-color: #414141 !important; }
.ft-row { display: grid; grid-template-columns: 2fr 1fr; padding-top: 28px; }
.ft-company span { color: #c3c3c3; }
.ft-info-title strong { color: #8a8a8a; }
.ft-yt { margin-top: 19px; line-height: 32px; }
.ft-yt span { font-size: 13px; line-height: 26px; color: #979797; }
.ft-menu { font-size: 0; }
.ft-menu li { display: inline-block; }
.ft-menu a {
  display: inline-block;
  padding-bottom: 5px;
  margin-right: 25px;
  font-size: 13px; line-height: 22.1px;
  color: #8a8a8a;
}
.ft-menu a:hover { color: #fff; }
.ft-r { }
.ft-info { margin-top: 19px; min-height: 136px; font-size: 14px; line-height: 23.8px; color: #8a8a8a; }
.ft-hr2 { margin-top: 50px; border-color: #8a8a8a !important; }
.ft-copy { text-align: center; }
.ft-copy span { font-size: 13px; line-height: 22.1px; color: #4b4b4b; }

.ft-bottom {
  background: var(--dark);
  padding: 30px 0;
  font-size: 11px;
  line-height: 18.7px;
  color: #000;
}
.ft-bottom .inside { padding: 15px 0 0; }
.ft-bottom p { margin-bottom: 20px; }
.ft-bottom span { display: inline-block; margin-right: 8px; }

/* =========================================================
   Floating quick menu
   ========================================================= */
.floatingWrap {
  position: fixed;
  top: 55%; right: 0;
  width: 90px;
  z-index: 99;
  background: #fff;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,.15);
  transition: transform .4s ease;
}
.floatingWrap.closed { transform: translateX(100%); }
.flo-item { padding: 12px 10px 8px; border-bottom: 1px solid #eee; }
.flo-item a { display: block; transition: .3s; }
.flo-item img { display: block; width: 21px; height: 21px; margin: 4px auto 0; }
.flo-item .txt { margin-top: 5px; font-size: 14px; line-height: 23.8px; }
.flo-item.tel { border-bottom: 0; height: 100px; }
.flo-item.tel .txt { margin-top: 3px; }
.flo-item.tel .txt { line-height: 19.6px; }
.flo-item.tel span { display: block; font-size: 13px; font-weight: 700; color: #5a96fd; }

.quick {
  position: fixed;
  right: 0; bottom: -25.1875px;
  width: 140px; height: 27.1875px;
  z-index: 99;
  background: var(--blue);
  color: #fff;
  font-size: 12px; line-height: 27.2px;
  text-align: center;
  cursor: pointer;
  transition: bottom .3s;
}
.quick.open { bottom: 0; }
.quick .quckTxt { color: #fff; font-size: 12px; }

/* =========================================================
   YouTube lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85);
}
.lightbox[hidden] { display: none; }
.lb-frame { width: min(90vw, 960px); aspect-ratio: 16 / 9; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; }
.lb-close {
  position: absolute; top: 16px; right: 24px;
  background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer;
}

/* =========================================================
   서브페이지 공통 — 비주얼 배너 / 서브메뉴 / 본문 틀
   원본: .widget.image.text_position_overlay + .nav.sub-menu
   ========================================================= */
.sub-visual {
  position: relative;
  height: 335px;
  overflow: hidden;
  text-align: center;
}
.sub-visual img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-height: 615px;
  object-fit: cover;
}
.sub-visual .txt {
  position: relative;
  height: 335px;
  display: flex; align-items: center; justify-content: center;
  padding: 36px;
}
.sub-visual .txt_body {
  color: #fff;
  font-size: 36px;
  line-height: 43.2px;
}

/* 서브메뉴(브레드크럼) */
.sub-nav {
  padding-top: 30px;
  text-align: center;
  font-size: 0;
  line-height: 0;
}
.sub-nav a {
  display: inline-block;
  font-size: 13px;
  line-height: 22.1px;
  color: rgba(54, 54, 54, .7);
}
.sub-nav .depth2 { padding-left: 25px; color: #363636; }
.sub-nav .depth2::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 10px 2px -17px;
  border-right: 1px solid #b5b5b5;
  border-bottom: 1px solid #b5b5b5;
  transform: rotate(-45deg);
}
.sub-line {
  margin-top: 30px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .05);
}

/* 서브페이지 본문 기본 틀 */
.sub-body { padding-top: 68px; }
.sub-body .inside { max-width: 1280px; margin: 0 auto; }

/* 섹션 제목 (h5 파랑 소제목) */
.sec-h5 {
  font-size: 27.424px;
  line-height: 32.9088px;
  margin: 10px 0;
}
.sec-h5 span { color: var(--blue); }

/* =========================================================
   교직원 소개 카드 (/22)
   ========================================================= */
.staff {
  background: #fff;
  padding-top: 20px;
  padding-bottom: 32px;
}
.staff-row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 427px 109px 747px;
}
.staff-photo { text-align: center; }
.staff-photo img { width: 216px; height: 288px; object-fit: cover; }
.staff-info { grid-column: 3; }
.staff-info h6 {
  font-size: 20.576px;
  line-height: 28.8064px;
  font-weight: 400;
  margin: 10px 0;
}
.staff-info h6 img {
  float: left;
  width: 55px; height: 23px;
  margin: 5px 10px 5px 0;
}
.staff-info h6 strong { font-weight: 700; }
.staff-info hr {
  margin: 0;
  border: 0;
  border-top: 2px solid #656565;
}
.staff-career {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.staff-career li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 16.1px;
  color: #656565;
}
.staff-cert {
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(28, 115, 215, .15);
  border-radius: 7px;
  line-height: 24px;
}
.staff-cert p { line-height: 24px; }
.staff-cert span { font-size: 14px; line-height: 21px; }

/* =========================================================
   PC / 모바일 분리 (원본과 동일하게 991px 기준)
   원본: .pc_section.mobile_hide  /  .mobile_section
   ========================================================= */
/* PC 에서만 숨긴다. 모바일에서는 각 요소가 자기 display 를 그대로 쓴다
   (block !important 로 덮으면 .mhd 의 grid 가 깨진다) */
@media (min-width: 992px) {
  .mo-only { display: none !important; }
}

/* =========================================================
   모바일 헤더 — 83px, 배경 투명, 본문 위에 겹침
   ========================================================= */
.mhd {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 83px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 47px 1fr 47px;
  align-items: start;
}
.mhd-menu {
  align-self: center;
  margin-top: 4px;
  width: 26px; height: 28px;
  padding: 5px;
  background: none; border: 0;
  cursor: pointer;
}
.mhd-menu span,
.mhd-menu span::before,
.mhd-menu span::after {
  display: block;
  width: 16px; height: 2px;
  background: #fff;
  transition: .2s;
}
.mhd-menu span { position: relative; }
.mhd-menu span::before,
.mhd-menu span::after { content: ""; position: absolute; left: 0; }
.mhd-menu span::before { top: -5px; }
.mhd-menu span::after { top: 5px; }
.mhd-logo { display: block; text-align: center; }
.mhd-logo img { display: block; width: 48px; height: 32px; margin: 0 auto; object-fit: contain; }
.mhd-logo span {
  display: block;
  font-size: 16px; line-height: 27px;
  color: #fff;
}

/* 본문이 밝은 페이지(서브)에서는 헤더 글씨를 어둡게 */
.mhd.on-light .mhd-menu span,
.mhd.on-light .mhd-menu span::before,
.mhd.on-light .mhd-menu span::after { background: #363636; }
.mhd.on-light .mhd-logo span { color: #363636; }

/* =========================================================
   모바일 슬라이드 메뉴 — 오른쪽에서 300px
   ========================================================= */
.slide-dim {
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.slide-dim.open { opacity: 1; visibility: visible; }
.slide-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.slide-menu.open { transform: translateX(0); visibility: visible; }
.sl-close {
  width: 100%;
  padding: 18px 20px;
  background: none; border: 0;
  font-size: 28px; line-height: 1; color: #363636;
  text-align: right;
  cursor: pointer;
}
.sl-list { padding-bottom: 40px; }
.sl-item { border-top: 1px solid #eee; }
.sl-top {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 44px 16px 24px;
  background: none; border: 0;
  font-family: inherit;
  font-size: 15px; font-weight: 700; color: #212121;
  text-align: left;
  cursor: pointer;
}
.sl-top i {
  position: absolute;
  right: 24px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  transform: rotate(45deg);
  transition: .2s;
}
.sl-item.open .sl-top i { transform: rotate(-135deg); margin-top: -2px; }
.sl-sub { display: none; padding: 4px 0 12px; background: #fafafa; }
.sl-item.open .sl-sub { display: block; }
.sl-sub a {
  display: block;
  padding: 9px 24px 9px 34px;
  font-size: 14px;
  color: #656565;
}
.sl-sub a:hover { color: var(--blue); }

/* =========================================================
   모바일 푸터 — 원본 전용 섹션(#161616)
   ========================================================= */
.mft {
  background: #161616;
  padding: 60px 20px 40px;
  font-size: 13px;
  line-height: 1.45;
  color: #9f9f9f;
}
.mft-logo { text-align: center; padding-bottom: 47px; }
.mft-logo img { width: 222px; max-width: 100%; height: auto; }
.mft-name strong { font-weight: 700; }
.mft-en { padding-top: 5px; }
.mft-yt { padding-top: 24px; }
.mft-yt a { font-size: 12px; color: #787878; }
.mft-info { padding-top: 27px; }
.mft-copy { padding-top: 46px; font-size: 12px; color: #878787; }

/* =========================================================
   991px 이하 — 모바일
   ========================================================= */
@media (max-width: 991px) {
  .pc-only { display: none !important; }

  body { font-size: 13px; }
  .inside { padding-left: 15px; padding-right: 15px; }

  /* 서브 비주얼: 335px -> 220px, 제목 36 -> 25 */
  .sub-visual { height: 220px; }
  .sub-visual img { min-height: 220px; }
  .sub-visual .txt { height: 220px; padding: 20px; }
  .sub-visual .txt_body { font-size: 25px; line-height: 1.3; }

  .sub-nav { padding-top: 10px; }
  .sub-line { margin-top: 10px; }
  .sub-body { padding-top: 30px; }

  .page-h5, .p30 .page-h5 { font-size: 22px; line-height: 1.3; padding-top: 28px; }
  .sec-h5 { font-size: 20px; line-height: 1.4; }
}

/* PC 폭에서는 모바일 메뉴 자체를 비활성화 */
@media (min-width: 992px) {
  .slide-menu, .slide-dim { display: none; }
}

/* 992~1320px: 컨테이너에 여백을 둬 음수 마진 그리드가 넘치지 않게 */
@media (min-width: 992px) and (max-width: 1320px) {
  .inside { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 767px) {
  .sub-visual .txt_body { font-size: 23px; }
}
