/*  RESET & BASE  */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html,
body {
  font-family: 'Noto Sans KR', sans-serif !important;
}

body {
  color: #222;
  background: #fff;
  line-height: 1.5;
  min-width: 1400px;
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/*   CSS VARIABLES   */
:root {
  --primary: #1a4fa0;
  --primary-light: #2d6fd4;
  --accent: #2d6fd4;
  --text-main: #1a1a1a;
  --text-sub: #555;
  --text-muted: #888;
  --border: #dde3ec;
  --bg-light: #f4f6fb;
  --footer-bg: #383838;
  --nav-h: 72px;
}



.AW_bbs_table th, .AW_bbs_table td , .answerBasic th, .answerBasic td{
  font-size: 17px !important;
} 




/*   HEADER / NAV   */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 로고 이미지 */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 72px;
  width: 311px;
  display: block;
  object-fit: contain;
}

/* GNB */
nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-left: 140px;
}

nav a {
  font-family: 'Noto Sans KR', sans-serif !important;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-sub);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: break-word;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.top_logoin ul {
  display: flex;
  align-items: center;
  gap: 20px;
}







/* 우측 버튼 묶음 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}


/* 햄버거 버튼 */
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* HERO SLIDER  */
.hero {
  position: relative;
  width: 100%;
  height: 850px;
  overflow: hidden;
  background: #1c2b40;
}

.hero-slides {
  display: flex;
  width: 400%;
  /* 슬라이드 4장 × 25% */
  height: 100%;
}

.hero-slide {
  width: calc(100% / 4);
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .35) 100%);
} */

/* 좌·우 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(95, 95, 95, 0.5);
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 35px;
  transition: background .2s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, .35);
}

.hero-arrow.prev {
  left: 140px;
}

.hero-arrow.next {
  right: 140px;
}

/* 컨트롤 영역 (일시정지 + 도트 + 재생) */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: background 0.3s;
}

.hero-controls:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.hero-dots span:hover {
  transform: scale(1.25);
}

.hero-dots span.active {
  background: #fff;
  transform: scale(1.25);
}

/* 컨트롤 버튼 */
.hero-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s, transform 0.2s;
  outline: none;
}

.hero-ctrl-btn svg {
  display: block;
}

.hero-ctrl-btn:hover {
  color: #fff;
  transform: scale(1.15);
}

.hero-ctrl-btn.active {
  color: var(--accent, #e8b84b);
}

/* BOARD SECTION */
.boards {
  max-width: 1400px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 22px;
}

.board-block img {
  border-radius: 0px 50px 0px 50px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 12px;
}

.board-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* + 버튼  */
.board-more {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.board-more svg {
  transition: transform .2s;
}

.board-more:hover svg {
  transform: rotate(90deg);
}

/* 리스트 행 */
.board-list li a {
  display: block;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;

}



.board-list li:last-child {
  border-bottom: none;
}

.board-list .item-title {
  font-size: 17px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  cursor: pointer;
  transition: color .15s;
}

.board-list .item-title::before {
  content: '·';
  margin-right: 8px;
  color: var(--primary);
}

.board-list .item-title:hover {
  color: var(--primary);
}

.board-list .item-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}



/*  FOOTER */
footer {
  background: var(--footer-bg);
  margin-top: 72px;
  padding: 36px 24px;
  color: #383838;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 60;
  width: auto;
  display: block;
  object-fit: contain;
}

/* .footer-logo .title    { font-size: 14px; font-weight: 700; color: #fff; } */
.footer-logo .subtitle {
  font-size: 11px;
}

.footer-info {
  text-align: right;
  font-size: 12px;
  line-height: 1.9;
}

.footer-info p {
  color: rgba(255, 255, 255, .6);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  margin-top: 8px;
}

/* ---------------------------------------------서브페이지 */


/* SUB HERO BANNER */
.sub-hero {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #b5cde0;

}

.sub-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(180, 205, 224, .25) 0%,
      rgba(100, 150, 190, .45) 100%);
}

.sub-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;

}


/* BREADCRUMB BAR  */
.breadcrumb-bar {
  background: #f4f6fb;
  border-bottom: 1px solid #dde3ec;
}

.breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.bc-home {
  color: #888;
  display: flex;
  align-items: center;
  transition: color .15s;
}

.bc-home:hover {
  color: var(--primary);
}

.bc-sep {
  color: #bbb;
  font-size: 14px;
}

.bc-item {
  color: #bbb;
  font-weight: 400;
}


/*  SUB PAGE LAYOUT  */
.sub-main {
  max-width: 1400px;
  margin: 48px auto 80px;
  /* padding: 0 24px; */
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


/*  LEFT SIDEBAR   */
/* .sub-sidebar {
  width: 180px;
  flex-shrink: 0;
} */

.sidebar-category {
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 4px;
  letter-spacing: .02em;
}


/*   RIGHT CONTENT   */
.sub-content {
  flex: 1;
  min-width: 0;
}

.sub-page-header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--primary);
  /* margin-bottom: -4px; */
}

.sub-page-title {
  font-size: 24px !important;
  font-weight: 700;
  color: var(--primary);
}


/*   GREETING CARD   */
.greeting-card {
  background: none;
  border: none;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

.greeting-content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.greeting-right {
  width: 475px;
  height: 500px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.greeting-image-box {
  width: auto;
  height: auto;
  overflow: hidden;
}

.greeting-image-box img {
  width: 100%;
  height: 100%;
  border-radius: 120px 0 120px 0;
  display: block;
}

.greeting-sign-block {
  margin-top: 15px;
}

/* 위원장 타이틀 블록 */
.greeting-title-block {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 32px;
}

.greeting-hello {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.greeting-name-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
}

.greeting-name-title .highlight {
  /* color: var(--primary); */
  color: #092F6E;
}



/* 본문 */
.greeting-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-right: 60px;
}

.greeting-body p {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.85;
  word-break: keep-all;
}

/* 서명 */
.greeting-sign {
  font-size: 22px;
  color: var(--text-sub);
  text-align: left;
  line-height: 1.45;
}

.greeting-sign strong {
  color: var(--primary);
  font-weight: 700;
}

.greeting-sign img {
  display: inline-block;
  vertical-align: middle;
  height: 80px;
  /* 서명 이미지 높이 조절 */
  width: auto;
}

/* 인사말 서브페이지 end */




.sub-main .cont .board .category_pd {
  display: none;
}

.myinfo .board,
.idpw .board,
.join .board,
.login .board {
  margin-top: 20px;
}

/* 제목 옆의 new.gif 아이콘 줄바꿈 방지 및 정렬 */
img[src*="new.gif"] {
  display: inline-block !important;
  vertical-align: middle;
  margin-left: 4px;
}