/*
Theme Name: DSM Kadence Child
Theme URI: https://www.dancestudiomanager.com/
Description: Child theme for Dance Studio Manager customizations on top of Kadence.
Author: Dance Studio Manager
Author URI: https://www.dancestudiomanager.com/
Template: kadence
Version: 1.0.0
Text Domain: dsm-kadence-child
*/

.dsm-post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dsm-post-taxonomy--top {
  margin-top: 1.1rem;
}

.dsm-post-footer-taxonomy {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(1, 44, 61, 0.12);
}

.dsm-post-taxonomy--bottom {
  margin-bottom: 2rem;
}

.dsm-tax-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dsm-tax-pill--category {
  background: #eef5f7;
  color: #012c3d;
  border: 1px solid rgba(1, 44, 61, 0.1);
}

.dsm-tax-pill--tag {
  background: #fff;
  color: #215387;
  border: 1px solid rgba(33, 83, 135, 0.16);
}

.dsm-tax-pill:hover,
.dsm-tax-pill:focus {
  background: #012c3d;
  border-color: #012c3d;
  color: #fff;
}

.dsm-related-posts__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: #012c3d;
}

.dsm-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dsm-related-posts__item {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(1, 44, 61, 0.12);
  border-radius: 20px;
  background: #f7fbfc;
}

.dsm-related-posts__item-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.dsm-related-posts__item-title a {
  color: #012c3d;
  text-decoration: none;
}

.dsm-related-posts__item-title a:hover,
.dsm-related-posts__item-title a:focus {
  color: #215387;
  text-decoration: underline;
}

.dsm-taxonomy-archive {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.dsm-taxonomy-archive__header {
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid rgba(1, 44, 61, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(33, 83, 135, 0.1), transparent 34%),
    linear-gradient(135deg, #f7fbfc 0%, #eef5f7 100%);
}

.dsm-taxonomy-archive__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #215387;
}

.dsm-taxonomy-archive__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  color: #012c3d;
}

.dsm-taxonomy-archive__summary {
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #36576b;
}

.dsm-taxonomy-archive__count {
  display: inline-flex;
  margin: 1.25rem 0 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(1, 44, 61, 0.07);
  color: #012c3d;
  font-size: 0.92rem;
  font-weight: 600;
}

.dsm-taxonomy-archive__suggestions,
.dsm-taxonomy-archive__empty {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(1, 44, 61, 0.1);
  border-radius: 24px;
  background: #fff;
}

.dsm-taxonomy-archive__section-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #012c3d;
}

.dsm-taxonomy-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dsm-taxonomy-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(1, 44, 61, 0.1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(1, 44, 61, 0.06);
}

.dsm-taxonomy-card__image-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dcebf0 0%, #f2f8fa 100%);
}

.dsm-taxonomy-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.dsm-taxonomy-card__image-link:hover .dsm-taxonomy-card__image,
.dsm-taxonomy-card__image-link:focus .dsm-taxonomy-card__image {
  transform: scale(1.03);
}

.dsm-taxonomy-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.dsm-taxonomy-card__categories,
.dsm-taxonomy-card__tags {
  gap: 0.5rem;
}

.dsm-taxonomy-card__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.dsm-taxonomy-card__title a {
  color: #012c3d;
  text-decoration: none;
}

.dsm-taxonomy-card__title a:hover,
.dsm-taxonomy-card__title a:focus {
  color: #215387;
}

.dsm-taxonomy-card__meta {
  margin: -0.35rem 0 0;
  color: #597483;
  font-size: 0.9rem;
}

.dsm-taxonomy-card__excerpt {
  color: #36576b;
  line-height: 1.7;
}

.dsm-taxonomy-card__excerpt p {
  margin: 0;
}

.dsm-taxonomy-card__cta {
  margin: auto 0 0;
}

.dsm-taxonomy-card__cta a {
  color: #215387;
  font-weight: 700;
  text-decoration: none;
}

.dsm-taxonomy-card__cta a:hover,
.dsm-taxonomy-card__cta a:focus {
  text-decoration: underline;
}

.dsm-taxonomy-archive__pagination {
  margin-top: 2rem;
}

.dsm-taxonomy-archive__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dsm-taxonomy-archive__pagination .page-numbers a,
.dsm-taxonomy-archive__pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(1, 44, 61, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #012c3d;
  text-decoration: none;
}

.dsm-taxonomy-archive__pagination .page-numbers .current {
  background: #012c3d;
  border-color: #012c3d;
  color: #fff;
}

@media (max-width: 767px) {
  .dsm-post-footer-taxonomy {
    margin-top: 2rem;
  }

  .dsm-taxonomy-archive {
    width: min(100% - 1.25rem, 100%);
    padding: 1.25rem 0 3rem;
  }

  .dsm-taxonomy-archive__header,
  .dsm-taxonomy-archive__suggestions,
  .dsm-taxonomy-archive__empty {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .dsm-taxonomy-archive__grid {
    grid-template-columns: 1fr;
  }

  .dsm-related-posts__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .dsm-taxonomy-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-id-551 .content-container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-id-551 .dsm-payment-page {
  width: min(100%, 760px);
  margin: 0 auto;
}

.page-id-551 .dsm-payment-card {
  border: 1px solid rgba(1, 44, 61, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(33, 83, 135, 0.08), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
  box-shadow: 0 20px 48px rgba(1, 44, 61, 0.08);
}

.page-id-551 .dsm-payment-eyebrow {
  margin: 0;
  color: #215387;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-id-551 .dsm-payment-title {
  margin: 0 0 1rem;
  color: #012c3d;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.14;
  text-align: center;
}

.page-id-551 .dsm-payment-copy {
  max-width: 42rem;
  margin: 0 auto;
  color: #486677;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.page-id-551 .dsm-payment-card .wpcf7 {
  max-width: 420px;
  margin: 0 auto;
}

.page-id-551 .dsm-payment-card .wpcf7 form {
  display: grid;
  gap: 0.85rem;
}

.page-id-551 .dsm-payment-card input[type="text"],
.page-id-551 .dsm-payment-card input[type="email"],
.page-id-551 .dsm-payment-card input[type="tel"],
.page-id-551 .dsm-payment-card input[type="number"],
.page-id-551 .dsm-payment-card input[type="password"],
.page-id-551 .dsm-payment-card input[type="date"],
.page-id-551 .dsm-payment-card textarea,
.page-id-551 .dsm-payment-card select {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(33, 83, 135, 0.2);
  border-radius: 14px;
  background: #fff;
  color: #012c3d;
  box-shadow: none;
}

.page-id-551 .dsm-payment-card input::placeholder,
.page-id-551 .dsm-payment-card textarea::placeholder {
  color: #617e90;
  opacity: 1;
}

.page-id-551 .dsm-payment-card input:focus,
.page-id-551 .dsm-payment-card textarea:focus,
.page-id-551 .dsm-payment-card select:focus {
  border-color: #215387;
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 83, 135, 0.12);
}

.page-id-551 .dsm-payment-card input[type="submit"],
.page-id-551 .dsm-payment-card button,
.page-id-551 .dsm-payment-card .wp-element-button {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #215387 0%, #2f78bf 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 14px 28px rgba(33, 83, 135, 0.18);
}

.page-id-551 .dsm-payment-card input[type="submit"]:hover,
.page-id-551 .dsm-payment-card input[type="submit"]:focus,
.page-id-551 .dsm-payment-card button:hover,
.page-id-551 .dsm-payment-card button:focus {
  background: linear-gradient(135deg, #173f66 0%, #215387 100%);
}

@media (max-width: 767px) {
  .page-id-551 .content-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .page-id-551 .dsm-payment-page {
    width: min(100%, calc(100% - 1rem));
  }

  .page-id-551 .dsm-payment-card {
    border-radius: 20px;
  }
}
