@charset "UTF-8";

.coming {
	text-align: center;
	width: 100%;
	max-width: 480px;
	margin: 0 auto 30px;
	padding: 60px 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.coming::before {
	content: "Coming Soon";
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.3px;
	margin-bottom: 10px;
}
.coming::after {
	content: "서비스 준비 중입니다.";
	display: block;
	font-size: 15px;
	color: var(--muted);
}

/* ---- 페이지 배너 ---- */
.page-banner{
  position:relative;
  height:180px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:url(../images/sub/sub_top_01.jpg) center/cover no-repeat, var(--navy);
  border-bottom: 2px solid var(--navy);
  z-index:1;
}
.page-banner::before{
  content:"";position:absolute;inset:0;
  background: url("../images/foot_logo.svg") no-repeat;
  background-size: 550px;
  background-position: 55% 80%;
  filter: brightness(0); /* 검정색 변환 */
  opacity: 0.2;          /* 흐리기 */
}
.page-banner h1{
  position:relative;z-index:2; text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  color:#fff;font-size:40px;font-weight:800;letter-spacing:1px; margin-bottom:50px;
}

/* ---- 서브 탭 (배너 하단에 겹쳐서 카드 형태로 배치) ---- */
.sub-tabs-outer{margin-top:-50px;position:relative;z-index:5;}
.sub-tabs{
  display:flex;
  background:var(--muted);
  border-radius:8px 8px 0 0;
  box-shadow:0 -16px 10px rgba(10,20,45,0.12);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  border-radius:6px 6px 0 0;
  max-width:1000px;
  margin:0 auto;
}
.sub-tabs::-webkit-scrollbar{display:none;}
.sub-tabs a{
  flex:1 0 auto;min-width:90px;
  text-align:center;
  padding:10px;
  background:#fff;
  height:50px;
  font-size:18px;font-weight:400;
  color:var(--muted);
  border-right:2px solid var(--borderc);
  white-space:nowrap;
  transition:color .15s,background .15s;
  border:2px solid var(--borderc);
  border-bottom-color:var(--navy);
  margin-left:-2px;
}
.sub-tabs a:first-child{margin-left:0;}
.sub-tabs a:hover{color:var(--navy);background:#f4f7fb;}
.sub-tabs a.active{
  color:var(--navy);
  font-weight:600;
  border:2px solid var(--navy);
  border-radius:6px 6px 0 0;
  z-index:1;
  border-bottom: 0px;
}

/* ---- 서브 탭 (모바일: 드롭다운 리스트 형식) ---- */
.sub-menu-mobile{display:none;}


.page-content{padding-bottom:70px;max-width:1300px; margin:0 auto;}
.sub_text { word-break:keep-all; letter-spacing:-0.5px;}
/* ---- 본문 타이틀(예: 인사말) ---- */
.page-title{
  display:inline-flex;align-items:center;justify-content: center;
  background:var(--navy-dark);color:#fff;
  font-size:36px;font-weight:600;
  min-width:160px;
  padding:3px 32px;border-radius:8px;
  margin:40px 0;
}


/* ---- 인사말 본문 ---- */
.greeting { }
.greeting-lead{
  font-size:22px;font-weight:700;color:var(--navy);
  line-height:1.4;margin-bottom:30px;
}
.greeting-body{
  display:flex;gap:40px;align-items:flex-start;
}
.greeting-body .portrait{flex:0 0 236px;}
.greeting-body .portrait img{
  width:100%;border-radius:10px;display:block;
}
.greeting-body .text{flex:1;min-width:0;font-size:17px;line-height:1.7;color:var(--text); word-break:break-all;}
.greeting-body .text p{margin-bottom:24px;}
.greeting-body .text p:last-child{margin-bottom:0;}
.greeting-sign{
  text-align:right;font-size:18px;font-weight:800;color:var(--navy);
  margin-top:16px;
}


/* ---- 연혁: 세로 타임라인 ---- */
.history { max-width:960px; margin:0 auto; padding:0 20px;}
.history .year-group{
  display:flex;gap:32px;align-items:flex-start;
  padding:28px 0;border-bottom:1px dashed var(--border);
}
.history .year-group:first-child{padding-top:0;}
.history .year-group:last-child{border-bottom:none;}
.history .year{
  flex:0 0 180px;
  display:flex;align-items:center;justify-content:center;
  margin:0;
  color:var(--navy);
  font-size:34px;font-weight:800;
}
.history .events{
  flex:1;min-width:0; margin-top:10px;
  display:flex;flex-direction:column;gap:30px; line-height:1.3;
  padding-left:24px;border-left:2px solid var(--border);
  list-style:none;
}
.history .event {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr; /* 날짜 칸 | 내용 칸 */
  column-gap: 16px;
  row-gap: 4px;
  padding-left: 10px;
}

.history .event::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 0px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-bright);
}

.history .event .date {
  grid-column: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-bright);
  font-variant-numeric: tabular-nums;
}
.history .event strong {
  grid-column: 2;
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.history .event span {
  grid-column: 2;
  display: block;
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
}

/* ---- board list ---- */

/* 본문 영역 기본 폰트 설정 */
.board-container,
.board-table,
.view-content,
.write-table,
.board-search-form input,
.board-search-form select {
  font-size: 16px;
  line-height: 1.3;
  color: #333;
}

/* 레이아웃 구조 */
.board-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  align-items: flex-start;
}

.board-main {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

/* ---- 버튼 시스템 (공통 hover 및 인터랙션 통일) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-default {
  background-color: #fff;
  border-color: #cbd5e1;
  color: #475569;
}
.btn-default:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.btn-primary {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--red);
  border-color: var(--red);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.board-btn-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.btn-left, .btn-right {
  display: flex;
  gap: 10px;
}

/* ---- 게시판 목록 (List Page) ---- */
.board-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.board-count {
  font-size: 15px;
  color: #64748b;
}
.board-count span {
  color: #0b6ca8;
  font-weight: 700;
}

.board-search-form {
  display: flex;
  gap: 6px;
}
.board-search-form select,
.board-search-form input[type="text"] {
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.board-search-form input[type="text"]:focus,
.board-search-form select:focus {
  border-color: #2fa2cc;
  box-shadow: 0 0 0 3px rgba(47, 162, 204, 0.15);
}

.btn-search {
  padding: 8px 18px;
  background: var(--muted);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-search:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.board-table th {
  background-color: #f8fafc;
  color: #1e293b;
  padding: 14px 10px;
  border-top: 2px solid #0b6ca8;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 700;
}
.board-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #e2e8f0;
}
.board-table tr:hover {
  background-color: #f8fafc;
}

/* 목록 제목 폰트 스타일 및 크기 증가 */
.board-table .title-cell {
  text-align: left;
  padding-left: 15px;
  font-size: 16px;
}
.board-table .title-cell a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}
.board-table .title-cell a:hover {
  color: #0b6ca8;
  text-decoration: underline;
}

.badge-notice {
  display: inline-block;
  background: var(--blue-bright);
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 35px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}
.pagination a.active {
  background-color: #0b6ca8;
  color: #fff;
  border-color: #0b6ca8;
  font-weight: 700;
}
.pagination a:hover:not(.active) {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

/* ---- 게시글 상세보기 (View Page) ---- */
.view-card {
  border-top: 2px solid #0b6ca8;
  border-bottom: 1px solid #cbd5e1;
  background-color: #fff;
}
.view-header {
  padding: 24px 20px;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

/* 공지 본문 내부 제목 확대 */
.view-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.4;
  word-break:break-all;
}
.view-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #64748b;
}
.view-info span {
  color: #334155;
}

.view-file {
  padding: 14px 20px;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break:break-all;
}
.view-file a {
  color: #0b6ca8;
  text-decoration: none;
  font-weight: 500;
}
.view-file a:hover {
  text-decoration: underline;
}

.view-content {
  padding: 35px 20px;
  min-height: 280px;
  font-size: 16px;
  line-height: 1.5;
  color: #334155;
  word-break:break-all;
}
.view-content img {
  display: inline-block; /* 전역 img{display:block} 해제: 가운데/오른쪽 정렬(text-align, align=center)이 먹히도록 */
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 학술대회·연수강좌(data1, data3 …) 본문: 번호 목록 번호가 옆 칸으로 튀어나가지 않게 안쪽 여백 */
[class^="data"] .view-content ol.list { padding-left: 26px; margin: 0; list-style: decimal; text-align: left; }
[class^="data"] .view-content ol.list li { padding-left: 2px; }

/* 최신논문리뷰(review) 본문: 워드에서 붙여넣은 글자 서체(바탕 등)·자간을 사이트 폰트로 통일 */
.review .view-content,
.review .view-content * { font-family: inherit !important; letter-spacing: normal !important; }

/* 게시판 목록 첨부 아이콘: 이모지(📎) 대신 회색 선 클립 */
.icon-file { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; font-size: 0; line-height: 0; overflow: hidden; background: url("../images/icon/file.svg") center / 16px 16px no-repeat; }

/* 소식지 게시판: 본문 자동 가운데 맞춤 */
.news .view-content { text-align: center; }
.news .view-content img { display: block; margin-left: auto; margin-right: auto; }
.news .view-content table { margin-left: auto; margin-right: auto; }

/* ------ board / 학술대회 테이블 ------- */
.event_board{ margin-top:20px; width:100%; font-size:1em;}
.event_board ul {width:100%;margin:0 auto;max-width:800px;}
.date-time { margin-bottom:20px !important;width:100%;margin:0 auto;max-width:800px;} 
.event_board h3{ width:100%;margin:0 auto;max-width:800px;} 

.event_board .event_table {
	margin:0 auto;
	width:100%;
	max-width:800px;
    border-collapse: collapse;  
    border-bottom: 1px solid #398aad;
	margin-top:20px;
	margin-bottom:20px;
	border-top: 2px solid #398aad;
}
.event_board .event_table td{
    border-right: 1px solid #398aad;
    border-bottom: 1px solid #398aad;
	padding:6px !important;
	font-size:1em;
}
.event_board .event_table td.nobl{
	text-align:center;
}
.event_board .event_table th{
	background:#59add1;
	font-size:1em;
	padding:6px;
	text-align:center;
	font-weight:bold;
    border-right: 1px solid #fff;
	color:#fff;
}
.event_board .event_table td:last-child, .event_board .event_table th:last-child{
    border-right: 0px;
}

/* ---- 게시글 작성/수정 (Write Page) ---- */
.write-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #0b6ca8;
  border-bottom: 1px solid #cbd5e1;
}
.write-table th {
  width: 18%;
  background-color: #f8fafc;
  color: #1e293b;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 700;
}
.write-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus {
  border-color: #2fa2cc;
  box-shadow: 0 0 0 3px rgba(47, 162, 204, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 280px;
  line-height: 1.6;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: 500;
}

/* ---- join ---- */
.join { }
.notice-box {
  position: relative;
  margin: 0 auto 50px;
  padding: 40px 36px 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--blue-bright, #0091ea);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: center;
}
.notice-badge {
  display: inline-block;
  background: rgba(0, 145, 234, 0.1);
  color: var(--blue-bright, #0091ea);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy, #0a142d);
  margin-bottom: 16px;
}
.notice-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}
.notice-desc strong {
  color: var(--navy, #0a142d);
  font-weight: 700;
}

/* 2. 회원 자격 요건 (카드 그리드 구조) */
.type-section {
  margin: 0 auto 50px;
}
.section-title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy, #0a142d);
  margin-bottom: 24px;
  padding-left: 15px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 19px;
  background: var(--navy, #0a142d);
}
.type-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.type-card { flex: 0 0 calc((100% - 24px) / 2); }

/* 카드 기본 스타일 */
.type-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.type-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #0a142d);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.type-body {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  word-break: keep-all;
}
.type-body .highlight {
  color: var(--blue-bright, #0091ea);
  font-weight: 600;
}

/* 3. 하단 회원가입 액션 버튼 */
.join .join-buttons {
  display: flex;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}
.join .btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(10, 20, 45, 0.08);
  position: relative;
  overflow: hidden;
  background: var(--navy, #0a142d);
  color: #ffffff;
}
.join .btn:hover {
  background: var(--navy-dark, #050b1a);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 20, 45, 0.2);
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}
.join .btn-label {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.join .btn-desc {
  font-size: 14px;
  opacity: 0.8;
}
.arrow-ic {
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.join .btn:hover .arrow-ic {
  transform: translateX(6px);
}

/* ---- 회원가입 폼 공통 디자인 시스템 (register.html / register2.html / register_form.html) ---- */
.agree-page { margin: 0 auto; }

/* login.html / id_pwd.html - 인라인 style 대신 쓰는 클래스들 */
.login-page, .idpwd-page { max-width: 480px; }
.field-grid.field-grid-single { grid-template-columns: 1fr; }
.login-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.checkbox-inline input[type="checkbox"] { width: auto; }
.link-inline { background: none; padding: 0; text-decoration: underline; }
.btn-block { width: 100%; }
.form-footnote { text-align: center; font-size: 14px; color: var(--muted); }
.form-footnote a { color: var(--navy); font-weight: 600; }

.form-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 28px 32px; margin-bottom: 24px;
}
.form-card h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--navy);
}
.form-card h3 .note { font-size: 12px; font-weight: 400; color: var(--red, #e33); }
.req { color: var(--red, #e33);}

/* 라벨+입력 한 줄 그리드 */
.field-grid {
  display: grid;
  grid-template-columns: 132px 1fr 132px 1fr; /* 라벨+입력 두 세트 */
  gap: 16px 20px;
  align-items: center;
}
.field-grid .field-label { font-size: 16px; color: var(--text); font-weight:700; white-space: nowrap; }
.field-grid .req { color: #e33; margin-right: 2px; }
.field-grid .full { grid-column: 1 / -1; }
.field-grid .span-rest { grid-column: 2 / -1; }
.mt-16 { margin-top: 16px; }
.mt-10 { margin-top: 10px; }
.justify-center { justify-content: center; }
.mb-8 { margin-bottom: 8px; }
.select-compact {
  max-width: 220px;
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.select-compact:focus {
  border-color: #2fa2cc;
  box-shadow: 0 0 0 3px rgba(47, 162, 204, 0.15);
}
.zip-input { max-width: 100px !important; }
.input-compact { max-width: 380px; }

/* 라벨+내용 전체폭 행 */
.field-grid .row-full {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 6px 20px;
  flex-wrap: nowrap;
}
.field-grid .row-full > .field-label {
  flex: 0 0 132px;
  padding-top: 8px;
  white-space: nowrap;
}
.field-grid .row-full > .row-content {
  flex: 1 1 auto;
  min-width: 240px;
}
.field-grid .row-full > .row-content.radio-group {
  padding-top: 8px;
}

.field-grid input[type="text"],
.field-grid input[type="password"],
.field-grid input[type="email"],
.field-grid input[type="tel"],
.field-grid input[type="date"],
.field-grid input[type="number"],
.field-grid select,
.field-grid textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: #fff;  font-family: 'Pretendard','맑은 고딕','Malgun Gothic', '돋움', Dotum, Helvetica, sans-serif;
}
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 2px rgba(51,204,255,.2);
}

input[type="date"] { color-scheme: light; }
.field-grid .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 가로 배치 유틸리티 - field-grid/edu-table/radio-group 어디서든 동일하게 동작 */
.inline-fields { display: flex; gap: 0px 10px; flex-wrap: wrap; align-items: center; }
.inline-fields > * { flex: 1; min-width: 80px; }
.inline-fields > .etc-input { flex: 0 0 170px; }
.inline-fields > .unit-label { flex: 0 0 auto; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.inline-fields > input[type="number"] { flex: 0 0 90px; min-width: 0; }
.addr-fields input#mb_addr1, .addr-fields input#mb_addr3 { flex: 1 1 0; }
.addr-fields input#mb_addr2, .addr-fields input#mb_addr4 { flex: 1 1 0; }

/* 수련기간(년~년) 레이아웃 */
.term-range { gap: 6px; }
.term-range .year-input { flex: 0 0 70px; }
.term-range .unit-label { flex: 0 0 auto; }
.term-range .range-sep { flex: 1; text-align: center; }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px 20px; border: none; margin: 0; padding: 0; }
.radio-group label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; white-space: nowrap;  min-width:95px;}
.radio-group .field-label { font-weight:700; margin-bottom:10px;}

.training-grid-row .radio-group { margin:5px 15px; color:var(--muted);}
.training-grid-row .radio-group label { min-width: 0; gap: 4px; }

/* "기타" 입력칸 */
.etc-input {
  width: 140px !important;
  box-sizing: border-box;
  padding: 6px 10px;
  margin-left: 4px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font-family: 'Pretendard','맑은 고딕','Malgun Gothic', '돋움', Dotum, Helvetica, sans-serif;
}
.etc-input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(51,204,255,.2);
}

.agree-box { margin-bottom: 20px; }
.agree-box h4.agree {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #0a142d);
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--navy, #0a142d);
}

.agree-box .textarea { width:100%; height:180px; overflow:hidden; overflow-y:scroll; box-sizing: border-box; padding: 0 12px; font-size: 14px; line-height: 1.6;
  color: var(--text); background: #f5f7fa; border: 1px solid var(--border); border-radius: 6px; resize: vertical; font-family: 'Pretendard','맑은 고딕','Malgun Gothic', '돋움', Dotum, Helvetica, sans-serif; font-weight:300; }
.agree-box .textarea h3 { font-size: 17px; padding:5px 0 0 0 ; margin-top:10px; color: var(--navy);}
.agree-box .textarea h3:first-child { margin-top:0px;}
.agree-box .textarea h4 { font-size: 15px;color:#333; padding:5px 0; text-indent:0px; margin-bottom:0px; }
.agree-box .textarea h4:before { display:none;}
.agree-box .textarea ol { padding:5px; list-style:none;}
.agree-box .textarea h4.inline { font-weight:400; line-height:1.6; font-size:1em; color:#333; letter-spacing:0px;}
.agree-box .textarea h4.inline strong {font-weight:700;color:#000; font-size:16px;}


.agree-box .agree-confirm { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: 16px; }
.agree-box .agree-confirm input { margin-right:5px;}
.btn-row { text-align: center; margin: 30px 0; display: flex; justify-content: center; gap: 12px; align-items: center; }
.btn-row .btn-primary {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  border: none; border-radius: 6px; padding: 12px 36px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-row .btn-primary:hover, .btn-row .btn-secondary:hover { background: var(--navy-dark, #003366); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(10,20,40,.18); }
.btn-row .btn-secondary {
  background: var(--muted); color: #fff; align-items: center; font-size: 15px; font-weight: 700;
  border-radius: 6px; padding: 13px 36px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* 시각적으로만 숨김 (스크린리더/키보드 포커스는 유지) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 우편번호 검색 버튼 */
.btn-postcode { max-width:110px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 6px; background: #f5f7fa;
  cursor: pointer; font-size: 12px; color: var(--navy); font-weight: 600; white-space: nowrap;
}
.btn-postcode:hover { background: var(--border); }

/* 학력/수련정보 - table 대신 div+grid로 구성 */
.edu-grid, .training-grid {
  border-top: 1px solid var(--border); border-left: 1px solid var(--border); font-size: 15px;
}
.edu-grid-head, .edu-grid-row { display: grid; grid-template-columns: 100px 1fr 1.5fr 1.5fr; }
.training-grid-head, .training-grid-row { display: grid; grid-template-columns: 100px 1fr 1fr; }

.edu-grid-head > div, .edu-grid-row > div,
.training-grid-head > div, .training-grid-row > div {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 8px; display: flex; align-items: center; justify-content: center; min-width: 0;
}
.edu-grid-head > div, .training-grid-head > div { background: #f5f7fa; color: var(--navy); font-weight: 600; }
.edu-cell-label { background: #f5f7fa; font-weight: 600; color: var(--text); }
.stack-block { flex-direction: column; align-items: stretch; gap: 4px; }

/* edu-grid/training-grid 안의 input, select도 다른 곳과 동일한 보더로 통일 */
.edu-grid input, .edu-grid select, .training-grid input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: #fff;
}
.edu-grid input:focus, .edu-grid select:focus, .training-grid input:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 2px rgba(51,204,255,.2);
}

/* 졸업년도 / 수련기간 연도 입력칸 폭 */
.year-input { max-width: 90px; margin: 0 auto; }

/* 자동등록방지(캡차) */
.captcha-box { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #f5f7fa; }
.captcha-placeholder {
  width: 120px; height: 60px; background: #e3e6ea; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center;
}
.captcha-box input {
  width: 100%; box-sizing: border-box; padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: #fff;
}
.captcha-box input:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 2px rgba(51,204,255,.2);
}

/* 행사일정 달력 (event/schedule.html) */
.calendar-wrap { max-width: 900px; margin: 0 auto 40px; }
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; }
.calendar-nav h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0; }
.cal-arrow {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  text-decoration: none; font-size: 18px; font-weight: 700; transition: background .15s;
}
.cal-arrow:hover { background: #f2f5f9; }

.calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-table th {
  padding: 10px; background: #f5f7fa; color: var(--navy); font-weight: 600;
  border: 1px solid var(--border); font-size: 14px;
}
.calendar-table th:first-child, .calendar-table td:first-child .day-num { color: #e33; }
.calendar-table td {
  height: 76px; vertical-align: top; padding: 6px 8px; border: 1px solid var(--border);
  font-size: 13px; color: var(--text);
}
.calendar-table td.empty { background: #fafbfc; }
.calendar-table td.today { background: rgba(51, 204, 255, .08); }
.calendar-table .day-num { display: inline-block; font-weight: 600; }
.calendar-table td.today .day-num {
  color: #fff; background: var(--navy); border-radius: 50%;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
}
.calendar-table .cal-event {
  display: block; margin-top: 4px; font-size: 12px; background: var(--blue-bright);
  color: var(--navy); padding: 2px 4px; border-radius: 3px; font-weight: 500; word-break:break-all;
}

.schedule-actions { text-align: center; margin-top: 20px; }

/* 주요 행사 / 전체 일정 - 카드 형식 */
.form-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.form-card-head h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.btn-sm { padding: 8px 18px; font-size: 14px; }

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch; /* 행 안 카드 높이가 달라도 옆 카드와 세로선이 어긋나지 않도록 그리드가 행 높이를 맞춰줌 */
}
.event-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 15px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.event-date {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bw-bg);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
  padding-left:-7px;
  margin-top:7px;
}
.event-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  word-break: keep-all;
  padding-left:5px;
}
.event-place {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.3;
  word-break: keep-all;
  padding-left:5px;
  margin-bottom:10px;
}

/* 목록(list.html) 카드 - 라벨이 붙은 필드 목록 (행사기간/행사명/장소/주제) - office-row(dt/dd) 형식과 동일하게 */
.event-fields {
  display: flex;
  flex-direction: column;
}
.event-field {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
}
.event-field:last-child {
  border-bottom: none;
}
.event-field .field-label {
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size:0.9em;
}
.event-field .field-value {
  flex: 1;
  color: var(--text);  
}
.field-name .field-value {font-weight: 600; font-size:1.05em;}

/* list.html 전용 - 2칸 그리드 */
.event-cards-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* schedule.html 전용 - form-card 테두리 제거 (다른 form-card 사용 페이지는 유지) */
.schedule .form-card { border: none; padding-left: 0; padding-right: 0; }

/* list.html 전용 - 달력으로 보기 버튼 배치 */
.list-title-row .page-title {
  margin-bottom: 8px;
}
.list-calendar-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

/* 관련 사이트 링크 목록 (site/internal.html, site/outside.html) - 테이블 대체 */
.link-group {
  margin-bottom: 40px;
}
.link-group:last-child {
  margin-bottom: 0;
}
.link-group-title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy, #0a142d);
  margin-bottom: 16px;
  padding-left: 15px;
}
.link-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 19px;
  background: var(--navy, #0a142d);
}
.link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.link-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.link-item a:hover {
  border-color: var(--blue-bright, #0091ea);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.link-item .link-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.link-item .link-url {
  font-size: 14px;
  color: #64748b;
  word-break: break-all;
}

/* ---- 행사앨범 (board/gallery.html) : 사진 카드 그리드 ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* PC 한 줄 4개 (페이지당 12개 = 3줄) */
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.gallery-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--blue-bright, #0091ea);
}
.gallery-thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bw-bg, #f1f5f9);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-caption {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-caption:hover { color: var(--navy); text-decoration: underline; }
.gallery-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 14px;
  color:#999;
}
.gallery-date img {
  width: 13px;
  height: 13px;
  display: block;
}

/* ---- 임원 세대별 탭 (society/executives_tabs.html) ---- */
.officer-gen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.officer-gen-tabs a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  background: #fff;
  color: var(--navy, #0a142d);
  text-decoration: none;
  transition: all 0.15s ease;
}
.officer-gen-tabs .officer-gen-label {
  font-size: 15px;
  font-weight: 700;
}
.officer-gen-tabs .officer-gen-period {
  font-size: 12px;
  color: var(--muted, #64748b);
}
.officer-gen-tabs a:hover {
  background: #f4f7fb;
}
.officer-gen-tabs a.active {
  background: var(--blue-bright, #33ccff);
  border-color: var(--blue-bright, #33ccff);
}
.officer-gen-tabs a.active .officer-gen-label,
.officer-gen-tabs a.active .officer-gen-period {
  color: #fff;
}

/* ---- 임원 (society/executives*.html) : board-table 재사용 + 정렬만 보정 ---- */
.officer-table {
  table-layout: fixed;
  border-top: 2px solid #0b6ca8;
}
.officer-table td {
  text-align: left;
}
.officer-table .role {
  vertical-align: middle;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  background: #f8fafc;
}
.officer-table .name {
  text-align: center;
}
.officer-table tr:hover {
  background-color: transparent;
}

/* ---- 사무국 (society/office.html) : 연락처 카드 + 지도 ---- */
.office-wrap {
  display: flex;
  gap: 32px;
  align-items: stretch;
}
.office-card {
  flex: 0 0 360px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.office-card .office-org {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.office-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.office-row:last-child { border-bottom: none; }
.office-row dt {
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--navy);
}
.office-row dd {
  flex: 1;
  color: var(--text);
  line-height: 1.5;
  word-break: keep-all;
}
.office-map {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
}
.office-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---- 회원검색 (member/search.html) : 목록 안 메일/쪽지 보내기 버튼 ---- */
.member-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.member-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--blue-bright, #0091ea);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.member-actions a:hover { background: var(--navy); }

/* ---- 마이페이지 목록 안내문 (나의학술활동 / 학회인정평점) ---- */
.mypage-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.mypage-notice::before {
  content: "\25B6";
  font-size: 11px;
  color: var(--blue-bright, #0091ea);
}
.mypage-notice strong { color: var(--blue-bright, #0091ea); }
.mypage-filter { text-align: right; margin-bottom: 12px; }
.board-table tr.table-total-row td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--navy);
}

/* ---- 용어검색 (board/dictionary.html) ---- */
.dict-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bw-bg, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 24px;
}
.dict-intro-title {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.dict-intro-title::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("/images/icon/magnifying-glass-solid-full.svg") no-repeat center / contain;
}
.dict-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.dict-intro-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.dict-intro-links a::before {
  content: "\25B8";
  color: var(--blue-bright, #0091ea);
  margin-right: 5px;
}
.dict-intro-links a:hover { color: var(--navy); }

.dict-hint {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.dict-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.dict-search-form label {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.dict-search-form input[type="text"] {
  min-width: 280px;
  padding: 8px 14px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.dict-search-form input[type="text"]:focus {
  border-color: var(--blue-bright, #0091ea);
  box-shadow: 0 0 0 3px rgba(0, 145, 234, 0.15);
}

.dict-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dict-categories a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.dict-categories a:hover { background: var(--bw-bg, #f1f5f9); color: var(--navy); }
.dict-categories a.active { background: var(--navy); color: #fff; font-weight: 700; }

.dict-table td { text-align: center; }


/* ------ newsletter ------- */
.newsl { word-break:break-all; text-align:justify; }
.newsl .n-title { margin-bottom:40px!important;  margin-left:0px !important;} 
.newsl .n-title h3 { margin-bottom:20px !important; margin-left:0px !important;} 
.newsl h3 { margin:10px 0 !important; margin-left:0px !important;}
.newsl h4 { margin:15px 0 10px 0 !important; }
.newsl ol { padding-left:20px !important; list-style:decimal!important; margin-top:5px; margin-bottom:20px;}
.newsl ol li { padding:5px; list-style:decimal!important;margin-left:0px !important; color:#222;}
.newsl ol li ul li {padding:2px;padding-left:16px; text-indent:-16px;}
.newsl ol.alp { list-style:upper-alpha!important; }
.newsl ol.alp li { list-style:upper-alpha!important;}
.newsl ul { list-style:none !important; margin-top:5px; margin-bottom:20px;}
.newsl ul li {padding:5px; list-style:none !important; padding-left:18px; text-indent:-18px; margin-left:0px !important;}
.newsl ul.disc { padding-left:30px !important; list-style:disc !important; }
.newsl ul.disc li {list-style:disc !important;padding-left:0px; text-indent:0px; }
.newsl .blank { height:15px;}
.newsl .figure { font-size:0.95em; line-height:1.5; color:#555 !important;}
.newsl img { margin:5px 0;}
.newsl table.ntable td { padding:6px 3px !important;}

/* ============================================================
   반응형 (Responsive) - 큰 화면 → 작은 화면 순서로 정리
   ============================================================ */

/* 960px 이하 */
@media (max-width: 960px) {
  .event-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .officer-gen-tabs a { flex: 1 1 calc(18% - 4px); }
}

/* 800px 이하 - 서브 탭 - 가로탭 대신 모바일 드롭다운으로 전환 */
@media (max-width:800px){
  .sub-tabs{display:none;}
  .sub-menu-mobile{
    display:block;
    background:#fff;
    border-radius:8px 8px 0 0;
    box-shadow:0 -10px 10px rgba(10,20,45,0.12);
    overflow:hidden;
	margin-top:-52px;border:2px solid var(--navy); border-bottom:0px; }
  .sub-menu-mobile summary{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 20px;
	height:50px;
    font-size:17px;font-weight:700;color:var(--navy);
    cursor:pointer;list-style:none;
  }
  .sub-menu-mobile summary::-webkit-details-marker{display:none;}
  .sub-menu-mobile summary::after{
    content:"";width:9px;height:9px;flex-shrink:0;
    border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);
    transform:rotate(45deg);transition:transform .15s;
  }
  .sub-menu-mobile[open] summary::after{transform:rotate(-135deg);}
  .sub-menu-mobile ul{border-top:1px solid var(--border);}
  .sub-menu-mobile li{border-bottom:1px solid var(--border);}
  .sub-menu-mobile li:last-child{border-bottom:2px solid var(--navy);border-radius:0 0 8px 8px;}
  .sub-menu-mobile a{
    display:block;padding:14px 20px;
    font-size:15px;font-weight:600;color:var(--muted);
  }
  .sub-menu-mobile a.active{color:var(--navy);background:#f4f7fb;font-weight:800;}
  .sub-menu-mobile[open] { border-radius:8px;}

  .office-wrap { flex-direction: column; }
  .office-card { flex: 0 0 auto; }
  .office-map iframe { min-height: 280px; }
}

/* 768px 이하 - 게시판 목록/작성 - 카드형 레이아웃으로 전환 */
@media (max-width: 768px) {
  .board-container {
    flex-direction: column;
  }
  .board-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .board-search-form {
    width: 100%;
    flex-wrap: nowrap;
  }
  .board-search-form select {
    flex: 0 1 80px;
    min-width: 0;
  }
  .board-search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
  }
  .btn-search {
    flex: 0 0 auto;
  }

  /* 테이블 모바일 모드 (카드 레이아웃으로 변경) */
  .board-table:not(.officer-table),
  .board-table:not(.officer-table) tbody,
  .board-table:not(.officer-table) tr {
    display: block;
  }
  .board-table:not(.officer-table) colgroup {
    display: none;
  }
  .board-table thead {
    display: none;
  }

  /* 카드 개별 스타일 - 그리드로 구성해 항상 "배지+제목" 한 줄 / "날짜+조회" 한 줄로 고정 */
  .board-table:not(.officer-table) tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 8px;
    row-gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #fff;
    text-align: left;
	word-break:break-all;
  }

  .board-table:not(.officer-table) td {
    padding: 0;
    border: none;
    font-size: 16px;
  }

  /* 1. 번호 칸: 평소엔 숨기고, 공지(알림 뱃지)일 때만 제목 앞에 표시 */
  .board-table:not(.officer-table) td:nth-child(1) {
    display: none;
  }
  .board-table:not(.officer-table) tr:has(.badge-notice) td:nth-child(1) {
    display: block;
    grid-row: 1;
    grid-column: 1;
  }

  /* 2. 제목 영역 - 공지면 알림 배지 옆으로, 아니면 한 줄 전체를 차지 */
  .board-table .title-cell {
    grid-row: 1;
    grid-column: 2;
    width: auto;
    padding-left: 0;
    font-size: 17px;
    margin: 0;
  }
  .board-table:not(.officer-table) tr:not(:has(.badge-notice)) .title-cell {
    grid-column: 1 / -1;
  }

  /* 3. 날짜 + 조회수 - 항상 제목 아래 줄에, 왼쪽 정렬 */
  .board-table:not(.officer-table) td:nth-child(3),
  .board-table:not(.officer-table) td:nth-child(4) {
    grid-row: 2;
    font-size: 13px;
    color: #94a3b8;
  }
  .board-table:not(.officer-table) td:nth-child(3) {
    grid-column: 1;
    white-space: nowrap;
  }
  .board-table:not(.officer-table) td:nth-child(4) {
    grid-column: 2;
  }
  .board-table:not(.officer-table) td:nth-child(4)::before {
    content: "·";
    margin: 0 6px;
    color: #cbd5e1;
  }

  /* ---- 회원검색 (member/search.html) 전용 카드 레이아웃 - 일반 게시판과 컬럼 구성이 달라 별도 규칙 ----
     grid 대신 flex-wrap을 써서, 근무처/소속과/직책/직위가 옆으로 붙어 흐르다가
     길어지면 자연스럽게 다음 줄로 넘어가도록 함 */
  .board-table:has(.member-actions) tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0;
    row-gap: 6px;
  }
  /* 1줄: 성명 ... 메일보내기(가장 오른쪽으로 붙임) */
  .board-table:has(.member-actions) td:nth-child(2) {
    order: 1;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
  }
  .board-table:has(.member-actions) td:nth-child(7) {
    order: 2;
    margin-left: auto;
  }
  /* 성명 + 메일보내기 줄 다음, 항상 새 줄로 강제 개행 */
  .board-table:has(.member-actions) tr::after {
    content: "";
    order: 3;
    flex-basis: 100%;
  }
  /* 2줄: 근무처 소속과 직책 직위 - 옆으로 붙어 흐르다가 길면 다음 줄로 wrap (빈 값은 자동 숨김) */
  .board-table:has(.member-actions) td:nth-child(3),
  .board-table:has(.member-actions) td:nth-child(4),
  .board-table:has(.member-actions) td:nth-child(5),
  .board-table:has(.member-actions) td:nth-child(6) {
    order: 4;
    flex: 0 0 auto;
    font-size: 16px;
    color: inherit;
    text-align: left;
  }
  .board-table:has(.member-actions) td:nth-child(3):empty,
  .board-table:has(.member-actions) td:nth-child(4):empty,
  .board-table:has(.member-actions) td:nth-child(5):empty,
  .board-table:has(.member-actions) td:nth-child(6):empty {
    display: none;
  }
  .board-table:has(.member-actions) td:nth-child(4)::before,
  .board-table:has(.member-actions) td:nth-child(5)::before,
  .board-table:has(.member-actions) td:nth-child(6)::before {
    content: "·";
    margin: 0 6px;
    color: #cbd5e1;
  }
  /* 쪽지보내기는 삭제 */
  .board-table:has(.member-actions) .member-actions a:nth-child(2) {
    display: none;
  }

  /* ---- 나의 학술활동 / 학회인정평점 (mypage/activities.html, mypage/score_list.html) 전용 카드 레이아웃
     일반 게시판(번호/제목/날짜/조회수)과 컬럼 구성이 달라 별도 규칙 - tr.table-total-row로 이 테이블만 식별 */
  .board-table:has(.table-total-row) tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
  }
  /* 1줄: 행사명 - 항상 보이도록, 전체 너비 */
  .board-table:has(.table-total-row) td:nth-child(1) {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
  }
  /* 2줄: 일자 · 인정점수(학회인정평점) */
  .board-table:has(.table-total-row) td:nth-child(2),
  .board-table:has(.table-total-row) td:nth-child(3) {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--muted);
  }
  .board-table:has(.table-total-row) td:nth-child(3)::before {
    content: "·";
    margin-right: 10px;
    color: #cbd5e1;
  }
  /* 합계 행: "전체 (평점) 합계" 라벨 옆으로 학회인정평점(점수)을 같은 줄에 붙임 */
  .board-table:has(.table-total-row) tr.table-total-row td:nth-child(1) {
    width: auto;
    flex: 0 0 auto;
    color: var(--navy);
  }
  .board-table:has(.table-total-row) tr.table-total-row td:nth-child(2) {
    color: var(--navy);
    font-weight: 700;
    font-size: 16px;
  }

  /* 작성 폼 반응형 */
  .write-table th,
  .write-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .write-table th {
    border-bottom: none;
    padding-bottom: 4px;
    background-color: transparent;
    text-align: left;
  }

  /* 하단 버튼 배치 반응형 */
  .board-btn-group {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .btn-left, .btn-right {
    width: 100%;
  }
  .btn-left .btn, .btn-right .btn {
    flex: 1;
  }
  /* write.html처럼 .btn-left/.btn-right 없이 버튼이 바로 오는 경우(작성완료/취소)는 한 줄 유지 */
  .board-btn-group:not(:has(.btn-left)):not(:has(.btn-right)) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .board-btn-group:not(:has(.btn-left)):not(:has(.btn-right)) > .btn {
    flex: 0 0 auto;
    width: auto;
  }
  /* 글쓰기 버튼처럼 그룹에 버튼이 하나뿐이면 늘리지 않고 원래 크기 유지 */
  .btn-left:has(.btn:only-child),
  .btn-right:has(.btn:only-child) {
    width: auto;
  }
  .btn-right:has(.btn:only-child) {
    align-self: flex-end;
  }
  .btn-left:has(.btn:only-child) {
    align-self: flex-start;
  }
  .btn-left .btn:only-child,
  .btn-right .btn:only-child {
    flex: 0 0 auto;
  }

.greeting-body{flex-direction:column;gap:24px;}
.greeting-body .portrait{flex:0 0 auto;max-width:220px;margin:0 auto;}
.page-title{font-size:30px;}
.greeting-lead{font-size:20px;}

.history .year-group {
  flex-direction: column;   /* 가로 → 세로 */
  gap: 10px;                /* 위아래 간격 */
}

.history .year {
  flex: none;               /* 고정 폭 해제 */
  width: 100%;              /* 전체 너비 사용 */
}

.history .event {
  position: relative;
  display: flex;
  flex-direction: column; /* 세로 배치 */
  align-items: flex-start;
  gap: 6px;               /* 위아래 간격 */
  padding-left: 0;        /* 불필요한 들여쓰기 제거 */
}
.history .event .date { text-align:left; margin-top:-1px;}

  .form-card { padding: 22px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 10px 0; }
  .field-grid .field-label { margin-right: 10px; }
  .field-grid .row-full { flex-direction: column; }
  .addr-fields { flex-direction: column; }
  .addr-fields input { flex: 1 1 auto !important; margin-bottom: 4px; }
  .addr-fields input:last-of-type { margin-bottom: 0; }
  .field-grid .row-full > .field-label { flex: 0 0 auto; padding-top: 0; }
  .field-grid .row-full > .row-content { min-width: 0; width: 100%; }

  /* 학력/수련정보 반응형 */
  .edu-grid-head, .training-grid-head { display: none; }
  .edu-grid-row, .training-grid-row { display: block; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
  .training-grid-row .term-range {
    display: inline-flex !important;
    width: auto !important;
    justify-content: flex-start;
  }
  .training-grid-row .term-range .year-input { flex: 0 0 70px !important; }
  .training-grid-row .term-range .unit-label,
  .training-grid-row .term-range .range-sep { flex: 0 0 auto !important; text-align: center; }
  .training-grid-row .term-range .range-sep { padding: 0 4px; }
  .edu-grid, .training-grid { border-top: 0px solid var(--border); border-left: 0px solid var(--border); }
  .edu-grid-row > div, .training-grid-row > div {
    display: block; border-right: none; text-align: left; padding: 8px 12px;
  }
  .edu-grid-head > div, .edu-grid-row > div,
  .training-grid-head > div, .training-grid-row > div { border-bottom: 0px solid var(--border);}
  .edu-cell-label { background: #f5f7fa; }
  .edu-grid-row > div[data-label]::before,
  .training-grid-row > div[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
  }

  .edu-grid-row > div[data-label]:empty,
  .training-grid-row > div[data-label]:empty { display: none; }

  .board-table.dict-table tr {
    position: relative;
    padding-left: 54px;
  }
  .board-table.dict-table td:nth-child(1) {
    display: inline-flex;
    position: absolute;
    left: 12px;
    top: 12px;
    order: initial;
    margin-left: 0;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bw-bg, #f1f5f9);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
  }
  .board-table.dict-table td:nth-child(2) {
    order: 1;
    width: 100%;
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--text);
    text-align: left;
  }
  .board-table.dict-table td:nth-child(3) {
    order: 2;
    width: 100%;
    margin-left: 0;
    font-size: 16px;
    color: var(--text);
    text-align: left;
  }
}

/* 680px 이하 */
@media (max-width: 680px) {
  .event-cards { grid-template-columns: 1fr; }

  .join .type-card {
    flex-basis: 100%;
  }
  .join .join-buttons {
    flex-direction: column;
  }
  .join .notice-box {
    padding: 28px 20px;
  }
  .join .heading {
    font-size: 21px;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item { padding: 10px; }

.dict-intro { flex-direction: column; align-items: flex-start; }
.dict-search-form { flex-wrap: nowrap; }
.dict-search-form label { flex: 0 0 auto; }
.dict-search-form input[type="text"] { min-width: 0; flex: 1 1 auto; }
.dict-search-form button { flex: 0 0 auto; }
}

/* 600px 이하 */
@media (max-width:600px){
.page-banner{height:150px;}
.page-banner::before{
  background-size: 500px;
  background-position: 20% 80%;
}
.page-banner h1{font-size:30px;}
.page-content{}
.sub-tabs-outer{margin-top:-24px;}
.greeting, .history { text-align:left;}

  .officer-gen-tabs { gap: 6px; }
  .officer-gen-tabs a { padding: 8px 10px; flex: 1 1 calc(33.333% - 6px); }
}

/* 중요행사일정 백엔드 연동 (2026-11) */
.calendar-table a.cal-event { text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.calendar-table a.cal-event:hover { background: var(--navy); color: #fff; }
a.event-card-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.event-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(10, 20, 40, .08); }
.field-name .field-value a { color: inherit; text-decoration: none; }
.field-name .field-value a:hover { text-decoration: underline; }
.event-view { padding: 20px 30px; }
.event-view .field-name small { font-weight: 400; color: var(--muted); }
.event-content { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.7; word-break: keep-all; }
.event-content img { max-width: 100%; height: auto; }

/* 게시글 보기: 링크 · 이전글/다음글 (2026-11) */
.view-link { border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.view-link a { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow-wrap: anywhere; }
.view-link a .ext { font-size: 13px; }
.view-nav { margin-top: 30px; border-top: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; }
.view-nav-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; font-size: 15px; }
.view-nav-row + .view-nav-row { border-top: 1px solid #e2e8f0; }
.view-nav-label { flex: 0 0 80px; font-weight: 700; color: #0b6ca8; font-size: 14px; white-space: nowrap; }
.view-nav-title { flex: 1; min-width: 0; color: #334155; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.view-nav-title:hover { color: #0b6ca8; text-decoration: underline; }
.view-nav-none { color: #94a3b8; }
.view-nav-date { flex: 0 0 auto; color: #94a3b8; font-size: 14px; }
@media (max-width: 640px) {
  .view-nav-row { gap: 10px; padding: 12px 10px; font-size: 14px; }
  .view-nav-label { flex-basis: 64px; font-size: 13px; }
  .view-nav-date { display: none; }
}

/* 회원검색: 검색 전·결과 없음 안내 (2026-11) */
.board-table td.empty-cell { padding: 60px 0; color: #94a3b8; text-align: center; }

/* 중요행사일정 목록(list.html): 1칸 카드 - 날짜 블록 + 행사명/평점 + 장소·주제 아이콘 (2026-11) */
.event-cards.event-cards-1col { grid-template-columns: 1fr; gap: 14px; }
.event-card.ev-row { display: flex; align-items: center; gap: 22px; padding: 25px; }
.event-card.ev-empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.ev-date { flex: 0 0 96px; text-align: center; padding-right: 22px; border-right: 1px solid var(--border, #e2e8f0); line-height: 1.2; }
.ev-date b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ev-date span { display: block; margin-top: 3px; font-size: 15px; color: var(--blue-bright); }
.ev-date em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ev-main { flex: 1; min-width: 0; }
.ev-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ev-title { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.35; text-decoration: none; word-break: keep-all; }
a.ev-title:hover { color: var(--navy); text-decoration: underline; }
.ev-point { flex: none; display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 600; color: #0b6ca8; background: var(--bw-bg); border: 0px solid #b9d6ea; border-radius: 999px; padding: 2px 15px; line-height: 1.4; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 10px; font-size: 15px; color: #475569; }
.ev-meta .ev-place, .ev-meta .ev-topic { display: inline-flex; align-items: flex-start; gap: 6px; word-break: keep-all; }
.ev-meta .ev-place::before, .ev-meta .ev-topic::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: center / 16px 16px no-repeat; }
.ev-meta .ev-place::before { background-image: url("../images/icon/place.svg"); }
.ev-meta .ev-topic::before { background-image: url("../images/icon/topic.svg"); }
@media (max-width: 640px) {
  .event-card.ev-row { gap: 14px; padding: 14px; }
  .ev-date { flex-basis: 66px; padding-right: 14px; }
  .ev-date b { font-size: 20px; }
  .ev-title { font-size: 16px; }
  .ev-meta { font-size: 14px; gap: 4px 14px; }
}

/* 주요 행사 카드(schedule.html): 장소 앞 핀 아이콘 (2026-11) */
a.event-card-link .event-place:not(:empty) { display: flex; align-items: flex-start; gap: 6px; }
a.event-card-link .event-place:not(:empty)::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: url("../images/icon/place.svg") center / 16px 16px no-repeat; }
