/* Taxonomy archive: shows-categories (tcs_) – first = featured, rest = 3-col grid */
body{
  padding-top: 64px;
}
.tcs_wrapper {
  max-width: 1277px;
  margin: 0 auto;
  padding: 66px var(--container-padding, 24px) 78px;
  font-family: var(--font-heebo, 'Heebo', sans-serif);
}

.tcs_header {
  background-color: var(--color-secondary, #F0F0F0);
  padding: 24px 80px 122px;
  position: relative;
  margin-bottom: 0;
}

.tcs_title {
  margin: 0;
  color: var(--color-text, #051333);
  position: absolute;
  top: -20px;
  right: 80px;
}

.tcs_breadcrumb {
  margin: 8px 0 46px;
  color: var(--color-text);
  display: flex;
  gap: 8px;
  align-items: center;
}

.tcs_breadcrumb a {
  text-decoration: none;
    color: var(--color-text);
}

.tcs_content {
  max-width: var(--container-width, 1120px);
  margin: 0 auto;
  padding: 45px 24px 0;
  position: relative;
}

/* Featured (same design as home category featured) */
.tcs_featured_row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
.tcs_featured:hover {
	background-size: 105%;
}
.tcs_featured {
  position: relative;
  width: 100%;
	transition: background-size 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  min-height: 424px;
  background-color: var(--color-text, #051333);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  box-sizing: border-box;
}

.tcs_featured_overlay {
  width: 100%;
  max-width: 463px;
  position: absolute;
  right: 44px;
  bottom: -77px;
  padding: 20px;
  background-color: var(--color-bg, #fff);
  box-sizing: border-box;
  border: 1px solid var(--color-secondary, #F0F0F0);
}

.tcs_featured_title {
  margin: 0 0 8px;
  color: var(--color-text);
}

.tcs_featured_title a {
  color: inherit;
  text-decoration: none;
}

.tcs_featured_title a:hover {
  text-decoration: underline;
}

.tcs_featured_excerpt {
  margin: 0 0 8px;
  color: var(--color-text);
}

.tcs_featured_meta {
  margin: 0 0 20px;
  color: var(--color-text);
}

.tcs_featured_btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--color-primary, #C8232B);
  color: var(--color-bg) !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.tcs_featured_btn:hover {
  opacity: 0.92;
}

/* Grid – 3 columns (same as archive gallery) */
.tcs_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.tcs_card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  min-height: 380px;
}

.tcs_card_image_link {
  display: block;
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
}

.tcs_card_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  transform-origin: top center;
}

.tcs_card:hover .tcs_card_image {
  transform: scaleY(1.05);
}

.tcs_card_image_placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
}

.tcs_card_category {
  display: block;
  margin-bottom: 4px;
  padding: 0 8px;
  transition: margin-top 0.4s ease;
    color: var(--color-text);
}

.tcs_card_title {
  margin: 0 0 8px;
  padding: 0 8px;
  color: var(--color-text);
}

.tcs_card_title a {
  color: inherit;
  text-decoration: none;
}

.tcs_card_title a:hover {
  text-decoration: underline;
}

.tcs_card_meta {
  margin: auto 0 16px;
  padding: 0 8px;
  color: var(--color-text);
}

.tcs_card_btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  width: auto;
  background-color: var(--color-text, #051333);
  color: var(--color-bg) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.tcs_card:hover .tcs_card_btn {
  background-color: var(--color-primary, #C8232B);
}

.tcs_card:hover .tcs_card_category {
  margin-top: 12px;
}

.tcs_grid_more {
  display: none;
  margin-top: 24px;
}

.tcs_grid_more.tcs_has_content {
  display: grid;
}

.tcs_load_wrap {
  margin-top: 32px;
  text-align: center;
}

.tcs_load_more_btn,
.tcs_show_less_btn {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-ibm, inherit);
  color: var(--color-bg);
  background-color: var(--color-primary, #C8232B);
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.tcs_load_more_btn:hover:not(:disabled),
.tcs_show_less_btn:hover {
  opacity: 0.92;
}

.tcs_load_more_btn:disabled,
.tcs_load_more_btn.tcs_loading {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  body{
    padding-top: 0;
  }
  .tcs_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tcs_header{
    padding: 24px 80px 101px;
  }
  .tcs_content{
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  .tcs_content {
    padding: 48px 0;
  }
  .tcs_wrapper{
    padding-bottom: 0;
  }
  .tcs_header{
    padding: 24px;
  }

  .tcs_featured_row {
    flex-direction: column;
    padding-bottom: 32px;
  }

  .tcs_featured {
    min-height: 500px;
    justify-content: center;
  }
  .tcs_title{
    right: 24px;
    top: -12px;
  }
  .tcs_featured_overlay {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .tcs_breadcrumb{
    margin: 8px 0 24px;
  }
  .tcs_grid {
    grid-template-columns: 1fr;
  }

  .tcs_card {
    min-height: 340px;
  }
}
