.tedd-scroll-stable {
  scrollbar-gutter: stable;
}

.tedd-wrap {
  --tedd-red: #df000e;
  --tedd-red-rgb: 223, 0, 14;
  --tedd-black: #121212;
  --tedd-bg: #f4f4f4;
  --tedd-card-bg: #f8f8f8;
  --tedd-border: #dbdbdb;
  --tedd-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
  --tedd-title-font: "Futura", "Futura PT", "Avenir Next", "Trebuchet MS", sans-serif;
  font-family: "Futura", "Futura PT", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--tedd-black);
  background: transparent;
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3vw, 44px) clamp(14px, 2.5vw, 26px);
}

.tedd-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--tedd-bg);
  z-index: -1;
}

.tedd-main-title {
  margin: 0 0 30px;
  text-align: center;
  font-family: var(--tedd-title-font);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tedd-main-title::after {
  content: ".";
  color: var(--tedd-red);
}

.tedd-top-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.tedd-chip-nav {
  display: flex;
  gap: 10px;
  overflow: visible;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 1px solid #d5d5d5;
  padding: 0 2px;
  margin-bottom: 0;
  flex: 1 1 620px;
}

.tedd-chip {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #d0d0d0;
  border-bottom-color: #d0d0d0;
  color: var(--tedd-black);
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 11px 22px;
  line-height: 1;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tedd-chip:hover,
.tedd-chip:focus-visible {
  background: #f6f6f6;
  color: var(--tedd-black);
  outline: none;
}

.tedd-chip.is-active {
  background: var(--tedd-red);
  color: #fff;
  border-color: var(--tedd-red);
  border-bottom-color: var(--tedd-red);
}

.tedd-language-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.tedd-language-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.tedd-language-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #252525;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, #7b7b7b 50%), linear-gradient(135deg, #7b7b7b 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tedd-language-select:focus-visible {
  outline: none;
  border-color: #bcbcbc;
  box-shadow: none;
}

.tedd-section {
  scroll-margin-top: 120px;
}

.tedd-wrap.is-tabs-mode .tedd-section {
  display: none;
}

.tedd-wrap.is-tabs-mode .tedd-section.is-active {
  display: block;
}

.tedd-sections {
  transition: min-height 180ms ease;
}

.tedd-language-empty {
  display: none;
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: #666;
}

.tedd-language-empty.is-active {
  display: block;
}

.tedd-section-title {
  margin: 0 0 16px;
  font-family: var(--tedd-title-font);
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  font-weight: 700;
}

.tedd-section-title::after {
  content: ".";
  color: var(--tedd-red);
}

.tedd-title-align-left .tedd-section-title {
  text-align: left;
}

.tedd-title-align-center .tedd-section-title {
  text-align: center;
}

.tedd-page {
  display: none;
}

.tedd-page.is-active {
  display: block;
}

.tedd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 20px;
}

.tedd-card {
  background: var(--tedd-card-bg);
  border-radius: 18px;
  border: 1px solid var(--tedd-border);
  box-shadow: var(--tedd-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tedd-card-top {
  height: 68px;
  background: linear-gradient(125deg, #f0f0f0 0%, #f8f8f8 45%, #ececec 100%);
  position: relative;
  overflow: hidden;
}

.tedd-card-top::before {
  content: none;
}

.tedd-card-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248, 248, 248, 0.78), rgba(248, 248, 248, 0.08));
  z-index: 1;
}

.tedd-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tedd-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 186px;
}

.tedd-align-left .tedd-card-body {
  align-items: flex-start;
  text-align: left;
}

.tedd-align-center .tedd-card-body {
  align-items: center;
  text-align: center;
}

.tedd-card-title {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(1.15rem, 1.75vw, 1.35rem);
  line-height: 1.28;
  font-weight: 700;
  min-height: 3.84em;
  display: block;
  overflow: visible;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: wrap;
}

.tedd-card-meta {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tedd-download-btn {
  margin-top: auto;
  text-decoration: none;
}

.tedd-wrap[data-button-style="custom"] .tedd-download-btn {
  border: 2px solid var(--tedd-red);
  border-width: var(--tedd-btn-border-width, 2px);
  border-color: var(--tedd-btn-border, var(--tedd-red));
  color: var(--tedd-btn-text, var(--tedd-red));
  background: var(--tedd-btn-bg, #fff);
  padding: var(--tedd-btn-py, 10px) var(--tedd-btn-px, 24px);
  border-radius: var(--tedd-btn-radius, 999px);
  font-size: var(--tedd-btn-font-size, 1rem);
  line-height: 1;
  font-weight: var(--tedd-btn-font-weight, 700);
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.tedd-wrap[data-button-style="custom"] .tedd-download-btn:hover,
.tedd-wrap[data-button-style="custom"] .tedd-download-btn:focus-visible {
  color: var(--tedd-btn-hover-text, #fff);
  background: var(--tedd-btn-hover-bg, var(--tedd-red));
  border-color: var(--tedd-btn-hover-border, var(--tedd-red));
  outline: none;
}

.tedd-wrap[data-button-style="divi"] .tedd-download-btn.et_pb_button {
  margin-top: auto;
}

.tedd-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
}

.tedd-page-btn {
  width: 36px;
  height: 38px;
  border: 0;
  min-width: 36px;
  background: #fff;
  color: #444;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 0 0 1px #e8e8e8;
}

.tedd-page-btn:hover,
.tedd-page-btn:focus-visible {
  background: #f6f6f6;
  outline: none;
}

.tedd-page-btn.is-active {
  background: var(--tedd-red);
  color: #fff;
  box-shadow: none;
}

.tedd-page-btn.is-disabled,
.tedd-page-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.tedd-pagination.is-hidden {
  display: none;
}

.tedd-page-btn.tedd-page-btn-hidden {
  display: none;
}

.tedd-card.tedd-card-hidden {
  display: none;
}

.tedd-page.tedd-page-filter-hidden {
  display: none;
}

.tedd-empty {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 980px) {
  .tedd-wrap {
    padding-inline: 14px;
  }

  .tedd-top-controls {
    align-items: stretch;
  }

  .tedd-chip-nav {
    flex-basis: 100%;
  }

  .tedd-language-filter {
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .tedd-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .tedd-card-body {
    min-height: 170px;
  }
}
