
.header{
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 100%; /* 원하는 너비 설정 */
    margin: 0 auto; /* 수평 중앙정렬 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
  
 #logo {
    color: #CE2029;
    text-decoration: none;
    
 } 
  .main-menu {
    display: flex;
    gap: 30px;
  }
  
  .menu-item {
    position: relative;
    cursor: pointer;
    color: #333;
  }

  .menu-item:hover {
    color: #CE2029; /* hover 시 강조색 (호텔스닷컴 느낌의 파랑 계열) */
  }
  
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 10px;
    z-index: 1000;
    width: 120px;
  }
  
  .submenu a {
    padding: 10px 0px; /* 높이 여백 조절: 위아래 10px */
    display: block;     /* 링크를 블록 요소로 만들어 전체 클릭 가능하게 */
    text-decoration: none;
    color: #333;
  }
  
  .submenu a:hover {
  	font-weight: bold;
  }

  .menu-item:hover .submenu {
    display: flex;
  }

  .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }

  footer {
  	width: 100%;
    max-width: 100%; /* 원하는 너비 설정 */
    margin: 0 auto; /* 수평 중앙정렬 */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-section h4 {
    margin-bottom: 10px;
  }

  footer {
    background-color: #f5f5f5;  /* 밝은 회색 배경 */
    box-sizing: border-box;
    padding: 10px;
    font-size: 10px;            /* 글씨 크기 작게 */
    color: #555;                /* 글씨 색은 중간 회색 */
  }

  footer p, footer h3 {
    margin : 0px 10px;
   
  }

  span>a {
    text-decoration: none;
     margin : 0px 10px;
  }
  
  span>a:hover{
 	 text-decoration: underline;
  }
  
  
 #footer-admin-link:hover {
 	text-decoration: underline;
 	font-weight: bold;
 }
 
 .footer-container {
 	width : 100%;
 	max-width: 100%;
 	} 
  
#footer-admin {
	text-align: right;
}

/*side*/

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  background-color: #fff;
}

.sidebar {
  width: 250px;
  background-color: #e0e0e0; /* 사이드 메뉴 배경도 연한 회색 */
  padding: 20px;
  box-sizing: border-box;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

.content {
  flex: 1;
  padding: 20px;
}

/* teacher */

:root {
  /*main color*/
   /*main color*/
  --main1: #CE2029;
  --main2: #E04141;
  --main3: #F5B8B8;
  --main4: #F07F7F;
  --main5: #F5B8B8;
  /*box-bg*/
  --box-bg: #f0f1f1;
  /*gray*/
  --gray1: #222222;
  --gray2: #555555;
  --gray3: #717171;
  --gray4: #8f8f8f;
  --gray5: #b7b7b7;
  --gray6: #d6d6d6;
  --gray7: #efefef;
  --gray8: #ffffff;

  /*line-color*/
  --line1: #222222;
  --line2: #d6d6d6;
  --line3: #eaeced;
  --line4: #f6f6f6;
  --line5: #f8f9fa;
}
@font-face {
  font-family: ns-l;
  src: url(../font/NotoSansKR-Light.ttf);
}
@font-face {
  font-family: ns-r;
  src: url(../font/NotoSansKR-Regular.ttf);
}
@font-face {
  font-family: ns-b;
  src: url(../font/NotoSansKR-Bold.ttf);
}
@font-face {
  font-family: ns-black;
  src: url(../font/NotoSansKR-Black.ttf);
}

a {
  text-decoration: none;
}
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 800px;
  position: relative;
  background-color: var(--box-bg);
}

.logo {
  margin-right: 24px;
}
.logo > a {
  font-family: ns-black;
  font-size: 28px;
}
.nav {
  flex: 1;
  
}
.nav > ul {
  display: flex;		
  align-items: center;
}
.nav > ul > li {
  margin: 0px 15px;
  position: relative; 
 
}
.nav a,
.user-menu a {
  transition-duration: 0.3s;
}

.nav a:hover,
.user-menu a:hover {
  color: var(--gray1); 
}

.nav .sub-menu {
  display: none;
  position: absolute;
  width: 130px;
  background-color: #fff;
  border: 1px solid var(--main2);
  border-radius: 5px;
  left: 10px; 
  z-index: 1;
}

.sub-menu > li > a {
  color: var(--main2);
  padding: 10px;
  display: block; 
}
.nav > ul > li:hover > .sub-menu {
  display: block;  
}
.sub-menu > li > a:hover {
  background-color: var(--main2);
  color: var(--gray8);
}
.user-menu {
  display: flex; 
}
.user-menu > li {
  margin-left: 20px;
}

.content {
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  flex: 1;
 
}

.page-title {
  font-weight : bold;
  text-align: left;
  font-family: ns-b;
  font-size: 30px;
  padding-bottom: 50px;
  color: #222222;
}
.footer {
  background-color: var(--gray6);
}
.footer > div {
  max-width: 100%;
  padding: 20px 10px;
  margin: 0 auto;
}
.footer > div > p {
  margin: 10px 0px;
  font-family: ns-b;
  font-size: 16px;
}

section.section {
  padding: 20px;
  border-radius: 10px; 
  background-color: var(--gray8);
}
section.section.bg-section {
  background-color: var(--box-bg);
}

[class^="btn-"] { 
  cursor: pointer; 
  font-size: 14px;
  padding: 9px 20px;
  border: none;
  border-radius: 5px;
  font-family: ns-b;
}
.btn-primary {
  border: 1px solid var(--main3);
  background-color: var(--main3);
  color: var(--gray8);
}
.btn-primary:hover {
  background-color: rgba(101, 146, 254, 0.9);
}
.btn-secondary {
  border: 1px solid var(--gray4);
  background-color: var(--gray4);
  color: var(--gray8);
}
.btn-secondary:hover {
  background-color: rgba(143, 143, 143, 0.9);
}
.btn-point {
  border: 1px solid var(--main5);
  background-color: var(--main5);
  color: var(--gray8);
}

.btn-primary.outline {
  color: var(--main3);
  background-color: var(--gray8);
}
.btn-primary.outline:hover {
  background-color: rgba(101, 146, 254, 0.2);
}
.btn-secondary.outline {
  color: var(--gray4);
  background-color: var(--gray8);
}
.btn-secondary.outline:hover {
  background-color: rgba(143, 143, 143, 0.2);
}
.btn-point.outline {
  color: var(--main5);
  background-color: var(--gray8);
}
.btn-point.outline:hover {
  background-color: rgba(140, 97, 255, 0.2);
}
[class^="btn-"].sm {
  padding: 5px 10px;
  font-family: ns-r; 
  font-size: 12px;
}
[class^="btn-"].md {
  padding: 7px 15px;
  font-size: 14px;
  border-radius: 20px;
}
[class^="btn-"].lg {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 25px;
}

.tbl {
  border-top: 1px solid #d6d6d6;
  width: 100%;
  border-spacing: 0;
}

.adminTbl {
  border-top: 1px solid #d6d6d6;
  width: 100%;
  border-spacing: 0;
}

.tbl th,
.tbl td {
  text-align: center;
  border-bottom: 1px solid var(--line2);
  padding: 10px 10px;
}
.tbl th.left,
.tbl td.left {
  text-align: left;
}
.tbl th {
  background-color: #F5B8B8;
}

.adminTbl th,
.adminTbl td {
  text-align: center;
  border-bottom: 1px solid var(--line2);
  padding: 10px 10px;
}

.adminTbl th {
  background-color: #efefef;
  text-align: center;
  border-bottom: 1px solid var(--line2);
  padding: 10px 10px;
}

.adminTbl.tbl-hover tbody > tr:hover {
  background-color: #f8f9fa;
}

.tbl.tbl-hover tbody > tr:hover {
  cursor: pointer;
  background-color: #efefef;
}
.input-wrap {
  display: flex;
  flex-direction: column; 
}
.input-wrap > .input-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5; 
}
.input-item {
  display: flex;
  gap: 10px; 
}
.input-item > input {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  border: none;
  border-bottom: 1px solid var(--gray5);
  padding: 8px 0px;
}
.input-item + .input-msg { 
  position: relative;
  margin-top: 8px;
  padding-left: 24px;
  color: var(--gray3);
  font-size: 14px;
  line-height: 1.5;
}
.input-item + .input-msg::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: url(../images/icon_info.svg) no-repeat center / contain;
}
.input-item + .input-msg.valid {
  color: #1065dc;
}
.input-item + .input-msg.valid::before { 
  background: url(../images/icon_info_success.svg) no-repeat center / contain;
}
.input-item + .input-msg.invalid {
  color: #ff3d00;
}
.input-item + .input-msg.invalid::before {
  background: url(../images/icon_info_warning.svg) no-repeat center / contain;
}

.input-item > textarea {
  width: 100%;
  height: 156px;
  padding: 15px;
  resize: none; 
  font-size: 16px;
  line-height: 24px;
  border: 1px solid var(--line2);
}

.input-wrap > input[type="checkbox"] {
  display: none;
}
.input-wrap > input[type="checkbox"] + label {
  position: relative;
  display: block;
  flex-grow: 1; 
  padding: 8px 0 8px 30px;
  cursor: pointer;
}
.input-wrap > input[type="checkbox"] + label::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  color: var(--main3);
  border-radius: 50%;
  background: url(../images/icon_check.png) no-repeat center / 20px;
}
.input-wrap > input[type="checkbox"]:checked + label::before {
  background: url(../images/icon_check_active.png) no-repeat center / 20px;
}

.input-wrap > input[type="radio"] {
  display: none;
}
.input-wrap > input[type="radio"] + label {
  position: relative;
  display: block;
  flex-grow: 1;
  padding: 8px 0 8px 30px;
  cursor: pointer;
}
.input-wrap > input[type="radio"] + label::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  color: var(--main3);
  border-radius: 50%;
  background: url(../images/icon_check.png) no-repeat center / 20px;
}
.input-wrap > input[type="radio"]:checked + label::before {
  background: url(../images/icon_check_active.png) no-repeat center / 20px;
}
.select {
  flex: 1;
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 5px;
  background: #fff url(../images/icon_arrow_down.svg) no-repeat right 12px center / 12px;
  overflow: hidden;
}
.select > select {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  background-color: transparent;
  border: 0;
}
.modal-bg {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-bg.open {
  display: flex;
}
.modal-container {
  background-color: var(--gray8);
  padding: 40px 20px;
  width: 500px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  gap: 20px;
  box-sizing: border-box;
  position: relative;
}
.modal-title {
  font-size: 20px;
  font-family: ns-b;
  line-height: 30px;
  text-align: center;
}
.modal-main {
  flex: 1;
  overflow-y: auto;
  padding: 0px 30px;
}
.modal-content {
  max-height: 200px;
}
.modal-btn-area {
  display: flex;
  gap: 13px;
  justify-content: center;
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

.posting-wrap{
	overflow: hidden;
	padding: 10px;
}
.posting-wrap>.posting-item{
	box-sizing: border-box;
	width : 335px;
	float: left;
	padding : 30px
	
}
.posting-item>a{
	display : block;
}
.posting-item:hover{
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}
.posting-img{
	height: 200px;
}
.posting-img>img{
	width:100%;
	height:100%;
	object-fit:contain;
}
.posting-info{
	margin: 10px auto;
	width: 75%
}
.posting-title{
	font-size : 18px;
	font-family : ns-b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pagination {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.posting-sub-info{
	margin : 10px 0px;
	display: flex;
	justify-content: space-between;
}
.posting-sub-info>span{
	font-size: 14px;
	font-family: ns-b;
}

.pagination > li {
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  overflow: hidden;
}
.pagination.square-style > li {
  /*border-radius: 50%;*/
}
.pagination > li > a.page-item {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 18px;
  color: #333;
}
.pagination > li > a.page-item > span.material-icons {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 40px;

}
.pagination .page-item.active-page {
  background-color: var(--main2);
  color: #fff;
}

/*게시판*/
.tbl td.boardTitle {
	text-align : left;
}

.tbl td.boardTitle>a {
	color : #000000;
}

/* 회원 세부정보 페이지 */
.member-info-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 30px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.member-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.member-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.member-info-table th,
.member-info-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.member-info-table th {
  color: #666;
  width: 120px;
}

.member-info-button-wrapper {
  text-align: center;
}

.member-info-btn {
  background-color: #CE2029;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.member-info-btn-secondary {
  background-color: #555;
}

.member-info-btn-secondary:hover {
  background-color: #444;
}

.member-info-btn-small {
  padding: 5px 10px;
  font-size: 0.9rem;
  background-color: #CE2029;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left : 15px;
}

/* 회원 정보 수정 */

.member-edit-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
}

.member-edit-container h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.member-edit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.member-edit-table th,
.member-edit-table td {
  text-align: left;
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.member-edit-table th {
  width: 120px;
  color: #555;
  font-weight: 600;
}

.member-edit-input,
.member-edit-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.member-edit-input[readonly] {
  background-color: #f4f4f4;
  cursor: not-allowed;
}

.member-edit-btn-group {
  text-align: center;
  margin-top: 20px;
}

.member-edit-btn {
  background-color: #CE2029;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 0 8px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* ========================================================================== */
/* MUTGYM unified theme 2026                                                  */
/* ========================================================================== */
:root {
  --brand-950: #3b0d16;
  --brand-900: #561522;
  --brand-800: #701c2b;
  --brand-700: #8f2637;
  --brand-600: #ad3044;
  --brand-500: #c74659;
  --brand-100: #fbe9ec;
  --brand-50: #fff5f6;
  --accent: #f2b95f;
  --ink: #20232a;
  --ink-soft: #4b5563;
  --muted: #737b89;
  --line: #e6e8ec;
  --surface: #ffffff;
  --surface-soft: #f6f6f7;
  --canvas: #f4f3f2;
  --success: #247a55;
  --danger: #c23d4f;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 3px 12px rgba(38, 24, 27, .07);
  --shadow: 0 14px 38px rgba(38, 24, 27, .10);
  --main1: var(--brand-700);
  --main2: var(--brand-600);
  --main3: var(--brand-500);
  --main4: var(--brand-100);
  --main5: var(--brand-50);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: ns-r, "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main { min-height: 60vh; }
.wrap { min-width: 0; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(86, 21, 34, .09);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 22px rgba(38, 24, 27, .05);
  backdrop-filter: blur(16px);
}
.header-container {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
#logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--brand-900) !important;
  font-family: ns-black, sans-serif;
  font-size: 22px;
  letter-spacing: -.04em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-600), var(--brand-900));
  box-shadow: 0 7px 18px rgba(143, 38, 55, .25);
  font-size: 19px;
}
.main-menu { display: flex; align-items: center; gap: 4px; }
.header-primary { flex: 1; }
.header-actions { flex: none; gap: 8px; }
.main-menu > a,
.menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-family: ns-b, sans-serif;
  font-size: 16px;
  transition: color .2s, background .2s, transform .2s;
}
.main-menu > a:hover,
.menu-item > a:hover { color: var(--brand-700); background: var(--brand-50); }
.menu-item { position: relative; padding: 7px 0; color: var(--ink-soft); }
.submenu {
  top: calc(100% - 2px);
  left: 0;
  width: 176px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, visibility .18s, transform .18s;
}
.menu-item:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-soft) !important;
  font-size: 14px;
}
.submenu a:hover { color: var(--brand-700) !important; background: var(--brand-50); }
.header-join,
.header-logout {
  color: #fff !important;
  background: var(--brand-700) !important;
  box-shadow: 0 6px 16px rgba(143, 38, 55, .18);
}
.header-join:hover, .header-logout:hover { background: var(--brand-800) !important; transform: translateY(-1px); }

/* Common content surfaces */
.container,
.gym-container,
.member-info-card,
.member-edit-container,
.section,
.form-container,
.login-container,
.payment-container {
  border: 1px solid rgba(86, 21, 34, .07);
  border-radius: var(--radius-lg) !important;
  background: var(--surface);
  box-shadow: var(--shadow-sm) !important;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 44px auto;
  overflow: hidden;
}
.content { padding: 38px !important; background: var(--surface); }
.content h1, .content h2, .content h3,
main h1, main h2, main h3 { color: var(--ink); letter-spacing: -.035em; }
.content > h1:first-child, .content > h2:first-child,
main h1:first-child { margin-top: 0; }
.sidebar {
  min-width: 210px;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: #fbfaf9 !important;
}
.sidebar-title { padding: 9px 12px; color: var(--brand-900) !important; font-size: 19px !important; }
.sidebar-menu li a {
  display: block;
  margin: 3px 0;
  padding: 11px 13px !important;
  border-radius: 9px;
  color: var(--ink-soft) !important;
  transition: .18s ease;
}
.sidebar-menu li a:hover,
.sidebar-menu li.active a { color: var(--brand-700) !important; background: var(--brand-100) !important; transform: translateX(2px); }

/* Forms */
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
select, textarea,
.input-item > input,
.member-edit-input,
.member-edit-select {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d9dce2 !important;
  border-radius: var(--radius-sm) !important;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus,
.input-item > input:focus {
  border-color: var(--brand-500) !important;
  box-shadow: 0 0 0 4px rgba(199, 70, 89, .12) !important;
}
input[readonly], input:disabled, select:disabled { background: #f1f2f4 !important; color: var(--muted); }
label { color: var(--ink-soft); font-family: ns-b, sans-serif; }

/* Buttons */
button,
input[type="submit"], input[type="button"], input[type="reset"],
[class^="btn-"], [class*=" btn-"],
.member-info-btn, .member-info-btn-small, .member-edit-btn {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px !important;
  color: #fff;
  background: var(--brand-700);
  font-family: ns-b, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
button:hover,
input[type="submit"]:hover, input[type="button"]:hover,
[class^="btn-"]:hover, [class*=" btn-"]:hover,
.member-info-btn:hover, .member-edit-btn:hover {
  background: var(--brand-800);
  box-shadow: 0 7px 18px rgba(143, 38, 55, .20);
  transform: translateY(-1px);
}
.btn-secondary, .member-info-btn-secondary, button.cancel, button[type="reset"] {
  border-color: var(--line);
  color: var(--ink-soft);
  background: #fff;
}
.btn-secondary:hover, .member-info-btn-secondary:hover { color: var(--brand-700); background: var(--brand-50); }

/* Tables and lists */
.tbl, .adminTbl, .member-info-table, .member-edit-table,
table { border-collapse: separate; border-spacing: 0; }
.tbl, .adminTbl { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl th, .adminTbl th,
.member-info-table th, .member-edit-table th {
  color: var(--brand-900) !important;
  background: #faf5f5 !important;
  font-family: ns-b, sans-serif;
}
.tbl th, .tbl td, .adminTbl th, .adminTbl td,
.member-info-table th, .member-info-table td,
.member-edit-table th, .member-edit-table td { border-color: var(--line) !important; }
.tbl tbody tr, .adminTbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover, .adminTbl tbody tr:hover { background: var(--brand-50); }

/* Cards, notices and pagination */
.posting-item, .gym-card, .review, .inquiry-list section,
.info-card, .card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.posting-item:hover, .gym-card:hover, .card:hover {
  border-color: rgba(173, 48, 68, .25) !important;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.pageNavi > li > a, .pagination a, .pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  margin: 0 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: #fff;
}
.pageNavi > li > a:hover, .pagination a:hover,
.pageNavi .active-page, .pagination .active { color: #fff !important; border-color: var(--brand-700); background: var(--brand-700) !important; }
.swal-modal { border-radius: 20px; }
.swal-button { border-radius: 10px; background: var(--brand-700); }

/* Footer */
.site-footer, footer {
  margin-top: 72px;
  padding: 46px 0;
  color: rgba(255,255,255,.72);
  background: linear-gradient(135deg, var(--brand-950), #261216) !important;
}
.footer-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 42px;
  align-items: start;
  text-align: left;
}
.footer-brand strong { color: #fff; font-family: ns-black; font-size: 24px; letter-spacing: -.04em; }
.footer-brand p, .footer-info p { margin: 8px 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.footer-links a, .footer-admin a { color: #fff !important; font-size: 13px; }
.footer-links a:hover, .footer-admin a:hover { color: var(--accent) !important; }
.footer-copy { color: rgba(255,255,255,.42); }
.footer-admin a { display: inline-flex; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }

@media (max-width: 900px) {
  .header-container { width: min(100% - 24px, 1200px); min-height: 68px; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
  #logo { margin-right: auto; }
  .header-primary { order: 3; width: 100%; overflow-x: auto; }
  .header-primary .menu-item { flex: none; }
  .container { width: calc(100% - 24px); margin: 24px auto; flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-menu { display: flex; gap: 4px; overflow-x: auto; }
  .sidebar-menu li { flex: none; }
  .content { padding: 26px 20px !important; }
  .footer-container { grid-template-columns: 1fr 2fr; }
  .footer-admin { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-container { width: calc(100% - 20px); }
  #logo { font-size: 19px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  .header-actions > a { min-height: 38px; padding: 0 11px; font-size: 13px; }
  .main-menu > a, .menu-item > a { padding: 0 11px; font-size: 14px; }
  .container { width: calc(100% - 20px); border-radius: 16px !important; }
  .content { padding: 22px 15px !important; overflow-x: auto; }
  .footer-container { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 22px; }
  .footer-admin { grid-column: auto; }
  .tbl, .adminTbl, table { font-size: 13px; }
}

/* Community layout */
.container > .board-sidebar { flex: 0 0 220px; }
.board-sidebar .sidebar-menu { margin: 0; padding: 0; list-style: none; }
.board-sidebar .sidebar-menu a { display: flex; align-items: center; gap: 10px; }
.board-sidebar .material-icons { color: var(--brand-500); font-size: 19px; }
.container > .content { min-width: 0; flex: 1 1 auto; }
.notice-list-wrap { width: 100%; margin: 0; padding: 0 !important; border: 0; box-shadow: none !important; }
.container > .content > .notice-list-wrap { background: #fff !important; }
.notice-list-wrap .page-title { margin: 0 0 24px; color: var(--ink) !important; font-family: ns-black,sans-serif; font-size: clamp(26px,3vw,34px); }
.notice-list-wrap .page-title2 { margin: -14px 0 20px; color: var(--muted); }
.notice-list-wrap .page-title2 { display:none; }
.notice-list-wrap .list-header { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.notice-list-wrap .box-container2 { display:flex; align-items:center; gap:8px !important; }
.notice-list-wrap .box-container2.collapsed { display:none !important; }
.notice-list-wrap .filter-toggle { display:inline-flex !important; align-items:center; gap:6px; min-height:38px; padding:7px 13px; color:var(--brand-700); border:1px solid var(--brand-100); border-radius:999px!important; background:var(--brand-50); box-shadow:none; }
.notice-list-wrap .filter-toggle .material-icons { font-size:17px; }
.notice-list-wrap .box4,.notice-list-wrap .box5,.notice-list-wrap .box6 { width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; text-align: center !important; }
.notice-list-wrap .box4 a,.notice-list-wrap .box5 a,.notice-list-wrap .box6 a { display: inline-flex; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; transition: .18s; }
.notice-list-wrap .box4 a:hover,.notice-list-wrap .box5 a:hover,.notice-list-wrap .box6 a:hover { color: #fff; border-color: var(--brand-700); background: var(--brand-700); transform: translateY(-1px); }
.notice-list-wrap .write-btn { float: none !important; margin: 0 !important; color: #fff !important; }
.notice-list-wrap .tbl { width: 100%; }
.notice-list-wrap .tbl tbody tr:not(:first-child) { cursor: pointer; }
.notice-list-wrap .tbl td { padding: 14px 10px; transition: color .18s; }
.notice-list-wrap .tbl tr:hover td { color: var(--brand-700); }
.notice-list-wrap .tbl .board-data-row { cursor: pointer; }
.notice-list-wrap .tbl .board-data-row a { position: relative; z-index: 1; }
.notice-list-wrap .box-container { display: none !important; }
.gym-list-title { margin: 0 0 24px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.055em; color: var(--brand-900) !important; }
.notice-list-wrap #chat,.notice-list-wrap .input-group { display: none; }
.page-Navi { display: flex; justify-content: center; margin-top: 24px; }
.notice-write-wrap .board-body { display:block; min-height:180px; padding:22px !important; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
.notice-write-wrap .board-content-text{display:block;min-height:140px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
.notice-write-wrap { width: 100%; max-width: none; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.notice-content { padding: 32px !important; background: #fff !important; }
.notice-content .notice-write-wrap { width: 100%; max-width: none; }
.notice-content .notice-write-wrap .tbl { table-layout: fixed; }
.notice-content .notice-write-wrap .tbl td,
.notice-content .notice-write-wrap .tbl th { box-sizing: border-box; }
.notice-write-wrap .tbl { width: 100%; margin: 0; background: var(--surface); }
.notice-write-wrap .tbl th { width: 120px; color: var(--brand-900); background: var(--brand-50); }
.notice-write-wrap textarea { min-height: 220px; resize: vertical; }
.notice-write-wrap form[action*="/board/delete"] { display:inline-flex; align-items:center; margin:22px 10px 28px 0; vertical-align:middle; }
.notice-write-wrap form[action*="/board/delete"] + a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 16px; margin:22px 0 28px; border:1px solid var(--line); border-radius:9px; color:var(--ink-soft); background:#fff; text-decoration:none; vertical-align:middle; }
.notice-write-wrap form[action*="/board/delete"] + a:hover { color:#fff; border-color:var(--brand-700); background:var(--brand-700); }
.notice-write-wrap form[action*="/board/delete"] button { min-height:40px; padding:9px 16px; border:1px solid var(--line); border-radius:9px; color:var(--ink-soft); background:#fff; cursor:pointer; }
.notice-write-wrap form[action*="/board/delete"] button:hover { color:#fff; border-color:var(--brand-700); background:var(--brand-700); }
.inputCommentBox { margin-top:4px; padding-top:4px; }
.comment-write { display:flex; align-items:flex-end; gap:12px; margin:0; padding:0; list-style:none; }
.comment-write li { margin:0; padding:0; list-style:none; }
.comment-write li:first-child { flex:1; }
.comment-write .input-item { margin:0; }
.comment-write textarea { display:block; width:100%; min-height:92px; resize:vertical; }

/* Member and gym dashboards share the same surface language. */
.mypage-container{display:flex;width:min(1180px,calc(100% - 40px));min-height:620px;margin:42px auto;padding:0;overflow:hidden;border:1px solid rgba(86,21,34,.07);border-radius:22px;background:#fff;box-shadow:var(--shadow-sm);font-family:ns-r,"Noto Sans KR",sans-serif}
.mypage-container>.sidebar{flex:0 0 230px;width:auto;padding:28px 16px;border-right:1px solid var(--line);background:#fbfaf9}.mypage-container>.sidebar h3{margin:0 10px 20px;color:var(--brand-900)}.mypage-container>.sidebar ul{padding:0;margin:0;list-style:none}.mypage-container>.sidebar li{margin:4px 0}.mypage-container>.sidebar li a{display:block;padding:11px 13px;border-radius:9px;color:var(--ink-soft);transition:.18s}.mypage-container>.sidebar li a:hover{color:var(--brand-700)!important;background:var(--brand-100);transform:translateX(2px)}
.mypage-container>.main-content{min-width:0;flex:1;padding:38px;background:#fff!important;box-shadow:none}.mypage-container>.main-content h2{margin:0 0 24px;color:var(--ink);font-size:28px}.welcome-box{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#fff,#fff5f6);box-shadow:none}.welcome-box img{width:72px;height:72px;margin:0;border-radius:16px;object-fit:cover}.welcome-box p{color:var(--ink-soft)}.gym-photo{width:100%!important;max-width:none!important;height:240px!important;margin-top:22px;border:1px solid var(--line)!important;border-radius:16px!important;background:var(--surface-soft)!important;overflow:hidden}.gym-photo-filled img{width:100%;height:100%;object-fit:cover}
@media(max-width:760px){.mypage-container{width:calc(100% - 20px);flex-direction:column}.mypage-container>.sidebar{flex-basis:auto;border-right:0;border-bottom:1px solid var(--line)}.mypage-container>.sidebar ul{display:flex;gap:4px;overflow-x:auto}.mypage-container>.sidebar li{flex:none}.mypage-container>.main-content{padding:24px 15px}.welcome-box{align-items:flex-start;flex-direction:column}}

/* Member pages use the same neutral MUTGYM maroon palette as the rest of the site. */
.mypage-container,
.mypage-container .main-content { background: var(--surface) !important; color: var(--ink); }
.mypage-container .gym-photo { display: none !important; }
.mypage-container > .sidebar { background: var(--brand-900) !important; border-color: var(--line) !important; }
.mypage-container > .sidebar h3,
.mypage-container > .sidebar a { color: #fff !important; }
.mypage-container > .sidebar a:hover { color: #fff !important; background: var(--brand-700) !important; }
.mypage-container > .sidebar ul li a:hover,
.mypage-container > .sidebar ul li a:hover * { color: #fff !important; background: var(--brand-700) !important; }
.mypage-container .member-info-btn,
.mypage-container button[type="submit"],
.mypage-container input[type="submit"] { background: var(--brand-700) !important; border-color: var(--brand-700) !important; color: #fff !important; }
.mypage-container .member-info-btn:hover,
.mypage-container button[type="submit"]:hover,
.mypage-container input[type="submit"]:hover { background: var(--brand-800) !important; }
.mypage-container input:focus,
.mypage-container select:focus,
.mypage-container textarea:focus { border-color: var(--brand-500) !important; box-shadow: 0 0 0 3px rgba(143,38,57,.12) !important; }
@media(max-width:760px){.container > .board-sidebar{flex-basis:auto}.notice-list-wrap .list-header{align-items:flex-start;flex-direction:column}.notice-list-wrap .list-content{overflow-x:auto}.notice-list-wrap .tbl{min-width:650px}}




