/* =============================================
   Community Pages - 커뮤니티
   공지사항, 갤러리, FAQ
   ============================================= */

/* Hide community sidebar (legacy classes) */
.sidebar-title,
.sidebar-menu,
.subpage-layout .sidebar-nav,
aside.sidebar-nav {
  display: none !important;
}
.subpage-layout .subpage-container,
.subpage-container {
  display: block;
}

/* Community page hero compatibility */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  width: 100%;
}
.page-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }

@media (max-width: 767px) {
  .page-hero-title { font-size: 1.75rem; }
  .page-hero-content { padding-bottom: 2rem; }
}


/* ── Board Category Tabs ── */
.board-category-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  background: var(--secondary);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.board-cat-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}
.board-cat-btn::before {
  content: '•';
  margin-right: 0.375rem;
  opacity: 0.5;
}
.board-cat-btn:hover {
  color: var(--primary);
  background: hsl(var(--primary-hsl) / 0.05);
}
.board-cat-btn.active {
  color: var(--primary);
  font-weight: 600;
  background: hsl(var(--primary-hsl) / 0.08);
}
.board-cat-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

@media (max-width: 639px) {
  .board-cat-btn { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
}

/* ── Board Toolbar ── */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.board-total {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.board-total strong {
  color: var(--primary);
  font-weight: 700;
}

.board-search {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.board-search select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
  font-size: 0.8125rem;
  background: var(--card);
  color: var(--foreground);
  min-width: 80px;
}
.board-search input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-right: none;
  font-family: inherit;
  font-size: 0.8125rem;
  min-width: 160px;
  color: var(--foreground);
}
.board-search input::placeholder { color: var(--muted-foreground); }
.board-search button {
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.board-search button svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}
.board-search button:hover {
  background: var(--muted);
}

@media (max-width: 639px) {
  .board-toolbar { flex-direction: column; align-items: flex-start; }
  .board-search { width: 100%; }
  .board-search input { flex: 1; min-width: 0; }
}

/* ── Board Table ── */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border-top: 2px solid var(--foreground);
}
.board-table thead {
  background: var(--secondary);
}
.board-table th {
  padding: 0.75rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.board-table th.col-no { width: 60px; }
.board-table th.col-date { width: 110px; }
.board-table th.col-views { width: 65px; }
.board-table th.col-attach { width: 50px; }

.board-table td {
  padding: 0.75rem 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
}
.board-table td.col-title {
  text-align: left;
  color: var(--foreground);
  font-weight: 400;
}
.board-table td.col-title a {
  transition: color 0.2s;
  display: inline;
}
.board-table td.col-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.board-table tr:hover {
  background: var(--muted);
}

/* Pinned row */
.board-table tr.is-pinned {
  background: hsl(45, 100%, 97%);
}
.board-table tr.is-pinned:hover {
  background: hsl(45, 100%, 94%);
}
.pin-icon {
  font-size: 1rem;
}

/* Attachment icon */
.attach-icon {
  font-size: 0.875rem;
  cursor: pointer;
}

/* New badge */
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: hsl(0, 84%, 55%);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  margin-left: 0.375rem;
  vertical-align: middle;
  line-height: 1;
}

/* Responsive: hide columns on mobile */
@media (max-width: 767px) {
  .board-table th.col-no,
  .board-table td.col-no,
  .board-table th.col-views,
  .board-table td.col-views,
  .board-table th.col-attach,
  .board-table td.col-attach {
    display: none;
  }
  .board-table td.col-title {
    font-size: 0.8125rem;
  }
}

/* ── Legacy Notice styles (keep for backward compat) ── */
.notice-search {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.notice-search select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--card);
  color: var(--foreground);
  min-width: 120px;
}

.notice-search input {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
}

.notice-search button {
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}
.notice-search button:hover { opacity: 0.9; }

/* Notice Table */
.notice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.notice-table thead {
  background: var(--secondary);
}

.notice-table th {
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

@media (min-width: 640px) {
  .notice-table th { padding: 0.875rem 1rem; font-size: 0.8125rem; }
}

.notice-table td {
  padding: 0.75rem 0.5rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .notice-table td { padding: 0.875rem 1rem; font-size: 0.875rem; }
}

.notice-table td.title-cell {
  text-align: left;
  color: var(--foreground);
  font-weight: 400;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .notice-table td.title-cell { max-width: none; white-space: normal; }
}

.notice-table td.title-cell a {
  transition: color 0.2s;
}
.notice-table td.title-cell a:hover {
  color: var(--primary);
}

/* Hide less important columns on mobile */
@media (max-width: 639px) {
  .notice-table .col-num,
  .notice-table .col-views {
    display: none;
  }
}

.notice-table tr:hover {
  background: var(--muted);
}

.notice-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-right: 0.5rem;
}
.notice-badge.important {
  background: hsl(0, 84%, 95%);
  color: hsl(0, 84%, 45%);
}
.notice-badge.new {
  background: hsl(270, 60%, 95%);
  color: var(--primary);
}
.notice-badge.general {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.pagination .active {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

/* Notice Detail */
.notice-detail-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.notice-detail-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.notice-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}

.notice-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.notice-detail-body {
  min-height: 300px;
  padding: 2rem 0;
  line-height: 1.9;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.notice-nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.notice-nav a:last-child { border-bottom: none; }
.notice-nav a:hover { background: var(--muted); }

.notice-nav .nav-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 4rem;
  font-size: 0.8125rem;
}

/* ── Suggestion Info Box ── */
.suggest-info-box {
  background: hsl(280, 30%, 96%);
  border: 1px solid hsl(280, 20%, 90%);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.suggest-info-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.suggest-info-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: hsl(280, 15%, 45%);
  margin-bottom: 1rem;
}
.suggest-info-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.suggest-info-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: hsl(280, 15%, 45%);
}
.suggest-info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.suggest-submit-btn {
  display: inline-block;
  padding: 0.625rem 1.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.suggest-submit-btn:hover {
  background: hsl(280, 50%, 22%);
}

/* ── Counseling Form ── */
.counsel-info-box {
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  background: var(--card);
}
.counsel-info-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.counsel-info-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.counsel-info-list {
  list-style: disc;
  padding-left: 1.25rem;
}
.counsel-info-list li {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

/* Section */
.counsel-section {
  margin-bottom: 2.5rem;
}
.counsel-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--foreground);
  margin-bottom: 0;
}
.counsel-note {
  font-size: 0.8125rem;
  color: hsl(0, 70%, 50%);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Table rows */
.counsel-table {
  width: 100%;
}
.counsel-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 3rem;
}
.counsel-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: center;
  padding: 0.75rem 0.5rem;
}
.counsel-label .required {
  color: hsl(0, 70%, 50%);
}
.counsel-value {
  flex: 1;
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Inputs */
.counsel-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  width: 100%;
}
.counsel-input:focus {
  outline: none;
  border-color: var(--primary);
}
.counsel-select {
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  min-width: 60px;
}
.counsel-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  resize: vertical;
}
.counsel-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Radio */
.counsel-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  margin-right: 0.75rem;
}
.counsel-radio input[type="radio"] {
  accent-color: var(--primary);
}

/* Date group */
.counsel-date-group span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Privacy table */
.counsel-privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-top: 2px solid var(--foreground);
}
.counsel-privacy-table th {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.counsel-privacy-table td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Privacy notice */
.counsel-privacy-notice {
  text-align: center;
  margin-bottom: 1rem;
}
.counsel-privacy-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.counsel-privacy-desc {
  font-size: 0.8125rem;
  color: hsl(0, 70%, 50%);
}
.counsel-agree-check {
  text-align: center;
  margin-bottom: 1rem;
}
.counsel-agree-check label {
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Buttons */
.counsel-btn-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.counsel-submit-btn {
  padding: 0.625rem 1.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.counsel-submit-btn:hover { opacity: 0.9; }
.counsel-cancel-btn {
  padding: 0.625rem 1.75rem;
  background: hsl(0, 65%, 51%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.counsel-cancel-btn:hover { opacity: 0.9; }

@media (max-width: 639px) {
  .counsel-row { flex-direction: column; align-items: flex-start; }
  .counsel-label { width: 100%; text-align: left; padding: 0.5rem 0.75rem 0.25rem; }
  .counsel-value { padding: 0.25rem 0.75rem 0.625rem; width: 100%; }
  .counsel-info-box { padding: 1.25rem; }
}

/* ── Gallery ── */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  transition: all 0.2s;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--muted);
}

.gallery-card-body {
  padding: 1rem 1.25rem;
}

.gallery-card-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.gallery-card-body .gallery-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.gallery-card-body .gallery-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  margin-top: 0.5rem;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.15);
}

.gallery-lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9375rem;
  text-align: center;
  max-width: 80%;
}

/* ── FAQ ── */
.faq-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.faq-cat-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  transition: all 0.2s;
}
.faq-cat-btn:hover,
.faq-cat-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
  transition: background 0.2s;
  gap: 1rem;
}
.faq-question:hover { background: var(--muted); }

.faq-question .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-question .q-text {
  flex: 1;
}

.faq-question .q-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.faq-item.open .faq-question .q-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--muted);
}

.faq-answer-inner {
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.faq-answer-inner .a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 0.75rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s;
}
.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Media List Board (좌사진 / 우내용) ── */
.media-list-board {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
  border-top: 2px solid var(--foreground);
}

.media-list-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.media-list-item:hover {
  background: var(--muted);
}

.media-list-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--muted);
}
.media-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.media-list-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.media-list-title {
  font-size: 1.3625rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-list-desc {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-list-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

/* ── Video Thumb Play Icon ── */
.video-thumb,
.media-list-thumb.has-play-icon {
  position: relative;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s;
  border-radius: var(--radius);
}
.video-card:hover .video-play-icon,
.media-list-item:hover .video-play-icon {
  background: rgba(0, 0, 0, 0.5);
}

.video-play-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Board category tabs as links */
a.board-cat-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .notice-table th:nth-child(1),
  .notice-table td:nth-child(1),
  .notice-table th:nth-child(4),
  .notice-table td:nth-child(4),
  .notice-table th:nth-child(5),
  .notice-table td:nth-child(5) {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .faq-answer-inner {
    padding-left: 1.25rem;
  }

  .board-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .media-list-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  .media-list-thumb {
    width: 100%;
    height: 180px;
  }
}
