/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "NanumSquareNeo",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #3e3a39;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
}

.hero img {
  width: 100%;
}

.hero img.hero__pc {
  display: none;
}

.hero a.hero__link {
  position: absolute;
  bottom: 51%;
  left: 5%;
  width: 90%;
  height: 5%;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Image Section (info, point) ─── */
.image-section img {
  width: 100%;
}

.image-section__pc {
  display: none;
}

/* ─── Register Section ─── */
.register {
  position: relative;
  width: 100%;
  height: 420px;
}

.register img.register__bg {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.register__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 60px 20px 0;
}

.register__content img.register__title-img {
  width: 100%;
  object-fit: contain;
}

.register__content img.register__title-mo {
  max-width: 210px;
}

.register__content img.register__title-pc {
  display: none;
}

.register__content a.register__cta {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  height: 46px;
  border-radius: 100px;
  background: #f62b2e;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.register__content span.register__cta-arrow {
  margin-left: 8px;
}

.register__content img.register__students {
  width: 100%;
  height: 156px;
  margin-top: 30px;
}

.register__content img.register__students-pc {
  display: none;
}

.register__content img.register__students-mo {
  object-fit: contain;
}

/* ─── Mentos Section ─── */
.mentos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: #000;
  padding: 80px 20px;
}

.mentos .mentos__title {
  width: 100%;
  text-align: center;
}

.mentos img.mentos__title-mo {
  margin: 0 auto;
}

.mentos img.mentos__title-pc {
  display: none;
}

.mentos .mentos__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mentos .mentos__group-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mentos .mentos__label {
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 4px 12px;
  font-weight: 900;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.mentos img.mentos__logo {
  height: 22px;
  width: 68px;
  display: inline-block;
}

.mentos .mentos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

/* ─── 더보기 Toggle (checkbox hack) ─── */
.mentos .mentos__toggle {
  display: none;
}

/* 모바일: 4개까지만 표시 (1열 × 4행) */
.mentos .mentos__grid .mento-card:nth-child(n + 5) {
  display: none;
}

/* 체크 시 모든 카드 표시 */
.mentos .mentos__toggle:checked ~ .mentos__grid .mento-card:nth-child(n + 5) {
  display: inline-flex;
}

/* 체크 시 더보기 버튼 숨김 */
.mentos .mentos__toggle:checked ~ .mentos__more-btn {
  display: none;
}

.mentos .mentos__more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  height: 36px;
  width: 80px;
  border-radius: 64px;
  background: #46464a;
  color: #fff;
  font-size: 11px;
  border: none;
  cursor: pointer;
}

/* ─── Mentos Card ─── */
.mentos .mento-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  align-self: stretch;
}

.mentos .mento-card__top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.mentos .mento-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mentos .mento-card__name-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mentos .mento-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 140%;
  color: #000;
}

.mentos .mento-card__center {
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  color: #000;
}

.mentos .mento-card__major {
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  color: #c40f06;
}

.mentos .mento-card__profile {
  flex-shrink: 0;
}

.mentos .mento-card__profile-img-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 100px;
  border: 1px solid #f6f7f8;
}

.mentos .mento-card__profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentos .mento-card__profile--pc {
  display: none;
}

.mentos .mento-card__bottom {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.mentos .mento-card__descs {
  display: inline-flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.mentos .mento-card__desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  color: #000;
}

@media (min-width: 768px) {
  /* Hero */
  .hero img.hero__pc {
    display: block;
  }

  .hero img.hero__mo {
    display: none;
  }

  .hero a.hero__link {
    bottom: 29.5%;
    left: 9.4%;
    width: 38%;
    height: 4.5%;
  }

  /* Image sections */
  .image-section img.image-section__pc {
    display: block;
  }

  .image-section img.image-section__mo {
    display: none;
  }

  /* Register */
  .register {
    height: 720px;
  }

  .register img.register__bg {
    height: 720px;
  }

  .register__content {
    gap: 60px;
    padding: 120px 0 0;
  }

  .register__content img.register__title-pc {
    display: block;
    width: 693px;
    height: 130px;
  }

  .register__content img.register__title-mo {
    display: none;
  }

  .register__content a.register__cta {
    width: 480px;
    height: 66px;
    padding: 16px 24px;
    font-size: 24px;
  }

  .register__content span.register__cta-arrow {
    margin-left: 10px;
  }

  .register__content img.register__students-pc {
    display: block;
    width: 704px;
    height: 314px;
  }

  .register__content img.register__students-mo {
    display: none;
  }

  /* Mentos grid: 8개까지 표시 (2열 × 4행) */
  .mentos .mentos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mentos .mentos__grid .mento-card:nth-child(n + 5) {
    display: inline-flex;
  }
  .mentos .mentos__grid .mento-card:nth-child(n + 9) {
    display: none;
  }
  .mentos .mentos__toggle:checked ~ .mentos__grid .mento-card:nth-child(n + 9) {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  /* Mentos */
  .mentos {
    gap: 60px;
    padding: 120px;
  }
  .mentos .mentos__title {
    max-width: 707px;
  }
  .mentos img.mentos__title-pc {
    display: block;
  }
  .mentos img.mentos__title-mo {
    display: none;
  }
  .mentos .mentos__label {
    padding: 4px 16px;
  }
  .mentos img.mentos__logo {
    height: auto;
    width: auto;
  }
  .mentos .mentos__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* PC: 12개까지 표시 (4열 × 3행) */
  .mentos .mentos__grid .mento-card:nth-child(n + 9) {
    display: inline-flex;
  }
  .mentos .mentos__grid .mento-card:nth-child(n + 13) {
    display: none;
  }
  .mentos
    .mentos__toggle:checked
    ~ .mentos__grid
    .mento-card:nth-child(n + 13) {
    display: inline-flex;
  }

  .mentos .mentos__more-btn {
    height: 38px;
    width: 130px;
    font-size: 16px;
  }

  /* Mentos Card */
  .mentos .mento-card {
    border-radius: 10px;
    padding: 12px 16px;
  }
  .mentos .mento-card__top {
    flex-direction: column;
    gap: 2px;
  }
  .mentos .mento-card__name-row {
    flex-direction: row;
    gap: 4px;
  }
  .mentos .mento-card__name {
    font-size: 12px;
  }
  .mentos .mento-card__center {
    font-size: 11px;
  }
  .mentos .mento-card__major {
    font-size: 12px;
  }
  .mentos .mento-card__profile {
    display: none;
  }
  .mentos .mento-card__profile--pc {
    display: block;
    flex-shrink: 0;
  }
  .mentos .mento-card__desc {
    font-size: 12px;
  }
}
