/**
 * Blog archive (template-parts/blog-archive.php): filters, the leading card,
 * magazine cards or index rows, Show more.
 */

.fc-blog {
  max-width: 1240px;
  margin: 0 auto;
  color: #3e4352;
  font-family: tenon, sans-serif;
}
.fc-blog a {
  color: inherit;
  text-decoration: none;
  border: 0;
}
.fc-blog a:focus {
  outline: none;
}
.fc-blog a:focus-visible,
.fc-blog input:focus-visible,
.fc-blog button:focus-visible {
  outline: 2px solid #0056f7;
  outline-offset: 3px;
}

/* ---------- Filters ---------- */
.fc-blog .fc-blog__filters {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dde2ee;
}
.fc-blog .fc-blog__filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.fc-blog .fc-blog__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fc-blog .fc-blog__chips-label {
  margin-right: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7080;
}
.fc-blog .fc-blog__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #d6dcea;
  border-radius: 999px;
  background: #fff;
  color: #041670;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fc-blog .fc-blog__chip span {
  font-weight: 400;
  color: #6b7080;
}
.fc-blog .fc-blog__chip:hover {
  border-color: #041670;
}
.fc-blog .fc-blog__chip[aria-current="page"] {
  border-color: #041670;
  background: #041670;
  color: #fff;
}
.fc-blog .fc-blog__chip[aria-current="page"] span {
  color: #9dbcff;
}
.fc-blog .fc-blog__chip--topic {
  padding: 7px 14px;
  font-size: 0.88rem;
}
.fc-blog .fc-blog__chip--topic[aria-current="page"] {
  border-color: #0056f7;
  background: #eaf0ff;
  color: #041670;
}
.fc-blog .fc-blog__chip--topic[aria-current="page"] span {
  color: #0056f7;
}

.fc-blog .fc-blog__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 340px;
  min-width: 260px;
  margin: 0;
  padding: 0 6px 0 14px;
  border: 1px solid #d6dcea;
  border-radius: 999px;
  background: #fff;
  color: #6b7080;
}
.fc-blog .fc-blog__search svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.fc-blog .fc-blog__search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #041670;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.fc-blog .fc-blog__search-go {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #041670;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.fc-blog .fc-blog__search-go:hover {
  background: #0056f7;
}
.fc-blog .fc-blog__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
  color: #6b7080;
}
.fc-blog .fc-blog__clear {
  color: #0056f7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Shared ---------- */
.fc-blog .fc-blog__meta {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  color: #6b7080;
}
.fc-blog .fc-blog__meta b {
  font-weight: 600;
  color: #0056f7;
}
.fc-blog .fc-blog__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fc-blog .fc-blog__noimg {
  display: grid;
  place-items: center;
  background: #eef1f8;
}
.fc-blog .fc-blog__noimg span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7080;
}
.fc-blog .fc-blog__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.55;
}
.fc-blog h2 {
  margin: 0;
  font-family: tenon, sans-serif;
  color: #041670;
  text-wrap: balance;
  transition: color 0.2s ease;
}
.fc-blog .fc-blog__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #041670;
}
.fc-blog svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

/* ---------- Leading card ---------- */
.fc-blog .fc-blog__feature {
  margin-bottom: 44px;
}
.fc-blog .fc-blog__feature > a {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background: #f2f4f9;
}
.fc-blog .fc-blog__feature-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #dfe4f0;
}
.fc-blog .fc-blog__feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px 44px;
}
.fc-blog .fc-blog__latest {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #041670;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fc-blog .fc-blog__feature-title {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fc-blog .fc-blog__feature-summary {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
}
.fc-blog .fc-blog__feature a:hover .fc-blog__feature-title {
  color: #0056f7;
}
.fc-blog .fc-blog__feature a:hover .fc-blog__img {
  transform: scale(1.04);
}
.fc-blog .fc-blog__feature a:hover .fc-blog__go svg {
  transform: translateX(4px);
}

/* ---------- Magazine ---------- */
.fc-blog--magazine .fc-blog__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px;
}
.fc-blog .fc-blog__card > a {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fc-blog .fc-blog__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #dfe4f0;
}
.fc-blog .fc-blog__card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-blog .fc-blog__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}
.fc-blog .fc-blog__card a:hover .fc-blog__card-title {
  color: #0056f7;
}
.fc-blog .fc-blog__card a:hover .fc-blog__img {
  transform: scale(1.04);
}

/* ---------- Index ---------- */
.fc-blog .fc-blog__row > a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #dde2ee;
}
.fc-blog .fc-blog__row-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #dfe4f0;
}
.fc-blog .fc-blog__row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fc-blog .fc-blog__row-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}
.fc-blog .fc-blog__row .fc-blog__summary {
  max-width: 70ch;
}
.fc-blog .fc-blog__row-go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #041670;
  border-radius: 50%;
  color: #041670;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fc-blog .fc-blog__row a:hover .fc-blog__row-title {
  color: #0056f7;
}
.fc-blog .fc-blog__row a:hover .fc-blog__row-go {
  background: #041670;
  color: #fff;
}
.fc-blog .fc-blog__row a:hover .fc-blog__img {
  transform: scale(1.05);
}

/* ---------- Show more, nothing found ---------- */
.fc-blog .fc-blog__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.fc-blog .fc-blog__more-btn {
  padding: 14px 30px;
  border: 1.5px solid #041670 !important;
  border-radius: 30px;
  background: #fff;
  color: #041670;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fc-blog .fc-blog__more-btn:hover {
  background: #041670;
  color: #fff;
}
.fc-blog .fc-blog__more-btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.fc-blog .fc-blog__none {
  padding: 40px 0;
  text-align: center;
  font-size: 1rem;
  color: #6b7080;
}

/* ---------- Narrower screens ---------- */
@media (max-width: 991.98px) {
  .fc-blog--magazine .fc-blog__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fc-blog .fc-blog__feature > a {
    grid-template-columns: minmax(0, 1fr);
  }
  .fc-blog .fc-blog__feature-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .fc-blog .fc-blog__row > a {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 20px;
  }
}
@media (max-width: 575.98px) {
  .fc-blog--magazine .fc-blog__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .fc-blog .fc-blog__feature-body {
    padding: 22px 20px 26px;
  }
  .fc-blog .fc-blog__search {
    flex: 1 1 100%;
    min-width: 0;
  }
  .fc-blog .fc-blog__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .fc-blog .fc-blog__chips::-webkit-scrollbar {
    display: none;
  }
  .fc-blog .fc-blog__chip {
    flex: none;
  }
  .fc-blog .fc-blog__row > a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .fc-blog .fc-blog__row-go,
  .fc-blog .fc-blog__row .fc-blog__summary {
    display: none;
  }
  .fc-blog .fc-blog__row-title {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-blog .fc-blog__img,
  .fc-blog svg,
  .fc-blog h2,
  .fc-blog .fc-blog__chip {
    transition: none;
  }
  .fc-blog a:hover .fc-blog__img,
  .fc-blog a:hover svg {
    transform: none;
  }
}
