:root {
  --white-color: #fcfefe;
  --green-color: #0baa2f;

  --purple-text: #1f2b6c;
  --blue-text: #159eec;
  --green-text: #34c759;
  --black-text: #212124;
  --active-color: #bfd2f8;

  --font-family: "Work Sans", sans-serif;
  --secondary-font-family: "Work Sans", sans-serif;
}

.container {
  position: relative;
  max-width: 1440px;
}

.active {
  color: var(--active-color);
}

.c-pointer {
  cursor: pointer;
}

a,
a:hover {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-desc {
  color: var(--green-color);
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: 16%;
  font-size: 18px;
}

.sub-title {
  font-family: var(--secondary-font-family);
  font-size: 32px;
  font-weight: 600;
  color: var(--purple-text);
}

/* Pagination */
.pagination-box {
  margin-top: 40px;
  gap: 12px;
}

.page-btn {
  width: 36px;
  height: 36px;
  background: none;
  border-radius: 8px;
  border: 1px solid var(--purple-text);
  color: var(--purple-text);
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.page-btn.active {
  background: var(--purple-text);
  border: none;
  color: var(--white-color);
  font-weight: 500;
}

.pagination-box span {
  width: fit-content;
  height: 24px;
  color: var(--secondary-color);
  font-family: Manrope;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 2px;
}

.page-btn.disabled,
.page-btn.disabled > * {
  opacity: 0.4;
  cursor: not-allowed;
}

img:hover {
  transform: scale(1.01);
}

@media (max-width: 576px) {
  .sub-title {
    font-size: 26px;
  }
}



/* Container cố định góc phải */
#formAlert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;

  max-width: 320px;
}

/* Alert style */
#formAlert .alert {
  border-radius: 10px;
  padding: 14px 36px 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  display: flex;
  align-items: center;
  gap: 10px;

  animation: slideInRight 0.4s ease;
}

/* Success */
#formAlert .alert-success {
  background-color: #e9f9ee;
  border: 1px solid #b7ebc6;
  color: #1e7e34;
}

/* Error */
#formAlert .alert-danger {
  background-color: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a71d2a;
  padding: 22px 16px;
}

/* Icon */
#formAlert .alert::before {
  font-size: 18px;
}

#formAlert .alert-success::before {
  content: "✔";
  color: var(--green-color);
}

#formAlert .alert-danger::before {
  content: "✖";
  color: #dc3545;
}

/* Close button */
#formAlert .btn-close {
  margin-left: auto;
  transform: scale(0.8);
  opacity: 0.6;
}

#formAlert .btn-close:hover {
  opacity: 1;
}

/* Animation vào */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation ra (optional) */
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}
