/* ===========================
   Research Archive
=========================== */

.research-archive-wrapper {
  max-width: 1255px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===========================
   Toolbar
=========================== */

.research-toolbar {
  margin-bottom: 40px;
}

.research-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.research-pill {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #2c2c2c;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.research-pill:hover {
  background: #10213a;
  color: #fff;
  border-color: #10213a;
}

.research-pill.active {
  background: #10213a;
  color: #fff;
  border-color: #10213a;
}

.research-toolbar-bottom {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===========================
   Search
=========================== */

.research-search input {
  width: 320px;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 18px;
  outline: none;
}

.research-search input:focus {
  border-color: #10213a;
}

/* ===========================
   Sort
=========================== */

.research-sort select {
  width: 220px;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
}

/* ===========================
   Featured
=========================== */

.research-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-bottom: 50px;
  background: #fff;
}

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

.featured-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 16px 0;
}

.featured-content h2 a {
  text-decoration: none;
  color: #10213a;
}

.featured-content h2 a:hover {
  color: #caa74c;
}

.featured-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-meta {
  font-size: 14px;
  color: #888;
}

/* ===========================
   Cards
=========================== */

.research-grid {
  margin-top: 20px;
}

.research-grid {

    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;

}

.research-grid > .col-lg-4,
.research-grid > .col-md-6 {
    padding: 18px;
}

.research-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: 0.25s;
  height: 100%;
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.research-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.research-card-content {
  padding: 24px;
}

.research-card-content h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 16px 0;
}

.research-card-content h3 a {
  color: #10213a;
  text-decoration: none;
}

.research-card-content h3 a:hover {
  color: #caa74c;
}

.research-card-content p {
  color: #666;
  line-height: 1.7;
}

/* ===========================
   Category Badge
=========================== */

.category-post-card a {
  display: inline-block;
  background: #f7f3e8;
  color: #a8842d;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 991px) {
  .research-featured {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .research-search input {
    width: 100%;
  }

  .research-sort select {
    width: 100%;
  }

  .research-toolbar-bottom {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Loading */

#research-results.loading {
  opacity: 0.45;

  pointer-events: none;

  transition: 0.25s;
}


.research-sort select {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 18px;
    border: 1px solid #D9D9D9;
    border-radius: 16px;
    font-size: 16px;
    background: #fff;

    /* Remove browser default */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2318273A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    cursor: pointer;
}

.research-sort select:focus {
    outline: none;
    border-color: #13233B;
}

.research-load-more-wrap {
    display:flex;
    justify-content:center;
}

.loading-more-button {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--btn-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
    outline: none;
    line-height: 1;
    font-size: 0.88rem;
    padding: 0.7rem 1.4rem;
    background: var(--white);
    color: var(--midnight);
    border: 1.5px solid var(--midnight);
    opacity: 1;
}

.loading-more-button:hover{
    color: var(--dawn-text);
    border: 1.5px solid var(--dawn-ui);
}