/* General Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background-color: #f4f6f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.header {
  background-color: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-size: 24px;
  font-weight: bold;
  color: #2a7de1;
}

.header__nav {
  display: flex;
  gap: 20px;
}

.header__nav a {
  font-size: 16px;
  color: #555;
  transition: color 0.3s;
}

.header__nav a:hover {
  color: #2a7de1;
}

/* Banner Section */
.banner-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.banner {
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  font-size: 18px;
  color: #888;
}

/* Ranking Section */
.ranking-section {
  margin-top: 40px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ranking-category {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ranking-category__title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #2a7de1;
  padding-bottom: 10px;
}

.ranking-category__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking-category__list li {
  margin-bottom: 10px;
}

.ranking-category__list a {
  display: block;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.ranking-category__list a:hover {
  background-color: #f0f4ff;
  color: #2a7de1;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 10px; /* Reduce padding on smaller screens */
  }

  .header__inner {
    flex-direction: column;
    gap: 15px; /* Adjust gap for vertical stacking */
    text-align: center;
  }

  .header__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Adjust gap for wrapped navigation items */
  }

  .header__nav a, .dropbtn {
    font-size: 14px; /* Smaller font size for nav links */
    padding: 8px 12px;
  }

  .banner-section {
    grid-template-columns: 1fr; /* Stack banners vertically */
    gap: 15px;
  }

  .banner {
    padding: 20px; /* Reduce banner padding */
  }

  .ranking-grid {
    grid-template-columns: 1fr; /* Stack ranking categories vertically */
  }

  .ranking-category {
    padding: 15px; /* Adjust padding for categories */
  }

  .ranking-category__title {
    font-size: 18px; /* Smaller title font size */
    margin-bottom: 15px;
  }

  .ranking-category__list li {
    margin-bottom: 8px;
  }

  .notice-section, .notice-form-section,
  .freeboard-list-section, .freeboard-detail-section, .freeboard-form-section {
    padding: 20px; /* Adjust section padding */
    margin-top: 20px;
  }

  .notice-section__title, .notice-form-section__title,
  .freeboard-list-section__title, .freeboard-detail-section__title, .freeboard-form-section__title {
    font-size: 24px; /* Smaller title font size */
    margin-bottom: 15px;
  }

  /* Make tables responsive by allowing horizontal scroll */
  .notice-table-container, .freeboard-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
  }

  .notice-table, .freeboard-table {
    width: 600px; /* Minimum width to prevent content from collapsing too much */
    min-width: max-content; /* Ensure table content is not cut off */
  }

  .action-btn {
    width: 100%; /* Full width buttons */
    margin-right: 0;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  .post-actions {
    text-align: center; /* Center actions on mobile */
  }

  .form-group {
    width: 100%; /* Forms take full width */
  }

  .pagination a {
    padding: 6px 12px; /* Smaller pagination buttons */
    font-size: 14px;
  }
}




/* Sitemap Section */

.sitemap-section {

  background-color: #fff;

  border-radius: 8px;

  padding: 40px;

  margin-top: 40px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}



.sitemap-section__title {

  font-size: 28px;

  font-weight: bold;

  color: #333;

  margin-bottom: 20px;

  text-align: center;

}



.sitemap-list {

  list-style: none;

  padding: 0;

  margin: 0;

  text-align: center;

}



.sitemap-list li {

  margin-bottom: 15px;

}



.sitemap-list a {

  font-size: 18px;

  color: #2a7de1;

  transition: color 0.3s;

}



.sitemap-list a:hover {

  color: #1a5bb5;

}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  background-color: transparent;
  color: #555;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.dropbtn:hover {
  color: #2a7de1;
}

/* Notice Section */
.notice-section, .notice-form-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notice-section__title, .notice-form-section__title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Notice Table */
.notice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.notice-table th, .notice-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}

.notice-table thead th {
  background-color: #f4f6f9;
  font-weight: bold;
}

.notice-table tbody tr:hover {
  background-color: #f0f4ff;
}

.notice-table a {
  color: #2a7de1;
}

.notice-table a:hover {
  text-decoration: underline;
}

/* Notice Form */
.notice-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input, .form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.form-group textarea {
  resize: vertical;
}

.form-group button {
  background-color: #2a7de1;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-group button:hover {
  background-color: #1a5bb5;
}

/* Free Board Section */
.freeboard-list-section, .freeboard-detail-section, .freeboard-form-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.freeboard-list-section__title, .freeboard-detail-section__title, .freeboard-form-section__title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Action Buttons */
.action-btn {
  background-color: #2a7de1;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-right: 10px;
}

.action-btn:hover {
  background-color: #1a5bb5;
}

.action-btn.cancel-btn {
  background-color: #6c757d;
}

.action-btn.cancel-btn:hover {
  background-color: #5a6268;
}

/* Free Board Table */
.freeboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.freeboard-table th, .freeboard-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
}

.freeboard-table thead th {
  background-color: #f4f6f9;
  font-weight: bold;
}

.freeboard-table tbody tr:hover {
  background-color: #f0f4ff;
}

.freeboard-table a {
  color: #2a7de1;
}

.freeboard-table a:hover {
  text-decoration: underline;
}

/* Post Detail */
.post-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.post-content {
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-actions {
  text-align: right;
  margin-top: 20px;
}

/* Free Board Form */
.freeboard-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Pagination */
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  color: #2a7de1;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 4px;
}

.pagination a.active {
  background-color: #2a7de1;
  color: white;
  border: 1px solid #2a7de1;
}

.pagination a:hover:not(.active) {
  background-color: #f1f1f1;
}
