* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: #f3f7fc;
  color: #14213d;
}

a {
  text-decoration: none;
}

header {
  background: #041b44;
}

.header-inner {
  max-width: 1300px;
  margin: auto;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  color: white;
  font-weight: 800;
}

.admin-menu {
  margin-top: 20px;
}

.admin-btn {
  display: block;
  width: 100%;
  padding: 18px;
  margin-bottom: 12px;

  text-align: center;
  text-decoration: none;

  font-size: 20px;
  font-weight: 700;

  color: #fff;
  background: #0b4ea2;

  border-radius: 10px;

  transition: 0.2s;
}

.admin-btn:hover {
  background: #083a78;
}

.logout-btn {
  background: #c62828;
}

.logout-btn:hover {
  background: #8e0000;
}
.hero {
  background: linear-gradient(135deg, #041b44, #005bbb);
  color: white;
  text-align: center;
  padding: 75px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 20px;
  color: #d7ecff;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.contact-box {
  background: white;
  border: none;
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.contact-box h2 {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: 900;
  color: #14213d;
}

.phone {
  font-size: 36px;
  font-weight: 900;
  color: #000;
  margin-bottom: 16px;
}

.time {
  margin-top: 14px;
  line-height: 1.8;
}

.time span {
  color: #d60000;
  font-weight: 900;
}
.red {
  color: #d60000 !important;
  font-weight: 900;
}
.kakao-btn {
  display: block;
  background: #fee500;
  color: #111;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 34px;
}

.btn-group {
  display: flex;
  justify-content: center; /* 왼쪽 정렬 (오른쪽 정렬을 원하시면 flex-end) */
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.notice {
  background: #fff8df;
  border: 1px solid #ffe08a;
  color: #775400;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 34px;
  font-weight: 900;
  color: #041b44;
  margin: 45px 0 22px;
}

.form-card {
  background: white;
  border: 1px solid #dfe8f3;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

form {
  display: grid;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 15px;
  font-size: 20px;
  font-family: inherit;
}

textarea {
  min-height: 60px;
}
select {
  height: 52px;
}

button:not(.btn-small) {
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #0094ff, #1ea7ff);
  color: white;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.q-list {
  display: grid;
  gap: 20px;
}

.q-card {
  background: white;
  border: 1px solid #dfe8f3;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.q-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.q-top h3 {
  font-size: 24px;
}

.q-top span {
  background: #eaf5ff;
  color: #005bbb;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.content {
  white-space: pre-line;
  line-height: 1.8;
  color: #334155;
}

.attachments {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attachments img {
  width: 180px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dfe8f3;
}

.attachments video {
  width: 260px;
  max-height: 180px;
  border-radius: 12px;
  background: #000;
}

.file-link {
  display: inline-block;
  background: #f6f9fd;
  border: 1px solid #dfe8f3;
  padding: 12px 14px;
  border-radius: 12px;
  color: #005bbb;
  font-weight: 800;
}

.answer {
  margin-top: 18px;
  background: #f0f8ff;
  border-left: 5px solid #0094ff;
  border-radius: 14px;
  padding: 18px;
}

.admin-answer-form {
  margin-top: 24px;
}
.download-admin-card h3,
.q-card h3 {
  font-size: 30px;
  font-weight: 900;
}

.download-admin-card p,
.download-admin-card div,
.q-card p,
.q-card div {
  font-size: 18px;
}

.download-admin-card input,
.download-admin-card select,
.download-admin-card textarea,
.q-card input,
.q-card select,
.q-card textarea {
  font-size: 18px;
  padding: 16px;
}

.section-title {
  font-size: 40px;
}

footer {
  background: #041b44;
  color: #b7d8ff;
  text-align: center;
  padding: 45px 20px;
  line-height: 1.8;
}

@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    gap: 18px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .phone {
    font-size: 36px;
    font-weight: 900;
    color: #000;
    margin-bottom: 14px;
  }

  .q-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .attachments img,
  .attachments video {
    width: 100%;
  }
}
/* ===== 다운로드 자료관리 화면 전용 ===== */

.q-card h3 {
  font-size: 32px;
  font-weight: 900;
}

.q-card .content {
  font-size: 19px;
  line-height: 1.8;
}

.q-card input,
.q-card select,
.q-card textarea {
  font-size: 18px;
  padding: 16px;
}

.q-card .section-title {
  font-size: 26px !important;
  margin: 26px 0 14px !important;
}

.download-admin-file {
  font-size: 17px;
}

.download-admin-file strong {
  font-size: 18px;
}
/* ===== 지정 버튼 ===== */

button[name="create_group"] {
  width: 160px !important;
  justify-self: start;
  padding: 9px 18px !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0094ff, #1ea7ff);
  color: white;
  cursor: pointer;
}

button[name="add_file"] {
  width: 140px !important;
  justify-self: start;
  padding: 8px 16px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0094ff, #1ea7ff);
  color: white;
  cursor: pointer;
}

button[name="delete_file"],
button[name="delete_group"] {
  width: 140px !important;
  justify-self: start;
  padding: 8px 16px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  cursor: pointer;
}
html {
  scroll-behavior: smooth;
}
