/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

.tournament-card {
  transition: transform 0.2s ease;
  border: 0;
  border-radius: 20px;
  margin-top: 20px;
  padding: 10px;
  background: #f7f4ee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tournament-card:hover {
  transform: scale(1.01);
}

.home-feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .home-feeds {
    grid-template-columns: 1fr;
  }
}

.tournament-card__link {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.tournament-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f2f2;
  width: 100%;
}

.tournament-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tournament-card__body h3 {
  margin: 0 0 6px;
}

.tournament-card .tournament-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tournament-card .tournament-text p {
  margin: 0;
}

@media (max-width: 640px) {
  .tournament-card__link {
    grid-template-columns: 1fr;
  }
}

.affiliate-card .tournament-card__link {
  grid-template-columns: minmax(0, 33%) 1fr;
}

.affiliate-card {
  background: #eef6ff;
}

.affiliate-card .tournament-card__thumb {
  aspect-ratio: auto;
  background: transparent;
}

.affiliate-card .tournament-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.affiliate-card .tournament-card__actions {
  justify-content: flex-end;
}

.affiliate-card .tournament-button {
  background: #c62828;
  border-color: #c62828;
}

.affiliate-card .tournament-button:hover,
.affiliate-card .tournament-button:focus-visible {
  background: #fff;
  color: #c62828;
}

@media (max-width: 640px) {
  .affiliate-card .tournament-card__link {
    grid-template-columns: 1fr;
  }
}

.read-more {
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: #ebeff7;
  color: #1f1f1f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.read-more__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.read-more__content {
  position: relative;
}

.read-more__text {
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--read-more-lines, 3);
  overflow: hidden;
  max-height: calc(var(--read-more-lines, 3) * 1.5em);
}

.read-more.is-expanded .read-more__text {
  -webkit-line-clamp: unset;
  display: block;
  max-height: none;
  overflow: visible;
}

.home-feeds {
  display: flex;
  gap: 20px; /* optional spacing */
}

.home-feeds__col:first-child {
  flex: 0 0 66%;
}

.home-feeds__col:last-child {
  flex: 0 0 33%;
}

.read-more__toggle {
  margin-top: 10px;
  background: none;
  border: 0;
  color: #3f3883;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.read-more__toggle:hover,
.read-more__toggle:focus-visible {
  color: #ffffff;
}

.tournament-hero {
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 30vh;
}

.tournament-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 32px;
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.tournament-content h1 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .tournament-content {
    padding: 20px;
  }
}

.tournament-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tournament-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tournament-card__actions {
  margin-top: 12px;
}

.tournament-button:hover,
.tournament-button:focus-visible {
  background: #fff;
  color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}
