body {
  background: #000;
}


main {
  padding: 15rem 0;
}

.title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  width: 100%;
  color: white;
  font-size: 8rem;
  line-height: 10rem;
  word-break: break-all;
}

.link-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .8rem;
  position: sticky;
  top: 2rem;
  z-index: 1;
  margin-top: -7rem;
}

.link-box [class*="btn-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 0 1.6rem;
  min-width: 11.6rem;
  height: 4rem;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.2rem;
  border-radius: .4rem;
  transition: opacity .3s;
}

.link-box [class*="btn-"]::before {
  content: "";
  width: 2rem;
  height: 2rem;
}

.link-box [class*="btn-"]:hover {
  opacity: 0.9;
}

.link-box .btn-kmong {
  background: #ffdc2d;
  color: #111;
}

.link-box .btn-kmong::before {
  background: url(../images/ico_kmong.svg) no-repeat center / contain;
}

.link-box .btn-temha {
  background: #CF132C;
  color: #fff;
}

.link-box .btn-temha::before {
  background: url(../images/ico_temha.svg) no-repeat center / contain;
}


.template-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10rem 3rem;
  margin-top: 6rem;
}

.template-list a {
  text-align: center;
}

.template-list .img-wrap {
  overflow: hidden;
  border-radius: .8rem;
}

.template-list .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.template-list a:hover .img-wrap img {
  transform: scale(1.05);
}

.template-list span {
  display: inline-block;
  position: relative;
  margin-top: 2rem;
  font-size: 2rem;
  line-height: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.template-list span::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(.2rem);
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .3s;
}

.template-list a:hover span::before {
  width: 100%;
}

@media (max-width: 1280px) {
  .template-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {

  main {
    padding: 7rem 0;
  }

  h1 {
    font-size: 4rem;
    line-height: 5rem;
  }

  .link-box {
    margin-top: -4rem;
  }

  .link-box [class*="btn-"] {
    padding: 0 1.2rem;
    height: 3.8rem;
    min-width: 10.8rem;
  }

  .template-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 2rem;
    margin-top: 3rem;
  }

  .template-list span {
    margin-top: 1.6rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
  }
}