@charset "UTF-8";
@import url("common.css");

/* 기본 */
:root {
  --accent: #f9c702;
  --bg: #111;
  --card-bg: #1f1f1f;
  --muted: #bdbdbd;
  --white: #ffffff;
}
body {
  margin: 0;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 40px;
  background: #fff;
}

h1.page-title {
  font-size: 32px;
  margin: 0 0 30px 0;
  font-weight: 700;
  color: #111;
  font-family: "playfair semibold";
  letter-spacing: 1.5px;
}
p.lead {
  margin: 0 0 28px 0;
  color: #555;
}

/* 그리드(리스트) */
.notice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

/* 카드 */
.notice-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: white;
  color: #000;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.notice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.thumb {
  width: 220px;
  min-width: 220px;
  height: 140px;
  overflow: hidden;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.notice-card:hover .thumb img {
  transform: scale(1.06);
}

.notice-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.notice-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.notice-title {
  font-size: 18px;
  margin: 0;
  color: #000;
  line-height: 1.2;
}
.notice-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.notice-excerpt {
  margin-top: 8px;
  color: #000;
  font-size: 14px;
  line-height: 1.8;
  max-height: 5em; /* ~2 lines */
  overflow: hidden;
}
.notice-actions {
  margin-top: 28px;
}
.notice-actions a {
  display: inline-block;
  padding: 13px 55px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #f9c702;
}

/* 에러 / 로딩 */
.msg {
  padding: 18px;
  background: #fff6d6;
  border-left: 4px solid var(--accent);
  color: #333;
  border-radius: 6px;
}

/* 반응형 */
@media (max-width: 780px) {
  .container {
    margin: 0 auto;
    padding: 20px;
  }
  .notice-list {
    grid-template-columns: 1fr;
  }
  .notice-card {
    flex-direction: column;
    gap: 6px;
  }
  .notice-info {
    padding: 12px;
  }
  .notice-title {
    font-size: 16px;
  }
}
