.page-archive-container .archive-body {

  margin: 0 auto;
}

.page-archive-container .wrapper {
  max-width: 1280px;
  width: 100%;
  padding: 70px 20px;
  margin: 0 auto;
}

.page-archive-container .search-bar-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.page-archive-container .search-bar-container>* {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.page-archive-container .search-bar-container p {
  margin: 0;
  font-weight: bold;
  color: #1A154C;
  font-size: 18px;
  min-width: 110px;
}

.page-archive-container .category-wrapper select {
  background: #F5F4FF;
  border: none;
  border-radius: 4px;
  padding: 10px 36px 10px 16px;
  color: #1A154C;
  font-size: 16px;
  font-style: italic;
  min-width: 220px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg width='17' height='10' viewBox='0 0 17 10' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7.77002 9.10352C8.13721 9.4707 8.73096 9.4707 9.09424 9.10352L16.5981 1.60352C16.9653 1.23633 16.9653 0.642578 16.5981 0.279297C16.231 -0.0839842 15.6372 -0.0878904 15.2739 0.279297L8.43799 7.11523L1.59815 0.275391C1.23096 -0.0917969 0.637209 -0.0917969 0.273928 0.275391C-0.0893535 0.642578 -0.0932598 1.23633 0.273928 1.59961L7.77002 9.10352Z' fill='black'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.page-archive-container .search-bar-wrapper {
  position: relative;
  width: 100%;
}

.page-archive-container .search-bar-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.page-archive-container .search-bar-wrapper input[type="text"] {
  background: #F5F4FF;
  border: none;
  border-radius: 4px;
  padding: 10px 10px 10px 40px;
  width: 100%;
  font-style: italic;
  color: #1A154C;
  font-size: 16px;
  box-shadow: none;
  outline: none;
}

.page-archive-container .search-bar-wrapper input[type="text"]::placeholder {
  color: #1A154C;
  opacity: 0.7;
  font-style: italic;
}

.page-archive-container .search-btn {
  background: #E44D26;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 12px 38px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.page-archive-container .search-btn:hover {
  background: #c13c1e;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.archive-content-item {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 21, 76, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.archive-content-item:hover {
  box-shadow: 0 4px 24px rgba(26, 21, 76, 0.16);
}

.archive-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.archive-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-category-banner {
  font-family: Oxygen, "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: absolute;
  top: 16px;
  left: 16px;
  background: #2D267F;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 2px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-content-item h2 {
  font-size: 1.2rem;
  margin: 18px 18px 8px 18px;
  color: #1A154C;
  font-weight: 700;
}

.archive-meta {
  font-size: 0.95rem;
  color: #6B6B8A;
  margin: 0 18px 18px 18px;
}

.custom-pagination {
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}

.custom-pagination li {
  list-style: none;
}

.custom-pagination li a,
.custom-pagination li span {
  display: inline-block;
  min-width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 500;
  color: #1A154C;
  background: #F5F4FF;
  margin: 0 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.custom-pagination li.active span {
  background: #1A154C;
  color: #fff;
  font-weight: 700;
}

.custom-pagination li.disabled span {
  color: #C3C1E5;
  background: #F5F4FF;
  cursor: not-allowed;
}

.custom-pagination li.prev a,
.custom-pagination li.next a,
.custom-pagination li.prev span,
.custom-pagination li.next span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  width: auto;
  padding: 0 12px;
  font-size: 20px;
  font-weight: 400;
  background: none;
  color: #1A154C;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.custom-pagination li.prev.disabled span,
.custom-pagination li.next.disabled span {
  color: #C3C1E5;
  background: none;
  border: none;
  cursor: not-allowed;
}

.archive-page-help-form {
  background: url('../img/form-bg.jpg') no-repeat left bottom;
  background-size: cover;

  padding: 60px 40px 40px 40px;
  margin-top: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 400px;
}

.archive-page-help-form>* {
  z-index: 2;
}


.archive-page-help-form h2,
.archive-page-help-form h3,
.archive-page-help-form h1 {
  color: #ff6a2b;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.archive-page-help-form p,
.archive-page-help-form label {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.archive-page-help-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 400px;
  max-width: 100%;
  z-index: 2;
}

.archive-page-help-form input[type="text"],
.archive-page-help-form input[type="email"],
.archive-page-help-form textarea {
  background: #fff;
  color: #1A154C;
  border: none;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

.archive-page-help-form textarea {
  min-height: 90px;
  resize: vertical;
}

.archive-page-help-form input[type="submit"],
.archive-page-help-form button[type="submit"] {
  background: #e44d26;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 12px 38px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.archive-page-help-form input[type="submit"]:hover,
.archive-page-help-form button[type="submit"]:hover {
  background: #c13c1e;
}

.archive-page-help-form-wrapper {
  padding: 0 150px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.archive-page-help-form-wrapper-content {
  width: 50%;
  padding-right: 50px;
}

.archive-page-help-form-wrapper-form {
  width: 50%;
}

.archive-page-help-form-wrapper-form-wrapper .wpcf7 {
  padding: 0;
  width: 100%;
}

.archive-page-help-form-wrapper-form-wrapper .wpcf7-form,
.archive-page-help-form-wrapper-form-wrapper .wpcf7-form p label {
  width: 100%;
}

.archive-page-help-form-wrapper-form-wrapper .wpcf7 input {
  color: #1A154C
}

.archive-page-help-form-wrapper-form-wrapper .wpcf7 input::placeholder {
  color: #1A154C;
}

.archive-page-help-form-wrapper-form-wrapper .wpcf7 input[type="submit"] {
  max-width: 180px;
  float: right;
  background: #e44d26;
}

.mobile-img {
  display: none;
}

@media(max-width: 991px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-wrapper #category {
    width: 100%;
  }

  .archive-page-help-form-wrapper {
    flex-direction: column;
    padding: 0 20px;
  }

  .archive-page-help-form-wrapper-content {
    width: 100%;
    padding-right: 0;
  }

  .archive-page-help-form-wrapper-form {
    width: 100%;
  }

  .archive-page-help-form {
    background: none;
    background-color: #1A154C;
    background-size: cover;
  }

  .mobile-img {
    display: block;

  }

  .mobile-img img {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .archive-page-help-form {
    flex-direction: column;
    padding: 40px 10px 30px 10px;
    min-height: unset;
  }

  .archive-page-help-form form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-archive-container .wrapper {
    padding: 36px 30px;
  }

  .archive-page-help-form {
    margin-top: 0;
  }

  .page-archive-container .search-bar-container {
    flex-direction: column;
  }

  .page-archive-container .search-bar-container>* {
    width: 100%;
  }

  .page-archive-container .search-bar-container .category-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}