.tags-page {
  --tags-ink: #18332d;
  --tags-green: var(--color-secondary);
  --tags-soft: #eef5ed;
  --tags-gold: #d99a42;
  background: #fbfcf9;
  color: var(--tags-ink);
}

.tags-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 34px;
  background-color: var(--color-secondary);
  background-image:
    radial-gradient(circle at 83% 18%, rgba(217, 154, 66, .24), transparent 24%),
    linear-gradient(125deg, rgba(18, 60, 48, .84) 0%, rgba(36, 99, 67, .62) 58%, rgba(78, 177, 102, .12) 100%);
  color: #fff;
}

.tags-hero::after {
  position: absolute;
  right: -70px;
  bottom: -145px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, .04), 0 0 0 98px rgba(255, 255, 255, .035);
  content: "";
}

.tags-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.tags-eyebrow,
.tag-group-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tags-eyebrow { color: #f3ce93; }

.tags-hero h1 {
  max-width: 680px;
  margin: 10px 0 8px;
  color: #fff;
  font-family: "Prata", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.tags-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .83);
  font-size: 17px;
  line-height: 1.55;
}

.tags-directory { padding: 0 0 90px; }

.tags-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -31px 0 48px;
  padding: 20px 26px;
  border: 1px solid #e1e9df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(23, 57, 46, .09);
}

.tags-summary p { margin: 0; color: #5e716b; }
.tags-summary strong { margin-right: 5px; color: var(--tags-ink); font-size: 21px; }
.tags-summary a { color: var(--tags-green); font-size: 13px; font-weight: 700; }
.tags-summary a i { margin-left: 6px; }

.tag-group {
  height: 100%;
  padding: 34px;
  border: 1px solid #dfe8dd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(31, 65, 52, .06);
}

.tag-group-packages { background: linear-gradient(180deg, #fff 0%, #fffaf3 100%); }

.tag-group-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
}

.tag-group-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--tags-soft);
  color: var(--tags-green);
  font-size: 20px;
}

.tag-group-packages .tag-group-icon { background: #fff0da; color: #a96a1d; }
.tag-group-kicker { color: #7a8d86; font-size: 10px; }

.tag-group h2 {
  margin: 4px 0 0;
  color: var(--tags-ink);
  font-family: "Prata", serif;
  font-size: 28px;
  font-weight: 400;
}

.tag-group-count {
  display: grid;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  place-items: center;
  border-radius: 50px;
  background: #f2f5f0;
  color: #53665e;
  font-size: 12px;
  font-weight: 700;
}

.tag-group-intro {
  margin: 22px 0 25px;
  color: #687a74;
  font-size: 14px;
  line-height: 1.7;
}

.tag-link-list { display: grid; gap: 10px; }

.tag-directory-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #e4ebe2;
  border-radius: 11px;
  color: var(--tags-ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tag-directory-link:hover {
  border-color: #abc5ae;
  color: var(--tags-green);
  box-shadow: 0 9px 24px rgba(42, 85, 64, .1);
  transform: translateY(-2px);
}

.tag-directory-link span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-directory-link span i { margin-right: 8px; color: #91aa93; font-size: 11px; }
.tag-directory-link small { color: #87958f; font-size: 11px; white-space: nowrap; }
.tag-arrow { color: #91a49b; font-size: 11px; transition: transform .2s ease; }
.tag-directory-link:hover .tag-arrow { transform: translateX(3px); }
.tag-empty { margin: 0; padding: 20px; border-radius: 10px; background: #f5f7f3; color: #708078; }

.tags-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  padding: 38px 42px;
  border-radius: 20px;
  background-color: var(--color-secondary);
  background-image: linear-gradient(120deg, rgba(17, 61, 46, .76), rgba(17, 61, 46, .42));
  color: #fff;
}

.tags-cta span { color: #efc680; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tags-cta h2 { margin: 7px 0 8px; color: #fff; font-family: "Prata", serif; font-size: 28px; font-weight: 400; }
.tags-cta p { margin: 0; color: rgba(255, 255, 255, .7); }
.tags-cta > a { flex: 0 0 auto; padding: 14px 20px; border-radius: 8px; background: #fff; color: var(--tags-ink); font-size: 13px; font-weight: 700; }
.tags-cta > a i { margin-left: 8px; }

@media (max-width: 767px) {
  .tags-hero { padding: 92px 0 26px; }
  .tags-hero p { font-size: 15px; }
  .tags-summary { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 30px; }
  .tag-group { padding: 25px 20px; }
  .tag-directory-link { grid-template-columns: minmax(0, 1fr) auto; }
  .tag-directory-link small { grid-column: 1; }
  .tag-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .tags-cta { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .tags-cta h2 { font-size: 24px; }
}
