/* =========================================================
   자료실 전용 스타일
   file: /assets/files-page.css
========================================================= */

.files-page {
  margin-top: 34px !important;
  margin-bottom: 72px !important;
}

.files-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 22px;
  background: #eef1f5;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.files-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.files-head-card,
.files-list-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.files-head-card {
  padding: 32px 36px;
  margin-bottom: 24px;
}

.files-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3158b6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}

.files-head-layout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 16px;
}

.files-head-layout h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.files-head-layout p {
  margin: 0;
  color: #657083;
  font-size: 15px;
  line-height: 1.7;
}

.files-count {
  min-width: 120px;
  padding: 16px 20px;
  text-align: center;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e4eaf8;
}

.files-count strong {
  display: block;
  margin-bottom: 3px;
  color: #2f56b0;
  font-size: 27px;
  font-weight: 900;
}

.files-count span {
  color: #768196;
  font-size: 12px;
  font-weight: 700;
}

.files-list-card {
  padding: 32px 34px 34px;
}

.files-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.files-section-head h2 {
  margin: 10px 0 0;
  color: #172033;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -.03em;
}

.files-section-head > p {
  max-width: 440px;
  margin: 0;
  color: #7a8494;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.files-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
}

.files-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.files-table th,
.files-table td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
  font-size: 13px;
}

.files-table thead th {
  background: #f7f9fc;
  color: #4b576a;
  font-size: 12px;
  font-weight: 800;
}

.files-table tbody tr:last-child td {
  border-bottom: 0;
}

.files-table tbody tr {
  transition: background .16s ease;
}

.files-table tbody tr:hover {
  background: #fbfcfe;
}

.files-title-cell,
.files-name-cell {
  text-align: left !important;
}

.files-title-cell strong {
  color: #263244;
  font-size: 14px;
}

.files-name-cell {
  color: #778194;
}

.files-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #3159b8;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
}

.files-download-btn:hover {
  background: #24489a;
  transform: translateY(-1px);
  text-decoration: none;
}

.files-empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed #dce2ea;
  border-radius: 14px;
  background: #fafbfd;
}

.files-empty strong {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 16px;
}

.files-empty p {
  margin: 0;
  color: #8a94a4;
  font-size: 13px;
}

@media (max-width: 768px) {
  .files-page {
    margin-top: 20px !important;
    margin-bottom: 48px !important;
  }

  .files-banner {
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .files-head-card,
  .files-list-card {
    border-radius: 16px;
  }

  .files-head-card,
  .files-list-card {
    padding: 24px 20px;
  }

  .files-head-layout,
  .files-section-head {
    display: block;
  }

  .files-head-layout h1 {
    font-size: 29px;
  }

  .files-count {
    margin-top: 18px;
    max-width: 130px;
  }

  .files-section-head > p {
    margin-top: 10px;
    text-align: left;
  }
}
