/* Start Archive Page */
.custom-content-archive {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.custom-content-search {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.archive-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* End Archive Page */

/* Start Spinner */
.spinner-div {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid;
  border-color: orange transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

/* End Spinner */

/* Start Post */
.option-text {
  color: #06435e !important;
  font-size: 1rem;
  font-weight: bold;
}

.custom-select {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: none;
  letter-spacing: 0.8px;
  color: #06435e;
}

.archive-post-title {
  color: #06435e !important;
  margin: 0px;
  font-weight: bold;
  font-size: 1.25rem;
}

.article-archive {
  border-bottom: 1px solid #edf5f8;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  flex-direction: column;
  padding-bottom: 20px;
  padding-top: 20px;
  gap: 8px;
}

.article-archive:hover .archive-post-title {
  text-decoration: underline;
  text-decoration-color: #8eb0bd;
}

.archive-date {
  font-size: 16px;
}

.article-archive p {
  color: #404040;
  font-size: 1.125rem;
}

.search-post-title {
  color: #06435e !important;
  margin: 0px;
  font-weight: bold;
  font-size: 1.25rem;
}

.article-search {
  border-bottom: 1px solid #edf5f8;
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  flex-direction: column;
  padding-bottom: 20px;
  padding-top: 20px;
  gap: 20px;
}

.article-search:hover .archive-post-title {
  text-decoration: underline;
  text-decoration-color: #acd1df;
}

.search-date {
  font-size: 16px;
}

.article-search p {
  color: #404040;
  font-size: 1.125rem;
}

/* End Post */

/* Start  Numbers */

.page-numbers {
  display: inline-block;
  padding: 16px 24px;
  margin: 0 4px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover {
  background-color: #ddd;
}

.page-numbers.current {
  background-color: #edf5f8;
  font-weight: bold;
}

.page-numbers.prev,
.page-numbers.next {
  font-weight: bold;
  background-color: transparent;
  border: 1px solid #edf5f8;
  padding: 8px 12px;
  border-radius: 4px;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
  background-color: #edf5f8;
}

/* End Numbers */

/* Start Filter Form */

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #edf5f8;
  padding: 40px;
  border-radius: 8px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* Style the checkbox itself */
.filter-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #8eb0bd;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fafafa;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.filter-checkbox:checked {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17l-5-5" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.noUi-target {
  background: #e2e6ea;
  height: 1px !important;
}

.noUi-connects {
  background: #90b8c8;
  height: 1px !important;
}

.noUi-handle {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #90b8c8 !important;
  background: #fff !important;
  top: -8px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.noUi-handle::before,
.noUi-handle::after {
  display: none !important;
  content: none !important;
}

#yearRangeValue {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 16px;
  color: #404040;
}

/* End  Filter Form */
.search-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf5f8;
}

.research-meta-bar {
  display: flex;
  flex-direction: row;
  width: 70%;
  gap: 20px;
  border-bottom: 2px solid #edf5f8;
  padding: 48px 0px;
}

.meta-item {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


@media (max-width: 782px) {
  .custom-content-archive {
    flex-direction: column;
  }

  .research-meta-bar {
    flex-direction: column;
    padding: 32px 16px;
    width: 100%;
    gap: 10px;
  }
}

/* ============================================================
   Insights Card Grid (archive)
   ============================================================ */

.insights-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 2rem;
  align-items: stretch;
}

.insights-post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.insights-post-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

.insights-card-image {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.insights-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.insights-post-card:hover .insights-card-image img {
  transform: scale(1.04);
}

.insights-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  gap: 0.75rem;
}

.insights-card-title {
  color: #06435e !important;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 !important;
}

.insights-card-excerpt {
  color: #474747;
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.insights-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.insights-post-card:hover .quick-button {
  background-color: transparent !important;
  border-color: #ea9a27;
  box-shadow: none !important;
}

@media (max-width: 600px) {
  .insights-card-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}