.page-title {
  padding-top: 244px;
}

.topic .page-title-text {
  color: #005094;
}

.page-title-text span:first-child {
  font-size: 55px;
  font-weight: 300;
  line-height: 1;
  font-family: "Jost", sans-serif;
}

.page-title-text span:last-child {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 767px) {
  .page-title {
    padding-top: 23vw;
  }

  .page-title-text span:first-child {
    font-size: 8vw;
  }

  .page-title-text span:last-child {
    font-size: 3.9vw;
    display: block;
    margin-top: 0.5vw;
  }
}

.topic-list {
  margin-top: 115px;
  margin-bottom: 200px;
}

.topic-item {
  padding: 30px 0 25px;
  border-bottom: 1px solid #c4c4c4;
  position: relative;
}

.topic-item::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 15%;
  height: 1px;
  background-color: #005094;
}

.topic-item:first-child {
  border-top: 1px solid #c4c4c4;
}

.topic-item:first-child::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 15%;
  height: 1px;
  background-color: #005094;
}

.topic-inner {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  align-items: flex-start;
}

.topic-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 64%;
  margin-right: auto;
}

.topic-thumbnail {
  flex: 0 0 270px;
}

.topic-thumbnail img {
  width: 100%;
  height: auto;
  border: 1px solid #000;
}

.topic-date {
  color: #000;
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1;
  font-weight: 700;
}

.topic-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.9;
}

.topic-content {
  font-size: 16px;
  line-height: 2;
  color: #000;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.topic-read-more {
  display: inline-block;
  color: #005299;
  text-decoration: none;
  font-size: 16px;
  margin-left: auto;
  display: block;
  margin-top: 5px;
  position: relative;
  font-weight: 700;
}

.topic-read-more::after {
  content: "";
  position: absolute;
  top: 60%;
  left: -13px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #005299;
  border-right: 2px solid #005299;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 767px) {
  .topic-list {
    margin-top: 9vw;
    margin-bottom: 25vw;
  }

  .topic-item {
    padding: 7.5vw 0 4vw;
  }

  .topic-item::before {
    width: 20%;
  }

  .topic-item:first-child::after {
    width: 20%;
  }

  .topic-inner {
    flex-direction: column;
    gap: 7vw;
  }

  .topic-content-wrapper {
    width: 100%;
  }

  .topic-thumbnail {
    flex: unset;
    width: 100%;
  }

  .topic-thumbnail img {
    width: 100%;
    height: calc(83vw * 325 / 620);
    object-fit: cover;
    border: 1px solid #000;
  }

  .topic-date {
    font-size: 3.6vw;
    margin-bottom: 0;
  }

  .topic-title {
    font-size: 4.5vw;
    margin-bottom: 1.5vw;
    line-height: 1.9;
  }

  .topic-content {
    font-size: 4vw;
    line-height: 1.6;
    -webkit-line-clamp: 5;
    font-weight: 400;
  }

  .topic-read-more {
    font-size: 3.8vw;
    margin-top: 2vw;
  }

  .topic-read-more::after {
    left: -3vw;
    width: 1.8vw;
    height: 1.8vw;
    border-top: 0.3vw solid #005299;
    border-right: 0.3vw solid #005299;
  }
}

.pagination {
  margin-top: 55px;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  text-decoration: none;
  color: #0078ff;
  text-align: center;
  font-size: 16px;
}

.pagination a.page-numbers {
  border: 1px solid #0078ff;
  font-weight: 700;
}

.pagination .page-numbers.current {
  border: 1px solid #0078ff;
  color: #fff;
  background-color: #0078ff;
  font-weight: 700;
}

.pagination .page-numbers.disabled {
  color: #ccc;
  background-color: #f9f9f9;
  border-color: #eee;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .page-numbers.disabled:hover {
  background-color: #f9f9f9;
  color: #ccc;
  text-decoration: none;
}

.pagination .prev,
.pagination .next {
  position: relative;
  border: unset !important;
  background-color: unset !important;
}

.pagination .next.disabled::before {
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
}

.pagination .prev.disabled::before {
  border-top: 2px solid #ccc;
  border-left: 2px solid #ccc;
}

.pagination .prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 2px solid #0078ff;
  border-left: 2px solid #0078ff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pagination .next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 2px solid #0078ff;
  border-right: 2px solid #0078ff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination ul li {
  margin: 0;
}

@media (max-width: 767px) {
  .pagination {
    margin-top: 8vw;
  }

  .pagination .nav-links {
    gap: 2vw;
  }

  .pagination .page-numbers {
    padding: 0.3vw 2vw;
    font-size: 3.6vw;
  }

  .pagination .prev::before {
    width: 3.2vw;
    height: 3.2vw;
    border-top: 0.4vw solid #0078ff;
    border-left: 0.4vw solid #0078ff;
  }

  .pagination .next::before {
    width: 3.2vw;
    height: 3.2vw;
    border-top: 0.4vw solid #0078ff;
    border-right: 0.4vw solid #0078ff;
  }

  .pagination ul {
    gap: 3.5vw;
  }
}
