/*=== Header ===*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1;
}
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }
}
.header.scrolled {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 15px;
  z-index: 1;
}
@media (max-width: 768px) {
  .header.scrolled {
    font-size: 20px;
  }
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .header__container {
    width: 100%;
  }
}
.header__nav-list {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media (max-width: 768px) {
  .header__nav-list {
    gap: 12px;
  }
}
.header__nav-link {
  font-size: 14px;
  color: var(--color-gray);
  transition: color 0.3s;
}
@media (max-width: 768px) {
  .header__nav-link {
    font-size: 12px;
  }
}
.header__nav-link.active {
  color: #000;
  font-weight: 600;
}
.header__nav-link:hover {
  color: #000;
}

.btn-100 {
  width: 100%;
}

.btn {
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
}

.mini-btn {
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}

.btn-primary-color {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-sub {
  background: #fff;
  color: #000;
  border: 1px solid var(--border-color);
}

.btn-purple {
  background: var(--color-purple);
  color: #fff;
}

.btn-blue {
  background: #2563eb;
  color: #fff;
}

.btn-red {
  background: #dc2626;
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/*=== Paging ===*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}
.pagination__list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination__item {
  display: inline-flex;
}
.pagination__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background-color: #fff;
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.pagination__link:hover:not(.is-active):not(.is-disabled) {
  background-color: #f3f4f6;
  color: #111827;
}
.pagination__link.is-active {
  background-color: #000;
  color: #fff;
  cursor: default;
  font-weight: 600;
}
.pagination__link.is-disabled {
  color: #d1d5db;
  background-color: #f9fafb;
  border-color: var(--border-color);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}
.pagination__link--arrow {
  font-weight: 600;
}

/*== Loading ===*/
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 5px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/*=== Footer ===*/
.footer {
  padding: 60px 20px;
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.5;
}
.footer__container {
  max-width: 1120px;
  margin: 0 auto;
}
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 40px;
  }
}
.footer__logo-img {
  width: 100px;
  opacity: 0.8;
  filter: grayscale(1);
}
.footer__menu-wrap {
  display: flex;
}
@media (max-width: 768px) {
  .footer__menu-wrap {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
  }
}
.footer__menu-group {
  flex: 1;
}
.footer__menu-title {
  font-weight: 700;
  color: #999;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .footer__menu-title {
    margin-bottom: 10px;
  }
}
.footer__menu-list {
  display: flex;
  gap: 10px;
  color: #999;
}
@media (max-width: 768px) {
  .footer__menu-list {
    font-size: 12px;
  }
}
.footer__menu-list li a {
  color: #999;
}
.footer__menu-list li a:after {
  content: "|";
  margin-left: 10px;
  color: var(--border-color);
}
.footer__menu-list li:last-child a:after {
  content: "";
}
.footer__cs {
  margin-bottom: 20px;
}
.footer__cs-title {
  color: #999;
  font-weight: 700;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .footer__cs-title {
    margin-bottom: 10px;
  }
}
.footer__cs-content {
  color: #999;
}
.footer__cs-content p {
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .footer__cs-content p {
    font-size: 12px;
  }
}
.footer__cs-link {
  color: #999;
  text-decoration: underline;
}
.footer__divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}
.footer__legal {
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .footer__legal {
    font-size: 12px;
  }
}
.footer__corp {
  margin-bottom: 10px;
}
.footer__disclaimer {
  line-height: 1.5;
  word-break: keep-all;
}
.footer__warning {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .footer__warning {
    font-size: 12px;
  }
}
.footer__final-row {
  display: flex;
  align-items: center;
  font-size: 13px;
  gap: 20px;
  color: #999;
}
@media (max-width: 768px) {
  .footer__final-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }
}
.footer__policy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__policy-link {
  font-weight: 600;
  text-decoration: underline;
}
