/* css파일 */


html.no-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

html.no-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  background: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}


body {

  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

p {
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* App Wrapper */
.app-wrapper {
  display: flex;
  justify-content: flex-end;
  min-height: 100vh;
  position: relative;
  padding-right: 15%;
}

/* App Container */
.app-container {
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-container::-webkit-scrollbar {
  display: none;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #1E3A8A;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo {
  max-width: 100%;
  height: auto;
  /* 비율 유지 */
}

/* Login Container */
.login-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.g_id_signin {
  width: 240px;
  height: 44px;
  min-height: 44px;
  display: inline-block;
  position: relative;
}

.g_id_signin iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
}

strong {
  color: #ff0404;
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
}

.user-info span {
  margin-right: 10px;
  font-weight: 500;
}

.mypage-link {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s ease;
}

.mypage-link:hover {
  color: #ddd;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 10px 5px 10px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 10px;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* Welcome Banner */
.welcome-banner {
  text-align: center;
  margin: 20px 0 30px;
}

.welcome-banner h1 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

h1 {
  font-size: 1rem;
  color: #003087;
}

h2 {
  font-size: 1rem;
  color: #4A4A4A;
}

h3 {
  font-size: 1rem;
  color: #e45c27;
}

.welcome-banner p {
  color: #777;
  font-size: 16px;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 32px;
  color: #1E3A8A;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.service-card p {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

/* Notice Section */
.notice-section {
  margin-top: 30px;
}

.notice-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.notice-list {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.notice-item:last-child {
  border-bottom: none;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 0 10px;
}

.search-bar input {
  width: 70%;
  max-width: 300px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

.search-bar button {
  padding: 10px 15px;
  background: #1E3A8A;
  color: #fff;
  border-radius: 0 5px 5px 0;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #1E3A8A;
}

/* Write Button */
#writeBtn {
  padding: 10px 15px;
  background: #1E3A8A;
  color: #fff;
  border-radius: 5px;
  margin-left: 5px;
  transition: background 0.3s ease;
}

#writeBtn:hover {
  background: #1E3A8A;
}

/* Tags Container */
.tags-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  flex-wrap: wrap;
  max-height: 50px;
}

.tag-nav,
.recent-searches {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tag {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tag.active {
  background: #1E3A8A;
  color: #fff;
}

.tag:hover {
  background: #ddd;
}

.tag.active:hover {
  background: #1E3A8A;
}

/* News Content */
.news-content {
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 200px;
  font-size: 10px;
}

.news-content h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.news-content p {
  font-size: 16px;
  color: #666;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 480px;
  height: 60px;
  background: #1E3A8A;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 100;
  right: 15%;

}

.nav-item {
  flex: 1;
  text-align: center;

}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #ffffff;
  padding: 8px 0;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
  color:#ffffff
}

.nav-item.active a {
  color: #e9b200;
}

.nav-item.active i {
  color: #e9b200;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-outline {
  border: 1px solid #1E3A8A;
  color: #1E3A8A;
  background: transparent;
}

.btn-outline:hover {
  background: #1E3A8A;
  color: #fff;
}

/* Editor Container */
.editor-container {
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 5px 15px;
}

.editor-container h2 {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Title Group */
.title-group {
  position: relative;
}

.title-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.title-input-wrapper input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.title-input-wrapper input[type="text"]:focus {
  border-color: #1E3A8A;
  outline: none;
}

#titleCharCount {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #777;
}

/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 6px;
  color: #555;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.toolbar-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.toolbar-btn i {
  font-size: 16px;
}

/* Content Editor */
.content-editor {
  width: 100%;
  height: 500px;
  max-height: 500px;
  min-height: 250px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  background: #fafafa;
  overflow-y: auto;
  resize: none;
  transition: border-color 0.3s ease;
}

.content-editor:empty:before {
  content: attr(placeholder);
  color: #aaa;
  font-style: italic;
}

.content-editor:focus {
  border-color: #1E3A8A;
  outline: none;
  background: #fff;
}

.content-editor img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 4px;
}

.content-editor iframe {
  margin: 10px 0;
  border-radius: 4px;
}

/* Submit Button */
.submit-btn {
  background: #1E3A8A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #1E3A8A;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* News Post Styles */
.post-container {
  padding: 0px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;

  font-size: 0px;
  line-height: 1.4;
  border-radius: 6px;
  margin: 5px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-profile-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.nickname-text {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.nickname-text:hover {
  color: #1E3A8A;
}

.date-text {

  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.delete-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #d9534f;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.delete-btn:hover {
  background: #e9ecef;
  color: #c9302c;
}

.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #e74c3c;
  background: #fff;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.report-btn i {
  font-size: 12px;
}

.post-body {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-title {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;

}

.post-content {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border-left: 3px solid #1E3A8A;


}

.post-content img {
  max-width: 100%;
  height: auto;
}



/* 스타일 2: 그리드 보더 */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
  border: 1px solid #ccc; /* 테이블 전체 외곽선 */
}

/* 테이블 헤더(th)와 셀(td)에 대한 공통 스타일 */
table th,
table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ccc; /* 모든 셀에 테두리 적용 */
}

/* 헤더(th) 스타일 */
table th {
  background-color: #f2f2f2; /* 헤더 배경색 */
  font-weight: 600;
}

/* 짝수 번째 행에 배경색 적용 (가독성 향상) */
table tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}



.post-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 5px;
}

.action-btn {
  padding: 5px 10px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #2980b9;
}

.action-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.action-btn span {
  font-size: 12px;
}

.post-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.nav-btn {
  padding: 10px 15px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: #27ae60;
}

.nav-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Comment Section */
.comment-section {
  margin: 0 0px 100px;
}

.comment-input {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical;
}

.comment-button {
  padding: 8px 15px;
  background-color: #1E3A8A;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  float: right;
}

.comment-button:hover {
  background-color: #1E3A8A;
}

.comments-list {
  margin-top: 20px;
}

/* Comment Styles */
.comment {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 0px;

}

.comment-profile-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.comment-nickname {
  font-size: 10px;
  font-weight: bold;
  margin-right: 5px;
  cursor: pointer;
}

.comment-level {
  color: #666;
  margin-right: 5px;
  font-size: 10px;
}

.comment-time {
  color: #999;
  font-size: 10px;
}

.comment-report {
  margin-left: auto;
  color: #ff4444;
  cursor: pointer;
  font-size: 10px;
}

.comment-content {
  margin-left: 40px;
  word-wrap: break-word;
  font-size: 13px;

}

/* Nickname Card Styles */
.nickname-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 300px;
  width: 90%;
}

.nickname-card-content {
  text-align: center;
}

.nickname-profile-icon {
  font-size: 50px;
  color: #3498db;
  margin-bottom: 10px;
}

.nickname-profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}

.nickname-card-nickname {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.nickname-card-level {
  font-size: 18px;
  color: #e74c3c;
  margin-bottom: 10px;
}

.nickname-card-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #34495e;
}

.nickname-card-details strong {
  color: #2980b9;
}

.nickname-card button {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #1E3A8A;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nickname-card button:hover {
  background-color: #1E3A8A;
}

/* News Table Styles */
.news-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.news-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.news-table th:nth-child(1) {
  text-align: center;
  width: 7%;
}

.news-table th:nth-child(2) {
  text-align: center;
  width: 50%;
}

.news-table th:nth-child(3) {
  text-align: center;
  width: 15%;
}

.news-table th:nth-child(4),
.news-table th:nth-child(5),
.news-table th:nth-child(6) {
  width: 4%;
  text-align: center;
}

.news-table th,
.news-table td {
  padding: 10px 0px;
  text-align: center;
  border-bottom: 1px solid #ddd;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.title-text {
  font-size: 14px;
  color: #000;
  cursor: pointer;
  text-align-last: left;
}

.title-text:hover {
  color: #1E3A8A;
  text-decoration: underline;
}

.news-table .stat {
  font-size: 10px;
  color: #666;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination button {
  padding: 8px 12px;
  background-color: #1E3A8A;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.pagination button:hover:not(:disabled):not(.active) {
  background-color: #1E3A8A;
}

.pagination .page-btn.active {
  background-color: #ffcc00;
  color: #2c3e50;
  font-weight: bold;
}

/* Ad Container */
.ad-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  margin: 20px 0;
}

.ad-container ins.adsbygoogle {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* News Post */
.news-post {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
  .app-wrapper {
    padding-right: 0;
    justify-content: center;
  }

  .app-container {
    max-width: 100%;
    box-shadow: none;
  }

  .bottom-nav {
    width: 100%;
    right: 0;
  }

  .welcome-banner h1 {
    font-size: 18px;
  }

  .welcome-banner p {
    font-size: 14px;
  }

  .header {
    padding: 15px 10px;
  }

  .login-container {
    right: 10px;
  }

  .user-info {
    font-size: 12px;
  }

  .search-bar input {
    width: 60%;
  }

  .tags-container {
    gap: 5px;
    padding: 0 10px;
    justify-content: center;
    max-height: 50px;
  }

  .tag-nav,
  .recent-searches {
    gap: 5px;
  }

  .editor-container {
    margin: 5px 5px;
    padding: 5px 5px;
  }

  .editor-container h2 {
    font-size: 15px;
  }

  .title-input-wrapper input[type="text"] {
    padding: 10px;
    font-size: 14px;
  }

  .content-editor {
    height: 300px;
    max-height: 300px;
    min-height: 200px;
    font-size: 14px;
  }

  .toolbar-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .submit-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .post-header {
    padding: 6px 10px;
    gap: 6px;
  }

  .post-meta {
    gap: 6px;
  }

  .author-profile-image {
    width: 20px;
    height: 20px;
  }

  .nickname-text {
    font-size: 12px;
  }

  .date-text {
    font-size: 12px;
  }

  .delete-btn,
  .report-btn {
    padding: 4px 6px;
    font-size: 12px;
  }

  .report-btn i {
    font-size: 12px;
  }

  .post-body {
    padding: 0px;
    margin-top: 10px;
  }

  .post-title {
    font-size: 18px;
    text-align: center;
  }

  .post-actions {
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .action-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  .nav-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .action-btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  .tag {
    font-size: 10px;
  }

  .news-table th,
  .news-table td {
    padding: 5px 0px;
  }

  .news-table .stat {
    font-size: 8px;
  }

  .title-text {
    font-size: 11px;
  }

  .nickname-text {
    font-size: 8px;
  }

  .date-text {
    font-size: 8px;
  }

  .pagination button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .ad-container {
    padding: 0;
  }

  .ad-container ins.adsbygoogle {
    width: 100%;
    max-width: 100%;
  }
}
