/* =========================
   KONGEDU - FINAL style.css
   ========================= */

/* Pretendard local */
@font-face{
  font-family:"Pretendard";
  src:url("../fonts/Pretendard-Black.woff2") format("woff2");
  font-weight:900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Pretendard";
  src:url("../fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Pretendard";
  src:url("../fonts/Pretendard-Regular.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --black:#0b0b0b;
  --white:#ffffff;
  --gray-50:#f7f7f8;

  /* 기존 민트(다른 섹션에서 쓸 수도 있어 유지) */
  --mint:#b8e5e0;

  /* ✅ 배너(히어로) 배경색: 이미지 배경과 통일 */
  --hero:#bfe7fb;

  --shadow: 0 10px 30px rgba(0,0,0,.08);

  /* 화면 줄이면 좌우 여백이 커지도록 하는 최대 폭 */
  --max: 1120px;

  /* 기준 폰트(상단 KONGEDU 제목 크기) */
  --brand: 18px;

  /* 더 큰 타이틀(중단 AI툴/보조툴, 하단 KONGEDU) */
  --sectionTitle: 22px;
}

/* Reset */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo","Noto Sans KR", Segoe UI, Roboto, Arial, sans-serif;
  color:#111;
  background:#fff;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font:inherit; }
#wrap{ min-height:100%; }

/* =========================
   Header
   ========================= */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ✅ 화면 줄이면 중앙정렬 + 여백 증가 */
.headerInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
}

/* Logo */
.logo{
  margin:0;
  flex:0 0 auto;
}

.logo a{
  display:flex;              /* ⭐ 핵심 */
  align-items:center;        /* 수직 중앙 정렬 */
  gap:8px;                   /* 이미지-텍스트 간격 */
  font-weight:900;
  letter-spacing:.10em;
  font-size: var(--brand);
}

/* 로고 이미지 */
.logo img{
  height:30px;               /* 🔥 30~32 추천 */
  width:auto;                /* 비율 자동 유지 */
  display:block;
}
/* Menu centered */
.gnb{
  flex:1;
  display:flex;
  justify-content:center;
}

/* Spacer for perfect center alignment */
.headerRightSpacer{ flex:0 0 140px; }

.gnbList{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 22px;
  align-items:center;
}

.gnbItem{ position:relative; }

/* ✅ 상단 메뉴 글씨 = KONGEDU 제목 크기 */
.gnbLink{
  display:inline-flex;
  align-items:center;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: var(--brand);
}
.gnbLink:hover{ background: rgba(0,0,0,.04); }

/* dropdown */
.subMenu{
  position:absolute;
  top: calc(100%);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 220px;
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity:0;
  pointer-events:none;
  transition: all .18s ease;
}
.hasSub:hover .subMenu{
  opacity:1;
  transform: translate(-50%, 0);
  pointer-events:auto;
}
.subLink{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
}
.subLink:hover{ background: rgba(0,0,0,.05); }

/* =========================
   Banner
   - 1920*400 / 1080*400 기준
   - 화면 줄이면 좌우 여백 증가(중앙정렬)
   ========================= */
.hero{ background: var(--hero); } /* ✅ 여기서 #bfe7fb 적용 */

/* ✅ 배너도 max-width 컨테이너 적용 */
.heroInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.heroPicture{ display:block; }

.heroImg{
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =========================
   Middle
   ========================= */
.sectionGray{
  background: var(--gray-50);
  padding: 44px 0 56px;
}
.sectionInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ✅ AI툴/보조툴은 더 크게 */
.sectionTitle{
  margin: 0 0 14px;
  font-size: var(--sectionTitle);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.divider{
  border:0;
  height:1px;
  background: rgba(0,0,0,.08);
  margin: 26px 0;
}

.toolGrid{
  display:grid;
  gap: 18px;
  justify-content: start;
  align-items: start;
}

/* AI툴: 3개 가로 꽉차게 */
.toolGrid-3{ grid-template-columns: repeat(3, 1fr); }

/* ✅ 보조툴: AI툴과 같은 버튼 폭을 유지하려고 3열 템플릿 유지(2개만 채움) */
.toolGrid-2{ grid-template-columns: repeat(3, 1fr); }

.toolItem{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

/* ✅ 높이 고정 + 가로만 확장 */
.toolSquare{
  width:100%;
  height:200px;
  border-radius:18px;
  background:#fff;
  border:0;
  box-shadow: var(--shadow);

  /* ✅ 이미지 가운데 정렬 */
  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden; /* 넘치는 부분 숨김 */

  transition: transform .18s ease, box-shadow .18s ease;
}

.toolSquare:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
}

/* ✅ 버튼 안의 이미지 자동 맞춤 */
.toolSquare img{
  max-width:85%;      /* 가로 자동 축소 */
  max-height:85%;     /* 세로 자동 축소 */
  object-fit:contain; /* 이미지 비율 유지 */
  transition: transform .3s ease;
}

/* ✅ hover 시 살짝 확대 효과 */
.toolSquare:hover img{
  transform: scale(1.05);
}

/* ✅ 중단 버튼 이름 = KONGEDU 제목 크기 */
.toolName{
  margin-top: 10px;
  font-weight: 900;
  font-size: var(--brand);
}

/* 작은 글씨는 Bold */
.toolDesc{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,.55);
  line-height: 1.35;
}
/* =========================
   Footer (FULL CENTER)
   - 전체 요소 중앙정렬
   - 브랜드(로고/태그) 세로 스택
   - nav / meta / copyright 모두 가운데
   ========================= */
.siteFooter{
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.footerInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 18px;
}

/* ✅ 브랜드 영역: 세로로 쌓고 가운데 정렬 */
.footerBrandRow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ✅ 하단 KONGEDU는 더 크게 */
.footerLogo{
  font-weight: 900;
  letter-spacing: .10em;
  font-size: var(--sectionTitle);
  line-height: 1.15;
}

/* ✅ 학생부 작성… = KONGEDU 제목 크기 */
.footerTag{
  font-weight: 900;
  font-size: var(--brand);
  color: rgba(255,255,255,.90);
  line-height: 1.35;
}

/* ✅ 이용약관… 중앙정렬 */
.footerNav{
  margin-top: 16px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px 18px;
}

.footerNav a{
  font-weight: 700;
  font-size: var(--brand);
  color: rgba(255,255,255,.92);
}

.footerNav a:hover{
  text-decoration: underline;
}

/* ✅ meta: 중앙정렬 */
.footerMeta{
  margin-top: 16px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.footerMeta p{
  margin: 0;
}

/* ✅ copyright: 중앙정렬 */
.copyright{
  margin-top: 10px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* =========================
   Top button
   ========================= */
.btnTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  cursor: pointer;

  display:none;
  align-items:center;
  justify-content:center;

  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.btnTop:hover{ background:#fff; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px){
  .headerInner{ padding: 12px 14px; }
  .headerRightSpacer{ flex-basis: 90px; }
  .gnbList{ gap: 10px; }

  .heroInner{ padding: 0 14px; }
  .heroImg{ height: 400px; }

  .sectionInner{ padding: 0 14px; }
  .footerInner{ padding: 28px 14px 16px; }

  .toolGrid-3{ grid-template-columns: 1fr; }
  .toolGrid-2{ grid-template-columns: 1fr; }

  /* 모바일에선 footerNav/메타는 자연스럽게 왼쪽 정렬 */
  .footerNav,
  .footerMeta,
  .copyright{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .footerNav{ justify-content: flex-start; }
}

@media (max-width: 520px){
  .headerRightSpacer{ flex-basis: 40px; }
}

/* =========================
   Board/List + Detail (KONGEDU)
   ========================= */
.boardPage{
  background: #fff;
  padding: 34px 0 64px;
}
.boardInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.boardTitle{
  margin: 0 0 18px;
  font-size: var(--sectionTitle); /* ✅ footerLogo와 동일 */
  font-weight: 900;
  letter-spacing: -0.02em;
}

.boardTable{
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.boardTable thead th{
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  padding: 14px 10px;
  color: rgba(0,0,0,.70);
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.boardTable thead th.thDate{
  text-align: right;
  width: 140px;
}

.boardTable tbody td{
  padding: 16px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
  vertical-align: middle;
}

.boardLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.boardLink:hover{
  text-decoration: underline;
}

.badges{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.70);
}
.badge .clip{ font-size: 13px; }

.boardDate{
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
}

.pager{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pager button{
  border: 0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(0,0,0,.45);
}
.pager button:hover{ background: rgba(0,0,0,.05); }
.pager .current{
  color: #0b0b0b;
}

/* Detail */
.detailHead{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.detailTitle{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.detailDate{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.55);
}
.detailBody{
  padding: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(0,0,0,.82);
}
.detailBody img{
  max-width: 100%;
  border-radius: 14px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.detailBody table{
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
}
.detailBody th, .detailBody td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.detailBody th{
  background: rgba(0,0,0,.03);
  font-weight: 900;
  text-align: left;
}
.detailActions{
  margin-top: 22px;
  display:flex;
  justify-content: center;
}
.btnDownload{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-weight: 900;
  border: 0;
}
.btnDownload:hover{ opacity: .92; }
.btnBack{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #0b0b0b;
  font-weight: 900;
}
.btnRow{
  margin-top: 18px;
  display:flex;
  justify-content:center;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px){
  .boardInner{ padding: 0 14px; }
  .boardTable thead{ display:none; }
  .boardTable tr{ display:block; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .boardTable td{ display:block; border:0; padding: 6px 0; }
  .boardDate{ text-align:left; }
}

.comingMain{
  min-height: calc(100vh - 160px); /* header+footer 제외 */
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 20px;
  background:#f6f7fb;
}

.comingImage{
  width:100%;
  max-width:900px;
  max-height:500px;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 25px 60px rgba(0,0,0,0.08);
}

/* ===== Header menu typography normalize ===== */
.siteHeader .gnbLink,
.siteHeader .subLink{
  font-size:16px;      /* 원하는 크기로 통일 */
  font-weight:700;     /* 원하는 굵기로 통일 */
  letter-spacing:-0.01em;
  line-height:1.2;
}

/* 드롭다운(서브)은 조금 작게 하고 싶으면 */
.siteHeader .subLink{
  font-size:14px;
  font-weight:600;
}
/* =========================
   Header Menu Size Lock
   (모든 페이지 동일 강제)
========================= */

.siteHeader .gnbLink{
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.2;
}

.siteHeader .subLink{
  font-size:14px !important;
  font-weight:600 !important;
}
