:root {
  --exam-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --exam-white: #ffffff;
  --exam-gray-50: #f8f8f8;
  --exam-gray-100: #f5f5f5;
  --exam-gray-200: #f0f0f0;
  --exam-gray-300: #ededed;
  --exam-gray-400: #e5e5e5;
  --exam-gray-500: #dbdbdb;
  --exam-text-primary: #333333;
  --exam-text-secondary: #555555;
  --exam-text-tertiary: #777777;
  --exam-text-caption: #999999;
  --exam-brand-blue: #2c5bf6;
  --exam-cool-gray-50: #f1f3f8;
  --exam-cool-gray-100: #dbdee5;
  --exam-month-bg: #f2f3f5;
  --exam-radius-4: 4px;
  --exam-radius-8: 8px;
  --exam-radius-full: 999px;
}

.exam-schedule-page,
.exam-schedule-page * {
  box-sizing: border-box;
}

.exam-schedule-page {
  min-width: 320px;
  background: var(--exam-white);
  font-family: var(--exam-font);
  color: var(--exam-text-primary);
}

.exam-schedule-page a {
  color: inherit;
  text-decoration: none;
}

.exam-schedule {
  background: var(--exam-white);
}

.exam-schedule__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.exam-schedule__title {
  margin: 0;
  padding: 56px 0;
  color: var(--exam-text-primary);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

.exam-schedule__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
}

.exam-schedule__year {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--exam-radius-8);
  background: var(--exam-cool-gray-50);
  color: var(--exam-text-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.exam-schedule__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.exam-month {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.exam-month__label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  width: 96px;
  border-radius: var(--exam-radius-8);
  background: var(--exam-month-bg);
  color: var(--exam-text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.02em;
  text-align: center;
}

.exam-month__items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.exam-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 24px;
  border: 1px solid var(--exam-cool-gray-100);
  border-radius: var(--exam-radius-8);
  background: var(--exam-white);
  cursor: default;
}
.exam-card:has(.exam-card__link) {
  cursor: pointer;
}
.exam-card:hover,
.exam-card:focus-within {
  border-color: var(--exam-brand-blue);
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.1);
}

.exam-card__date {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 144px;
  min-height: 28px;
  padding: 0 32px;
  color: var(--exam-text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.exam-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.exam-card__row {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  min-width: 0;
}

.exam-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  width: 62px;
  height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--exam-cool-gray-100);
  border-radius: var(--exam-radius-4);
  color: var(--exam-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.exam-card__name {
  flex: 0 0 360px;
  min-width: 0;
  color: var(--exam-text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.02em;
}

.exam-card__period {
  flex: 1 1 365px;
  min-width: 0;
  color: var(--exam-text-tertiary);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.01em;
}

.exam-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: var(--exam-radius-full);
  background: var(--exam-gray-100);
  cursor: pointer;
}

.exam-card__link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-top: 2px solid #777;
  border-right: 2px solid #777;
  transform: rotate(45deg);
}

.exam-card:hover .exam-card__link,
.exam-card:focus-within .exam-card__link {
  background: var(--exam-brand-blue);
}

.exam-card:hover .exam-card__link::before,
.exam-card:focus-within .exam-card__link::before {
  border-color: #fff;
}

.exam-notice {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px 48px;
  border-radius: var(--exam-radius-8);
  background: var(--exam-gray-50);
}

.exam-notice__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--exam-gray-500);
  color: var(--exam-text-tertiary);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.01em;
  text-align: center;
}

.exam-notice__body {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-left: 24px;
}

.exam-notice__title {
  flex: 0 0 auto;
  color: var(--exam-text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.exam-notice__list {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--exam-text-tertiary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.01em;
}

.exam-notice__list li {
  position: relative;
  margin: 0;
  padding-left: 12px;
}

.exam-notice__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: var(--exam-radius-full);
  background: currentColor;
}

@media (max-width: 1199px) {
  .exam-schedule__inner {
    max-width: none;
    padding: 0 24px;
  }

  .exam-schedule__title {
    padding: 40px 0;
  }

  .exam-card__row {
    align-items: flex-start;
  }

  .exam-card__name,
  .exam-card__period {
    flex-basis: 100%;
  }

  .exam-card__row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .exam-schedule__inner {
    padding: 0;
  }

  .exam-schedule__title {
    display: none;
  }

  .exam-schedule__content {
    padding-bottom: 32px;
  }

  .exam-schedule__year {
    min-height: 48px;
    border-radius: 0;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }

  .exam-schedule__list {
    gap: 24px;
    margin-bottom: 24px;
    padding: 0 16px;
  }

  .exam-month {
    flex-direction: column;
    gap: 12px;
  }

  .exam-month__label {
    flex: 0 0 auto;
    width: 100%;
    min-height: 32px;
    padding: 4px 0;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  .exam-month__items {
    gap: 12px;
  }

  .exam-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .exam-card__date {
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0;
    padding-right: 32px;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
    text-align: left;
  }

  .exam-card__body {
    gap: 16px;
  }

  .exam-card__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .exam-card__tag {
    flex: 0 0 auto;
    width: auto;
    min-width: 55px;
    height: 22px;
    padding: 4px 6px;
    border-radius: var(--exam-radius-4);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.01em;
  }

  .exam-card__name {
    flex: 0 1 auto;
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .exam-card__period {
    flex: 0 1 auto;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.01em;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .exam-card__link {
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .exam-notice {
    gap: 20px;
    width: auto;
    margin: 0 16px;
    padding: 20px 24px;
  }

  .exam-notice__contact {
    min-height: 40px;
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.01em;
  }

  .exam-notice__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
  }

  .exam-notice__list {
    width: 100%;
    padding-left: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
