body {
  margin: 0;
  padding: 0;
  font-family: 'Malgun Gothic', 'Arial', sans-serif;
  background: #fcfcfc;
}

.profile-container {
  max-width: 520px;
  margin: 60px auto;
  background: #fff9f1;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb98026;
  padding: 2.8em 2.1em 2.2em 2.1em;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.3em;
  gap: 18px;
}
.profile-img-area {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffe5d2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #eee;
  object-fit: cover;
}
.profile-info h2 {
  font-size: 1.3em;
  margin: 0 0 7px 0;
  color: #a75019;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-username {
  color: #8a6f4d;
  font-size: 1em;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  width: 230px;
  margin: 1.1em 0 1.6em 0;
  font-size: 1.13em;
}
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5em;
}
.profile-btn {
  background: #c93800;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: 0.13s;
}
.profile-btn.danger {
  background: #8a1313;
}
.profile-btn:hover {
  background: #a75019;
  color: #fff;
}
.home-btn {
  background: #ffb87c;
  color: #7d4107;
  border-radius: 8px;
  padding: 8px 17px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  margin-left: 7px;
  transition: 0.13s;
}
.home-btn:hover {
  background: #f5ac60;
  color: #a75019;
}
.gm-badge {
  display: inline-block;
  background: #c93800;
  color: #fff;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.98em;
  font-weight: bold;
  letter-spacing: 1px;
}
.main-banner h1 {
  font-size: 3.0em;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b44c11;
  text-shadow: 0 2px 9px #fff7c6cc, 0 1px 0 #b44c11;
  margin: 0 0 16px 0;
}
.main-banner .main-strong {
  color: #b44c11;
}
.main-banner p {
  font-size: 1.20em;
  color: #7d4b0f;
  font-weight: 600;
  margin: 180px 0 0 0;
  text-shadow: 0 1px 6px #fff3, 0 1px 0 #eee;
}
.board-list {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 2em;
  flex-wrap: wrap;
}
.board-card {
  background: #fafafa;
  box-shadow: 0 4px 16px #ffc19e33;
  border-radius: 22px;
  width: 300px;
  padding: 2em 1em;
  text-align: center;
  margin-bottom: 2em;
}
.board-title {
  color: #c93800;
  font-size: 1.3em;
  margin-bottom: 0.7em;
  font-weight: bold;
}
.board-card a {
  color: #0052cc;
  text-decoration: underline;
  font-weight: bold;
}
.board-table-wrap {
  max-width: 1200px;
  margin: 32px auto 0 auto;
}
.board-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.board-table-title {
  font-size: 1.5em;
  color: #c93800;
  font-weight: bold;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px; 
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px #ffdec333;
}
.board-table th, .board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #ffeed9;
  text-align: center;
}
.board-table th {
  background: #fff5e6;
  color: #a75019;
  font-weight: bold;
  font-size: 1.1em;
}
.board-table tr.notice {
  background: #ffe7c6;
}
.board-table-empty {
  color: #bbb;
  padding: 24px 0;
  text-align: center;
  font-size: 1.10em;
}
.write-btn {
  background: #ffb87c;
  color: #7d4107;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: 0.13s;
}
.write-btn:hover {
  background: #f5ac60;
  color: #fff;
}
/* 로고 클릭 스타일 */
.logo-link {
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  margin-right: 1em;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.logo-link:hover {
  color: #ffb87c;
}

/* 카드 hover 효과 */
.board-card {
  transition: transform 0.18s, box-shadow 0.18s;
}
.board-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 10px 28px #ffcfa933;
}

/* 버튼 스타일 개선 */
.board-link {
  color: #0052cc;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1.05em;
  display: inline-block;
  margin-top: 7px;
  padding: 6px 18px;
  border-radius: 6px;
  background: #fff3e5;
  transition: background 0.18s;
}
.board-link:hover {
  background: #ffb87c;
  color: #fff;
  text-decoration: none;
}
.top-nav {
  background: #207c43;   /* 밝은 녹색 계열 (원하면 더 진하게도 가능) */
  color: #fff;
  padding: 1em 2em;
  display: flex; align-items: center;
}
.nav-btn {
  background: #ff3636;    /* 빨강 */
  color: #222;              /* 글씨 검정 */
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  margin: 0 7px 0 0;
  font-size: 1em;
  box-shadow: 0 2px 8px #c9380022;
  text-decoration: none;
  transition: background 0.16s, color 0.13s, box-shadow 0.13s;
  display: inline-block;
}
.nav-btn:hover, .nav-btn.active {
  background: #fff;      /* 진한 빨강 */
  color: #222;               /* 글씨 검정 */
  box-shadow: 0 4px 12px #c9380035;
}
.nav-btn:last-child {
  margin-right: 0;
}
.top-nav {
  background: #2ecc40
  color: #222;             /* 글씨 검정 */
  padding: 1em 2em;
  display: flex; align-items: center;
}
.top-nav .nav-btn-home {
  background: #ff3636; 
  color: #222;
  margin-right: 17px;
  border-radius: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 8px 22px;
  border: 2px solid #ffbaba;
}
.top-nav .nav-btn-home:hover {
  background: #222;
  color: #a31010;
  border-color: #ff9e9e;
}
.write-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  margin-top: 36px;
}
.write-card {
  background: #fff9f1;
  box-shadow: 0 4px 20px #ffc19e40;
  border-radius: 18px;
  padding: 2.4em 2em 1.8em 2em;
  min-width: 410px;
  max-width: 99vw;
  width: 430px;
  margin-bottom: 60px;
}
.write-card h2 {
  font-size: 1.7em;
  color: #a75019;
  text-align: center;
  margin-bottom: 1.4em;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2em;
}
.write-card input[type="text"], .write-card textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid #ffbf8a;
  font-size: 1.07em;
  background: #fff;
  margin-top: 2px;
  resize: none;
}
.write-btns {
  display: flex;
  gap: 13px;
  margin-top: 1em;
  justify-content: flex-end;
}
.write-btn {
  background: #c93800;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 26px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.16s;
}
.write-btn:hover { background: #a75019; color: #fff; }
.home-btn {
  background: #ffc497;
  color: #a75019;
  border-radius: 7px;
  padding: 9px 23px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.15s;
}
.home-btn:hover {
  background: #fa9;
  color: #a75019;
}
.view-container {
  max-width: 560px;
  margin: 60px auto;
  background: #fff9f1;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb98026;
  padding: 2.5em 2.1em 2.2em 2.1em;
}
.view-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.view-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #a75019;
  margin-bottom: 1.0em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.notice-badge {
  background: #c93800;
  color: #fff;
  border-radius: 7px;
  font-size: 0.8em;
  padding: 3px 10px;
  margin-left: 7px;
}
.view-meta {
  display: flex;
  justify-content: space-between;
  color: #a58870;
  font-size: 1em;
  margin-bottom: 1.2em;
}
.view-content {
  color: #3a2515;
  font-size: 1.18em;
  padding: 1.2em 0 1.6em 0;
  border-bottom: 1px solid #ffe5d2;
  min-height: 80px;
  white-space: pre-line;
}
.view-actions {
  margin-top: 1.6em;
  text-align: right;
}
.center-container {
  min-height: 67vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff9f1;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb98026;
  padding: 2.5em 2.5em 2em 2.5em;
  max-width: 350px;
  width: 100%;
}

.login-card h2 {
  color: #a75019;
  text-align: center;
  margin-bottom: 1.2em;
}

.form-group {
  margin-bottom: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.form-group label {
  font-weight: bold;
  color: #a75019;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #ffd6b0;
  outline: none;
  font-size: 1em;
}

.login-btn {
  width: 100%;
  background: #ff6243;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.08em;
  font-weight: bold;
  margin-top: 3px;
  cursor: pointer;
  transition: 0.13s;
  letter-spacing: 1px;
}

.login-btn:hover {
  background: #a75019;
  color: #fff;
}

.login-links {
  text-align: center;
  margin-top: 1.2em;
}

.login-links a {
  color: #a75019;
  font-weight: bold;
  text-decoration: none;
  margin: 0 8px;
}

.login-links a:hover {
  text-decoration: underline;
  color: #ff6243;
}

.login-error {
  background: #ffd5c7;
  color: #b90000;
  text-align: center;
  padding: 7px 0;
  border-radius: 7px;
  margin-bottom: 1.3em;
  font-size: 0.98em;
}
.admin-card {
  background: #fff9f1;
  border-radius: 16px;
  box-shadow: 0 4px 24px #ffb98026;
  padding: 2.8em 2.1em 2.2em 2.1em;
  max-width: 820px;
  margin: 48px auto;
}

.admin-card h2 {
  color: #a75019;
  margin-bottom: 1.5em;
  text-align: center;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px #ffb98013;
}

.admin-table th, .admin-table td {
  padding: 11px 10px;
  text-align: center;
}

.admin-table th {
  background: #ffe7c7;
  color: #a75019;
  font-size: 1.07em;
}

.admin-table tbody tr:nth-child(even) {
  background: #fff5ec;
}
.admin-table tbody tr:nth-child(odd) {
  background: #fff;
}
.grade-badge {
  display: inline-block;
  font-weight: bold;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 1em;
}
.grade-badge.gm { background:#c93800; color:#fff; }
.grade-badge.admin { background:#479ed2; color:#fff; }
.grade-badge.family { background:#7ad358; color:#fff; }
.grade-badge.newbie { background:#f2c44c; color:#555; }

.admin-btn {
  background: #ffb87c;
  color: #a75019;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-weight: bold;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-btn:hover { background:#a75019; color:#fff; }
.admin-btn.danger { background: #e95a3b; color: #fff; }
.admin-btn.danger:hover { background: #b90000; color:#fff; }
.board-card-wrap {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.2em;
}
.edit-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  display: inline-block;
}

.edit-btn:hover {
  background: #e26c00;
  color: #fff;
}
.delete-btn {
  background: #f44336;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
}

.delete-btn:hover {
  background: #b71c1c;
  color: #fff;
}
.edit-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  display: inline-block;
}
.edit-btn:last-child { margin-right: 0; }
.edit-btn:hover {
  background: #e26c00;
  color: #fff;
}
.thead-row-bg {
  background: #fff4e0 !important;
}
.footer-bg {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 270px;         /* 높이 조절 */
  background: url('/baram.png') center bottom repeat-x;
  background-size: auto 220px;   /* 이미지 높이 조절 */
  z-index: 0;
  pointer-events: none;  /* 하단 클릭 안되게 */
}
/* 예시: 메인 배너와 게시판 카드 */
.main-banner {
  margin: 0 auto 40px auto;
  max-width: 500px;           /* 원하는 만큼 넓혀도 됨 (예: 900px, 1000px 등) */
  min-width: 420px;
  height: 280px;
  width: 100%;
  text-align: center;
  padding: 46px 0 32px 0;
  background:
    linear-gradient(rgba(255,244,220,0), rgba(255,244,220,0)),
    url('/baram1.png') center center / cover no-repeat;
  border-radius: 0 0 22px 22px;
  font-family: 'Pretendard','Malgun Gothic',sans-serif;
  box-shadow: 0 8px 32px #d6a26a22;
  position: relative;
  z-index: 2;
}
<style>
  .comment-del-btn {
    margin-left: 12px;
    background: #ef5350;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 13px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s;
  }
  .comment-del-btn:hover {
    background: #c62828;
  }
.board-list {
    /* 기존 코드 유지 + 아래 라인 추가 */
    padding-bottom: 80px; /* 하단 고정이미지 높이보다 살짝 크게! */
}
.board-list,
.board-table-wrap {
    padding-bottom: 290px;
    position: relative;
    z-index: 1;
}

</style>

