/* 이벤트 목록 — GO-V 라이트 (고객센터 결, 1200px) */

.idx-ev1 {
  --idx-ev1-blue: #2b7de9;
  --idx-ev1-border: #d0d7de;
  --idx-ev1-head: #f0f3f7;
  --idx-ev1-text: #1a1a1a;
  --idx-ev1-muted: #667085;
  width: 100%;
  max-width: var(--gov-content-w, 1200px);
  margin: 0 auto;
  padding: 12px var(--gov-content-pad, 12px) 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .idx-ev1 {
  max-width: var(--gov-content-w, 1200px);
}

.idx-ev1__bar {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #3a4656;
  border: 1px solid #3a4656;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.idx-ev1__bar-icon {
  display: none;
}

.idx-ev1__bar-title {
  margin: 0;
  font: 700 16px/1.2 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-ev1__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--idx-ev1-border);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 40, 70, 0.06);
  gap: 12px;
}

.idx-ev1__grid-wrap {
  width: 100%;
  overflow: visible;
}

.idx-ev1__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: auto;
  align-items: start;
  gap: 16px 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.idx-ev1__card {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.idx-ev1__grid > li.idx-ev1__card--empty {
  grid-column: 1 / -1;
}

.idx-ev1__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  height: auto;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  border: 1px solid var(--idx-ev1-border);
  background: #fafbfc;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.idx-ev1__link:hover {
  border-color: var(--idx-ev1-blue);
  box-shadow: 0 2px 8px rgba(43, 125, 233, 0.12);
}

.idx-ev1__link:focus-visible {
  outline: 2px solid var(--idx-ev1-blue);
  outline-offset: 2px;
}

.idx-ev1__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--idx-ev1-head);
}

.idx-ev1__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.idx-ev1__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background-color: #fff;
  border-radius: 0;
  border-top: 1px solid var(--idx-ev1-border);
  font: 600 14px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-ev1-text);
  text-align: center;
}

.idx-ev1__pager {
  display: flex;
  min-height: 36px;
  align-items: center;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--idx-ev1-head);
  border: 1px solid var(--idx-ev1-border);
}

.idx-ev1__page-current {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 14px/1.45 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-ev1-blue);
}

@media (max-width: 1024px) {
  .idx-ev1__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .idx-ev1__grid {
    grid-template-columns: 1fr;
  }
}
