@charset "utf-8";
/* ==========================================================================
   News Page Styles (news.php — 공지/이벤트/FAQ 전용)
   ========================================================================== */

.page-news .search-bar {
  display: none !important;
}
.news-subtype-filter {
  padding: 0 0 16px 0;
  margin-bottom: 8px;
}
.news-subtype-scroll {
  width: 100%;
}
.news-subtype-scroll .swiper-wrapper {
  align-items: center;
}
.btn-news-subtype {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  padding: 0 16px;
  height: 32px;
  border-radius: 30px;
  background-color: #fff;
  color: #666;
  border: 1px solid #e1e1e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-news-subtype:hover {
  border-color: #aaa;
  color: #222;
}
.btn-news-subtype.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  font-weight: 700;
}
.news-wrap {
  padding-top: calc(var(--header-h-default, 94px) + 40px);
  background-color: #fff;
}
.news-tabs {
  background-color: #f8f9fa;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #e9ecef;
}
.news-tabs .nav-link {
  color: #666;
  font-weight: 500;
  border-radius: 40px;
  padding: 12px 20px;
  transition: all 0.2s ease;
}
.news-tabs .nav-link:hover {
  color: #222;
}
.news-tabs .nav-link.active {
  background-color: #444;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}
.news-content-box {
  background-color: #fff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.news-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #eaeaea;
  border-radius: 0;
  background-color: transparent;
}
.news-accordion .accordion-item:last-child {
  border-bottom: none;
}
.news-accordion .accordion-button {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  background-color: transparent;
  box-shadow: none;
  padding: 24px 10px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-accordion .accordion-button::after {
  margin-top: 0;
  background-size: 1.1rem;
}
.news-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: transparent;
}
.news-accordion .accordion-button:focus {
  box-shadow: none;
}
.news-accordion .accordion-body {
  padding: 24px 10px;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  word-break: keep-all;
}
.title-text-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-right: 15px;
}
.news-img-large {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.news-img-small {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.news-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}
.badge-notice {
  background: #e9ecef;
  color: #444;
}
.badge-event {
  background: #ffebee;
  color: #df4759;
}
.badge-faq {
  background: #e3f2fd;
  color: var(--primary-color);
}
@media (max-width: 767px) {
  .news-wrap {
    padding-top: calc(78px + 30px);
    padding-bottom: 60px;
  }
  .news-tabs {
    border-radius: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
  }
  .news-tabs .nav-link {
    border-radius: 12px;
    padding: 12px;
    text-align: left;
  }
  .news-content-box {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .news-accordion .accordion-button {
    padding: 24px 5px;
    font-size: 15px;
    align-items: center;
  }
  .title-text-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 10px;
  }
  .news-badge {
    margin-right: 0;
  }
  .news-title-text {
    line-height: 1.4;
  }
}
