/* 기본 스타일 */
:root {
  --primary-color: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #c8e6c9;
  --secondary-color: #ff9800;
  --danger-color: #f44336;
  --low-danger-color : #989e28;
  --danger-dark: #d63a2f;
  --danger-light: #ffbeb9;
  --warning-color: #ff9800;
  --safe-color: #4caf50;
  --info-color: #2196f3;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --bg-light: #f5f5f5;
  --bg-dark: #333;
  --border-color: #e0e0e0;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  --radius: 15px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background-color: var(--primary-dark);
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: white;
}

.secondary-btn:hover {
  background-color: #e68a00;
}

.outline-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.outline-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.text-btn {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem;
}

.text-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 헤더 스타일 */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo h1 a {
  color: var(--primary-color);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.x-btn {  display: none; }

.login-btn {
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary-dark);
}

.login-btn:hover,
.login-btn.active {
  background-color: var(--primary-color);
  color: white;
}
.logout-btn {
  padding: 0.5rem 1rem;
  background-color: var(--danger-light);
  border-radius: var(--radius);
  color: var(--danger-dark);
}

.logout-btn:hover,
.logout-btn.active {
  background-color: var(--danger-color);
  color: white;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* 히어로 섹션 */
.hero {
  background: #4caf50 !important;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 특징 섹션 */
.features {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* 최근 정보 섹션 */
.recent-info {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.info-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.info-card:hover .info-img img {
  transform: scale(1.05);
}

.danger-badge,
.warning-badge,
.safe-badge,
.low-danger-badge,
.info-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
}

.danger-badge {
  background-color: var(--danger-color);
}

.warning-badge {
  background-color: var(--warning-color);
}

.low-danger-badge {
  background-color: var(--low-danger-color);
}

.safe-badge {
  background-color: var(--safe-color);
}

.info-badge {
  background-color: var(--info-color);
}

.info-content {
  padding: 1.5rem;
}

.info-content h3 {
  margin-bottom: 0.5rem;
}

.info-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(3px);
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* 뉴스레터 섹션 */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* 푸터 */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 페이지 헤더 */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* 콘텐츠 페이지 스타일 */
.content-section {
  padding: 3rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list li a {
  display: block;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.category-list li.active a,
.category-list li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.recent-posts li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts li a {
  display: flex;
  flex-direction: column;
}

.post-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.main-content {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.article-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
}

.article-meta span i {
  margin-right: 0.25rem;
}

.danger-tag,
.warning-tag,
.safe-tag,
.info-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
}

.danger-tag {
  background-color: var(--danger-color);
}

.warning-tag {
  background-color: var(--warning-color);
}

.safe-tag {
  background-color: var(--safe-color);
}

.info-tag {
  background-color: var(--info-color);
}

.article-content {
  line-height: 1.8;
}

.article-img {
  width: 32%;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  max-width: 356px;
  margin-right: 5px;
}

.article-content h3 {
  margin: 1.5rem 0 1rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.article-content ul li {
  margin-bottom: 0.5rem;
}

.info-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box h4 {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.info-box h4 i {
  margin-right: 0.5rem;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tags span,
.share span {
  margin-right: 0.5rem;
  color: var(--text-lighter);
}

.tags a {
  display: inline-block;
  background-color: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.tags a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--bg-light);
  border-radius: 50%;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.share a:hover {
  background-color: var(--primary-color);
  color: white;
}

.related-articles {
  margin-top: 3rem;
}

.related-articles h3 {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
}

.related-card p {
  padding: 0 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* 게시판 스타일 */
.board-section {
  padding: 3rem 0;
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.board-category select,
.board-search select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
}

.board-search form {
  display: flex;
  gap: 0.5rem;
}

.board-search input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  min-width: 200px;
}

.board-search button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.board-search button:hover {
  background-color: var(--primary-dark);
}

.board-table {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.board-table table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.board-table th {
  background-color: var(--bg-light);
  font-weight: 500;
}

.board-table tr:last-child td {
  border-bottom: none;
}

.board-table .title {
  text-align: left;
}

.board-table .num,
.board-table .category,
.board-table .author,
.board-table .date,
.board-table .views {
  white-space: nowrap;
}

.board-table .title a:hover {
  color: var(--primary-color);
}

.notice-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
}

.new-badge {
  display: inline-block;
  background-color: var(--danger-color);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.board-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
}

.page-num,
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.page-num {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.page-num.active,
.page-num:hover {
  background-color: var(--primary-color);
  color: white;
}

.page-arrow {
  background-color: var(--bg-light);
}

.page-arrow:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* 갤러리 스타일 */
.gallery-section {
  padding: 3rem 0;
}

.gallery-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filter li {
  padding: 0.5rem 1rem;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter li.active,
.gallery-filter li:hover {
  background-color: var(--primary-color);
  color: white;
}

.gallery-search form {
  display: flex;
  gap: 0.5rem;
}

.gallery-search input {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  min-width: 260px;
}

.gallery-search button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-search button:hover {
  background-color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--bg-color);
}

.gallery-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-info {
  text-align: center;
  color: white;
  padding: 1rem;
}

.gallery-info h3 {
  margin-bottom: 0.5rem;
}

.gallery-info p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.view-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  transition: var(--transition);
}

.view-more:hover {
  background-color: var(--primary-dark);
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 로그인 페이지 스타일 */
.login-section {
  padding: 4rem 0;
}

.login-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-lighter);
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 0.5rem;
}

.forgot-password a {
  color: var(--primary-color);
}

.forgot-password a:hover {
  text-decoration: underline;
}

.form-submit {
  margin-bottom: 1rem;
}

.form-submit button {
  width: 100%;
}

.social-login {
  margin-bottom: 1.5rem;
}

.social-login h3 {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.social-login h3::before,
.social-login h3::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: var(--border-color);
}

.social-login h3::before {
  left: 0;
}

.social-login h3::after {
  right: 0;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  color: white;
  font-weight: 500;
}

.social-btn i {
  margin-right: 0.5rem;
}

.kakao {
  background-color: #fee500;
  color: #000;
}

.naver {
  background-color: #03c75a;
}

.google {
  background-color: #4285f4;
}

.qq {
  background-color: #12b7f5;
}

.register-link {
  text-align: center;
}

.register-link a {
  color: var(--primary-color);
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

/* 지도 페이지 스타일 */
.map-section {
  padding: 3rem 0;
  margin-bottom: 30px;
}

.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.current-location,
.search-location {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.current-location h3,
.search-location h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.current-location h3 i,
.search-location h3 i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.current-location p {
  margin-bottom: 1rem;
}

.location-search-form {
  display: flex;
  gap: 0.5rem;
}

.location-search-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.map-wrapper {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#kakao-map {
  width: 100%;
  height: 550px;
}

.restaurant-list {
  background-color: var(--bg-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-height: 550px;
}

.restaurant-list h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.restaurant-items {
  overflow-y: auto;
  max-height: 460px;
}
.restaurant-items::-webkit-scrollbar {
  width: 10px;   /* 세로 스크롤바 두께 */
  height: 8px;  /* 가로 스크롤바 두께 */
}
.restaurant-items::-webkit-scrollbar-track {
  background: #f2fbf2;
  border-radius: 4px;
}
.restaurant-items::-webkit-scrollbar-thumb {
  background: #4bae4f;
  border-radius: 4px;
}
.restaurant-items::-webkit-scrollbar-thumb:hover {
  background: #36813a;
}

.restaurant-item {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}

.restaurant-item.safe {
  background-color: rgba(76, 175, 80, 0.1);
  border-left-color: var(--safe-color);
}

.restaurant-item.warning {
  background-color: rgba(255, 152, 0, 0.1);
  border-left-color: var(--warning-color);
}

.restaurant-item.danger {
  background-color: rgba(244, 67, 54, 0.1);
  border-left-color: var(--danger-color);
}

.restaurant-info {
  margin-bottom: 1rem;
}

.restaurant-info h4 {
  margin-bottom: 0.5rem;
}

.restaurant-address,
.restaurant-category {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.safety-rating {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.safety-label {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.rating-stars {
  color: #ffc107;
}

.restaurant-actions {
  display: flex;
  gap: 0.5rem;
}

.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.safety-info {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.safety-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.criteria-item.safe {
  border-top: 4px solid var(--safe-color);
}

.criteria-item.warning {
  border-top: 4px solid var(--warning-color);
}

.criteria-item.danger {
  border-top: 4px solid var(--danger-color);
}

.criteria-icon {
  font-size: 2rem;
}

.criteria-item.safe .criteria-icon {
  color: var(--safe-color);
}

.criteria-item.warning .criteria-icon {
  color: var(--warning-color);
}

.criteria-item.danger .criteria-icon {
  color: var(--danger-color);
}

.criteria-content h3 {
  margin-bottom: 0.5rem;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .map-container {
    grid-template-columns: 1fr;
  }

  #kakao-map {
    height: 400px;
  }

  .restaurant-list {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    margin-bottom: 1rem;
  }

  .board-table th:not(.num):not(.title),
  .board-table td:not(.num):not(.title) {
    display: none;
  }

  .board-table .title {
    text-align: left;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }

  .board-top,
  .board-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-search form {
    width: 100%;
  }

  .board-search input {
    flex: 1;
  }

  .gallery-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-search form {
    width: 100%;
  }

  .gallery-search input {
    flex: 1;
  }
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}

.info-table th,
.info-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

.info-table th {
  background-color: #f9f9f9;
  text-align: left;
  width: 15%;
  font-weight: bold;
  color: #333;
}

.info-table td {
  background-color: #fff;
  color: #555;
}
#toast {
    position: fixed;
    bottom: 130px;
    left: 50%;
    padding: 15px 20px;
    transform: translate(-50%, 10px);
    border-radius: 30px;
    overflow: hidden;
    font-size: .8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s, visibility .5s, transform .5s;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    z-index: 10000;
}

#toast.reveal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0)
}

.share-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}


@media (max-width: 768px) {
  nav {
      width: 45%;
      background: rgb(255, 255, 255);
      padding: 5px 0px 25px 10px;
      position: absolute;
      right: 0px;
      top: 0px;
      height: auto;
  }
  .x-btn {
      display: block;
  }

  nav ul {
      display: block;
      margin-top: 95px;
  }

  nav ul li {
     line-height: 43px;
  }
}
