/* =====================================================
   common.css  ─  STARTEC 공용 스타일시트
   모든 페이지에서 공통으로 사용하는 스타일을 정의합니다.
   포함 범위: 변수, Reset, Header, GNB, Footer, Sub-hero,
             버튼, Utility
   ===================================================== */


/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --navy:      #1a3a6b;   /* 진한 파랑 (강조·헤딩) */
  --navy-mid:  #1e4a8a;   /* 중간 파랑 */
  --blue:      #2563c8;   /* 기본 블루 */
  --blue-light:#4a80d8;   /* 밝은 블루 */
  --blue-pale: #e8f0fc;   /* 연한 블루 배경 */
  --accent:    #2563c8;   /* 포인트 = 블루 */
  --accent2:   #1a3a6b;   /* 호버용 진한 블루 */
  --steel:     #6b85b0;   /* 보조 텍스트 */
  --light:     #f0f5ff;   /* 섹션 배경 (연한 블루) */
  --white:     #ffffff;
  --text-main: #1a2e52;
  --text-sub:  #4a5f80;
  --border:    #c8d8f0;
  --header-h:  72px;
}


/* ─── Reset / Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }


/* ─── HEADER ─────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 16px rgba(37, 99, 200, 0.08);
}

/* CI / Logo */
.header-ci a {
  display: flex;
  align-items: center;
  gap: 10px;
}



/* CI 이미지
   images/ci-logo.png 파일을 교체하면 헤더 CI가 자동으로 바뀝니다.
   권장 크기: 가로 200px 이상, 세로 44~60px, 배경 투명(PNG 권장) */
.ci-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.ci-img-wrap { display: flex; align-items: center; }
.ci-img.error-hidden { display: none; }
 

/* 이미지 로드 실패 시 텍스트 fallback */
.ci-fallback {
  display: none;
  align-items: center;
  gap: 10px;
}
.ci-fallback.show { display: flex; }
.ci-mark {
  width: 42px; height: 42px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-mark span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 1px;
}
.ci-text { display: flex; flex-direction: column; line-height: 1.1; }
.ci-text .ci-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 3px;
}
.ci-text .ci-sub {
  font-size: 9px;
  color: var(--blue-light);
  letter-spacing: 2px;
  font-weight: 300;
}

/* 햄버거 버튼: 데스크탑에서 숨김 */
.hamburger { display: none; }

/* GNB 래퍼: 데스크탑에서 기본 표시 */
.gnb-wrap { display: block; }

/* GNB */
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block;
  padding: 0 22px;
  height: var(--header-h);
  line-height: var(--header-h);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.gnb > li > a:hover { color: var(--accent); }

/* Dropdown */
.gnb > li .dropdown {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  min-width: 200px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
}
.gnb > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light); color: var(--blue); }

/* 현재 페이지 메뉴 강조 */
.dropdown a.active {
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 700;
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}


/* ─── FOOTER ─────────────────────────────────────────── */
#site-footer {
  background: #0e2040;
  padding: 56px 0 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.footer-ci .ci-text .ci-name { font-size: 26px; color: var(--white); }
.footer-ci .ci-text .ci-sub  { color: rgba(255,255,255,0.3); }
.footer-ci .ci-img { height: 52px; }
.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 40px;
}
.footer-info-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  line-height: 1.6;
}
.footer-info-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--steel);
  font-weight: 600;
  white-space: nowrap;
  min-width: 90px;
}
.footer-info-value {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  word-break: keep-all;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }


/* ─── SUB HERO BANNER (서브 페이지 공통 상단) ────────── */
#sub-hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-light) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
#sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.05) 55%);
}
#sub-hero::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 56px solid rgba(255,255,255,0.04);
}
.sub-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  position: relative; z-index: 1;
}
.sub-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.sub-breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.sub-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.sub-breadcrumb span { color: rgba(255,255,255,0.7); }
.sub-hero-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.sub-hero-title {
  font-size: 44px; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.sub-hero-title em {
  color: rgba(255,255,255,0.55);
  font-style: normal; font-weight: 300;
  font-size: 32px;
  display: block;
  margin-top: 6px;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  #sub-hero {
    padding: 48px 0; /* 모바일에서 위아래 여백을 조금 줄임 */
  }

  .sub-hero-inner {
    text-align: center; /* 내부 요소 전체 중앙 정렬 */
  }

  /* 브레드크럼(경로) 중앙 정렬을 위한 설정 */
  .sub-breadcrumb {
    display : none;
  }

  /* 타이틀 중앙 정렬 */
  .sub-hero-title {
    font-size: 32px; /* 모바일에서 글자 크기를 약간 조정하면 더 예쁩니다 */
  }

  /* 영문 부제목 숨기기 */
  .sub-hero-title em {
    display: none;
  }
  .sub-hero-label{
    display : none;
  }
}

/* ─── 공통 버튼 ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 14px;
  letter-spacing: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }


/* ─── 섹션 공통 ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sec-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.25;
  color: var(--navy);
}
.sec-title span { color: var(--blue); }
.sec-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 20px 0 24px;
}
.sec-desc {
  font-size: 15px; line-height: 1.9;
  color: var(--text-sub);
  max-width: 640px;
  word-break: keep-all;
}
@media (max-width:768px)
{
   .sec-label{
      text-align: center;
  }
  .sec-title {
  text-align: center;
  }
  .sec-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  
  /* 중앙 정렬 핵심: 위아래 20px 24px, 좌우는 auto(자동) */
  margin: 20px auto 24px;
}
}

/* ─── Utility ────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }


/* ─── Mobile Responsive ──────────────────────────────── */
@media (max-width: 768px) {

  /* ── Header ── */
  #site-header { padding: 0 16px; }

  .ci-img { height: 36px; }
  .ci-mark { width: 34px; height: 34px; }
  .ci-mark span { font-size: 14px; }
  .ci-text .ci-name { font-size: 18px; }
  .ci-text .ci-sub  { font-size: 8px; }

  /* 햄버거 버튼 */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* GNB 드로어 */
  .gnb-wrap {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    border-top: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .gnb-wrap.open { display: block; }

  /* 1뎁스 */
  .gnb { flex-direction: column; gap: 0; }
  .gnb > li > a {
    height: 52px; padding: 0 20px;
    font-size: 15px; font-weight: 600;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: space-between;
    line-height: 1; color: var(--navy);
  }
  .gnb > li > a .gnb-arrow {
    display: inline-block;
    font-size: 11px; color: var(--steel);
    transition: transform 0.25s;
    flex-shrink: 0; line-height: 1;
  }
  .gnb > li.open > a .gnb-arrow { transform: rotate(180deg); }

  /* 데스크탑 hover 드롭다운 무효화 */
  .gnb > li:hover .dropdown {
    opacity: 0; pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
  }

  /* 2뎁스 아코디언 */
  .gnb > li .dropdown {
    position: static;
    transform: none !important; opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none; border-top: none;
    background: #ffffff; min-width: unset;
    display: none;
  }
  .gnb > li.open .dropdown { display: block; }

  .dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px 13px 20px;
    font-size: 14px; font-weight: 400;
    color: var(--text-sub);
    border-bottom: 1px solid #e0e0e0;
    white-space: normal;
  }
  .dropdown a::before {
    font-size: 11px;
    color: var(--steel); flex-shrink: 0;
  }
  .dropdown a:last-child { border-bottom: none; }
  .dropdown a:hover { background: var(--blue-pale); color: var(--blue); }

  /* Footer */
  .footer-inner { padding: 32px 20px 24px; }
  .footer-top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .footer-info-label { min-width: 80px; font-size: 10px; }
  .footer-info-value { font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}
