/* Kicking Area — home page + responsive */

.vw-home {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
}

.vw-home-main {
  margin: 0;
}

.vw-home-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem var(--page-pad-x) 0;
}

/* Avoid horizontal scroll from full-bleed blocks on mobile */
.vw-home-content .wp-block-cover,
.vw-home-content .wp-block-image.alignfull,
.vw-home-content .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 992px) {
  .vw-home-content .wp-block-cover,
  .vw-home-content .wp-block-image.alignfull,
  .vw-home-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
  }
}

.vw-home-content img,
.vw-home-content video {
  max-width: 100%;
  height: auto;
}

.vw-demo-hero {
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  background: #1d1f21;
}

.vw-demo-hero-link {
  display: block;
  line-height: 0;
}

.vw-demo-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vw, 420px);
  object-fit: cover;
  object-position: center;
}

.vw-demo-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  color: #888;
}

@media (min-width: 992px) {
  .vw-demo-hero {
    margin-bottom: 1.5rem;
  }

  .vw-demo-hero img {
    max-height: 420px;
  }
}


.vw-module-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
  margin-bottom: 2.5rem;
  box-sizing: border-box;
}

.vw-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #ebebeb;
}

.vw-module-title {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: #1d1f21;
  margin: 0;
  letter-spacing: -0.02em;
  min-width: 0;
}

.vw-view-all {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1d1f21;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.vw-view-all:hover {
  color: #29bb9d;
}

.vw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vw-product-grid > li,
.vw-product-grid .vw-product-card-wrap {
  list-style: none;
  margin: 0;
  min-width: 0;
}

/* Phone */
@media (max-width: 575.98px) {
  .vw-module-section {
    margin-bottom: 1.75rem;
  }

  .vw-module-header {
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
  }

  .vw-product-grid {
    gap: 0.6rem;
  }
}

/* Large phone / small tablet portrait */
@media (min-width: 576px) {
  .vw-product-grid {
    gap: 1rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .vw-home-content {
    padding-top: 1.25rem;
  }

  .vw-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .vw-module-section {
    margin-bottom: 2.25rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .vw-home-content {
    padding-top: 1.5rem;
  }

  .vw-module-section {
    margin-bottom: 3rem;
  }

  .vw-module-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .vw-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1400px) {
  .vw-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ===== Kick Sport home teams (full-bleed under banner) ===== */
.ka-teams {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 0;
  box-sizing: border-box;
}

#common-home .vw-home-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

#common-home .vw-home-main > .ka-teams {
  order: 2;
  margin-top: 0;
  margin-bottom: 0;
}

#common-home .vw-home-main > .vw-module-section {
  order: 3;
  margin-top: 1rem;
}

#common-home .vw-home-main > .vw-demo-hero,
#common-home .vw-home-main > .vw-home-content {
  order: 1;
}

.ka-teams-tabs {
  display: flex;
  width: 100%;
}

.ka-teams-tab {
  flex: 1 1 25%;
  margin: 0;
  padding: 0.7rem 0.5rem;
  border: 0;
  border-right: 1px solid #dcdcdc;
  background: #ececec;
  color: #222222;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.ka-teams-tab:last-child { border-right: 0; }

.ka-teams-tab.is-active {
  background: #2a2a2a;
  color: #ffffff;
}

.ka-teams-panel { display: none; }

.ka-teams-panel.is-active {
  display: block;
  padding: 5px;
  background: #f3f3f3;
}

.ka-teams-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

@media (min-width: 768px) {
  .ka-teams-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .ka-teams-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.ka-teams-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #333333;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  word-break: break-word;
  box-sizing: border-box;
}

.ka-teams-cell:hover {
  color: #c8102e;
  border-color: #c8102e;
}

.ka-teams-cell.has-image .ka-teams-label { display: none; }

.ka-teams-image {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

@media (max-width: 1199.98px) {
  .ka-teams-image {
    width: 100%;
    height: auto;
    max-width: 100px;
    max-height: 100px;
    aspect-ratio: 1 / 1;
  }
}
